home.hbs
5.95 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
<div class="my-page yoho-page">
<div class="my-header">
{{#isLogin}}
<a class="user-info" href="/home/mydetails">
<span class="user-avatar" data-avatar="{{image headIco 128 128}}"></span>
<span class="username">{{profileName}}</span>
{{#vipInfo}}
<span class="vip-icon vip-{{cur_level}}"></span>
{{/vipInfo}}
{{#if students}}
<span class="vip-icon students"></span>
{{/if}}
<div class="iconfont more-icon tap-hightlight"></div>
</a>
{{#unless students}}
{{#if @root.studentSwitch}}
<a class="students-entry" href="{{verifyUrl}}">学生认证</a>
{{/if}}
{{/unless}}
{{^}}
<div class="user-info">
<a class="login-btn" href="{{signinUrl}}" data-refer="{{referUrl}}">
登录/注册
</a>
{{#if @root.studentSwitch}}
<a class="students-entry" href="{{verifyUrl}}">学生认证</a>
{{/if}}
</div>
{{/isLogin}}
</div>
<div class="my-link clearfix {{^isLogin}}no-login{{/isLogin}}">
<a class="link-item tap-hightlight" href="/home/favorite">
{{#isLogin}}{{productFavoriteTotal}}{{/isLogin}}
<p>收藏的商品</p>
</a>
<a class="link-item tap-hightlight" href="/home/favorite?tab=brand">
{{#isLogin}}{{brandFavoriteTotal}}{{/isLogin}}
<p>收藏的品牌</p>
</a>
<a class="link-item tap-hightlight" href="/home/record">
{{#isLogin}}{{productBrowse}}{{/isLogin}}
<p>浏览记录</p>
</a>
</div>
{{#if notice.open}}
<div class="notice" data-time="{{notice.time}}">
{{#notice}}
<a class="notice-item item-{{@index}}" href="{{url}}">
<span class="notice-icon"></span>
{{title}}
</a>
{{/notice}}
</div>
<div class="my-order">
{{^}}
<div class="my-order my-order-top">
{{/if}}
<a class="order-title" href="/home/orders">
我的订单
<span class="iconfont">
查看全部订单 
</span>
</a>
<div class="order-type clearfix">
<a class="type-item" href="/home/orders?type=2">
<span class="iconfont"></span>
<br>待付款
{{#if waitPayNum}}
<span class="num">{{waitPayNum}}</span>
{{/if}}
</a>
<a class="type-item" href="/home/orders?type=3">
<span class="iconfont"></span>
<br>待发货
{{#if waitCargoNum}}
<span class="num">{{waitCargoNum}}</span>
{{/if}}
</a>
<a class="type-item" href="/home/orders?type=4">
<span class="iconfont"></span>
<br>待收货
{{#if sendCargoNum}}
<span class="num">{{sendCargoNum}}</span>
{{/if}}
</a>
</div>
</div>
<div class="group-list">
<a class="list-item" href="/home/address">
<span class="iconfont icon"></span>
地址管理
<span class="iconfont num">{{addressNum}} </span>
</a>
</div>
<div class="group-list">
<a class="list-item" href="/home/coupons">
<span class="iconfont icon"></span>
优惠券
<span class="iconfont num">{{couponNum}} </span>
</a>
<a class="list-item" href="/home/mycurrency">
<span class="iconfont icon"></span>
有货币
<span class="iconfont num">{{yohoCoinNum}} </span>
</a>
</div>
<div class="group-list">
<a class="list-item" href="/home/message">
<span class="iconfont icon"></span>
消息
<span class="iconfont num">{{inboxTotal}} </span>
</a>
</div>
<div class="group-list">
<a class="list-item" href="/service/chatQaList">
<span class="iconfont icon"></span>
服务与反馈
<span class="iconfont num"></span>
</a>
</div>
{{! 资源位}}
<div class="res-c">
<div class="resource-content">
{{> content}}
</div>
</div>
{{!--
<div class="group-list">
<a class="list-item" href="/home/onlineService">
<span class="iconfont icon"></span>
在线客服
<span class="iconfont num"></span>
</a>
<a class="list-item" href="/home/suggest">
<span class="opinion"></span>
意见反馈
<span class="iconfont num"></span>
</a>
</div>
<div class="group-list">
<a class="list-item" href="/home/help">
<span class="iconfont icon"></span>
帮助
<span class="iconfont num"></span>
</a>
</div>
--}}
{{#unless @root.wap.ucenter.removePrefer}}
{{> common/recommend-for-you}}
{{/unless}}
</div>
{{> footer-tab}}