Browse Source

充电记录

wkyy 3 years ago
parent
commit
d3d04b603a
3 changed files with 4 additions and 4 deletions
  1. 1 1
      pages/record/index.vue
  2. 1 1
      pages/user/finance/balance.vue
  3. 2 2
      pages/user/finance/rechargeList.vue

+ 1 - 1
pages/record/index.vue

@@ -8,7 +8,7 @@
 				<p>{{month}}月</p>
 				<u-icon name="arrow-down-s-fill" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
 			</view>
-			<view class="recordList">
+			<view class="recordList" v-if="chargeList.length > 0">
 				<view class="recordList-item" v-for="(item,index) in chargeList" :key="item.id" @click="gotoUrl('pages/record/details?id=' + item.id)">
 					<view class="recordList-name">
 						<h4>{{item.stationName}}/{{item.deviceNo}}</h4>

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

@@ -35,7 +35,7 @@
 						<u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
 					</view>
 				</view>
-				<view class="balanceMain-list">
+				<view class="balanceMain-list" v-if="accountList.length > 0">
 					<view class="balanceMain-item" v-for="(item,index) in accountList" :key="item.id" @click="gotoUrl('pages/user/finance/rechargeDet?id=' + item.id)">
 						<view class="title">
 							<font>{{item.payNameStr}}</font>

+ 2 - 2
pages/user/finance/rechargeList.vue

@@ -6,8 +6,8 @@
 			<span>{{month}}月</span>
 			<u-icon name="arrow-down-s-fill" custom-prefix="custom-icon" color="#B3B3B3" size="32"></u-icon>
 		</view>
-		<view class="rechargeList">
-			<view class="rechargeList-item"  v-for="(item,index) in accountList" :key="item.id" @click="gotoUrl('pages/user/finance/rechargeDet?id=' + item.id)">
+		<view class="rechargeList" v-if="accountList.length > 0">
+			<view class="rechargeList-item" v-for="(item,index) in accountList" :key="item.id" @click="gotoUrl('pages/user/finance/rechargeDet?id=' + item.id)">
 				<view class="rechargeList-row"><span>充值金额</span><h4>{{item.amount}}</h4></view>
 				<view class="rechargeList-row"><p>{{item.payNameStr}}</p><p>{{item.createTime}}</p></view>
 			</view>