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.
 

51 lines
1.3 KiB

App({
onLaunch: function() {
var that = this;
wx.getSystemInfo({
success: function(res) {
that.globalData.winHeight = res.windowHeight;
}
});
},
onShow: function(options) {
var that = this;
var path = options.path;
if (options.query.id) {
wx.reLaunch({
url: '/pages/empty/login',
complete: function(res) {
that.globalData.shareInPath = path;
that.globalData.shareInParameter = options.query;
},
});
}
},
globalData: {
shareInPath: "",
shareInParameter: {},
shareInState: 1,
winHeight: 0,
cookie: "",
userInfo: null,
//测试服务器地址
// baseUrl: "https://miniprotest.food988.com/Rest.aspx",
// tranferBaseUrl: "https://miniprotest.food988.com/RequestTransfer.aspx",
//正式服务器地址
baseUrl: "https://miniprogram.food988.com/Rest.aspx",
tranferBaseUrl: "https://miniprogram.food988.com/RequestTransfer.aspx",
globalCustomerID: 0,
phoneNum: "",
openID: "",
appID: "wx0b897783b2588147",
userID: "",
selectStartDate: null,
selectEndDate: null,
},
// {
// "pagePath": "pages/homePage/homePage",
// "text": "消息",
// "iconPath": "/imgs/message1.png",
// "selectedIconPath": "/imgs/message.png"
// },
})