|
|
@@ -19,9 +19,11 @@
|
|
|
<span class="app-size-36 app-bold">{{ realPrice || '0.00'}}</span>
|
|
|
</div>
|
|
|
<div class="order-num app-color-3">订单号: {{ orderSn || ''}}</div>
|
|
|
+ <div v-if="count >0" class="order-num app-color-3" style="margin-top:18rpx;font-size:26rpx;"><span style="font-weight:bold;padding-right:8rpx;">{{count}}</span>秒后订单失效</div>
|
|
|
+ <div v-else class="order-num app-color-3" style="margin-top:12rpx;font-size:26rpx;">订单已失效</div>
|
|
|
</block>
|
|
|
<block>
|
|
|
- <div class="call-one-btn">
|
|
|
+ <div v-if="count >0" class="call-one-btn">
|
|
|
<button
|
|
|
class="button-com green pay-wx"
|
|
|
@click="postponePay"
|
|
|
@@ -38,6 +40,23 @@
|
|
|
v-if="type === '2'"
|
|
|
>余额支付</button>
|
|
|
</div>
|
|
|
+ <div v-else class="call-one-btn">
|
|
|
+ <button
|
|
|
+ class="button-com default pay-wx"
|
|
|
+ disabled="true"
|
|
|
+ v-if="type === '2'"
|
|
|
+ >延期支付</button>
|
|
|
+ <button
|
|
|
+ class="button-com default pay-wx"
|
|
|
+ disabled="true"
|
|
|
+ v-if="type ==='1' || type === '2'"
|
|
|
+ >微信支付</button>
|
|
|
+ <button
|
|
|
+ class="button-com default pay-wx"
|
|
|
+ disabled="true"
|
|
|
+ v-if="type === '2'"
|
|
|
+ >余额支付</button>
|
|
|
+ </div>
|
|
|
</block>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -80,13 +99,24 @@ export default {
|
|
|
orderSn: '',
|
|
|
realPrice: '',
|
|
|
_type: '1',
|
|
|
- pageId: ''
|
|
|
+ pageId: '',
|
|
|
+ count:10
|
|
|
};
|
|
|
},
|
|
|
onLoad (options) {
|
|
|
this.orderSn = options.orderSn;
|
|
|
this.realPrice = options.realPrice;
|
|
|
this.type = options.type
|
|
|
+ let that = this
|
|
|
+ this.count = options.count
|
|
|
+ let t =setInterval(function(){
|
|
|
+ if(that.count > 0){
|
|
|
+ that.count--
|
|
|
+ }else{
|
|
|
+ clearInterval(t);
|
|
|
+ }
|
|
|
+ },1000);
|
|
|
+
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["getLoginInfo", 'getDictionariesInfo']),
|