修改首页选择园区,,商户,,电表

This commit is contained in:
2024-04-03 14:46:34 +08:00
parent db6d253898
commit f5ddb92449
17 changed files with 188 additions and 68 deletions

View File

@@ -32,9 +32,10 @@
<view class="card">
<view class="cardTop">
<view class="cardTopLeft">
<view> 华昌宝能 - 软c307 </view>
<view wx:if="{{user.id}}"> 华昌宝能 - 软c307 </view>
<view wx:else> -- </view>
</view>
<van-button type="info" size="small" plain="{{true}}" class="loginBtn" bind:click="changeMeter">
<van-button type="info" size="small" plain="{{true}}" class="loginBtn" bind:click="changeMeter" wx:if="{{user.id}}">
<van-icon name="exchange" />
切换电表
</van-button>
@@ -42,17 +43,20 @@
<view class="cardContent">
<view class="cardItem">
<view class="cardItemLabel"> 电表编号: </view>
<view class="cardItemValue"> 15151515 </view>
<view class="cardItemValue" wx:if="{{user.id}}"> {{meter.code}} </view>
<view class="cardItemValue" wx:else> -- </view>
</view>
<view class="cardItem">
<view class="cardItemLabel"> 电表地址: </view>
<view class="cardItemValue"> 软C307 </view>
<view class="cardItemValue" wx:if="{{user.id}}"> {{meter.address}} </view>
<view class="cardItemValue" wx:else> -- </view>
</view>
<view class="cardItem">
<view class="cardItemLabel"> 电表余额: </view>
<view class="cardItemValue">
<view class="text"> 200 </view>
<van-button type="info" size="small" plain="{{true}}" bind:click="refreshMeter">
<view class="text" wx:if="{{user.id}}"> {{meter.money}} </view>
<view class="text" wx:else> --- </view>
<van-button type="info" size="small" plain="{{true}}" bind:click="refreshMeter" wx:if="{{user.id}}">
<van-icon name="replay" />
刷新
</van-button>
@@ -80,7 +84,7 @@
</view>
</view>
<view class="operate">
<van-button color="rgb(88, 165, 141)" block>去缴费</van-button>
<van-button color="rgb(88, 165, 141)" block bind:click="recharge">去缴费</van-button>
</view>
<view class="others">
<van-grid direction="horizontal" column-num="2">