gdpao #48
@ -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'
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
 | 
				
			|||||||
@ -134,7 +134,7 @@ export default {
 | 
				
			|||||||
			badlist: [], //退货列表
 | 
								badlist: [], //退货列表
 | 
				
			||||||
			carlist: [], //可投诉订单列表
 | 
								carlist: [], //可投诉订单列表
 | 
				
			||||||
			reportinfo: null, //投诉信息
 | 
								reportinfo: null, //投诉信息
 | 
				
			||||||
			reportcontent: '' //投诉内容
 | 
								reportcontent: '', //投诉内容
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	onLoad() {
 | 
						onLoad() {
 | 
				
			||||||
 | 
				
			|||||||
@ -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%;
 | 
				
			||||||
 | 
				
			|||||||
@ -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'
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user