wxLogin.wxml
4.04 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<glsx-privacy appletName="嘀加门店管理助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="layout {{ loginType == 1?'phone_login_layout':'' }}">
<navigation-bar navStyle="background-color: rgba(0,0,0,0);box-shadow:none;" bindnavbarReady="navbarReady">嘀加门店管理助手</navigation-bar>
<view class="box_content" style="margin-top: {{navBarHeight}}px;">
<!-- 登录区域 -->
<view class="box">
<!-- 微信登录 -->
<block wx:if="{{ loginType == 2 }}">
<view class="wx opacity-view">
<view class="title">您好</view>
<view class="subtitle">欢迎登录嘀加门店管理助手</view>
<image class="img" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/supervisor-miniprogram/login-box.png" />
</view>
<view class="login-btn {{ loginType == 2?'mini':'' }}">
<button size="default" hidden="{{ loginType != 2 || !agree }}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" />
<view hidden="{{ loginType !=2 }}" bindtap="checkAgree">授权登录</view>
</view>
<type-list loginType="{{loginType}}" />
</block>
<!-- 手机号登录 -->
<block wx:if="{{ loginType == 1 }}">
<view class="phone_login">
<view class="title">手机号码登录</view>
<view class="login-form">
<view class="input">
<view class="left">
<view class="label">手机号</view>
<input placeholder="请输入手机号" type="number" placeholder-style="color:#CCCCCC;" style="width:calc(100% - var(--fontSize120));" bindinput="input" data-name="mobile" value="{{ mobile }}" maxlength="11" />
</view>
<view class="clear" hidden="{{ !mobile }}" bindtap="clear" data-name="mobile">
<image src="/images/clear.png" />
</view>
</view>
<view class="input">
<view class="left">
<view class="label">验证码</view>
<input placeholder="请输入验证码" type="number" placeholder-style="color:#CCCCCC;" style="width:calc(100% - var(--fontSize150));" bindinput="input" data-name="code" value="{{ code }}" maxlength="4" />
</view>
<view class="clear" hidden="{{ !code }}" bindtap="clear" data-name="code">
<image src="/images/clear.png" />
</view>
<view class="sms {{ countDown?'code-disabled':'' }}" bindtap="getSms">
<view wx:if="{{ countDown }}">重新发送({{count}})</view>
<view wx:else>获取验证码</view>
</view>
</view>
<view class="login_btn {{!code || !mobile ? 'disabled': ''}}" bindtap="smsLogin">登录</view>
<type-list loginType="{{loginType}}" />
</view>
</view>
<autoLogin-btn></autoLogin-btn>
</block>
<view class="auth_box {{loginType == 2 ? '' : 'lear_bottom'}}">
<!-- 协议 -->
<auth-setting bind:choose="authChoose" agree="{{ agree }}" />
</view>
</view>
</view>
<!-- -->
</view>
<!-- 未同意协议弹窗提示 -->
<van-dialog use-slot title="隐私协议与用户协议" show="{{ showAuthDialog }}" show-cancel-button width="var(--fontSize622)" use-title-slot="{{ true }}" use-confirm-button-slot="{{true}}" class="auth-dialog-class" custom-class="auth-dialog-class" use-cancel-button-slot="{{true}}">
<view slot="title">
<view class="title_text">隐私协议与用户协议</view>
</view>
<view class="message-box">
<view class="message">为保障你的合法权益,请阅读并同意</view>
<text catchtap="jump" data-url="privacy">《隐私协议》</text>
和
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
<view slot="cancel-button">
<view class="cancel-btn" bindtap="onClose">不同意</view>
</view>
<view slot="confirm-button">
<view class="confirm-btn" bindtap="agreeEvent">同意</view>
</view>
</van-dialog>