|
|
@ -465,10 +465,11 @@ |
|
|
|
2)) { |
|
|
|
2)) { |
|
|
|
storetype = this.storediscountType; |
|
|
|
storetype = this.storediscountType; |
|
|
|
storeprice = this.storediscountPrice; |
|
|
|
storeprice = this.storediscountPrice; |
|
|
|
} else { |
|
|
|
|
|
|
|
storetype = this.storediscountType; |
|
|
|
|
|
|
|
storeprice = this.storediscountPrice; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// else { |
|
|
|
|
|
|
|
// storetype = this.storediscountType; |
|
|
|
|
|
|
|
// storeprice = this.storediscountPrice; |
|
|
|
|
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
let phone = ''; |
|
|
|
let phone = ''; |
|
|
|
if (app.globalData.userInfo) { |
|
|
|
if (app.globalData.userInfo) { |
|
|
@ -677,6 +678,9 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 创建订单 |
|
|
|
// 创建订单 |
|
|
|
createJSAPIOrder(item) { |
|
|
|
createJSAPIOrder(item) { |
|
|
|
|
|
|
|
uni.showLoading({ |
|
|
|
|
|
|
|
title:'请求中' |
|
|
|
|
|
|
|
}) |
|
|
|
// "微信:WECHAT 支付宝:ALIPAY 银联:UQRCODEPAY", |
|
|
|
// "微信:WECHAT 支付宝:ALIPAY 银联:UQRCODEPAY", |
|
|
|
let phone = ''; |
|
|
|
let phone = ''; |
|
|
|
if (app.globalData.userInfo) { |
|
|
|
if (app.globalData.userInfo) { |
|
|
@ -692,6 +696,7 @@ |
|
|
|
"userPhone": phone |
|
|
|
"userPhone": phone |
|
|
|
} |
|
|
|
} |
|
|
|
createJSAPIOrder(datas).then(res => { |
|
|
|
createJSAPIOrder(datas).then(res => { |
|
|
|
|
|
|
|
uni.hideLoading(); |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
this.jsapiPay(res.return_data.outTradeNo); |
|
|
|
this.jsapiPay(res.return_data.outTradeNo); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -794,11 +799,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
//第一位输入小数点时 |
|
|
|
//第一位输入小数点时 |
|
|
|
if (this.plateNumberList1[0] == '.') { |
|
|
|
if (this.plateNumberList1[0] == '.') { |
|
|
|
uni.showToast({ |
|
|
|
// uni.showToast({ |
|
|
|
title: '请输入正确的金额', |
|
|
|
// title: '请输入正确的金额', |
|
|
|
duration: 2000, |
|
|
|
// duration: 2000, |
|
|
|
icon: 'none' |
|
|
|
// icon: 'none' |
|
|
|
}) |
|
|
|
// }) |
|
|
|
this.plateNumberList1.pop(); |
|
|
|
this.plateNumberList1.pop(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -811,21 +816,21 @@ |
|
|
|
// } |
|
|
|
// } |
|
|
|
//如果已经有小数点 并且输入的是小数点 |
|
|
|
//如果已经有小数点 并且输入的是小数点 |
|
|
|
if (strdata1.length == 3 && !strdata2) { |
|
|
|
if (strdata1.length == 3 && !strdata2) { |
|
|
|
uni.showToast({ |
|
|
|
// uni.showToast({ |
|
|
|
title: '请输入正确的金额', |
|
|
|
// title: '请输入正确的金额', |
|
|
|
duration: 2000, |
|
|
|
// duration: 2000, |
|
|
|
icon: 'none' |
|
|
|
// icon: 'none' |
|
|
|
}) |
|
|
|
// }) |
|
|
|
this.plateNumberList1.pop(); |
|
|
|
this.plateNumberList1.pop(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
//校验小数点后两 |
|
|
|
//校验小数点后两 |
|
|
|
if (this.plateNumberList.indexOf('.') != -1 && !strdata2) { |
|
|
|
if (this.plateNumberList.indexOf('.') != -1 && !strdata2) { |
|
|
|
uni.showToast({ |
|
|
|
// uni.showToast({ |
|
|
|
title: '请输入正确的金额', |
|
|
|
// title: '请输入正确的金额', |
|
|
|
duration: 2000, |
|
|
|
// duration: 2000, |
|
|
|
icon: 'none' |
|
|
|
// icon: 'none' |
|
|
|
}) |
|
|
|
// }) |
|
|
|
this.plateNumberList1.pop(); |
|
|
|
this.plateNumberList1.pop(); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|