Commit d15b7930 authored by malin's avatar malin

t

parent 37fb11e5
......@@ -67,7 +67,11 @@
class="row-center-center fc-f fs-36 ff-pp fw-5"
style="margin-top: 0.66rem; position: relative"
>
<div ref="payBtn" class="pay-btn row-center-center" @click="_payment">
<div
ref="payBtn"
class="pay-btn row-center-center"
@click.once="_payment"
>
<div>立即支付</div>
<div v-if="loading" class="loading"></div>
......@@ -140,11 +144,7 @@ export default {
async _payment() {
this.$refs.payBtn.style.opacity = "0.5";
this.loading = true;
setTimeout(() => {
this.$refs.payBtn.style.opacity = "1";
this.loading = false;
}, 4000);
if (this.loading) {
const h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj")));
let link = decodeURI(utils.getCookie("link"));
......@@ -194,7 +194,6 @@ export default {
tempUrl = tempUrl.replace("pay", "result");
window.location.href = `${mwebUrl}&redirect_url=${tempUrl}?pay_cb=1`;
});
}
},
// 倒计时
......
......@@ -137,7 +137,7 @@ export default {
} else {
return this._fetchInfo();
}
}, 2000);
}, 1000);
return;
}
});
......@@ -169,12 +169,13 @@ export default {
} else {
// 支付不成功
setTimeout(() => {
if (this.countdown == 1) {
if (this.countdown > 1) {
return this.$router.push({ path: "/pay", query: this.baseInfo });
}
} else {
this.countdown += 1;
this._queryOrder();
}, 2000);
}
}, 1000);
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment