|
@@ -14,8 +14,12 @@ App({
|
|
|
onLaunch() {
|
|
|
this.checkIsIos()
|
|
|
this.getNavbarInfo()
|
|
|
- let res = wx.getLaunchOptionsSync()
|
|
|
- console.log(res, 'res');
|
|
|
+ let {
|
|
|
+ scene
|
|
|
+ } = wx.getLaunchOptionsSync()
|
|
|
+ console.log(scene, 'res');
|
|
|
+
|
|
|
+ this.globalData.scene = scene
|
|
|
},
|
|
|
async onShow(options) {
|
|
|
this.storeBindings = createStoreBindings(this, {
|
|
@@ -78,6 +82,7 @@ App({
|
|
|
globalData: {
|
|
|
userInfo: null,
|
|
|
isIOS: false, // 判断设备是否为苹果
|
|
|
+ scene: '', // 1023 安卓系统桌面图标,1104微信聊天主界面下拉,「我的小程序」栏(基础库2.2.4-2.29.0版本废弃,2.29.1版本起生效)
|
|
|
navBarHeight: 0, // 导航栏高度
|
|
|
menuRight: 0, // 胶囊距右方间距(方保持左、右间距一致)
|
|
|
menuTop: 0, // 胶囊距底部间距(保持底部间距一致)
|