|
@@ -46,7 +46,7 @@
|
|
|
<text class="text-white text-sm">价格</text>
|
|
|
</view>
|
|
|
<view class="text-center">
|
|
|
- <text class="text-white mine_min">{{ item.price }} <text class="text-white text-sm">¥</text> </text>
|
|
|
+ <text class="text-white mine_min">{{ item.price }} <text class="text-white text-sm">¥</text> </text>
|
|
|
</view>
|
|
|
<view class="text-center">
|
|
|
<img src="https://img.shuimuai.com/web/btn_seedetil_2.png" class="check_detail" alt=""
|
|
@@ -71,10 +71,7 @@
|
|
|
|
|
|
<!-- 购买按钮-->
|
|
|
<div class="buy_button">
|
|
|
- <button class="cu-btn lg bg-orange text-center margin " @click="open_order_confirm(item)">购买{{
|
|
|
- item.goods_name
|
|
|
- }}
|
|
|
- </button>
|
|
|
+ <button class="cu-btn lg bg-orange text-center margin " @click="open_order_confirm(item)">购买{{item.goods_name}}</button>
|
|
|
</div>
|
|
|
</view>
|
|
|
</div>
|
|
@@ -109,7 +106,7 @@
|
|
|
<text class="text-white text-sm">价格</text>
|
|
|
</view>
|
|
|
<view class="text-center">
|
|
|
- <text class="text-white mine_min">{{ item.price }} <text class="text-white text-sm">¥</text> </text>
|
|
|
+ <text class="text-white mine_min">{{ item.price }} <text class="text-white text-sm">¥</text> </text>
|
|
|
</view>
|
|
|
<img src="https://img.shuimuai.com/web/btn_seedetil_2.png" class="check_detail" alt=""
|
|
|
@click="changeCardShow(item.goods_id)"
|
|
@@ -166,7 +163,7 @@
|
|
|
<text class="text-sm text-gray">实付(元) </text>
|
|
|
<text class="mine_min">{{ selection_card.price * selection_card.discount }}</text>
|
|
|
</view>
|
|
|
- <button class="cu-btn bg-primary lg text-white recharge_button" @click="success_pay">立即充值</button>
|
|
|
+ <button class="cu-btn bg-primary lg text-white recharge_button" @click="success_pay" :disabled="btn_disabled">立即充值</button>
|
|
|
</div>
|
|
|
</van-popup>
|
|
|
|
|
@@ -180,8 +177,8 @@
|
|
|
</view>
|
|
|
<img src="https://img.shuimuai.com/web/sign_notimeJfish.png" class="err_img" alt="">
|
|
|
<div class="button_group flex justify-around">
|
|
|
- <button class="cu-btn bg-gray text-white lg" @click="cancel_recharge">取消支付</button>
|
|
|
- <button class="cu-btn bg-primary text-white lg" @click="repay">再次支付</button>
|
|
|
+ <button class="cu-btn bg-gray text-white lg" @click="close_err_pop">取消支付</button>
|
|
|
+ <button class="cu-btn bg-primary text-white lg" @click="repay" :disabled="btn_disabled">再次支付</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</van-popup>
|
|
@@ -237,7 +234,8 @@ export default {
|
|
|
//支付信息
|
|
|
payment_info: {},
|
|
|
//订单编号
|
|
|
- order_sn: ""
|
|
|
+ order_sn: "",
|
|
|
+ btn_disabled: false
|
|
|
}
|
|
|
},
|
|
|
watch: {},
|
|
@@ -275,6 +273,7 @@ export default {
|
|
|
},
|
|
|
//再次付款
|
|
|
repay() {
|
|
|
+ $this.btn_disabled = true
|
|
|
let $payment = $this.payment_info
|
|
|
wx.requestPayment({
|
|
|
timeStamp: $payment.timeStamp,
|
|
@@ -292,9 +291,12 @@ export default {
|
|
|
$this.open_success_window()
|
|
|
},
|
|
|
fail(res) {
|
|
|
- console.log('fail', res)
|
|
|
+ $this.cancel_recharge()
|
|
|
$this.close_order_confirm()
|
|
|
$this.err_show = true
|
|
|
+ },
|
|
|
+ complete() {
|
|
|
+ $this.btn_disabled = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -305,6 +307,8 @@ export default {
|
|
|
},
|
|
|
// 成功支付
|
|
|
success_pay() {
|
|
|
+ $this.btn_disabled = true
|
|
|
+
|
|
|
// 支付成功后得回调方法
|
|
|
let $params = {
|
|
|
goods_id: $this.selection_card.goods_id,
|
|
@@ -338,8 +342,12 @@ export default {
|
|
|
},
|
|
|
fail(res) {
|
|
|
console.log('fail', res)
|
|
|
+ $this.cancel_recharge()
|
|
|
$this.close_order_confirm()
|
|
|
$this.err_show = true
|
|
|
+ },
|
|
|
+ complete() {
|
|
|
+ $this.btn_disabled = false
|
|
|
}
|
|
|
})
|
|
|
},
|