userCenter.ttml
4.77 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
<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">
<button tt:if="{{!isLogin}}" class="login-btn" bindtap="getUserInfo">登录/注册</button>
<block tt:else>
<image src="{{userInfo.avatarUrl}}" class="user-avatar"></image>
<view class="username">{{userInfo.nickName}}</view>
<image tt:if="{{userInfo.uid}}" class='vip-icon-image' src='{{vipImg}}'></image>
</block>
</view>
</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>
</view>
<view class="view-splite clearfix">
</view>
<!-- <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' tt:if='{{infoNum.coupon_num?true:false}}'>{{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='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"/>
<view class='address-back-view' style='border-top:0;border-bottom:0' catchtap='navToServiceFeedBack'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="../../images/fwyfk-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"/>
<view class='titleContainer'>
<view class='titleLine'></view>
<view class='titleDesc'> 猜你喜欢</view>
</view>
<!--猜你喜欢列表-->
<view class="likeContainer">
<block tt:for="{{recommdData}}" tt:key="{{index}}">
<productListCell item="{{item}}" page-name="{{current_page_name}}"></productListCell>
</block>
</view>
</view>
</view>
</scroll-view>