|
|
@ -386,7 +386,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
onLoad(options) { |
|
|
|
onLoad(options) { |
|
|
|
this.goodsList = JSON.parse(options.goodsList); |
|
|
|
this.goodsList = JSON.parse(options.goodsList); |
|
|
|
console.log(this.goodsList,"this.goodsList") |
|
|
|
// console.log(this.goodsList,"this.goodsList") |
|
|
|
if (this.goodsList.length > 1) { |
|
|
|
if (this.goodsList.length > 1) { |
|
|
|
this.isMoreThanOne = true; |
|
|
|
this.isMoreThanOne = true; |
|
|
|
} |
|
|
|
} |
|
|
@ -482,7 +482,7 @@ |
|
|
|
if (res.return_data.length > 0) { |
|
|
|
if (res.return_data.length > 0) { |
|
|
|
_this.discountList = res.return_data; |
|
|
|
_this.discountList = res.return_data; |
|
|
|
|
|
|
|
|
|
|
|
console.log(_this.discountList, "优惠券") |
|
|
|
// console.log(_this.discountList, "优惠券") |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
@ -535,7 +535,7 @@ |
|
|
|
this.availIntegal = 0; |
|
|
|
this.availIntegal = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.userInfo, "this.userInfo", "积分", this.availIntegal) |
|
|
|
// console.log(this.userInfo, "this.userInfo", "积分", this.availIntegal) |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
@ -693,7 +693,7 @@ |
|
|
|
childOrderList: childOrderList //购买的商品信息 |
|
|
|
childOrderList: childOrderList //购买的商品信息 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
console.log(params, "params") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|
title: '支付中...' |
|
|
|
title: '支付中...' |
|
|
@ -701,7 +701,7 @@ |
|
|
|
createOrder(params).then(res => { |
|
|
|
createOrder(params).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
uni.hideLoading(); |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
console.log(res,"订单信息") |
|
|
|
// console.log(res,"订单信息") |
|
|
|
let obj = { |
|
|
|
let obj = { |
|
|
|
orderNo : res.return_data.orderNo, |
|
|
|
orderNo : res.return_data.orderNo, |
|
|
|
createTime:res.return_data.createTime, |
|
|
|
createTime:res.return_data.createTime, |
|
|
@ -710,17 +710,17 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
obj = JSON.stringify(obj) |
|
|
|
obj = JSON.stringify(obj) |
|
|
|
|
|
|
|
|
|
|
|
console.log(_this.priceSettle,_this.availIntegalUse) |
|
|
|
// console.log(_this.priceSettle,_this.availIntegalUse) |
|
|
|
|
|
|
|
|
|
|
|
if(_this.priceSettle ==0&&_this.availIntegalUse!=0){ |
|
|
|
if(_this.priceSettle ==0&&_this.availIntegalUse!=0){ |
|
|
|
uni.reLaunch({ |
|
|
|
uni.redirectTo({ |
|
|
|
url: "/physical-merchants/classify/order/paymentResult?id=" + res.return_data.orderNo |
|
|
|
url: "/physical-merchants/classify/order/paymentResult?id=" + res.return_data.orderNo |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
uni.reLaunch({ |
|
|
|
uni.redirectTo({ |
|
|
|
url: '/physical-merchants/classify/order/pay?obj=' + obj |
|
|
|
url: '/physical-merchants/classify/order/pay?obj=' + obj |
|
|
|
}) |
|
|
|
}) |
|
|
|
return |
|
|
|
return |
|
|
@ -743,7 +743,7 @@ |
|
|
|
//密码支付完成 |
|
|
|
//密码支付完成 |
|
|
|
submitHandle(e) { |
|
|
|
submitHandle(e) { |
|
|
|
this.PaymentPassword = e.value; |
|
|
|
this.PaymentPassword = e.value; |
|
|
|
console.log(e, "eeeeeee") |
|
|
|
|
|
|
|
if (this.PaymentPassword == 0) { |
|
|
|
if (this.PaymentPassword == 0) { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '请勿手动关闭弹窗', |
|
|
|
title: '请勿手动关闭弹窗', |
|
|
|