togoin.wxml
2.85 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
<view>
<!-- 登录图 -->
<view >
<view class="logins flex-center2 ali-c flex" style="padding-top: 120rpx;">
<image mode="widthFix" bindtap="go_index" class="login_img_back" src="{{imghots}}/miniapp/images/loginbg.jpg"></image>
<view class="middle_view">
<image bindtap="go_index" class="login_img" src="{{store_logo}}" binderror="bind_bnerr" lazy-load="true" data-errorimg="store_logo"></image>
<view>{{store.store_name}}</view>
</view>
</view>
</view>
<!-- 登录按钮 -->
<view>
<view class="phones">
<view bindtap="" class="user-name flex-vertical fs24 jc-center">
<checkbox-group bindchange="isAgree">
<checkbox value="true"/>
</checkbox-group>
<view class="user-name-txt">我已阅读同意 <text class="gray" bindtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=0">《用户使用协议》</text>与<text class="gray" bindtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=1">《隐私政策》</text></view>
</view>
<!-- 授权获取基础信息 -->
<block wx:if="{{canIUseGetUserProfile}}">
<button hidden="{{user}}" class="getPhoneNumber" bindtap="bindGetUserInfo">
<view class="flex flex-center ali-c">
<image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image>
<view>微信账号快捷登录</view>
</view>
</button>
</block>
<block wx:else>
<!-- 授权获取基础信息 -->
<button hidden="{{user}}" class="getPhoneNumber" open-type="getUserInfo" bindgetuserinfo="bindUserInfo">
<view class="flex flex-center ali-c">
<image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image>
<view>微信账号快捷登录</view>
</view>
</button>
</block>
<!-- 点击显示绑定手机的对话框 -->
<button hidden="{{!user}}" class="getPhoneNumber" bindtap="show_bind_mobile">
<view class="flex flex-center2 ali-c" >
<image class="we_chat" src="{{imghots}}/miniapp/images/we_chat.png"></image>
<view>微信账号快捷登录</view>
</view>
</button>
</view>
<view class="userlongin flex-center2 flex fs30 jc_sb" style="margin: 0 130rpx">
<view bindtap="cancle_bind">暂不登录</view>
</view>
</view>
</view>
<view wx:if="{{show_bind}}">
<view class="cover-layer" bindtap="close_pop"></view>
<view class="p_content">
<view class="p_title flex ali-c fs34">
登录手机号,同步会员信息以及订单记录
</view>
<view class="flex btn_view">
<view bindtap="close_pop_back" style="height: 100%; line-height:normal;" class="txt-center f2 flex ali-c flex-center2 fs36 b_right">暂不授权</view>
<button style="height: 100%;" class="g_mobile f2 flex ali-c flex-center2 fs36 txt-red" open-type="getPhoneNumber" bindgetphonenumber="getphone">立即授权</button>
</view>
</view>
</view>
<warn id="warn"></warn>