user-center.wxml
6.13 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
<wxs module="filter" src="../../utils/utilswxs.wxs"></wxs>
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<view class="app__content main">
<view class="top">
<image class="top-bg" mode="widthFix" src="../../image/user-center/user-center-top-bg.png" />
<!-- 用户信息 -->
<view class="user">
<!-- 左边栏 -->
<view class="user-info" bindtap="checkVerify">
<image class="avatar" mode="aspectFill" src="{{userInfo.avatar}}" />
<view class="wrap1">
<view class="name">{{userInfo.realName ? userInfo.realName : userInfo.nickname}}</view>
<view wx:if="{{userInfo.auditStatus == 'authorization'}}" class="vip vip-check">
奖金会员
</view>
<view wx:elif="{{userInfo.auditStatus == 'unauthorized'}}" class="vip">审核中 ></view>
<view wx:else class="vip">未验证 ></view>
</view>
</view>
<!-- 右边栏 -->
<view class="user-data">
<view bindtap="onIntegralDetailHandler" class="wrap">
<view class="t1">{{filter.Fen2Yuan(userInfo.memberPoints)}}元</view>
<view class="t2">我的奖金</view>
</view>
<view class="line"></view>
<view bindtap="onIntegralDetailHandler" class="wrap">
<view class="t1">{{userInfo.promotionNum}}人</view>
<view class="t2">推广数据</view>
</view>
</view>
</view>
</view>
<view class="top-space"></view>
<view class="content">
<!-- 场景 -->
<view class="sence">
<!-- 签到区 -->
<view class="border sign ">
<view class="tit">
<view class="t1">签到7天赢红包</view>
<view bindtap="onsignInRecordHandler" class="t2">
<image class="icon" mode="aspectFit" src="../../image/icon/icon-sign-record.png" />
签到记录
</view>
</view>
<!-- 7天签到 -->
<view class="check">
<view wx:for="{{signInfo}}" wx:key="index" class="check-item {{item ? 'check-item-act' :''}}">
<view wx:if="{{index != 0}}" class="line"></view>
<view class="day">
<view class="circle">{{index+1}}</view>
<!-- <view wx:if="{{index != signInfo.length-1}}" class="num"></view> -->
<image wx:if="{{index != signInfo.length-1}}" class="icon" mode="aspectFit" src="../../image/icon/icon-integral.png" />
<image wx:else class="icon" mode="aspectFit" src="../../image/icon/icon-red-package.png" />
</view>
</view>
</view>
<!-- 签到按钮 -->
<view wx:if="{{userInfo.isSign == 1}}" class="sign-btn sign-btn-disable">已签到</view>
<view wx:else class="sign-btn" bindtap="onSignHandler">签到 (第{{signNum+1}}天)</view>
</view>
<!-- 功能区 -->
<view class="border func">
<!-- <view bindtap="onMyQrcodeHandler" class="my-qrcode">
<image class="qrcode" mode="widthFix" src="../../image/icon/icon-qrcode.png" />
<view class="t1">我的二维码</view>
</view> -->
<!-- 功能区 -->
<view class="func-wrap">
<!-- <view bindtap="onRankHandler" class="func-wrap-item">
<view class="icon-wrap">
<image class="icon" mode="aspectFit" src="../../image/icon/icon-integral-rank.png" />
</view>
<view class="txt">奖金排行</view>
</view> -->
<view bindtap="onAddressHandler" class="func-wrap-item">
<view class="icon-wrap">
<image class="icon" mode="aspectFit" src="../../image/icon/icon-my-address.png" />
</view>
<view class="txt">我的地址</view>
</view>
<view bindtap="onMyMessageHandler" class="func-wrap-item">
<view class="icon-wrap">
<view wx:if="{{userInfo.news > 0}}" class="rpoint"></view>
<image class="icon" mode="aspectFit" src="../../image/icon/icon-my-message.png" />
</view>
<view class="txt">我的消息</view>
</view>
<view bindtap="onContactUsHandler" class="func-wrap-item">
<view class="icon-wrap">
<image class="icon" mode="aspectFit" src="../../image/icon/icon-concat-us.png" />
</view>
<view class="txt">联系我们</view>
</view>
</view>
</view>
<!-- 活动区 拍卖和秒杀 -->
<view class="border active" wx:if="{{1>10}}">
<view bindtap="onAuctionHandler" data-index="0" class="active-item">
<view class="icon-wrap">
<span class="iconfont iconpaimai icon"></span>
</view>
<view class="txt">竞价</view>
</view>
<view bindtap="onSeckillHandler" data-index="1" class="active-item">
<view class="icon-wrap">
<span class="iconfont iconmiaosha icon"></span>
</view>
<view class="txt">秒杀</view>
</view>
<view data-index="2" class="active-item">
<view class="icon-wrap"></view>
<view class="txt"></view>
</view>
<view data-index="3" class="active-item">
<view class="icon-wrap"></view>
<view class="txt"></view>
</view>
</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<van-popup show="{{ commonTipsCompVisible }}">
<common-tips-comp bind:evtcomp="evtcomp" inner-title="{{innerTitle}}" inner-text="{{innerText}}"></common-tips-comp>
</van-popup>
<van-popup show="{{ signTipsCompVisible }}">
<sign-tips-comp inner-text="只有通过审核的会员才可参与签到" bind:evtcomp="evtcomp"></sign-tips-comp>
</van-popup>
<van-popup show="{{ giftSignTipsCompVisible }}">
<gift-sign-tips-comp bind:evtcomp="evtcomp" prize-info="{{signPrize}}"></gift-sign-tips-comp>
</van-popup>