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) } } }