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.
 

52 lines
1.3 KiB

//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,
UserName:"",
shareOrderID: 0,
OpenId: "",
AppId: "wx246fd8f3a0273f2f",
Phone: "",
From: "",
baseUrl: "https://miniprogram.food988.com/Rest.aspx",
TransferBaseUrl: "https://miniprogram.food988.com/RequestTransfer.aspx",
CustomerId: "",
}
})