Merge pull request 'gdpao' (#48) from gyh into master

Reviewed-on: http://git.luyuan.tk/luyuan/demingshangjia/pulls/48
This commit is contained in:
gyh 2020-08-14 08:28:18 +08:00
commit 81ec6586e3
5 changed files with 52 additions and 10 deletions

View File

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

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() {

View File

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

View File

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