|
|
|
@ -3,32 +3,32 @@ App({ |
|
|
|
onLaunch: function() { |
|
|
|
var that = this; |
|
|
|
wx.getSystemInfo({ |
|
|
|
success: function (res) { |
|
|
|
success: function(res) { |
|
|
|
that.globalData.winWidth = res.windowWidth; |
|
|
|
that.globalData.winHeight = res.windowHeight; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
onShow: function (options) { |
|
|
|
onShow: function(options) { |
|
|
|
var that = this; |
|
|
|
var path = options.path; |
|
|
|
if (options.query.id) { |
|
|
|
wx.reLaunch({ |
|
|
|
url: '/pages/login/login', |
|
|
|
complete: function (res) { |
|
|
|
complete: function(res) { |
|
|
|
that.globalData.shareInPath = path; |
|
|
|
that.globalData.shareInParameter = options.query; |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
globalData: { |
|
|
|
shareInPath: "", |
|
|
|
shareInParameter: {}, |
|
|
|
shareInState: 1, |
|
|
|
customerArray:[], |
|
|
|
goodsNameArray:[], |
|
|
|
customerArray: [], |
|
|
|
goodsNameArray: [], |
|
|
|
winHeight: 0, |
|
|
|
winWidth: 0, |
|
|
|
phoneNum: "", |
|
|
|
@ -47,9 +47,16 @@ App({ |
|
|
|
selectBillState: null, |
|
|
|
billInfo: [], |
|
|
|
billInfoUp: [], |
|
|
|
accountingUnit_ID:0, |
|
|
|
accountingUnit_ID: 0, |
|
|
|
accountingUnit_Name: "请选择会计单位", |
|
|
|
department_ID:0, |
|
|
|
department_ID: 0, |
|
|
|
department_Name: "请选择部门", |
|
|
|
} |
|
|
|
|
|
|
|
// {
|
|
|
|
// "pagePath": "pages/message/message",
|
|
|
|
// "text": "消息",
|
|
|
|
// "iconPath": "/imgs/message.png",
|
|
|
|
// "selectedIconPath": "/imgs/messageSelected.png"
|
|
|
|
// },
|
|
|
|
}) |