|
|
@ -67,7 +67,7 @@ |
|
|
|
<view class="action-btn details-btn" @click="viewOrderDetails(order.orderId)"> |
|
|
|
<text>查看详情</text> |
|
|
|
</view> |
|
|
|
<view class="action-btn pay-btn" v-if="order.status == 0" @click="goToPay(order.orderId)"> |
|
|
|
<view class="action-btn pay-btn" v-if="order.status == 0" @click="goToPay(order)"> |
|
|
|
<text>去付款</text> |
|
|
|
</view> |
|
|
|
<view class="action-btn pay-btn" v-if="[0, 1].includes(order.status)" @click="modifyOrder(order)"> |
|
|
@ -318,13 +318,15 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
// 去付款 |
|
|
|
goToPay(orderId) { |
|
|
|
goToPay({payId, orderId}) { |
|
|
|
orderPay({ |
|
|
|
orderId: orderId |
|
|
|
payId, |
|
|
|
orderId, |
|
|
|
openId : getOpenIdKey(), |
|
|
|
}).then(res => { |
|
|
|
this.pay(res.data) |
|
|
|
this.pay(res) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err); |
|
|
|
this.refresh() |
|
|
|
}); |
|
|
|
}, |
|
|
|
pay(params) { |
|
|
@ -341,7 +343,6 @@ |
|
|
|
paySign: params.paySign, |
|
|
|
success: (res) => { |
|
|
|
this.$modal.showToast('支付成功') |
|
|
|
this.getOrderList() |
|
|
|
}, |
|
|
|
fail: (err) => { |
|
|
|
this.loading = false |
|
|
@ -351,6 +352,7 @@ |
|
|
|
complete: () => { |
|
|
|
this.loading = false |
|
|
|
this.isPaying = false |
|
|
|
this.refresh() |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|