|
|
@ -33,7 +33,11 @@ |
|
|
|
:key="goods.id" |
|
|
|
> |
|
|
|
<view class="goods-image-container"> |
|
|
|
<image mode="aspectFill" :src="goods.specImage" class="goods-image" /> |
|
|
|
<image |
|
|
|
mode="aspectFill" |
|
|
|
:src="goods.specImage" |
|
|
|
class="goods-image" |
|
|
|
/> |
|
|
|
</view> |
|
|
|
<view class="goods-content"> |
|
|
|
<view class="goods-info"> |
|
|
@ -371,8 +375,32 @@ export default { |
|
|
|
|
|
|
|
// 去支付 |
|
|
|
goToPay() { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/pages/payment/index?orderId=${this.orderId}`, |
|
|
|
let order = this.orderDetail; |
|
|
|
this.Post( |
|
|
|
{ |
|
|
|
method: "POST", |
|
|
|
orderNo: order.orderNo, |
|
|
|
fromType: 2, |
|
|
|
payAmount: order.payAmount, |
|
|
|
}, |
|
|
|
"/framework/wxPay/submitShopPurOrder", |
|
|
|
"DES" |
|
|
|
).then((res) => { |
|
|
|
uni.requestPayment({ |
|
|
|
nonceStr: res.data.wxInfo.nonceStr, |
|
|
|
package: res.data.wxInfo.package, |
|
|
|
paySign: res.data.wxInfo.paySign, |
|
|
|
signType: res.data.wxInfo.signType, |
|
|
|
timeStamp: res.data.wxInfo.timeStamp, |
|
|
|
success: () => { |
|
|
|
this.loadOrderDetail(); |
|
|
|
}, |
|
|
|
fail() { |
|
|
|
// uni.navigateTo({ |
|
|
|
// url: '/subPackages/order/trades' |
|
|
|
// }) |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|