|
|
@ -20,15 +20,18 @@ |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
</countdown-timer> --> |
|
|
</countdown-timer> --> |
|
|
<countdown-time minute="5" second="0" :showDay="false" :showHour="false" color="#FF9D9D" splitorColor="#FF9D9D"> |
|
|
|
|
|
|
|
|
<countdown-time minute="5" second="0" :showDay="false" :showHour="false" color="#FF9D9D" |
|
|
|
|
|
splitorColor="#FF9D9D"> |
|
|
|
|
|
|
|
|
</countdown-time> |
|
|
</countdown-time> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<label class="card lf-row-between" v-for="(item, index) in pay_list" :key="index" style="padding: 16rpx 40rpx;"> |
|
|
|
|
|
|
|
|
<label class="card lf-row-between" v-for="(item, index) in pay_list" :key="index" |
|
|
|
|
|
style="padding: 16rpx 40rpx;"> |
|
|
<view> |
|
|
<view> |
|
|
<text class="lf-iconfont lf-font-50 lf-text-vertical" :class="item.icon" :style="{color: item.color}"></text> |
|
|
|
|
|
|
|
|
<text class="lf-iconfont lf-font-50 lf-text-vertical" :class="item.icon" |
|
|
|
|
|
:style="{color: item.color}"></text> |
|
|
<text class="lf-m-l-10 lf-font-28 lf-color-222">{{ item.name }}</text> |
|
|
<text class="lf-m-l-10 lf-font-28 lf-color-222">{{ item.name }}</text> |
|
|
</view> |
|
|
</view> |
|
|
<radio-group @change="checkChange($event, index)"> |
|
|
<radio-group @change="checkChange($event, index)"> |
|
|
@ -72,7 +75,8 @@ |
|
|
token: '', |
|
|
token: '', |
|
|
balance_sum: 0, |
|
|
balance_sum: 0, |
|
|
show_pw: false, |
|
|
show_pw: false, |
|
|
user_pw: '' |
|
|
|
|
|
|
|
|
user_pw: '', |
|
|
|
|
|
clickContinue: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(options) { |
|
|
onLoad(options) { |
|
|
@ -109,7 +113,9 @@ |
|
|
dateFinish() { |
|
|
dateFinish() { |
|
|
console.log("倒计时结束"); |
|
|
console.log("倒计时结束"); |
|
|
this.is_date_finish = true; |
|
|
this.is_date_finish = true; |
|
|
this.$msg('订单超时', {icon: 'error'}).then(() => { |
|
|
|
|
|
|
|
|
this.$msg('订单超时', { |
|
|
|
|
|
icon: 'error' |
|
|
|
|
|
}).then(() => { |
|
|
this.$toBack(); |
|
|
this.$toBack(); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -120,6 +126,8 @@ |
|
|
}, |
|
|
}, |
|
|
// 支付 |
|
|
// 支付 |
|
|
confirm() { |
|
|
confirm() { |
|
|
|
|
|
if (this.clickContinue == true) { |
|
|
|
|
|
this.clickContinue = false; |
|
|
if (this.is_date_finish) return this.$msg('订单超时未支付'); |
|
|
if (this.is_date_finish) return this.$msg('订单超时未支付'); |
|
|
let channel = ''; |
|
|
let channel = ''; |
|
|
this.pay_list.map(item => { |
|
|
this.pay_list.map(item => { |
|
|
@ -164,8 +172,10 @@ |
|
|
this.newcharge(false, res.message); |
|
|
this.newcharge(false, res.message); |
|
|
this.show_pw = false; |
|
|
this.show_pw = false; |
|
|
} |
|
|
} |
|
|
|
|
|
this.clickContinue = true; |
|
|
}) |
|
|
}) |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
|
|
|
this.clickContinue = true; |
|
|
this.show_pw = false; |
|
|
this.show_pw = false; |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
loading: false |
|
|
loading: false |
|
|
@ -175,6 +185,7 @@ |
|
|
showCancel: false |
|
|
showCancel: false |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 获取openid |
|
|
// 获取openid |
|
|
getOpenid() { |
|
|
getOpenid() { |
|
|
@ -230,7 +241,8 @@ |
|
|
// url: `/pages/store/success/success?order_no=${that.order_no}&amount=${that.amount}&channel=${that.channel}&formId=${this.formId}` //&charge_id=${charge.charge_id} charge_id 支付测试使用 |
|
|
// url: `/pages/store/success/success?order_no=${that.order_no}&amount=${that.amount}&channel=${that.channel}&formId=${this.formId}` //&charge_id=${charge.charge_id} charge_id 支付测试使用 |
|
|
// }); |
|
|
// }); |
|
|
uni.redirectTo({ |
|
|
uni.redirectTo({ |
|
|
url: '/pages/aboutpay/paystate?payState=1&amount='+ that.amount |
|
|
|
|
|
|
|
|
url: '/pages/aboutpay/paystate?payState=1&amount=' + that |
|
|
|
|
|
.amount |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
wx.showModal({ |
|
|
wx.showModal({ |
|
|
@ -319,24 +331,29 @@ |
|
|
width: 750rpx; |
|
|
width: 750rpx; |
|
|
height: max-content; |
|
|
height: max-content; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
|
.card { |
|
|
.card { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: max-content; |
|
|
height: max-content; |
|
|
padding: 30rpx 40rpx; |
|
|
padding: 30rpx 40rpx; |
|
|
background-color: #FFFFFF; |
|
|
background-color: #FFFFFF; |
|
|
border-radius: 20rpx; |
|
|
border-radius: 20rpx; |
|
|
|
|
|
|
|
|
&:nth-child(n+2) { |
|
|
&:nth-child(n+2) { |
|
|
margin-top: 30rpx; |
|
|
margin-top: 30rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.symbol { |
|
|
.symbol { |
|
|
color: #15716E; |
|
|
color: #15716E; |
|
|
font-size: 32rpx; |
|
|
font-size: 32rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.price { |
|
|
.price { |
|
|
font-size: 72rpx; |
|
|
font-size: 72rpx; |
|
|
color: #15716E; |
|
|
color: #15716E; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.tips { |
|
|
.tips { |
|
|
font-size: 24rpx; |
|
|
font-size: 24rpx; |
|
|
color: #FF9D9D; |
|
|
color: #FF9D9D; |
|
|
|