userCenter.ttml
11 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
<!-- userCenter.wxml -->
<scroll-view scroll-y='true' style="height: {{windowHeight}}px" bindscroll="scroll" scroll-top="{{scrollTop}}">
<view class="container">
<view class="my-page yoho-page" >
<view class="my-header">
<image src="../../images/mine_bg@2x.png" class="header_bg"></image>
<view class="user-info">
<login-button
wx:if="{{!isLogin}}"
class="login-bg"
login-class="login-btn"
open-type="{{!hasUnionID?'getUserInfo':'getPhoneNumber'}}"
bindgetphonenumber="getPhoneNumber"
bindgetuserinfo='getUserInfo'
bindupdateuserinfo="updateUserInfo">登录/注册</login-button>
<block wx:else>
<image src="{{userInfo.avatarUrl}}" class="user-avatar"></image>
<view class="username">{{userInfo.nickName}}</view>
<image wx:if="{{userInfo.uid}}" class='vip-icon-image' src='{{vipImg}}'></image>
</block>
</view>
<!-- <image src='images/mine_bg@2x.png' class="new_head_bg">
</image> -->
</view>
<view class="my-order" style='border-bottom:0'>
<view class="my-order-title" data-index="0" bindtap="navToOrders">
<view class='titleDesc' style='color:#444444'>我的订单</view>
<view style="color: #aeaeae;font-size:29rpx;">全部订单</view>
<image class='arrow-image' style='margin-right:20rpx' src='../../images/arrow_right@2x.png'></image>
</view>
<view class="order-type clearfix" style='border-bottom:0'>
<view class="type-item" data-index="1" bindtap="navToOrders">
<view class="iconfont">
<image src="../../images/dd_icon_dfk@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.wait_pay_num?false:true}}'>
{{infoNum.wait_pay_num>100?'99+':infoNum.wait_pay_num}}
</view>
</view>
待付款
</view>
<view class="type-item" data-index="2" bindtap="navToOrders">
<view class="iconfont">
<image src="../../images/dd_icon_dfh@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.wait_cargo_num?false:true}}'>
{{infoNum.wait_cargo_num>100?'99+':infoNum.wait_cargo_num}}
</view>
</view>
待发货
</view>
<view class="type-item" data-index="3" bindtap="navToOrders">
<view class="iconfont">
<image src="../../images/dd_icon_dsh@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.send_cargo_num?false:true}}'>
{{infoNum.send_cargo_num>100?'99+':infoNum.send_cargo_num}}
</view>
</view>
待收货
</view>
<view class="type-item" data-index="3" bindtap="navToRefund">
<view class="iconfont">
<image src="../../images/yh_mine_order_return_new@3x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.refund_exchange_num?false:true}}'>
{{infoNum.refund_exchange_num>100?'99+':infoNum.refund_exchange_num}}
</view>
</view>
退货
</view>
</view>
</view>
<view class="view-splite clearfix">
</view>
<view>
<!--单张图片楼层 moreActivityItemTapped-->
<block wx:for='{{homeList}}' wx:key='{{index}}'>
<newSingleImage
wx:if="{{item.template_name =='newSingleImage'}}"
floor-data="{{item}}"
floor-idx="{{index}}">
</newSingleImage>
</block>
<view class="view-splite-signle clearfix"></view>
</view>
<form bindsubmit="formSubmit" report-submit='true'>
<view class="invite-friend clearfix" bindtap="inviteFriend">
<image class="invite-friend-banner" src='https://cdn.yoho.cn/uploads/1543906955801/icon_invite_banner@2x.png'></image>
<view class="invite-friend-info">
<text class="invite-mainTitle">"{{inviteInfo.mainTitle}}"</text>
<view class="invite-subTitle">
<text class="text-black">邀请好友</text>
<text class="text-red">{{inviteInfo.inviteFriendReward}}元</text>
<text class="text-black">现金券无限赚</text>
</view>
<view class="invite-content" wx:if="{{isLogin && inviteInfo.userInviteTotal && inviteInfo.userInviteTotal > 0}}">
<text class="invite-content-black">已经成功邀请</text>
<text class="invite-content-red">{{inviteInfo.userInviteTotal}}</text>
<text class="invite-content-black">人,获得了</text>
<text class="invite-content-red">{{inviteInfo.myCouponNum}}</text>
<text class="invite-content-black">张现金券,继续努力!</text>
</view>
<view class="invite-content" wx:else>
<text class="invite-content-black">已经有</text>
<text class="invite-content-red">{{inviteInfo.totalUser}}</text>
<text class="invite-content-black">人参与到好友邀请,获取了</text>
<text class="invite-content-red">{{inviteInfo.totalCouponNum}}</text>
<text class="invite-content-black">张现金券,快来加入吧!</text>
</view>
</view>
<button class="invite-button" form-type="submit"></button>
</view>
</form>
<view class='address-back-view'style='border-top:0' bindtap='couponTapAction'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/yhq-ic@2x.png" class="icon-image"></image>
</view>
<view class="address-title">优惠券</view>
</view>
<view class='arrow-text' wx:if='{{infoNum.coupon_num}}'>{{infoNum.coupon_num}} 张 </view>
<image class='arrow-image' src='../../images/arrow_right@2x.png'></image>
</view>
<view class='yohocoin-back-view' bindtap='yohocoinTapAction'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/yoho-coin@2x.png" class="icon-image"></image>
</view>
<view class="address-title" >有货币</view>
</view>
<view class='arrow-text' style='margin-right:20rpx'>{{infoNum.yoho_coin_num?infoNum.yoho_coin_num:0}}个</view>
</view>
<!-- <view class='yohocoin-back-view limit-back-view' style='border-bottom:0' bindtap='navigateToLimitCodePage'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/limit@2x.png" class="icon-image"></image>
</view>
<view class="address-title">我的限购码</view>
</view>
<view class='arrow-text'>{{infoNum.limitCodeNum || 0}}</view>
<image class='arrow-image' src='../../images/arrow_right@2x.png'></image>
</view> -->
<view class="view-splite clearfix"/>
<!-- <view class='address-back-view' style='border-top:0' bindtap='navToGroupOrders'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/wdyhIc@2x.png" class="icon-image"></image>
</view>
<view class="address-title">我的拼团</view>
</view>
<view class='arrow-text'>{{groupOrdersCount}}</view>
<image class='arrow-image' src='../../images/arrow_right@2x.png'></image>
</view> -->
<view class='address-back-view' style='border-top:0' bindtap='navToGoodsCollectPage'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/like@2x.png" class="icon-image"></image>
</view>
<view class="address-title">商品收藏</view>
</view>
<image class='arrow-image' src='../../images/arrow_right@2x.png'></image>
</view>
<view class='address-back-view' style='border-top:0;border-bottom:0' bindtap='navToAddressManagerPage'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/address-ic@2x.png" class="icon-image"></image>
</view>
<view class="address-title">地址管理</view>
</view>
<image class='arrow-image' src='../../images/arrow_right@2x.png'></image>
</view>
<view class="view-splite clearfix"/>
<!-- <button class='im-button' open-type="contact" bindcontact="handleContact">
<view class='im-left-view'>
<image src="../../images/kd_ic_2x.png" class="icon-image"></image>
<view class="im-button-title">在线客服</view>
</view>
<image class='im-arrow-image' src='../../images/arrow_right@2x.png'></image>
</button> -->
<view class='address-back-view' style='border-bottom:0' wx:if="{{isWechatService && wechatShareCode}}">
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/wx@2x.png" class="icon-image"></image>
</view>
<view class="address-title">潮流顾问专属分享</view>
</view>
<text class="arrow-text">分享</text>
<image class='arrow-image' src='../../images/arrow_right@2x.png'></image>
<button open-type="share" class="share-btn" plain="true" hover-class="none" id="wxRedPacket"></button>
</view>
<view class="view-splite clearfix"/>
<!-- 猜你喜欢标题 -->
<!-- <view class="sectionContainer">
<view class="sectionLine"></view>
<view class="sectionTitle">猜你喜欢</view>
<view class="sectionLine"></view>
</view> -->
<view class='titleContainer'>
<view class='titleLine'></view>
<view class='titleDesc'> 为你优选</view>
</view>
<!--猜你喜欢列表-->
<view class="likeContainer">
<block wx:for="{{recommdData}}" wx:key="{{index}}">
<productListCell item="{{item}}" page-name="{{current_page_name}}"></productListCell>
</block>
</view>
<view class="my-service" style="display:none">
<view class="service-type clearfix">
<text class="service-text">更多优质服务,您可以选择:\n1.关注微信服务号“ YOHOBUY有货”咨询在线客服\n2.拨打 400-889-9646 电话客服</text>
</view>
</view>
</view>
</view>
</scroll-view>
<quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{true}}" isShowMenu="{{false}}" marginBottom="{{50}}" bind:backToTop="backToTop"></quickNavigation>
<import src="../../vendors/toast/wetoast.ttml" />
<template is="wetoast" data="{{...__wetoast__}}" />
<import src="../../vendors/zanui/toast/index.ttml"/>
<template is="zan-toast" data="{{zanToast}}"/>