新增首页园区和商户的交互

This commit is contained in:
2024-03-29 17:26:08 +08:00
parent 2b45de5a7f
commit 3284bea475
13 changed files with 193 additions and 30 deletions

View File

@@ -1,11 +1,13 @@
<!--pages/home/index.wxml-->
<view class="top">
<page-meta page-style="{{ show ? 'overflow: hidden;' : '' }}" />
<view>
<view class="top">
<custom-status-bar />
<view class="chooseParkWrapper">
用电管理服务 ·
<view class="parkContent">
<view class="parkContent" bind:tap="choosePark">
<view class="park">
金石工业园
{{park.name}}
</view>
<van-icon name="arrow-down" style="margin-left: 16rpx;" />
</view>
@@ -20,9 +22,9 @@
<van-button type="info" size="small" plain="{{true}}" class="loginBtn" bind:tap="jumpToLogin">请登录</van-button>
</view>
<view class="logined" wx:else>
<avatar text="{{ user.tenement.name.slice(0,2) }}" />
<avatar text="{{ user.nickName }}" />
<view>
<van-button type="info" size="small" plain="{{true}}" class="loginBtn" >{{user.tenement.name}} <van-icon name="arrow-down" style="margin-left: 16rpx;" /></van-button>
<van-button type="info" size="small" plain="{{true}}" class="loginBtn" bind:click="chooseTenement">{{user.tenement.name}} <van-icon name="arrow-down" style="margin-left: 16rpx;" /></van-button>
<view class="welcome"> 欢迎使用华昌宝能用电管理系统! </view>
</view>
</view>
@@ -80,4 +82,7 @@
<view class="operate">
<van-button color="rgb(88, 165, 141)" block>去缴费</van-button>
</view>
</view>
</view>
</view>
<picker show="{{show}}" valueKey="name" columns="{{columns}}" bind:ok="onOk" bind:cancel="onCancel" type="{{pickerType}}" />