formatted style
This commit is contained in:
@@ -123,39 +123,35 @@ export default {
|
||||
// 绑定配送方式
|
||||
confirmpushstyle() {
|
||||
if (this.cur == 0) {
|
||||
this.$u.api
|
||||
.agreetest({
|
||||
goods_try_id: this.orderid,
|
||||
type: 1,
|
||||
takeawayer_id: 0
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
}
|
||||
});
|
||||
this.$u.api.agreetest({
|
||||
goods_try_id: this.orderid,
|
||||
type: 1,
|
||||
takeawayer_id: 0
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$u.api
|
||||
.agreetest({
|
||||
goods_try_id: this.orderid,
|
||||
type: 1,
|
||||
takeawayer_id: this.selctcar.takeawayer_id
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
}
|
||||
});
|
||||
this.$u.api.agreetest({
|
||||
goods_try_id: this.orderid,
|
||||
type: 1,
|
||||
takeawayer_id: this.selctcar.takeawayer_id
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
// 选择骑手
|
||||
@@ -164,21 +160,19 @@ export default {
|
||||
},
|
||||
// 获取订单信息
|
||||
resetinfo() {
|
||||
this.$u.api
|
||||
.testorderdetail({
|
||||
goods_try_id: this.orderid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
this.info = res.data.info;
|
||||
}
|
||||
});
|
||||
this.$u.api.testorderdetail({
|
||||
goods_try_id: this.orderid
|
||||
}).then(res => {
|
||||
console.log(res);
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
title: res.message,
|
||||
type: 'error'
|
||||
});
|
||||
} else {
|
||||
this.info = res.data.info;
|
||||
}
|
||||
});
|
||||
// 获取骑手列表
|
||||
this.$u.api.takeawayerlist({}).then(res => {
|
||||
console.log(res);
|
||||
|
||||
Reference in New Issue
Block a user