...
|
...
|
@@ -32,6 +32,7 @@ App({ |
|
|
thirdSession: '',
|
|
|
udid: '',
|
|
|
unionType: '',
|
|
|
currentScene: 1001,
|
|
|
systemInfo: {}
|
|
|
},
|
|
|
reportData: {
|
...
|
...
|
@@ -61,11 +62,17 @@ App({ |
|
|
this.globalData.sid = MD5(timestamp);
|
|
|
yas = new Yas(this);
|
|
|
yas.report('YB_LAUNCH_APP');
|
|
|
|
|
|
let scene = options ? options.scene : '';
|
|
|
this.globalData.currentScene = scene;
|
|
|
},
|
|
|
onShow: function(options) {
|
|
|
udid.get(); // 生成 UDID
|
|
|
verify.gen(); // 此处返回是是 Promise,需要调用接口的业务,最好在 then 里边执行
|
|
|
|
|
|
let scene = options ? options.scene : '';
|
|
|
this.globalData.currentScene = scene;
|
|
|
|
|
|
// wx.getLocation({}); // 获取位置信息
|
|
|
wx.checkSession().then(() => { // 微信登录未过期
|
|
|
this.getWechatThirdSession();
|
...
|
...
|
|