From a3ffaec9c9a81626c34989c7026988cc07b3c3d3 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 16 九月 2025 13:54:24 +0800 Subject: [PATCH] # --- pages/order/orderPakin2.vue | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/pages/order/orderPakin2.vue b/pages/order/orderPakin2.vue index 47c55d2..2c5705e 100644 --- a/pages/order/orderPakin2.vue +++ b/pages/order/orderPakin2.vue @@ -77,7 +77,7 @@ <!-- 搴曢儴鎿嶄綔鎸夐挳 --> <view class="buttom"> <button size="mini" @click="reset('warn')">閲嶇疆</button> - <button size="mini" type="primary" @click="combConfirm('warn')">缁勬墭</button> + <button size="mini" type="primary" @click="combConfirm('warn')" :disabled="isDisabled">缁勬墭</button> </view> <!-- 寮圭獥 --> <!-- 淇敼鏁伴噺 --> @@ -169,6 +169,7 @@ matFocus: false, matData: '', removeNum: 0, + isDisabled:false } }, onLoad() { @@ -407,9 +408,9 @@ combClose() { this.$refs.combConfirm.close() }, - comb() { - uni.vibrateShort(); + comb() { let that = this; + that.isDisabled = true if (that.orderNo === '') { this.messageText = "璇疯緭鍏ヨ鍗曟潯鐮�" this.messageToggle('error') @@ -470,6 +471,13 @@ that.messageText = res.msg that.messageToggle('error') } + }, + fail: () => { + that.messageText = "鎺ュ彛瓒呮椂" + that.messageToggle('error') + }, + complete: () => { + that.isDisabled = false } }); }, -- Gitblit v1.9.1