zhangdan пре 4 година
родитељ
комит
b2da4f378f
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      pages/index/index.vue

+ 4 - 4
pages/index/index.vue

@@ -27,13 +27,13 @@
 			<view class="statistics-title">今日上门回收价格</view>
 			<view class="bottom-statistics">
 				<view class="statistics-rubbishType">
-					<view class="statistics-box">
+					<view class="statistics-box" v-if="rubbishPaperList.length">
 						<view class="rubbishType-type"><span class="t-icon t-icon-home_icon_paper" style="display: inline-block;margin: 0 10upx;"></span>{{rubbishPaperName ? rubbishPaperName :''}}</view>
 						<view v-for="item in rubbishPaperList" class="rubbishType-item">
 							<view>{{item.name ? item.name+':' :''}}{{item.customerPrice ? (item.customerPrice/1000).toFixed(2)/1 :0}} 元/kg</view>
 						</view>
 					</view>
-					<view class="statistics-box">
+					<view class="statistics-box" v-if="rubbishYWList.length">
 						<view class="rubbishType-type"><span class="t-icon t-icon-home_icon_clothing" style="display: inline-block;margin: 0 10upx;"></span>{{rubbishYWName ? rubbishYWName :''}}</view>
 						<view v-for="item in rubbishYWList" class="rubbishType-item">
 							<view>{{item.name ? item.name+':' :''}}{{item.customerPrice ? (item.customerPrice/1000).toFixed(2)/1 :0}} 元/kg</view>
@@ -41,13 +41,13 @@
 					</view>
 				</view>
 				<view class="statistics-rubbishType">
-					<view class="statistics-box">
+					<view class="statistics-box" v-if="rubbishSLList.length">
 						<view class="rubbishType-type"><span class="t-icon t-icon-home_icon_plastic" style="display: inline-block;margin: 0 10upx;"></span>{{rubbishSLName ? rubbishSLName :''}}</view>
 						<view v-for="item in rubbishSLList" class="rubbishType-item">
 							<view>{{item.name ? item.name+':' :''}}{{item.customerPrice ? (item.customerPrice/1000).toFixed(2)/1 :0}} 元/kg</view>
 						</view>
 					</view>
-					<view class="statistics-box">
+					<view class="statistics-box" v-if="rubbishJSList.length">
 						<view class="rubbishType-type"><span class="t-icon t-icon-home_icon_metal" style="display: inline-block;margin: 0 10upx;"></span>{{rubbishJSName ? rubbishJSName :''}}</view>
 						<view v-for="item in rubbishJSList" class="rubbishType-item">
 							<view>{{item.name ? item.name+':' :''}}{{item.customerPrice ? (item.customerPrice/1000).toFixed(2)/1 :0}} 元/kg</view>