Browse Source

待上架只要goodsType类型为2的数据

htc 6 months ago
parent
commit
e6367f7a00
1 changed files with 5 additions and 2 deletions
  1. 5 2
      pagesHouse/HotelMerchandise/index.vue

+ 5 - 2
pagesHouse/HotelMerchandise/index.vue

@@ -5,7 +5,7 @@
 		<view class="tb">
 			<view class="tabs">
 				<view v-for="(item,index) in tabList" :key="index" @tap="changeTab1(item,index)">
-					<!-- <text :class="index==current?'active':''">{{item.name}}({{mytotal}})</text> -->
+					<!-- <text :class="index==current?'active':''">{{item.name}}({{mytotal}})</text> --> 
 					<text :class="index==current?'active':''">{{item.name}}</text>
 				</view>
 			</view>
@@ -722,12 +722,15 @@
 				} else {
 					this.selectedTags.push(e);
 				}
-				console.log(' this.selectedTags', this.selectedTags)
+				console.log(' this.selectedTags', this.selectedTags) 
 
 			},
 			yujialedata() {
 				this.$api.get('/scenic/api/goods/page', this.fromData).then(res => {
 					this.roomType = res.data.data.list.filter(d => d.goodsType != 3);
+					if(this.fromData.status===0){
+						this.roomType = res.data.data.list.filter(d => d.goodsType == 2);
+					}
 					this.mytotal = res.data.data.total;
 				})
 			},