Commit c2790a9e authored by malin's avatar malin

t

parent aacc56d3
......@@ -67,11 +67,7 @@
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.once="_payment"
>
<div ref="payBtn" class="pay-btn row-center-center" @click="_payment">
<div>立即支付</div>
<div v-if="loading" class="loading"></div>
......@@ -144,6 +140,11 @@ export default {
async _payment() {
this.$refs.payBtn.style.opacity = "0.5";
this.loading = true;
setTimeout(() => {
this.$refs.payBtn.style.opacity = "1";
this.loading = false;
}, 5000);
if (this.loading) {
const h5LogsObj = JSON.parse(decodeURI(utils.getCookie("h5LogsObj")));
let link = decodeURI(utils.getCookie("link"));
......@@ -193,6 +194,7 @@ export default {
tempUrl = tempUrl.replace("pay", "result");
window.location.href = `${mwebUrl}&redirect_url=${tempUrl}?pay_cb=1`;
});
}
},
// 倒计时
......
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