|
|
|
@ -271,7 +271,7 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 电子钱包支付
|
|
|
|
walletPay:function(password){ |
|
|
|
walletPay:function(otherData){ |
|
|
|
let item = this.data.payList[this.data.numIndex]; |
|
|
|
commonApi.user_post("order/pay",{ |
|
|
|
order_id:this.data.id, |
|
|
|
@ -279,8 +279,7 @@ Page({ |
|
|
|
pay_platform:"MINI", |
|
|
|
app_name:"WxXcxConfig", |
|
|
|
ins_no:item.ins_no, |
|
|
|
password: password, |
|
|
|
type: 1, |
|
|
|
...otherData |
|
|
|
}).then(res=>{ |
|
|
|
let data = res.data?JSON.parse(res.data):{}; |
|
|
|
if(data && data.RESULT && data.RESULT=='Y'){ |
|
|
|
@ -377,15 +376,18 @@ Page({ |
|
|
|
if (val.length==6) { |
|
|
|
let password = pwEncode.handleEncrypt(val) |
|
|
|
// 验证密码
|
|
|
|
commonApi.user_post("pay_password/verifyPassword",{password:password}) |
|
|
|
.then(res=>{ |
|
|
|
commonApi.user_post("pay_password/verifyPassword",{password:password}).then(res =>{ |
|
|
|
// 密码校验成功
|
|
|
|
if (res.code == 1) { |
|
|
|
this.setData({ |
|
|
|
vcode: '', |
|
|
|
SBMask: false, |
|
|
|
this.setData({vcode: '',SBMask: false}) |
|
|
|
commonApi.user_post('pay_password/getNonce',{}).then(nonceRes =>{ |
|
|
|
if (nonceRes.code == 1) { |
|
|
|
let pwSign = pwEncode.getPWSignature(password, nonceRes.data) |
|
|
|
pwSign.password = password |
|
|
|
pwSign.type = 1 |
|
|
|
this.walletPay(pwSign) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.walletPay(password) |
|
|
|
} else { |
|
|
|
this.setData({ |
|
|
|
vcode: '', |
|
|
|
|