gerson
2024-08-11 81a60aa4fb7ee1689518918ceb9122f5d257e2fc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<view class="login-page" style="background:#027aff;">
  <!-- <view class="py-90 flex flex-col items-center" style="background:linear-gradient(#bcd8fa,#ffffff 100%) ;"> -->
 
  <view class="py-90 flex flex-col items-center">
 
    <image class="size-95" src="{{STATIC_FILE_BASE_URL+'/static/images/logo/logo-mini-white.svg'}}"></image>
    <text class="text-white">
      登录WI水务智能管家
    </text>
  </view>
  <view class="px-60 login-panel  bg-white" style="border-top-left-radius: 25rpx;border-top-right-radius: 25rpx;">
    <van-tabs model:active="{{ activeTab }}" bind:change="tabChange" tab-active-class="bg-gray-300">
      <van-tab name="account" title="账号登录">
        <van-cell-group>
          <van-field model:value="{{ user }}" placeholder="账号" />
          <van-field model:value="{{ password }}" placeholder="密码" type="password" border="{{ false }}" />
        </van-cell-group>
      </van-tab>
      <van-tab name="cellPhoneNumber" title="验证码登录">
        <van-cell-group>
          <van-field model:value="{{ phoneNumber }}" placeholder="手机号码">
            <text wx:if="{{countNum===null}}" slot="button" class="sms-send-btn font-bold font23" bind:tap="getSMSClick">获取验证码</text>
 
            <text wx:else slot="button" class="sms-send-btn font-bold font23 text-gray-300" >{{countNum+'秒后重试'}}</text>
 
 
          </van-field>
          <van-field model:value="{{ verifyCode }}" center clearable label="" placeholder="请输入短信验证码" use-button-slot>
 
          </van-field>
        </van-cell-group>
      </van-tab>
 
    </van-tabs>
    <van-button custom-style="margin-top:60rpx" type="primary" color="#027aff" block bind:tap="login">登录</van-button>
  </view>
 
</view>