Commit 999ea060fe6c12584198748b5343599ad92da5ad
1 parent
e7895736
我的钱包 充值
Showing
2 changed files
with
10 additions
and
4 deletions
common/common.js
... | ... | @@ -10,6 +10,10 @@ const ACompany = '©江阴慧停车管理有限公司'; |
10 | 10 | const BCompany = '由中兴智能交通股份有限公司提供技术支持'; |
11 | 11 | const appVerson = '1.0.0'; |
12 | 12 | const SetToken = uni.getStorageSync("globalUser").token; |
13 | +// const SetToken = 'e2c1e43722dd43a5b7e268001b39e6f0'; | |
14 | + | |
15 | + | |
16 | + | |
13 | 17 | // ----江阴项目 接口---- |
14 | 18 | // 商户登录 |
15 | 19 | const userLogin = serverUrl + "/business/h5/index/login"; | ... | ... |
pages/moneyRecharge/moneyRecharge.vue
... | ... | @@ -204,15 +204,17 @@ |
204 | 204 | method: 'POST', |
205 | 205 | data: that.$common.requestSign(data) |
206 | 206 | }).then(res => { |
207 | - | |
208 | - console.log(res) | |
209 | - that.MakeWxPay(res) | |
207 | + | |
208 | + | |
209 | + var mydata = res.data; | |
210 | + console.log(mydata); | |
211 | + that.MakeWxPay(mydata) | |
210 | 212 | |
211 | 213 | }) |
212 | 214 | }, |
213 | 215 | // 调用微信支付 |
214 | 216 | MakeWxPay(mydata) { |
215 | - console.log('wxpay') | |
217 | + console.log(mydata) | |
216 | 218 | var me = this; |
217 | 219 | uni.requestPayment({ |
218 | 220 | provider: 'wxpay', | ... | ... |