This commit is contained in:
linfso 2025-06-20 14:30:42 +08:00
parent 7023d144f1
commit fcbdc2ea8e

View File

@ -2,18 +2,18 @@
<div class="wechat-payment-container" style="background: #fff;padding: 1rem;">
<div v-if="!isWx">请在微信浏览器中打开此页面进行支付</div>
<div v-if="payStatus!=0&&isWx" >
<div v-if="payStatus&&payStatus==1" class="text-center" >
<div v-if="payStatus==1" class="text-center" >
<h1 style="font-size: 24px; color: #303133; margin-bottom: 10px;">支付中</h1>
<p style="color: #606266; margin-bottom: 30px;">{{ errorMessage }}</p>
</div>
<!-- 失败状态提示 -->
<div v-if="payStatus&&payStatus==3" class="text-center" >
<div v-if="payStatus==3" class="text-center" >
<h1 style="font-size: 24px; color: #303133; margin-bottom: 10px;">支付失败</h1>
<p style="color: #606266; margin-bottom: 30px;">{{ errorMessage }}</p>
</div>
<div v-if="payStatus&&payStatus==2" class="text-center">
<div v-if="payStatus==2" class="text-center">
<i class="el-icon-circle-check success-icon"></i>
<h1 style="font-size: 24px; color: #303133; margin-bottom: 10px;">支付成功</h1>
<p style="color: #606266; margin-bottom: 30px;">感谢您的支持,我们将竭诚为您服务</p>
@ -180,10 +180,12 @@ export default {
let code=this.$route.query.code;
let state=this.$route.query.state;
if (code) {
this.requestPayment(code,state);
this.billNo=state;
this.requestPayment(code,state);
this.initPayOrder();
}else{
this.reset();
this.initPayOrder();