|
|
@ -1,20 +1,19 @@ |
|
|
|
|
|
|
|
|
App({ |
|
|
App({ |
|
|
onLaunch: function () { |
|
|
|
|
|
|
|
|
onLaunch: function() { |
|
|
var that = this; |
|
|
var that = this; |
|
|
wx.getSystemInfo({ |
|
|
wx.getSystemInfo({ |
|
|
success: function (res) { |
|
|
|
|
|
|
|
|
success: function(res) { |
|
|
that.globalData.winHeight = res.windowHeight; |
|
|
that.globalData.winHeight = res.windowHeight; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
onShow: function (options) { |
|
|
|
|
|
|
|
|
onShow: function(options) { |
|
|
var that = this; |
|
|
var that = this; |
|
|
var path = options.path; |
|
|
var path = options.path; |
|
|
if (options.query.id) { |
|
|
if (options.query.id) { |
|
|
wx.reLaunch({ |
|
|
wx.reLaunch({ |
|
|
url: '/pages/login/login', |
|
|
url: '/pages/login/login', |
|
|
complete: function (res) { |
|
|
|
|
|
|
|
|
complete: function(res) { |
|
|
that.globalData.shareInPath = path; |
|
|
that.globalData.shareInPath = path; |
|
|
that.globalData.shareInParameter = options.query; |
|
|
that.globalData.shareInParameter = options.query; |
|
|
}, |
|
|
}, |
|
|
@ -25,7 +24,7 @@ App({ |
|
|
shareInPath: "", |
|
|
shareInPath: "", |
|
|
shareInParameter: {}, |
|
|
shareInParameter: {}, |
|
|
shareInState: 1, |
|
|
shareInState: 1, |
|
|
winHeight:0, |
|
|
|
|
|
|
|
|
winHeight: 0, |
|
|
cookie: "", |
|
|
cookie: "", |
|
|
decryptCookie: '', |
|
|
decryptCookie: '', |
|
|
userInfo: null, |
|
|
userInfo: null, |
|
|
@ -35,8 +34,15 @@ App({ |
|
|
phoneNum: "", |
|
|
phoneNum: "", |
|
|
openID: "", |
|
|
openID: "", |
|
|
appID: "wx0b897783b2588147", |
|
|
appID: "wx0b897783b2588147", |
|
|
userID:"", |
|
|
|
|
|
selectStartDate:null, |
|
|
|
|
|
selectEndDate:null, |
|
|
|
|
|
|
|
|
userID: "", |
|
|
|
|
|
selectStartDate: null, |
|
|
|
|
|
selectEndDate: null, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// "pagePath": "pages/homePage/homePage",
|
|
|
|
|
|
// "text": "消息",
|
|
|
|
|
|
// "iconPath": "/imgs/message1.png",
|
|
|
|
|
|
// "selectedIconPath": "/imgs/message.png"
|
|
|
|
|
|
// },
|
|
|
}) |
|
|
}) |