personalCenter.wxml
8.8 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!--pages/personalCenter/personalCenter.wxml-->
<view class='banner_box'>
<view class='head_img'>
<image src='{{personalinfo.user.avatar}}'></image>
</view>
<view class='head_info_box'>
<view class='user_name'>{{personalinfo.user.name}}</view>
<view>{{personalinfo.user.mobile}}</view>
<view>{{personalinfo.user.work_post}}</view>
<view>{{personalinfo.user.work}}</view>
</view>
<view class='edit_box' bindtap='editInfo' wx:if="{{user_type != 2}}">
<view class='iconfont icon-xiugai'></view>
<view>修改个人资料</view>
</view>
</view>
<!-- 顾问个人中心 -->
<view class='content_box' wx:if='{{user_type==3}}'>
<view class='item_list' bindtap='TB'>
<view class='list_icon'>
<text class='iconfont icon-kakou'></text>
</view>
<view class='list_item_box'>
<view>T币交易记录</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='vipCharge'>
<view class='list_icon'>
<text class='iconfont icon-gray-crown'></text>
</view>
<view class='list_item_box'>
<view>会员充值</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='reportList'>
<view class='list_icon'>
<text class='iconfont icon-baogao'></text>
</view>
<view class='list_item_box'>
<view>报告浏览记录</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='articlList'>
<view class='list_icon'>
<text class='iconfont icon-baogao1'></text>
</view>
<view class='list_item_box'>
<view>文章浏览记录</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='suggest'>
<view class='list_icon'>
<text class='iconfont icon-jianyi'></text>
</view>
<view class='list_item_box'>
<view>建议预设</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='project'>
<view class='list_icon'>
<text class='iconfont icon-fangan'></text>
</view>
<view class='list_item_box'>
<view>方案预设</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='share'>
<view class='list_icon'>
<text class='iconfont icon-fenxiang1'></text>
</view>
<view class='list_item_box'>
<view>分享赚T币</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<navigator class='item_list' url='/pages/index/twoCode/twoCode?imgUrls={{personalinfo.counselor.wechat_code}}'>
<view class='list_icon'>
<text class='iconfont icon-xiazai'></text>
</view>
<view class='list_item_box'>
<view>下载专属二维码</view>
<view class='iconfont icon-jinru'></view>
</view>
</navigator>
<view class='item_list' bindtap='inviteList'>
<view class='list_icon'>
<text class='iconfont icon-yaoqing'></text>
</view>
<view class='list_item_box'>
<view>邀请名单</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='remind'>
<view class='list_icon'>
<text class='iconfont icon-YDUI-naozhong'></text>
</view>
<view class='list_item_box'>
<view>7天到期提醒</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
</view>
<!-- 客户个人中心 -->
<block wx:elif='{{user_type==2}}'>
<view class='content_box'>
<view class='item_list' bindtap='policyList'>
<view class='list_icon'>
<text class='iconfont icon-listpress'></text>
</view>
<view class='list_item_box'>
<view>保单列表</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='medicalReport'>
<view class='list_icon'>
<text class='iconfont icon-icon-test'></text>
</view>
<view class='list_item_box'>
<view>体检报告</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='register'>
<view class='list_icon'>
<text class='iconfont icon-renzheng1'></text>
</view>
<view class='list_item_box'>
<view>顾问认证</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
<view class='item_list' bindtap='consultantInfo'>
<view class='list_icon'>
<text class='iconfont icon-kehuguanli-copy-copy'></text>
</view>
<view class='list_item_box'>
<view>顾问信息</view>
<view class='iconfont icon-jinru'></view>
</view>
</view>
</view>
</block>
<!-- 传播大使个人中心 -->
<view class='envoy_box' wx:elif='{{user_type==4}}'>
<view class='tab_box'>
<view class="tab_item {{currentTab==0?'tab_active':''}}" data-current="0" bindtap='tabCharge'>账户余额</view>
<view class="tab_item {{currentTab==1?'tab_active':''}}" data-current="1" bindtap='tabCharge'>分享</view>
</view>
<block wx:if='{{currentTab==0}}'>
<view class='envoy_content_box envoy'>
<view>
<view class='envoy_money'>{{personalinfo.popularize.balance}}元</view>
<view class='envoy_info'>正在提现中{{personalinfo.user.pay}}元</view>
</view>
<view class='envoy_btn' bindtap='withdraw'>我要提现</view>
</view>
<view class='charge_box'>
<view class='envoy_title_box'>交易记录</view>
<view class='box' wx:for='{{personalinfo.paylog}}' wx:key >
<view class='envoy_content_box'>
<view>
<view class='envoy_title'>{{item.name}}</view>
</view>
<view bindtap='tabExpand' data-index='{{index}}'>
<text class="iconfont font_icon {{item.tab_state?'icon-shang':'icon-xiala'}}"></text>
<text class='envoy_hint' wx:if='{{item.tab_state}}'>收起</text>
<text class='envoy_hint' wx:else>展开</text>
</view>
</view>
<view class="envoy_info_box {{!item.tab_state?'expand':''}}">
<view class='envoy_content' wx:for='{{item.paylog}}' wx:key>
<view>{{item.time}}</view>
<view class='envoy_title'>{{item.change}}元</view>
</view>
</view>
</view>
</view>
</block>
<block wx:if='{{currentTab==1}}'>
<view class='share_box'>
<view class='envoy_content_box share'>
<view class='share_content'>{{postsharedata.sharetext}}</view>
<view>
<button class='share_btn' open-type='share' data-share='{{postsharedata.status}}'>
<text>立即分享</text>
<text class='iconfont icon-jinru'></text>
</button>
</view>
</view>
</view>
<view class='content_box'>
<view class='item_list' bindtap='sharecode'>
<view class='list_icon'>
<text class='iconfont icon-jisuanqi'></text>
</view>
<navigator class='list_item_box'
url='/pages/index/twoCode/twoCode?imgUrls={{personalinfo.popularize.wechat_code}}'>
<view>分享二维码</view>
<view class='iconfont icon-jinru'></view>
</navigator>
</view>
</view>
<view class='charge_box'>
<view class='envoy_title_box'>
<text>邀请名单</text>
<text>充值记录</text>
</view>
<view class='box' wx:for='{{postsharedata.listmessages}}' wx:key>
<view class='envoy_content_box'>
<view>
<view class='envoy_title'>{{item.name}}</view>
</view>
<view bindtap='tabExpand1' data-index='{{index}}'>
<text class="iconfont font_icon {{item.tab_state?'icon-shang':'icon-xiala'}}"></text>
<text class='envoy_hint' wx:if='{{item.tab_state}}'>收起</text>
<text class='envoy_hint' wx:else>展开</text>
</view>
</view>
<view class="envoy_info_box {{!item.tab_state?'expand':''}}">
<view class='envoy_content' wx:for='{{item.paylog}}' wx:key>
<view>{{item.time}}</view>
<view class='envoy_title'>{{item.change}}元</view>
</view>
</view>
</view>
</view>
</block>
</view>
<!-- 提现弹窗 -->
<view class='mask_box' bindtap='setmoudelno' wx:if='{{withdraw_state}}'>
<view class='popup_box' catchtap='funvoid'>
<view class='popup_title'>提现</view>
<view class='popup_content'>
<view class='popup_total'>我的余额:{{personalinfo.popularize.balance}}元</view>
<view class='popup_input_box'>
<view>¥</view>
<view>
<input type='digit' placeholder='请输入提现金额' bindinput='setTbNum'></input>
</view>
</view>
<view class='popup_btn' catchtap='confirmWithdrawal'>确认提现</view>
</view>
</view>
</view>