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

@ -62,7 +62,8 @@
type: 'error' type: 'error'
}) })
}else{ }else{
this.show_add() this.show_add();
this.fileListes.push(res.data);
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.message, title: res.message,
type: 'success' type: 'success'

View File

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

View File

@ -134,7 +134,7 @@ export default {
badlist: [], //退 badlist: [], //退
carlist: [], // carlist: [], //
reportinfo: null, // reportinfo: null, //
reportcontent: '' // reportcontent: '', //
}; };
}, },
onLoad() { onLoad() {

View File

@ -31,10 +31,14 @@
></u-upload> ></u-upload>
<!-- 标签 --> <!-- 标签 -->
<view> <view>
<view class="titles">标签</view> <view class="titles flex-title">
<text>标签</text>
<text @click="editing">{{ is_edit ? "取消编辑" : "编辑" }}</text>
</view>
<view class="form-view active" @click="show_add()">+ 新建标签</view> <view class="form-view active" @click="show_add()">+ 新建标签</view>
<view :class="['form-view', item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)"> <view :class="['form-view', item.state == true ? 'active' : '']" v-for="(item, index) in fileListes" :key="index" @click="changeselect(index)">
{{ item.name }} {{ item.name }}
<u-icon v-show="is_edit" class="close" name="close" color="#666" size="18"></u-icon>
</view> </view>
</view> </view>
<!-- 简介 --> <!-- 简介 -->
@ -131,7 +135,8 @@ export default {
imgarr: [], // imgarr: [], //
cover: '', // cover: '', //
selectarr: [], // selectarr: [], //
tagcontent: '' tagcontent: '',
is_edit: false, //
}; };
}, },
onLoad() { onLoad() {
@ -233,6 +238,7 @@ export default {
} else { } else {
this.tagcontent = ''; this.tagcontent = '';
this.show = false; this.show = false;
this.fileListes.push(res.data);
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.message, title: res.message,
type: 'success' type: 'success'
@ -274,6 +280,10 @@ export default {
show_add() { show_add() {
this.show = !this.show; this.show = !this.show;
}, },
//
editing() {
this.is_edit = !this.is_edit;
},
// checkbox // checkbox
checkboxChange(e) { checkboxChange(e) {
let that = this; let that = this;
@ -339,18 +349,26 @@ export default {
width: 690rpx; width: 690rpx;
margin: 0 auto; margin: 0 auto;
padding-bottom:20rpx; padding-bottom:20rpx;
.flex-title {
display: flex;
justify-content: space-between;
}
.form-view { .form-view {
background: #cdc7c8;
border-radius: 6rpx;
margin-right: 20rpx;
font-size: 24rpx;
padding: 8rpx 20rpx;
display: inline-block; display: inline-block;
padding: 8rpx 20rpx;
margin-right: 20rpx;
margin-bottom: 28rpx; margin-bottom: 28rpx;
font-size: 24rpx;
color: #fff; color: #fff;
border-radius: 6rpx;
background-color: #cdc7c8;
.close {
margin-left: 10rpx;
vertical-align: middle;
}
} }
.active { .active {
background: #ff780f; background-color: #ff780f;
} }
.scroll { .scroll {
width: 100%; width: 100%;

View File

@ -265,6 +265,7 @@ export default {
} else { } else {
this.tagcontent = ''; this.tagcontent = '';
this.show = false; this.show = false;
this.fileListes.push(res.data);
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.message, title: res.message,
type: 'success' type: 'success'