//app.js
|
|
var app = getApp();
|
|
App({
|
|
onLaunch: function () {
|
|
var that = this;
|
|
wx.getSystemInfo({
|
|
success: function (res) {
|
|
that.globalData.winWidth = res.windowWidth;
|
|
that.globalData.winHeight = res.windowHeight;
|
|
}
|
|
});
|
|
},
|
|
onShow: function (options) {
|
|
var that = this;
|
|
var path = options.path;
|
|
if (options.query.id) {
|
|
wx.reLaunch({
|
|
url: '/pages/login/login',
|
|
complete: function (res) {
|
|
that.globalData.shareInPath = path;
|
|
that.globalData.shareInParameter = options.query;
|
|
},
|
|
});
|
|
}
|
|
|
|
var extraData = null;
|
|
//options.referrerInfo.extraData = { orderID: 33 };
|
|
// 判断是否点击其他小程序分享进入
|
|
if (options.referrerInfo.extraData) {
|
|
extraData = options.referrerInfo.extraData
|
|
this.globalData.shareOrderID = extraData.orderID;
|
|
};
|
|
},
|
|
|
|
globalData: {
|
|
shareInPath: "",
|
|
shareInParameter: {},
|
|
shareInState: 1,
|
|
winHeight: 0,
|
|
winWidth: 0,
|
|
userInfo:null,
|
|
UserName:"",
|
|
shareOrderID: 0,
|
|
openID: "",
|
|
appID: "wx246fd8f3a0273f2f",
|
|
phoneNum: "",
|
|
From: "",
|
|
baseUrl: "https://miniprotest.food988.com/Rest.aspx",
|
|
tranferBaseUrl: "https://miniprotest.food988.com/RequestTransfer.aspx",
|
|
globalCustomerID: "",
|
|
cookie: "",
|
|
}
|
|
})
|
|
|
|
// {
|
|
// "pagePath": "pages/message/message",
|
|
// "text": "消息",
|
|
// "iconPath": "/imgs/message.png",
|
|
// "selectedIconPath": "/imgs/messageSelected.png"
|
|
// },
|