| 
					
				 | 
			
			
				@@ -10,7 +10,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<!-- 房型数量 -->
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<view class="">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="typeNum">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<view class="left" style="font-size: 24rpx; color: #777;" @click="areaShowed()">
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -75,13 +74,53 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							<text style="font-size: 30rpx; color: #333;">{{item.name||item.goodsName}}</text>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						<view class="under">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							<view style="font-size: 24rpx; color: #777;">销量:{{item.salesVolume||item.soldNum}}</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							<view style="font-size: 36rpx; color: #FF4141; font-weight: Bold; margin-top: 16rpx;">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								¥{{item.discountPrice||item.normalPrice}}</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<!-- <view style="font-size: 24rpx; color: #777;">销量:{{item.salesVolume||item.soldNum||0}}</view> -->
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<view style="font-size: 24rpx; color: #777;">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								销量:{{item.salesVolume!=null?item.salesVolume:item.soldNum}}</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<view v-if='item.goodsType==1'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								style="font-size: 36rpx; color: #FF4141; font-weight: Bold; margin-top: 16rpx;">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								¥{{item.discountPrice}}</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<view v-else-if="item.goodsType==2"
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								style="font-size: 36rpx; color: #FF4141; font-weight: Bold; margin-top: 16rpx;">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								¥{{item.normalPrice}}</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<view v-else-if="item.goodsType==3"
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								style="font-size: 36rpx; color: #FF4141; font-weight: Bold; margin-top: 16rpx;">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								¥{{item.avePrice}}</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							<view v-else
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								style="font-size: 36rpx; color: #FF4141; font-weight: Bold; margin-top: 16rpx;">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+								¥{{item.discountPrice}}</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<view class="type-btn" v-if='!canyinmeishi'>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					<view class="type-btn-left">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					<view class="type-btn-right">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<view class="" @click="shanchu(item,index)">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							删除
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<view class="" @click="gaijia(item,index)" v-if='item.goodsType == 2'>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							改价格
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<view v-if="canyinmeishi" class="" @click="xiajia(item,index)">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{{fromData.status==0?'下架':'上架'}}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						<view v-if="!canyinmeishi" class="" @click="xiajia1(item,index)">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							{{fromData.status==0?'上架':'下架'}}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				</view>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<view class="type-btn">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<view class="type-btn" v-if='canyinmeishi'>
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<view class="type-btn-left">
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					</view>
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -311,10 +350,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						let namesArray = this.selectedTags.map(obj => obj.id);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						let postdata = {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							discountPrice: 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							id: namesArray,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							status: this.fromData.status == 1 ? 0 : 1,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							ids: namesArray,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							status: this.fromData.status == 0 ? 1 : 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						};
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.$api.post('/scenic/goods/batchUpDownFrame', postdata).then(res => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						this.$api.post('/api/merchant/food/updateStatus', postdata).then(res => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							this.$refs.uToast.show({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								type: 'success',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 								title: '',
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -338,6 +377,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						let postdata = this.selectedTags.map((item, index, arr) => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							let json = {};
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							json.id = item.id;
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -404,7 +444,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						let namesArray = this.selectedTags.map(obj => obj.id);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						console.log('111111111111111111', namesArray)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						//status: this.fromData.status,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.$api.del('/scenic/goods', namesArray).then(res => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							this.$refs.uToast.show({
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -500,24 +540,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					//获取商品列表(渔家乐)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					if (this.lsdata.goodsType == 1) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						let postdata = {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							discountPrice: this.newprice,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							id: this.lsdata.id,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							status: this.fromData.status,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						};
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						console.log('postdata', postdata)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						this.$api.put('/scenic/goods', postdata).then(res => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							this.$refs.uToast.show({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								type: 'success',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								title: '',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								message: "成功",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-								iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/default.png'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							this.closegaijia();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							this.yujialedata(); //获取商品列表(渔家乐)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					if (this.lsdata.goodsType == 2) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						let postdata = {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							normalPrice: this.newprice,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							id: this.lsdata.id,
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -534,6 +559,23 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							this.closegaijia();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							this.yujialedata(); //获取商品列表(渔家乐)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// let postdata = {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	normalPrice: this.newprice,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	id: this.lsdata.id,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	status: this.fromData.status,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// };
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// console.log('postdata', postdata)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// this.$api.put('/scenic/goods', postdata).then(res => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	this.$refs.uToast.show({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 		type: 'success',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 		title: '',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 		message: "成功",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 		iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/default.png'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	this.closegaijia();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// 	this.yujialedata(); //获取商品列表(渔家乐)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						// })
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -557,13 +599,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					let postdata = {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						discountPrice: this.lsdata.discountPrice,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						ids: [this.lsdata.id],
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						status: this.fromData.status,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						status: this.fromData.status == 0 ? 1 : 0,
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					};
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					this.$api.post('/api/merchant/food/updateStatus', postdata).then(res => {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.$refs.uToast.show({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							type: 'success',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							title: '',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							message: "下架成功",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							message: "成功",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/default.png'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.quxiaoxiajia();
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -579,7 +621,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.$refs.uToast.show({
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							type: 'success',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							title: '',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							message: "下架成功",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							message: "成功",
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/default.png'
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.quxiaoxiajia();
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -595,13 +637,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			selectPerson(e, i) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				console.log('+++++++', e, i);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				if (this.selectedTags.includes(e)) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					this.selectedTags = this.selectedTags.filter(t => t !== e);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					this.selectedTags.push(e);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				}
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				console.log(' this.selectedTags', this.selectedTags)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			},
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			yujialedata() {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				this.$api.get('/scenic/goods/page', this.fromData).then(res => {
 
			 |