马宇豪
2025-05-14 c533e456515a9af7fc4bca098f7cf48b9a660e21
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<view class="box">
  <view class="topContainer">
    <image src="{{loginTop}}" class="topImg" mode="widthFix"></image>
    <image src="{{loginPic}}" class="topPic" mode="widthFix"></image>
  </view>
 
  <view class="main">
    <view class="header">
      <view class="titleFirst">
      你好~
      <view>欢迎来到危化品全生命周期管理平台</view>
      </view>
    </view>
    <view>
      <view class="form">
        <view class="form-item" style="width: 80%;">
          <input 
            value="{{form.username}}" 
            class="u-input {{userFocused?'isFocused':''}}" 
            placeholder="请输入用户名"
            data-field="form.username" 
            bindinput="onFormInput" 
            bindfocus="focusUser"
          />
        </view>
        <view class="form-item" style="margin-top: 10px;width: 80%;">
          <input
            value="{{form.password}}" 
            class="u-input pswInput {{codeFocused?'isFocused':''}}" 
            password="{{isPwd}}" 
            placeholder="请输入密码"
            data-field="form.password" 
            bindinput="onFormInput" 
            bindfocus="focusCode"
          >
            <!-- <icon type="{{isPwd?'eye':'eye-off'}}" size="20" color="#999"></icon> -->
            <text catchtap="togglePwd" class="iconfont {{isPwd?'icon-view':'icon-view-off'}}"></text>
          </input>
        </view>
        <view class="form-item" style="margin-top: 10px;width: 80%;">
          <button 
            class="loginBtn" 
            loading="{{isLogining}}" 
            style="width: 100%;height: 56px;border-radius: 28px" 
            bindtap="Login" 
            type="primary"
          >登录</button>
        </view>
      </view>
    </view>
  </view>
  <view class="footer">
    当前版本:1.2
  </view>
</view>