From 1fd14d5b2aa136d3b97e53dca44c965ee94fb59b Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 16:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E7=A7=9F=E8=B5=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2-=E8=A1=A5=E5=85=85=E8=AE=A2=E5=8D=95=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=B8=AD=E6=8F=90=E7=A4=BA=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=81=AE=E7=BD=A9=E9=98=B2=E6=AD=A2=E7=94=A8=E6=88=B7=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E4=B8=8B=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/lease/lease.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pages/lease/lease.vue b/pages/lease/lease.vue index 77a8e01..fae5dfc 100644 --- a/pages/lease/lease.vue +++ b/pages/lease/lease.vue @@ -95,7 +95,7 @@ - @@ -170,6 +170,7 @@ + @@ -390,6 +391,10 @@ export default { toggleDetails() { this.showDetails = !this.showDetails }, + goTohandlePayment() { + uni.$uv.debounce(this.handlePayment, 1000, true) + }, + handlePayment() { this.formData.payAmount = this.payAmount if (checkLoginStatus()) { @@ -476,9 +481,15 @@ export default { content: `确认支付 ¥${this.payAmount} 吗?\n\n${this.formData.quantity}台${this.formData.equipment}\n周期:${this.formData.period}`, success: async res => { if (res.confirm) { + this.$refs.toast.show({ + type: 'loading', + message: '正在提交订单中...', + overlay: true, // 启用遮罩 + duration: 10000, + }) // 这里可以调用支付API const response = await createLeaseOrder(this.formData) - + this.$refs.toast.hide() if (response.code === 200) { const data = response.data console.log(data)