|
|
|
|
|
|
|
|
App({ |
|
|
App({ |
|
|
onLaunch: function (options) { |
|
|
onLaunch: function (options) { |
|
|
console.log(options); |
|
|
console.log(options); |
|
|
|
|
|
this.globalData.sceneSource = options.scene; |
|
|
if (options.referrerInfo && options.referrerInfo.extraData && options.referrerInfo.extraData.source) { |
|
|
if (options.referrerInfo && options.referrerInfo.extraData && options.referrerInfo.extraData.source) { |
|
|
this.globalData.sceneSource = options.referrerInfo.extraData.source; |
|
|
this.globalData.sceneSource = options.referrerInfo.extraData.source; |
|
|
} else if (options.query && options.query.scene) { |
|
|
} else if (options.query && options.query.scene) { |
|
|
|
|
|
|
|
|
this.globalData.sceneSource = split[1]; |
|
|
this.globalData.sceneSource = split[1]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
|
|
|
this.globalData.sceneSource = options.scene |
|
|
|
|
|
} |
|
|
} |
|
|
// 展示本地存储能力 |
|
|
// 展示本地存储能力 |
|
|
var openid = wx.getStorageSync('openid') || ""; |
|
|
var openid = wx.getStorageSync('openid') || ""; |