From 5ee08668802288c06d94c0a83c043fdb32dd1286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Thu, 12 Aug 2021 15:08:45 +0800 Subject: [PATCH] =?UTF-8?q?button=E5=8D=95=E8=AF=8D=E5=86=99=E9=94=99?= =?UTF-8?q?=E6=88=90buttom=E4=BA=86=EF=BC=8C=E6=94=B9=E6=AD=A3=E5=9B=9E?= =?UTF-8?q?=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/pages/gonghuo/detail.vue | 14 +++++++------- supplier/pages/login/index.vue | 4 ++-- supplier/pages/order/detail.vue | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/supplier/pages/gonghuo/detail.vue b/supplier/pages/gonghuo/detail.vue index cb52808..bd801ec 100644 --- a/supplier/pages/gonghuo/detail.vue +++ b/supplier/pages/gonghuo/detail.vue @@ -382,19 +382,19 @@ }, // 确认发货 confirmDeliver(){ - if(this.buttom_click) return; - this.buttom_click = true; + if(this.button_click) return; + this.button_click = true; let l_p_num = this.l_p_num; let driver_name = this.driver_name; let driver_phone = this.driver_phone; if(!l_p_num){ - this.buttom_click = false; + this.button_click = false; return this.$msg('请输入车牌号') }else if(!driver_name){ - this.buttom_click = false; + this.button_click = false; return this.$msg('请输入司机姓名') }else if(!driver_phone){ - this.buttom_click = false; + this.button_click = false; return this.$msg('请输入司机电话') } this.is_show_receiving = false; @@ -405,9 +405,9 @@ car_license: l_p_num }).then(res => { this.$msg('确认发货成功'); - this.buttom_click = false; + this.button_click = false; this.getData(); - }).catch(err => this.buttom_click = false) + }).catch(err => this.button_click = false) } } } diff --git a/supplier/pages/login/index.vue b/supplier/pages/login/index.vue index 2e3246f..a12ee65 100644 --- a/supplier/pages/login/index.vue +++ b/supplier/pages/login/index.vue @@ -89,9 +89,9 @@ }).then(res => { console.log("login", res); uni.setStorageSync('supply_token', res.data.token); - this.buttom_click = false; + this.button_click = false; this.$url('/pages/index/index', {tyep: 'redirect'}); - }).catch(err => this.buttom_click = false); + }).catch(err => this.button_click = false); } } } diff --git a/supplier/pages/order/detail.vue b/supplier/pages/order/detail.vue index fc477de..598c3de 100644 --- a/supplier/pages/order/detail.vue +++ b/supplier/pages/order/detail.vue @@ -39,11 +39,11 @@ - + - + @@ -97,7 +97,7 @@ contents: [], q_sn: '', // 订单号 show_count: 0, - buttom_click: false + button_click: false } }, computed: { @@ -166,17 +166,17 @@ }, // 改变订单状态 orderStateChange(state){ - if(this.buttom_click) return; - this.buttom_click = true; + if(this.button_click) return; + this.button_click = true; this.$http(this.API.API_SUPPLIER_QUOTATIONUPDATE, { q_sn: this.q_sn, state: state }).then(res => { console.log("revokeOrder", res); this.$msg('操作成功'); - this.buttom_click = false; + this.button_click = false; this.getDetail(); // 更新当前页面数据 - }).catch(err => this.buttom_click = false) + }).catch(err => this.button_click = false) } } }