TabMine.wxml
4.48 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!--components/tabMine/TabMine.wxml-->
<!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<view class="layout_box">
<view class="bg"></view>
<view class="main" style="margin-top:var(--fontSize104)">
<view class="user-box">
<view class="user-avatar">
<block wx:if="{{ userInfo.userAvatarUrl }}">
<image src="{{ userInfo.userAvatarUrl }}" bindtap="getAvatar" />
</block>
<block wx:else>
<open-data type="userAvatarUrl" />
</block>
</view>
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}
<!-- <view class="flex" wx:if="{{userInfo.openId}}">
<gl-image mode="widthFix" class="wechat_icon" src="/wechat-icon.png" />
<view class="nickname">{{userInfo.nickname}}</view>
</view> -->
</view>
<!-- <view class="point-box" wx:if="{{isForbidden}}">
<view class="change_btn" bind:tap="toPoint">我的积分</view>
<image class="icon_card" bindtap="jumpAccount" src="{{IMG_URL}}bank-card.png" mode="" />
</view> -->
<!-- <view class="change_btn" bindtap="changeAccount">切换账号</view> -->
</view>
<!-- <view class="user-info">
<view class="user-text">
<view class="item">所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view> -->
</view>
<block>
<view class="set_box">
<view class="set_item" bindtap="changeScene">
<view class="title">场景切换</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
<view class="set_item" bindtap="goVersionPage">
<view class="title">更新日志</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
</view>
</block>
<!-- <view class="collegeCon">
<view class="set_box" wx:if="{{ showCollege }}">
<view class="set_item" bindtap="goCollegeScene">
<view class="title">工资绩效(员工绩效)</view>
<view class="set_tips">去查看</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
</view>
</view> -->
<view class="logout-box">
<view class="logout text-center" bindtap="changeAccount">切换账号</view>
<view class="logout text-center" bindtap="logout">退出账号</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>
</view>
</view>
<!-- 提现账号 -->
<van-popup show="{{showAccountModal}}" round position="bottom" bind:click-overlay="toCloseModal" custom-class="popclass" data-name="showAccountModal">
<view class="modal_title">提示</view>
<view class="modal_tip">首次兑换需要您添加个人真实的银行账户!</view>
<button class="modal_btn" catchtap="toAddBankAccount">去添加</button>
</van-popup>
<!-- 银行卡信息有误 -->
<van-popup show="{{showAccountErrorModal}}" round position="bottom" bind:click-overlay="toCloseModal" custom-class="popclass" data-name="showAccountErrorModal">
<view class="modal_title">提示</view>
<view class="modal_tip">您的银行信息有误</view>
<view class="modal_error">原因:手机号非银行预留手机号</view>
<view class="btns">
<button class="modal_btn default" catchtap="toCloseModal" data-name="showAccountErrorModal">我知道了</button>
<button class="modal_btn" catchtap="toEditBankAccount" >去编辑</button>
</view>
</van-popup>
<!-- 绑定微信提示弹框 -->
<van-popup bind:click-overlay="toCloseModal" show="{{ showModal }}" custom-class="popclass" position="bottom" custom-style="height: 35%" data-name="showModal">
<view class="modal_title">提示</view>
<view class="modal_tip">您未绑定微信,请先完成绑定</view>
<button class="modal_btn" open-type="getPhoneNumber" catch:tap="toCloseModal" data-name="showModal" bindgetphonenumber="toBindWechat">去绑定</button>
</van-popup>