You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//app.js
|
|
|
|
import {HTTP} from '/utils/http.js'
|
|
|
|
const http = new HTTP()
|
|
|
|
App({
|
|
|
|
onLaunch: function (options) {
|
|
|
|
console.log('党群e家');
|
|
|
|
console.log(options);
|
|
|
|
if(options.referrerInfo.hasOwnProperty('extraData')){
|
|
|
|
this.globalData.navigate.mobile = options.referrerInfo.extraData.mobile,
|
|
|
|
this.globalData.navigate.nickname = options.referrerInfo.extraData.nickname,
|
|
|
|
this.globalData.navigate.faceImg = options.referrerInfo.extraData.faceImg
|
|
|
|
}
|
|
|
|
http.fetchAuthToken(res => {
|
|
|
|
// console.log(res)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
globalData: {
|
|
|
|
userInfo: null,
|
|
|
|
navigate:{
|
|
|
|
mobile:'',
|
|
|
|
nickname:'',
|
|
|
|
faceImg:''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|