Browse Source

支付

dev_des
1054425342@qq.com 1 month ago
parent
commit
1a5b3f5042
  1. 34
      subPackages/haveFeeling/detail.vue

34
subPackages/haveFeeling/detail.vue

@ -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'
// })
},
});
});
},

Loading…
Cancel
Save