Browse Source

button单词写错成buttom了,改正回来

master
邓平艺 5 years ago
parent
commit
5ee0866880
  1. 14
      supplier/pages/gonghuo/detail.vue
  2. 4
      supplier/pages/login/index.vue
  3. 14
      supplier/pages/order/detail.vue

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

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

14
supplier/pages/order/detail.vue

@ -39,11 +39,11 @@
<!-- 操作按钮 -->
<view class="fixed-bottom" v-if="$isRight(order) && type != 0">
<view v-if="type == 1" class="lf-row-flex-end">
<button class="btn btn2" :class="{'lf-btn-disabled': buttom_click}" style="background-color: #FF0000;" @click="orderStateChange('待发起')">撤销订单</button>
<button class="btn btn2" :class="{'lf-btn-disabled': button_click}" style="background-color: #FF0000;" @click="orderStateChange('待发起')">撤销订单</button>
</view>
<view v-if="type == 2" class="lf-row-flex-end">
<button class="btn btn1" @click="$url('/pages/offer/index?type=1&code='+ order.q_sn)">编辑</button>
<button class="btn btn2" :class="{'lf-btn-disabled': buttom_click}" @click="orderStateChange('待审核')">发起报价</button>
<button class="btn btn2" :class="{'lf-btn-disabled': button_click}" @click="orderStateChange('待审核')">发起报价</button>
</view>
<view v-if="type == 3 || type == 4" class="lf-row-between">
<button class="btn btn1" @click="$url('/pages/offer/index?type=2&code='+ order.q_sn)">复用报价单</button>
@ -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)
}
}
}

Loading…
Cancel
Save