# Conflicts: # app.json # env/env.js # pages/apply/index.wxml # pages/index/index.js # pages/user/login/login.js # project.config.json # utils/API.jsmaster
@@ -10,10 +10,13 @@ | |||||
"pages/apply/index", | "pages/apply/index", | ||||
"pages/apply/paymentTemplate/paymentTemplate", | "pages/apply/paymentTemplate/paymentTemplate", | ||||
"pages/apply/approval/approval", | "pages/apply/approval/approval", | ||||
"pages/inCome/inCome", | |||||
"pages/inCome/inCome", | |||||
"pages/inCome/accounting/index", | "pages/inCome/accounting/index", | ||||
"pages/apply/paymentTemplate/see/see", | |||||
"pages/apply/paymentTemplate/add/add" ], | |||||
"pages/apply/paymentTemplate/see/see", | |||||
"pages/apply/paymentTemplate/add/add", | |||||
"pages/payee/index", | |||||
"pages/payee/add/add" | |||||
], | |||||
"window": { | "window": { | ||||
"backgroundTextStyle": "light", | "backgroundTextStyle": "light", | ||||
"navigationStyle": "custom", | "navigationStyle": "custom", | ||||
@@ -201,11 +201,20 @@ Page({ | |||||
}) | }) | ||||
}, | }, | ||||
//跳转支出申请 | //跳转支出申请 | ||||
swichPayment:function(e){ | |||||
wx.navigateTo({ | |||||
url: '../apply/index?', | |||||
}) | |||||
}, | |||||
swichPayment:function(e){ | |||||
console.log(e.currentTarget.dataset.current); | |||||
// let cur = e.currentTarget.dataset.current; | |||||
// if (this.data.currentTaB == cur) { | |||||
// return false; | |||||
// }else{ | |||||
// wx.navigateTo({ | |||||
// url: '../inCome/index?id=' + id, | |||||
// }) | |||||
// } | |||||
wx.navigateTo({ | |||||
url: '/pages/apply/index?', | |||||
}) | |||||
}, | |||||
//跳转个人设置 | //跳转个人设置 | ||||
swichSettle:function(e){ | swichSettle:function(e){ | ||||
// console.log(e.currentTarget.dataset.current); | // console.log(e.currentTarget.dataset.current); | ||||
@@ -93,6 +93,7 @@ Page({ | |||||
} | } | ||||
UTIL.httpRequestNoneDetal(API.URL_POST_DECRYPTEDWXDATA, sendData, "POST", { | UTIL.httpRequestNoneDetal(API.URL_POST_DECRYPTEDWXDATA, sendData, "POST", { | ||||
success: (res) => { | success: (res) => { | ||||
console.log(res) | |||||
if (res.code == API.SUCCESS_CODE) { | if (res.code == API.SUCCESS_CODE) { | ||||
let phoneNumber = res.data.phoneNumber; | let phoneNumber = res.data.phoneNumber; | ||||
//微信手机号码绑定 | //微信手机号码绑定 | ||||
@@ -45,6 +45,9 @@ const URL_POST_UPDATEPWD = `${URL_PREFIX}/system/user/profile/updatePwd`; | |||||
const URL_POST_UPLOADFILE = `${URL_PREFIX}/system/user/profile/electronicSignature`; | const URL_POST_UPLOADFILE = `${URL_PREFIX}/system/user/profile/electronicSignature`; | ||||
// 保存电子签名 | // 保存电子签名 | ||||
const URL_POST_USEREDIT = `${URL_PREFIX}/system/user/edit`; | const URL_POST_USEREDIT = `${URL_PREFIX}/system/user/edit`; | ||||
//当前账套付款账户列表 | |||||
const URL_GET_ACCOUNTLIST = `${URL_PREFIX}/cashier/account/list`; | |||||
/****************接口地址end****************/ | /****************接口地址end****************/ | ||||
export { | export { | ||||
@@ -67,5 +70,6 @@ export { | |||||
URL_GET_TRANSFERLIST, | URL_GET_TRANSFERLIST, | ||||
URL_POST_UPDATEPWD, | URL_POST_UPDATEPWD, | ||||
URL_POST_UPLOADFILE, | URL_POST_UPLOADFILE, | ||||
URL_POST_USEREDIT | |||||
URL_POST_USEREDIT, | |||||
URL_GET_ACCOUNTLIST | |||||
} | } |
@@ -118,7 +118,7 @@ function httpRequest(url, data, { | |||||
wx.request({ | wx.request({ | ||||
url, | url, | ||||
data: finalData, | data: finalData, | ||||
method: data.method || 'POST', | |||||
method:data.method, | |||||
timeout: 60000, | timeout: 60000, | ||||
header: { | header: { | ||||
'Authorization':'Bearer '+getApp().globalData.userInfo.token, | 'Authorization':'Bearer '+getApp().globalData.userInfo.token, | ||||