zhengkaixin 2 年之前
父節點
當前提交
6068f8b889
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pages/searchPile/chargeProcess/charge.vue
  2. 1 1
      pages/user/finance/rechargeRes.vue

+ 1 - 1
pages/searchPile/chargeProcess/charge.vue

@@ -2,7 +2,7 @@
 	<view>
 	<view>
 		<ujp-navbar title="充电"  :is-back="isback" ></ujp-navbar>
 		<ujp-navbar title="充电"  :is-back="isback" ></ujp-navbar>
 		<!-- 优惠 -->
 		<!-- 优惠 -->
-		<view class="discounts" style="padding:0 18px;">
+		<view class="discounts" style="padding:0 18px;" v-if="bannerList.length">
 			<u-swiper bg-color="#fff" :img-mode="'scaleToFill'" height="160" :list="bannerList" @click="clickBanner"
 			<u-swiper bg-color="#fff" :img-mode="'scaleToFill'" height="160" :list="bannerList" @click="clickBanner"
 				:name="'picUrl'">
 				:name="'picUrl'">
 			</u-swiper>
 			</u-swiper>

+ 1 - 1
pages/user/finance/rechargeRes.vue

@@ -41,7 +41,7 @@
 			
 			
 			
 			
 		</view>
 		</view>
-		<view class="discounts" style="padding:0 18px;margin-top: 20px;">
+		<view class="discounts" style="padding:0 18px;margin-top: 20px;" v-if="bannerList.length" >
 			<u-swiper bg-color="#fff" :img-mode="'scaleToFill'" height="160" :list="bannerList" @click="clickBanner"
 			<u-swiper bg-color="#fff" :img-mode="'scaleToFill'" height="160" :list="bannerList" @click="clickBanner"
 				:name="'picUrl'">
 				:name="'picUrl'">
 			</u-swiper>
 			</u-swiper>