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.
28 lines
873 B
28 lines
873 B
//app.js
|
|
App({
|
|
//----------------------------------------------globalData--------------------------------------
|
|
release: 0,
|
|
httpUrl: 'https://api.qniao.cn',
|
|
tmplIds: ['SUjEgwDopCv9xkkSZ4KbS0L7XbAiVQor6GmPg14K760'],
|
|
agentMsgIds: ['kG8DErWDpyzBHCFaLlSKYMF7xVy8UpgogCwV_WSNt10', 'oLbv-IyJOia2tenh64_Lc8xeAzwgzu3gh1vFJ1Se-ME'],
|
|
version: 152,
|
|
xAppId: '470236309865238528',
|
|
globalData: {
|
|
userInfo: null,
|
|
openId: null,
|
|
token: null,
|
|
isIPhoneX: false,
|
|
isIos: false,
|
|
kg: 0
|
|
},
|
|
inited: false,
|
|
//-----------------------------------------onLaunch---------------------------------------------
|
|
onLaunch: function () {
|
|
if (this.release) {
|
|
this.httpUrl = 'https://api.qniao.cn'
|
|
} else {
|
|
this.httpUrl = 'http://47.113.118.47:9000'
|
|
// this.httpUrl = 'https://api-test.qniao.cn'
|
|
}
|
|
}
|
|
})
|