This commit is contained in:
Gdpao
2020-08-14 08:26:50 +08:00
parent fbdd3f20b4
commit 150c3337e4
5 changed files with 52 additions and 10 deletions

View File

@@ -332,7 +332,22 @@ export default {
},
// 绑定配送方式
confirmpushstyle() {
console.log(this.cur);
if (this.cur != 0 && this.cur != 1) {
this.$refs.uToast.show({
title: '请选择派送方式!',
type: 'warning ',
})
return;
}
if (this.cur == 0) {
if (!this.companyidA) {
this.$refs.uToast.show({
title: '请选择派送方式!',
type: 'warning ',
})
return;
}
console.log(this.pushid);
this.$u.api.bindpushid({
order_id: this.orderid,
@@ -355,6 +370,13 @@ export default {
}
});
} else {
if (!this.selctcar) {
this.$refs.uToast.show({
title: '请选择派送方式!',
type: 'warning ',
})
return;
}
this.$u.api.bindcarer({
order_id: this.orderid,
takeawayer_id: this.selctcar.takeawayer_id

View File

@@ -134,7 +134,7 @@ export default {
badlist: [], //退货列表
carlist: [], //可投诉订单列表
reportinfo: null, //投诉信息
reportcontent: '' //投诉内容
reportcontent: '', //投诉内容
};
},
onLoad() {