Authored by chenglong.wang

Merge branch 'feature/header-footer' into 'web'

Feature/header footer

YOHOBUY公共导航和底部

See merge request !21

Too many changes to show.

To preserve performance only 20 of 20+ files are displayed.

@@ -387,4 +387,100 @@ @@ -387,4 +387,100 @@
387 ... 387 ...
388 ] 388 ]
389 } 389 }
  390 + }
  391 +
  392 +## 站点头部
  393 + {
  394 + gobuytype: 'gobuyboys',//购物车样式
  395 + searchcate: 'searchcateboys', //搜索栏样式
  396 + navbars: [{//一级导航
  397 + name_cn: '男生',
  398 + name_en: 'BOYS',
  399 + link: '',
  400 + classname: 'boys',
  401 + index_main: 0,
  402 + subnav: [{
  403 + name: '新品到着',
  404 + link: '',
  405 + index_sub:0,
  406 + thirdnav: [
  407 + {
  408 + title: '上装',
  409 + branditems: [
  410 + {
  411 + brandname: '背心',
  412 + link: ''
  413 + },
  414 + {
  415 + brandname: 'T恤',
  416 + link: ''
  417 + },
  418 + {
  419 + brandname: '衬衫',
  420 + link: ''
  421 + },
  422 + {
  423 + brandname: 'POLO',
  424 + link: ''
  425 + },
  426 + {
  427 + brandname: '毛衣/针织',
  428 + link: ''
  429 + }]
  430 + }
  431 + ]
  432 + }, {
  433 + name: '品牌一览',
  434 + link: '',
  435 + thirdnav: []
  436 + }]
  437 + }],
  438 + myyoho: {
  439 + email: 'caomei@163.com',
  440 + viptype: '普通会员',
  441 + currentscore: 495,
  442 + totalscore: 600,
  443 + cardtype: '银卡',
  444 + infolist: [{
  445 + name: '待处理的订单',
  446 + link: '',
  447 + num: '0'
  448 + }, {
  449 + name: '我的收藏',
  450 + link: '',
  451 + num: '1'
  452 + }, {
  453 + name: '我的优惠券',
  454 + link: '',
  455 + num: '2'
  456 + }, {
  457 + name: '我的YOHO币',
  458 + link: '',
  459 + num: '1'
  460 + }, {
  461 + name: '我的退货换货',
  462 + link: '',
  463 + num: '1'
  464 + }],
  465 + updlink: ''
  466 + },
  467 + gobuy: {
  468 + gobuynum: 3
  469 + },
  470 + breadcrumbnav: [{
  471 + notend: {
  472 + link: 'http://www.yohobuy.com',
  473 + name: 'BOYS首页'
  474 + }
  475 + }, {
  476 + notend: {
  477 + link: 'http://www.yohobuy.com',
  478 + name: '上衣'
  479 + }
  480 + }, {
  481 + isend: {
  482 + link: 'http://list.yohobuy.com/?msort=1&gender=1,3',
  483 + name: '衬衫'
  484 + }
  485 + }]
390 } 486 }
No preview for this file type
1 <div class="yoho-footer"> 1 <div class="yoho-footer">
2 <div class="footertop"> 2 <div class="footertop">
3 <div class="index-foot"> 3 <div class="index-foot">
4 - <dl class="clearfix screen"> 4 + <dl class="center-content clearfix">
5 <dd> 5 <dd>
6 <div class="foot-panel"> 6 <div class="foot-panel">
7 - <div class="title relative"> 7 + <div class="title">
8 <div class="title-line"></div> 8 <div class="title-line"></div>
9 <div class="text"> 9 <div class="text">
10 <span>有货SERVICES</span> 10 <span>有货SERVICES</span>
11 </div> 11 </div>
12 </div> 12 </div>
13 <div id="foot-services"> 13 <div id="foot-services">
14 - <ul class="clearfix two-dim"> 14 + <ul class="two-dim clearfix">
15 <li class="left"> 15 <li class="left">
16 - <div class="">  
17 - <a href="javascript:void(0);">  
18 - <img class="dim-img lazy" data-original="http://img11.static.yhbimg.com/adpic/2014/03/20/16/01863b297051f11c2be833785566cf11d1.png" src="http://img11.static.yhbimg.com/adpic/2014/03/20/16/01863b297051f11c2be833785566cf11d1.png" style=""></a>  
19 - <p>YOHO!有货</p>  
20 - </div> 16 + <img class="dim-img lazy" data-original="http://img11.static.yhbimg.com/adpic/2014/03/20/16/01863b297051f11c2be833785566cf11d1.png">
  17 + <p>YOHO!有货</p>
21 </li> 18 </li>
22 <li class="left"> 19 <li class="left">
23 - <div class="">  
24 - <a href="javascript:void(0);">  
25 - <img class="dim-img lazy" data-original="http://img12.static.yhbimg.com/adpic/2014/04/11/14/022ddc2b6d6b2fcabee8cdc03735e5687e.jpg" src="http://img12.static.yhbimg.com/adpic/2014/04/11/14/022ddc2b6d6b2fcabee8cdc03735e5687e.jpg" style=""></a>  
26 - <p>微信</p>  
27 - </div> 20 + <img class="dim-img lazy" data-original="http://img12.static.yhbimg.com/adpic/2014/04/11/14/022ddc2b6d6b2fcabee8cdc03735e5687e.jpg">
  21 + <p>微信</p>
28 </li> 22 </li>
29 <li class="left"> 23 <li class="left">
30 - <div class="">  
31 - <a href="javascript:void(0);">  
32 - <img class="dim-img lazy" data-original="http://img13.static.yhbimg.com/adpic/2014/03/20/16/02e69d0afa222cf173d17411fd04be380e.png" src="http://img13.static.yhbimg.com/adpic/2014/03/20/16/02e69d0afa222cf173d17411fd04be380e.png" style="display: inline;"></a>  
33 - <p>微博</p>  
34 - </div> 24 + <img class="dim-img lazy" data-original="http://img13.static.yhbimg.com/adpic/2014/03/20/16/02e69d0afa222cf173d17411fd04be380e.png">
  25 + <p>微博</p>
35 </li> 26 </li>
36 </ul> 27 </ul>
37 </div> 28 </div>
38 </div> 29 </div>
39 - <p class="item-nav center" id="button-services">  
40 - <a href="javascript:void(0);" key="0">  
41 - <span class="ifont10 cur">O</span>  
42 - </a> 30 + <p class="item-nav center">
  31 + <span class="iconfont cur" key="0">&#xe619;</span>
43 </p> 32 </p>
44 </dd> 33 </dd>
45 <dd> 34 <dd>
46 - <div class="foot-panel" id="feedbackBoxList">  
47 - <div class="title relative"> 35 + <div id="feed-back-box-list" class="foot-panel">
  36 + <div class="title">
48 <div class="title-line"></div> 37 <div class="title-line"></div>
49 <div class="text"> 38 <div class="text">
50 <span>意见反馈</span> 39 <span>意见反馈</span>
51 </div> 40 </div>
52 </div> 41 </div>
53 - <ul class="clearfix vote">  
54 - <li style="display:block" key="0">  
55 - <form action="#" id="feedbackForm">  
56 - <input type="hidden" name="question_id" id="question_id" value="38">  
57 - <input type="hidden" name="feedback_id" id="feedback_id" value="5"> 42 + <ul class="vote clearfix">
  43 + <li key="0">
  44 + <form class="feed-back-form" action="#">
58 <div>您喜欢有货的新版吗?</div> 45 <div>您喜欢有货的新版吗?</div>
59 <div class="vote-item clearfix"> 46 <div class="vote-item clearfix">
60 <p> 47 <p>
61 - <input type="radio" name="solution" value="33">非常喜欢</p> 48 + <input type="radio" name="solution" value="33">非常喜欢
  49 + </p>
62 <p> 50 <p>
63 - <input type="radio" name="solution" value="34">喜欢</p> 51 + <input type="radio" name="solution" value="34">喜欢
  52 + </p>
64 <p> 53 <p>
65 - <input type="radio" name="solution" value="35">一般般</p> 54 + <input type="radio" name="solution" value="35">一般般
  55 + </p>
66 <p> 56 <p>
67 - <input type="radio" name="solution" value="36">不喜欢</p> 57 + <input type="radio" name="solution" value="36">不喜欢
  58 + </p>
68 <p> 59 <p>
69 - <input type="radio" name="solution" value="37">非常不喜欢</p> 60 + <input type="radio" name="solution" value="37">非常不喜欢
  61 + </p>
70 </div> 62 </div>
71 <div> 63 <div>
72 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a> 64 + <span class="feed-back-btn button">提交</span>
73 </div> 65 </div>
  66 + <input class="question-id" type="hidden" name="question_id" value="38">
  67 + <input class="feedback-id" type="hidden" name="feedback_id" value="5">
74 </form> 68 </form>
75 </li> 69 </li>
76 - <li style="display:none" key="1">  
77 - <form action="#" id="feedbackForm">  
78 - <input type="hidden" name="question_id" id="question_id" value="39">  
79 - <input type="hidden" name="feedback_id" id="feedback_id" value="5"> 70 + <li class="hide" key="1">
  71 + <form class="feed-back-form" action="#">
80 <div>您可以方便的找到想查看的内容吗?</div> 72 <div>您可以方便的找到想查看的内容吗?</div>
81 <div class="vote-item clearfix"> 73 <div class="vote-item clearfix">
82 <p> 74 <p>
83 - <input type="radio" name="solution" value="38">非常方便</p> 75 + <input type="radio" name="solution" value="38">非常方便
  76 + </p>
84 <p> 77 <p>
85 - <input type="radio" name="solution" value="39">方便</p> 78 + <input type="radio" name="solution" value="39">方便
  79 + </p>
86 <p> 80 <p>
87 - <input type="radio" name="solution" value="40">一般般</p> 81 + <input type="radio" name="solution" value="40">一般般
  82 + </p>
88 <p> 83 <p>
89 - <input type="radio" name="solution" value="41">不方便</p> 84 + <input type="radio" name="solution" value="41">不方便
  85 + </p>
90 <p> 86 <p>
91 - <input type="radio" name="solution" value="42">非常不方便</p> 87 + <input type="radio" name="solution" value="42">非常不方便
  88 + </p>
92 </div> 89 </div>
93 <div> 90 <div>
94 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a> 91 + <span class="feed-back-btn button">提交</span>
95 </div> 92 </div>
  93 + <input class="question-id" type="hidden" value="39">
  94 + <input class="feedback-id" type="hidden" value="5">
96 </form> 95 </form>
97 </li> 96 </li>
98 - <li style="display:none" key="2">  
99 - <form action="#" id="feedbackForm">  
100 - <input type="hidden" name="question_id" id="question_id" value="37">  
101 - <input type="hidden" name="feedback_id" id="feedback_id" value="5"> 97 + <li class="hide" key="2">
  98 + <form class="feed-back-form" action="#">
102 <div>您对新版还有哪些意见或建议?</div> 99 <div>您对新版还有哪些意见或建议?</div>
103 - <textarea name="answer" id="feedback_answer"></textarea> 100 + <textarea name="answer" id="feedback-answer"></textarea>
104 <div> 101 <div>
105 - <a href="javascript:void(0);" id="feedbackBtn" class="button">提交</a> 102 + <span class="feed-back-btn button">提交</span>
106 </div> 103 </div>
  104 + <input class="question-id" type="hidden" value="37">
  105 + <input class="feedback-id" type="hidden" value="5">
107 </form> 106 </form>
108 </li> 107 </li>
109 </ul> 108 </ul>
110 </div> 109 </div>
111 - <p class="item-nav center" id="feedbackPage">  
112 - <a href="javascript:void(0);">  
113 - <span class="ifont10 cur">O</span>  
114 - </a>  
115 - <a href="javascript:void(0);">  
116 - <span class="ifont10 ">o</span>  
117 - </a>  
118 - <a href="javascript:void(0);">  
119 - <span class="ifont10 ">o</span>  
120 - </a> 110 + <p id="feed-back-page" class="item-nav center">
  111 + <span class="iconfont cur">&#xe619;</span>
  112 + <span class="iconfont ">&#xe619;</span>
  113 + <span class="iconfont ">&#xe619;</span>
121 </p> 114 </p>
122 </dd> 115 </dd>
123 <dd class="last"> 116 <dd class="last">
124 <div class="foot-panel"> 117 <div class="foot-panel">
125 - <div class="title relative"> 118 + <div class="title">
126 <div class="title-line"></div> 119 <div class="title-line"></div>
127 <div class="text"> 120 <div class="text">
128 <span>更多 YOHO!产品</span> 121 <span>更多 YOHO!产品</span>
129 </div> 122 </div>
130 </div> 123 </div>
131 <div id="foot-mobile"> 124 <div id="foot-mobile">
132 - <ul class="clearfix mobile"> 125 + <ul class="mobile clearfix">
133 <li> 126 <li>
134 - <a href="http://app.yohoshow.com/" target="_blank" titl="">  
135 - <img alt="" data-original="http://img13.static.yhbimg.com/adpic/2014/07/21/15/02d5e1cbc15ab59856f4a758fa860462ed.jpg" class="lazy" src="http://img13.static.yhbimg.com/adpic/2014/07/21/15/02d5e1cbc15ab59856f4a758fa860462ed.jpg" style=""></a> 127 + <a href="http://app.yohoshow.com/" target="_blank">
  128 + <img class="lazy" data-original="http://img13.static.yhbimg.com/adpic/2014/07/21/15/02d5e1cbc15ab59856f4a758fa860462ed.jpg">
  129 + </a>
136 </li> 130 </li>
137 <li> 131 <li>
138 - <a href="http://www.yohoboys.com/" target="_blank" titl="">  
139 - <img alt="" data-original="http://img13.static.yhbimg.com/adpic/2014/07/21/15/0210a3490eae2aad6ef8bf3b8133a49ca9.jpg" class="lazy" src="http://img13.static.yhbimg.com/adpic/2014/07/21/15/0210a3490eae2aad6ef8bf3b8133a49ca9.jpg" style=""></a> 132 + <a href="http://www.yohoboys.com/" target="_blank">
  133 + <img class="lazy" data-original="http://img13.static.yhbimg.com/adpic/2014/07/21/15/0210a3490eae2aad6ef8bf3b8133a49ca9.jpg">
  134 + </a>
140 </li> 135 </li>
141 <li> 136 <li>
142 - <a href="http://www.yohogirls.com/" target="_blank" titl="">  
143 - <img alt="" data-original="http://img11.static.yhbimg.com/adpic/2014/07/21/15/018be2a193424658b5201240ef8c7729e6.jpg" class="lazy" src="http://img11.static.yhbimg.com/adpic/2014/07/21/15/018be2a193424658b5201240ef8c7729e6.jpg" style=""></a> 137 + <a href="http://www.yohogirls.com/" target="_blank">
  138 + <img class="lazy" data-original="http://img11.static.yhbimg.com/adpic/2014/07/21/15/018be2a193424658b5201240ef8c7729e6.jpg">
  139 + </a>
144 </li> 140 </li>
145 </ul> 141 </ul>
146 </div> 142 </div>
147 </div> 143 </div>
148 - <p class="item-nav center" id="button-mobile">  
149 - <a href="javascript:void(0);">  
150 - <span class="ifont10 cur">O</span>  
151 - </a> 144 + <p class="item-nav center">
  145 + <span class="iconfont cur">&#xe619;</span>
152 </p> 146 </p>
153 </dd> 147 </dd>
154 </dl> 148 </dl>
@@ -156,39 +150,36 @@ @@ -156,39 +150,36 @@
156 </div> 150 </div>
157 <div class="footerbottom"> 151 <div class="footerbottom">
158 <div class="promise"> 152 <div class="promise">
159 - <div class="screen clearfix"> 153 + <div class="center-content clearfix">
160 <div class="left"> 154 <div class="left">
161 - <span class="ifont rgbf">g</span> 155 + <span class="iconfont rgbf">g</span>
162 <span class="red">100%</span> 156 <span class="red">100%</span>
163 <span class="rgbf">品牌授权正品</span> 157 <span class="rgbf">品牌授权正品</span>
164 </div> 158 </div>
165 <div class="left"> 159 <div class="left">
166 - <span class="ifont rgbf">L</span> 160 + <span class="iconfont rgbf">L</span>
167 <span class="red">7天</span> 161 <span class="red">7天</span>
168 <span class="rgbf">无理由退换货</span> 162 <span class="rgbf">无理由退换货</span>
169 </div> 163 </div>
170 <div class="left"> 164 <div class="left">
171 - <span class="ifont rgbf">p</span> 165 + <span class="iconfont rgbf">p</span>
172 <span class="rgbf">客服电话:</span> 166 <span class="rgbf">客服电话:</span>
173 <span class="red">400-889-9646</span> 167 <span class="red">400-889-9646</span>
174 &nbsp;&nbsp; 168 &nbsp;&nbsp;
175 <span class="rgb9">08:00-22:30(周一至周日)</span> 169 <span class="rgb9">08:00-22:30(周一至周日)</span>
176 &nbsp;&nbsp; 170 &nbsp;&nbsp;
177 <span> 171 <span>
178 - <a href="http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&amp;configID=123576&amp;jid=9277320930" target="_blank" style="color:red">在线客服</a> 172 + <a class="red" href="http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&amp;configID=123576&amp;jid=9277320930" target="_blank">在线客服</a>
179 </span> 173 </span>
180 </div> 174 </div>
181 <div class="right subscribe footer-right"> 175 <div class="right subscribe footer-right">
182 - <input class="rgb6 top" name="subscriberBox" id="subscriberBox" value="订阅我们的邮件">  
183 - <a href="javascript:void(0);" id="subscriberBtn" class="ifont rgbf">m</a>  
184 - <!--<input class="rgb6 top wrong" value="订阅我们的邮件" />  
185 - <a href="" class="ifont rgbf done">=</a>  
186 - --> 176 + <input id="subscriber-box" class="rgb6 top" name="subscriberBox"value="订阅我们的邮件">
  177 + <a id="subscriber-btn" href="javascript:void(0);" class="ifont rgbf">m</a>
187 </div> 178 </div>
188 </div> 179 </div>
189 </div> 180 </div>
190 <div class="footer-help"> 181 <div class="footer-help">
191 - <div class="screen clearfix"> 182 + <div class="center-content clearfix">
192 <div class="left"> 183 <div class="left">
193 <ul class="clearfix"> 184 <ul class="clearfix">
194 <li class="left"> 185 <li class="left">
@@ -315,12 +306,14 @@ @@ -315,12 +306,14 @@
315 </div> 306 </div>
316 </div> 307 </div>
317 <div class="footer-link"> 308 <div class="footer-link">
318 - <div class="screen clearfix"> 309 + <div class="center-content clearfix">
319 <div class="left right-flag"> 310 <div class="left right-flag">
320 <a href="https://ss.knet.cn/verifyseal.dll?sn=e14021832010046477dka7000000&amp;ct=df&amp;a=1&amp;pa=0.5902942178957805" target="_blank" rel="nofollow"> 311 <a href="https://ss.knet.cn/verifyseal.dll?sn=e14021832010046477dka7000000&amp;ct=df&amp;a=1&amp;pa=0.5902942178957805" target="_blank" rel="nofollow">
321 - <img src="http://static.yohobuy.com/images/v3/icon/credit-flag3.png"></a> 312 + <img src="http://static.yohobuy.com/images/v3/icon/credit-flag3.png">
  313 + </a>
322 <a href="http://www.isc.org.cn/" target="_blank" rel="nofollow"> 314 <a href="http://www.isc.org.cn/" target="_blank" rel="nofollow">
323 - <img src="http://static.yohobuy.com/images/v3/icon/isc2.png"></a> 315 + <img src="http://static.yohobuy.com/images/v3/icon/isc2.png">
  316 + </a>
324 </div> 317 </div>
325 <div class="left about-us"> 318 <div class="left about-us">
326 <p> 319 <p>
@@ -340,7 +333,7 @@ @@ -340,7 +333,7 @@
340 </p> 333 </p>
341 <p> 334 <p>
342 CopyRight © 2007-2016 南京新与力文化传播有限公司 335 CopyRight © 2007-2016 南京新与力文化传播有限公司
343 - <a href="http://www.miibeian.gov.cn/" target="_blank" style="color:#666">苏ICP备09011225号</a> 336 + <a class="rbg6" href="http://www.miibeian.gov.cn/" target="_blank">苏ICP备09011225号</a>
344 NewPower Co. 版权所有 经营许可证编号:苏B2-20120395 337 NewPower Co. 版权所有 经营许可证编号:苏B2-20120395
345 </p> 338 </p>
346 </div> 339 </div>
@@ -348,4 +341,7 @@ @@ -348,4 +341,7 @@
348 </div> 341 </div>
349 </div> 342 </div>
350 </div> 343 </div>
  344 + <div class="return-top">
  345 + <span class="iconfont">&#xe610;</span>
  346 + </div>
351 </div> 347 </div>
@@ -102,7 +102,11 @@ @@ -102,7 +102,11 @@
102 {{/thirdnav}} 102 {{/thirdnav}}
103 </div> 103 </div>
104 </div> 104 </div>
105 - <div class="showdetail" data-code="220eec926e0d2c48b2f7e36fb9c42b83"><a href="http://list.yohobuy.com/?gender=1,3&amp;msort=8"><img src="http://img12.static.yhbimg.com/yhb-img01/2015/10/30/06/02af834d146e3f00b1f5fcc8388f641922.jpg?imageView/1/w/337/h/250" alt="" style=""></a><a class="title" href="http://list.yohobuy.com/?gender=1,3&amp;msort=8">热门小物优选</a></div> 105 + <div class="showdetail" data-code="220eec926e0d2c48b2f7e36fb9c42b83">
  106 + <a href="http://list.yohobuy.com/?gender=1,3&amp;msort=8">
  107 + <img src="http://img12.static.yhbimg.com/yhb-img01/2015/10/30/06/02af834d146e3f00b1f5fcc8388f641922.jpg?imageView/1/w/337/h/250" alt="" style=""></a>
  108 + <a class="title" href="http://list.yohobuy.com/?gender=1,3&amp;msort=8">热门小物优选</a>
  109 + </div>
106 </div> 110 </div>
107 </div> 111 </div>
108 </li> 112 </li>
@@ -132,241 +136,163 @@ @@ -132,241 +136,163 @@
132 </div> 136 </div>
133 </div> 137 </div>
134 </div> 138 </div>
  139 +{{/headerdata}}
135 <div id="goodcartempwarpper"> 140 <div id="goodcartempwarpper">
136 <script type="text/html" id="mini-cart-tpl"> 141 <script type="text/html" id="mini-cart-tpl">
137 -<div class="gobuy-notempty">  
138 - <div class="goods-list-wrapper"> 142 + \{\{#carData\}\}
  143 + <div class="gobuy-notempty">
  144 + <div class="goods-list-wrapper">
139 <ul class="goods-list"> 145 <ul class="goods-list">
140 - %L~it.cartData.main_goods :v:index%R 146 + \{\{#main_goods\}\}
141 <li class="goods-item"> 147 <li class="goods-item">
142 - <a href="%L=v.product_url%R">  
143 - <img src="%L=v.default_img%R" alt="" class="goods-img" /> 148 + <a href="\{\{product_url\}\}">
  149 + <img src="\{\{default_img\}\}" alt="" class="goods-img" />
144 </a> 150 </a>
145 <div class="goods-detail float-left"> 151 <div class="goods-detail float-left">
146 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3> 152 + <h3 class="content"><a href="\{\{product_url\}\}">\{\{product_name\}\}</a></h3>
147 <h3 class="style"> 153 <h3 class="style">
148 颜色: 154 颜色:
149 - <span class="color">%L=v.color_name%R</span> 155 + <span class="color">\{\{color_name\}\}</span>
150 尺码: 156 尺码:
151 - <span class="size">%L=v.size_name%R</span> 157 + <span class="size">\{\{size_name\}\}</span>
152 </h3> 158 </h3>
153 </div> 159 </div>
154 <div class="goods-price float-left"> 160 <div class="goods-price float-left">
155 <h3 class="priceandnum"> 161 <h3 class="priceandnum">
156 - <span class="price">%L=v.show_price%R</span> 162 + <span class="price">\{\{show_price\}\}</span>
157 x 163 x
158 - <span class="num">%L=v.buy_number%R</span> 164 + <span class="num">\{\{buy_number\}\}</span>
159 </h3> 165 </h3>
160 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a> 166 + <a href="javascript:void(0)" class="delete goodscardelete" goodsid=\{\{goods_incart_id\}\} cheapest=\{\{is_cheapest_free\}\}>删除</a>
161 </div> 167 </div>
162 </li> 168 </li>
163 - %L~%R  
164 - %L~it.cartData.advance_goods :v:index%R 169 + \{\{/main_goods\}\}
  170 + \{\{#advance_goods\}\}
165 <li class="goods-item"> 171 <li class="goods-item">
166 - <a href="%L=v.product_url%R">  
167 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a> 172 + <a href="\{\{product_url\}\}">
  173 + <img src="\{\{default_img\}\}" alt="" class="goods-img"></a>
168 <div class="goods-detail float-left"> 174 <div class="goods-detail float-left">
169 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3> 175 + <h3 class="content"><a href="\{\{product_url\}\}">\{\{product_name\}\}</a></h3>
170 <h3 class="style"> 176 <h3 class="style">
171 颜色: 177 颜色:
172 - <span class="color">%L=v.color_name%R</span> 178 + <span class="color">\{\{color_name\}\}</span>
173 尺码: 179 尺码:
174 - <span class="size">%L=v.size_name%R</span> 180 + <span class="size">\{\{size_name\}\}</span>
175 </h3> 181 </h3>
176 </div> 182 </div>
177 <div class="goods-price float-left"> 183 <div class="goods-price float-left">
178 <h3 class="priceandnum"> 184 <h3 class="priceandnum">
179 185
180 - <span class="price">%L=v.show_price%R</span> 186 + <span class="price">\{\{show_price\}\}</span>
181 x 187 x
182 - <span class="num">%L=v.buy_number%R</span> 188 + <span class="num">\{\{buy_number\}\}</span>
183 </h3> 189 </h3>
184 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a> 190 + <a href="javascript:void(0)" class="delete goodscardelete" goodsid=\{\{goods_incart_id\}\} cheapest=\{\{is_cheapest_free\}\}>删除</a>
185 </div> 191 </div>
186 </li> 192 </li>
187 - %L~%R  
188 - %L~it.cartData.outlet_goods :v:index%R 193 + \{\{/advance_goods\}\}
  194 + \{\{# outlet_goods\}\}
189 <li class="goods-item"> 195 <li class="goods-item">
190 - <a href="%L=v.product_url%R">  
191 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a> 196 + <a href="\{\{product_url\}\}">
  197 + <img src="\{\{default_img\}\}" alt="" class="goods-img"></a>
192 <div class="goods-detail float-left"> 198 <div class="goods-detail float-left">
193 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3> 199 + <h3 class="content"><a href="\{\{product_url\}\}">\{\{product_name\}\}</a></h3>
194 <h3 class="style"> 200 <h3 class="style">
195 颜色: 201 颜色:
196 - <span class="color">%L=v.color_name%R</span> 202 + <span class="color">\{\{color_name\}\}</span>
197 尺码: 203 尺码:
198 - <span class="size">%L=v.size_name%R</span> 204 + <span class="size">\{\{size_name\}\}</span>
199 </h3> 205 </h3>
200 </div> 206 </div>
201 <div class="goods-price float-left"> 207 <div class="goods-price float-left">
202 <h3 class="priceandnum"> 208 <h3 class="priceandnum">
203 209
204 - <span class="price">%L=v.show_price%R</span> 210 + <span class="price">\{\{show_price\}\}</span>
205 x 211 x
206 - <span class="num">%L=v.buy_number%R</span> 212 + <span class="num">\{\{buy_number\}\}</span>
207 </h3> 213 </h3>
208 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a> 214 + <a href="javascript:void(0)" class="delete goodscardelete" goodsid=\{\{goods_incart_id\}\} cheapest=\{\{is_cheapest_free\}\}>删除</a>
209 </div> 215 </div>
210 </li> 216 </li>
211 - %L~%R  
212 - %L~it.cartData.gift_goods :v:index%R 217 + \{\{/outlet_goods\}\}
  218 + \{\{#gift_goods\}\}
213 <li class="goods-item"> 219 <li class="goods-item">
214 - <a href="%L=v.product_url%R">  
215 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a> 220 + <a href="\{\{product_url\}\}">
  221 + <img src="\{\{default_img\}\}" alt="" class="goods-img"></a>
216 <div class="goods-detail float-left"> 222 <div class="goods-detail float-left">
217 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3> 223 + <h3 class="content"><a href="\{\{product_url\}\}">\{\{product_name\}\}</a></h3>
218 <h3 class="style"> 224 <h3 class="style">
219 颜色: 225 颜色:
220 - <span class="color">%L=v.color_name%R</span> 226 + <span class="color">\{\{color_name\}\}</span>
221 尺码: 227 尺码:
222 - <span class="size">%L=v.size_name%R</span> 228 + <span class="size">\{\{size_name\}\}</span>
223 </h3> 229 </h3>
224 </div> 230 </div>
225 <div class="goods-price float-left"> 231 <div class="goods-price float-left">
226 <h3 class="priceandnum"> 232 <h3 class="priceandnum">
227 233
228 - <span class="price">%L=v.show_price%R</span> 234 + <span class="price">\{\{show_price\}\}</span>
229 x 235 x
230 - <span class="num">%L=v.buy_number%R</span> 236 + <span class="num">\{\{buy_number\}\}</span>
231 </h3> 237 </h3>
232 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a> 238 + <a href="javascript:void(0)" class="delete goodscardelete" goodsid=\{\{goods_incart_id\}\} cheapest=\{\{is_cheapest_free\}\}>删除</a>
233 </div> 239 </div>
234 </li> 240 </li>
235 - %L~%R  
236 - %L~it.cartData.need_pay_gifts :v:index%R 241 + \{\{/gift_goods\}\}
  242 + \{\{#need_pay_gifts\}\}
237 <li class="goods-item"> 243 <li class="goods-item">
238 - <a href="%L=v.product_url%R">  
239 - <img src="%L=v.default_img%R" alt="" class="goods-img"></a> 244 + <a href="\{\{product_url\}\}">
  245 + <img src="\{\{default_img\}\}" alt="" class="goods-img"></a>
240 <div class="goods-detail float-left"> 246 <div class="goods-detail float-left">
241 - <h3 class="content"><a href="%L=v.product_url%R">%L=v.product_name%R</a></h3> 247 + <h3 class="content"><a href="\{\{product_url\}\}">\{\{product_name\}\}</a></h3>
242 <h3 class="style"> 248 <h3 class="style">
243 颜色: 249 颜色:
244 - <span class="color">%L=v.color_name%R</span> 250 + <span class="color">\{\{color_name\}\}</span>
245 尺码: 251 尺码:
246 - <span class="size">%L=v.size_name%R</span> 252 + <span class="size">\{\{size_name\}\}</span>
247 </h3> 253 </h3>
248 </div> 254 </div>
249 <div class="goods-price float-left"> 255 <div class="goods-price float-left">
250 <h3 class="priceandnum"> 256 <h3 class="priceandnum">
251 257
252 - <span class="price">%L=v.show_price%R</span> 258 + <span class="price">\{\{show_price\}\}</span>
253 x 259 x
254 - <span class="num">%L=v.buy_number%R</span> 260 + <span class="num">\{\{buy_number\}\}</span>
255 </h3> 261 </h3>
256 - <a href="javascript:void(0)" class="delete" onclick="delCartGoods(%L=v.goods_incart_id%R,%L=v.is_cheapest_free%R);">删除</a> 262 + <a href="javascript:void(0)" class="delete goodscardelete" goodsid=\{\{goods_incart_id\}\} cheapest=\{\{is_cheapest_free\}\}>删除</a>
257 </div> 263 </div>
258 </li> 264 </li>
259 - %L~%R 265 + \{\{/need_pay_gifts\}\}
260 </ul> 266 </ul>
261 -  
262 <ul class="activity-list"> 267 <ul class="activity-list">
263 - %L? it.cartData.has_promotion == 1%R 268 + {{#equalone has_promotion\}\}
264 <li class="activity-item"> 269 <li class="activity-item">
265 <span class="activity-name">活动</span> 270 <span class="activity-name">活动</span>
266 <h3 class="activity-content"> 271 <h3 class="activity-content">
267 - %L? it.cartData.fit_outlet_promotion %R购outlet商品,满¥1999再享9折%L?%R  
268 - %L? it.cartData.has_other_promotion == 1 %R<span class="mycart_i_down" title="更多" onclick="dispDom(this, 'mycartmore');"></span>%L?%R  
269 - %L? it.cartData.has_first_promotion == 1 %R%L=it.cartData.first_promotions.promotion_title%R%L?%R 272 + \{\{fit_outlet_promotion \}\}购outlet商品,满¥1999再享9折\}\}
  273 + {{#equalone has_other_promotion\}\}
  274 + <span class="mycart_i_down" title="更多" ></span>
  275 + {{/equalone\}\}
  276 + \{\{#equalone has_first_promotion\}\}
  277 + \{\{first_promotions.promotion_title\}\}
  278 + \{\{/equalone\}\}
270 </h3> 279 </h3>
271 </li> 280 </li>
272 - %L?%R  
273 - %L? it.cartData.fit_free_shipping == 1%R 281 + \{\{/equalone\}\}
  282 + \{\{#equalone fit_free_shipping \}\}
274 <li class="activity-item"> 283 <li class="activity-item">
275 <span class="activity-name">免运费</span> 284 <span class="activity-name">免运费</span>
276 <h3 class="activity-content">全场满 499免运费</h3> 285 <h3 class="activity-content">全场满 499免运费</h3>
277 </li> 286 </li>
278 - %L?%R 287 + \{\{/equalone\}\}
279 </ul> 288 </ul>
280 </div> 289 </div>
281 -  
282 <div class="gobuy-notempty-footer"> 290 <div class="gobuy-notempty-footer">
283 <h3> 291 <h3>
284 <a href="<?php print QConfigs_Site_Config::$site_url;?>/shopping/cart">去购物车结算</a> 292 <a href="<?php print QConfigs_Site_Config::$site_url;?>/shopping/cart">去购物车结算</a>
285 </h3> 293 </h3>
286 </div> 294 </div>
287 -</div>  
288 -</script>  
289 - <script type="text/html" id="tmpl-my-login-new">  
290 -<div class="myyoho-info-header clearfix">  
291 - %L? it.head_ico %R  
292 - <div class="myyoho-photo" style="display:none;"><img src="" alt="" data-url ="%L=it.head_ico%R"></div>  
293 - %L?%R  
294 - <h3 class="user-email"><a href="<?php print QConfigs_Site_Config::$site_url?>/home?t=%L=it.random%R">%L=it.profile_name%R</a></h3>  
295 - <h3 class="user-level">  
296 - VIP:  
297 - <span class="leveldetail">%L=it.vip.curVipInfo.title%R</span>  
298 - </h3>  
299 - %L? it.vip.curVipInfo.curLevel < 3%R  
300 - <div class="levelinfo">  
301 - <div class="levelwrapper float-left">  
302 - <div class="levelspan">  
303 - <span class="has">%L=it.vip.curYearCost%R</span>  
304 - /  
305 - <span class="total">%L=it.vip.nextVipInfo.needCost%R</span>  
306 - </div>  
307 - <p class="%L? it.vip.curYearCostPer !=0%Rintegrate%L?%R" style="width: %L=it.vip.curYearCostPer%R%;"></p>  
308 - </div>  
309 - <span class="cardcate float-left">%L=it.vip.nextVipInfo.title%R</span>  
310 - </div>  
311 - %L?%R  
312 -</div>  
313 -<ul class="myyoho-info-content">  
314 - <li class="item">  
315 - <span class="itemdetail float-left">  
316 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/orders?t=<?php print microtime(true);?>">待处理的订单</a>  
317 - </span>  
318 - <span class="itemnum float-right">%L=it.orderCount%R</span>  
319 - </li>  
320 - <li class="item">  
321 - <span class="itemdetail float-left">  
322 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/favorite?t=<?php print microtime(true);?>">我的收藏</a>  
323 - </span>  
324 - <span class="itemnum float-right"></span>  
325 - </li>  
326 - <li class="item">  
327 - <span class="itemdetail float-left">  
328 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/coupons?t=<?php print microtime(true);?>">我的优惠券</a>  
329 - </span>  
330 - <span class="itemnum float-right">%L=it.couponCount%R</span>  
331 - </li>  
332 - <li class="item">  
333 - <span class="itemdetail float-left">  
334 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/currency?t=<?php print microtime(true);?>">我的YOHO币</a>  
335 - </span>  
336 - <span class="itemnum float-right">%L=it.YohocoinCount%R</span>  
337 - </li>  
338 - <li class="item">  
339 - <span class="itemdetail float-left">  
340 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/returns?t=<?php print microtime(true);?>">我的退货换货</a>  
341 - </span>  
342 - <span class="itemnum float-right">%L=it.refundCount%R</span>  
343 - </li>  
344 -</ul>  
345 -<div class="myyoho-info-footer">  
346 - <a href="<?php print QConfigs_Site_Config::$site_url?>/home/user?t=<?php print microtime(true);?>">完善资料</a>  
347 -</div>  
348 -</script>  
349 - <script type="text/html" id="tmpl-nologin">  
350 -<span>Hi~</span>[<a href="<?php print QConfigs_Site_Config::$site_url;?>/signin.html" class="list-a login-out">请登录</a>]&nbsp;[<a href="<?php print QConfigs_Site_Config::$site_url;?>/reg.html" class="list-a login-out" onclick="getSource('会员部_注册统计','免费注册','homepage_man');">免费注册</a>]  
351 -</script>  
352 - <script type="text/html" id="tmpl-login">  
353 -<span>Hi~<a href="<?php print QConfigs_Site_Config::$site_url;?>/home?t=<?php print microtime(true);?>">%L=it.user_name%R</a></span>&nbsp;%L? it.is_login == 1%R[<a href="%L=it.logout%R" class="list-a login-out">退出</a>]%L??%R[<a href="<?php print QConfigs_Site_Config::$site_url;?>/signin.html" class="list-a login-out">请登录</a>]&nbsp;[<a href="<?php print QConfigs_Site_Config::$site_url;?>/reg.html" onclick="getSource('会员部_注册统计','免费注册','homepage_man');" class="list-a login-out">免费注册</a>]%L?%R  
354 -</script>  
355 - <script type="text/html" id="tmpl-my-noLogin">  
356 -<div class="account-login">  
357 - <div><a href="<?php print QConfigs_Site_Config::$site_url?>/signin.html" class="button">立即登录</a></div>  
358 - <div><span>新用户?</span><a href="<?php print QConfigs_Site_Config::$site_url?>/reg.html" onclick="getSource('会员部_注册统计','免费注册','homepage_man');">[免费注册]</a></div>  
359 -</div>  
360 -<ul class="home-layer">  
361 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/orders?t=<?php print microtime(true);?>" class="left">我的订单</a></li>  
362 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/favorite?t=<?php print microtime(true);?>" class="left">我的收藏</a></li>  
363 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/coupons?t=<?php print microtime(true);?>" class="left">我的优惠券</a></li>  
364 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/currency?t=<?php print microtime(true);?>" class="left">我的YOHO币</a></li>  
365 - <li class="clear"><a href="<?php print QConfigs_Site_Config::$site_url?>/home/returns?t=<?php print microtime(true);?>" class="left">我的退换货</a></li>  
366 -</ul>  
367 -</script>  
368 - <script type="text/html" id="tmpl-message">  
369 -<ul>%L~ it :v:index%R<li><a href="<?php print QConfigs_Site_Config::$site_url;?>/home/message/content?id=%L=v.id%R">%L=v.title%R</a></li>%L~%R</ul>  
370 -</script>  
371 -</div>  
372 -{{/headerdata}}  
  295 + \{\{/carData\}\}
  296 + </script>
  297 +
  298 +</div>
1 <script> 1 <script>
2 seajs.use('js/common'); 2 seajs.use('js/common');
3 - seajs.use('js/header',function(header) {  
4 - if(header) {  
5 - header.init();  
6 - }  
7 - });  
8 </script> 3 </script>
9 -  
10 {{!-- 首页 --}} 4 {{!-- 首页 --}}
11 {{#if boysHomePage}} 5 {{#if boysHomePage}}
12 <script> 6 <script>
13 - /*seajs.use('js/home/entrey', function(h) {  
14 - h.set('boys');  
15 - });*/  
16 seajs.use('js/home/home'); 7 seajs.use('js/home/home');
17 </script> 8 </script>
18 {{/if}} 9 {{/if}}
19 10
20 {{!-- 搜索 --}} 11 {{!-- 搜索 --}}
21 {{#if searchListPage}} 12 {{#if searchListPage}}
22 - <script>  
23 - seajs.use('js/product/list');  
24 - </script> 13 +<script>seajs.use('js/product/list');</script>
25 {{/if}} 14 {{/if}}
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3 <svg xmlns="http://www.w3.org/2000/svg"> 3 <svg xmlns="http://www.w3.org/2000/svg">
4 <metadata> 4 <metadata>
5 -Created by FontForge 20120731 at Wed Dec 2 17:34:20 2015 5 +Created by FontForge 20120731 at Fri Dec 4 15:54:33 2015
6 By Ads 6 By Ads
7 </metadata> 7 </metadata>
8 <defs> 8 <defs>
@@ -19,7 +19,7 @@ Created by FontForge 20120731 at Wed Dec 2 17:34:20 2015 @@ -19,7 +19,7 @@ Created by FontForge 20120731 at Wed Dec 2 17:34:20 2015
19 bbox="0 -214 1172.1 864" 19 bbox="0 -214 1172.1 864"
20 underline-thickness="50" 20 underline-thickness="50"
21 underline-position="-100" 21 underline-position="-100"
22 - unicode-range="U+0078-E616" 22 + unicode-range="U+0078-E619"
23 /> 23 />
24 <missing-glyph horiz-adv-x="374" 24 <missing-glyph horiz-adv-x="374"
25 d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> 25 d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" />
@@ -84,5 +84,13 @@ d="M704 569l-41 39l-343 -320l343 -320l41 39l-301 281z" /> @@ -84,5 +84,13 @@ d="M704 569l-41 39l-343 -320l343 -320l41 39l-301 281z" />
84 <glyph glyph-name="uniE616" unicode="&#xe616;" horiz-adv-x="1173" 84 <glyph glyph-name="uniE616" unicode="&#xe616;" horiz-adv-x="1173"
85 d="M586 588q-64 150 -188 203q-114 47 -222 -7q-112 -56 -155 -192q-20 -67 -21 -144q0 -41 9 -78.5t24 -66.5t39 -57.5t47 -48.5t55.5 -43t56.5 -38t58.5 -35.5t53.5 -33.5q63 -42 118 -94.5t86.5 -95t39.5 -69.5q4 19 25.5 50t53.5 66t75 74t88 71q21 15 53.5 35.5t58 36 85 d="M586 588q-64 150 -188 203q-114 47 -222 -7q-112 -56 -155 -192q-20 -67 -21 -144q0 -41 9 -78.5t24 -66.5t39 -57.5t47 -48.5t55.5 -43t56.5 -38t58.5 -35.5t53.5 -33.5q63 -42 118 -94.5t86.5 -95t39.5 -69.5q4 19 25.5 50t53.5 66t75 74t88 71q21 15 53.5 35.5t58 36
86 t57 38t55 43t47 48t39 56.5t25 66.5t8.5 78.5q0 75 -19.5 138t-52.5 105.5t-76.5 70.5t-91 37.5t-98 1t-96 -34.5t-85.5 -72.5t-67 -108.5z" /> 86 t57 38t55 43t47 48t39 56.5t25 66.5t8.5 78.5q0 75 -19.5 138t-52.5 105.5t-76.5 70.5t-91 37.5t-98 1t-96 -34.5t-85.5 -72.5t-67 -108.5z" />
  87 + <glyph glyph-name="uniE617" unicode="&#xe617;"
  88 +d="M500 775l-348 -298q-16 -14 -16 -35v-386q0 -16 8 -30t22 -22t30 -8h197v257h238v-257h197q25 0 42.5 17.5t17.5 42.5v386q0 10 -4.5 19t-11.5 16l-348 298q-3 2 -6 3.5t-6 1.5t-6 -1.5t-6 -3.5z" />
  89 + <glyph glyph-name="uniE618" unicode="&#xe618;" horiz-adv-x="1000"
  90 +d="M751 670q21 -20 34 -33t20 -23q3 -4 5 -8t3 -7t1.5 -6t0.5 -5v-13h-119q-4 0 -7.5 1.5t-6.5 4.5q-6 6 -10 14t-6 16.5t-2 12.5v100h3q3 0 6.5 -0.5t6.5 -1.5q7 -2 16 -8q4 -3 9.5 -7t12.5 -9q13 -10 33 -28zM614 624q0 -16 5 -33.5t15 -32t26 -24t38 -9.5h117v-451
  91 +q0 -24 -9.5 -42t-24.5 -31t-33.5 -20t-35.5 -7h-394q-15 0 -33 8.5t-33.5 23t-26.5 32.5q-2 5 -4 9.5t-3.5 9.5t-2 10t-0.5 10v543q0 9 2 17.5t6 17.5q7 18 20.5 33.5t30 25.5t35.5 10h305v-100zM664 125q21 0 35.5 14.5t14.5 35.5t-14.5 35.5t-35.5 14.5h-299
  92 +q-21 0 -35.5 -14.5t-14.5 -35.5t14.5 -35.5t35.5 -14.5h299zM714 374q0 21 -14.5 36t-35.5 15h-299q-21 0 -35.5 -15t-14.5 -36t14.5 -35t35.5 -14h299q21 0 35.5 14t14.5 35zM714 374z" />
  93 + <glyph glyph-name="uniE619" unicode="&#xe619;"
  94 +d="M512 515q47 0 88 -18t72 -49t49 -72t18 -89q0 -23 -4.5 -45t-13.5 -42q-18 -41 -49 -72t-72 -49q-20 -9 -42 -13.5t-46 -4.5q-47 0 -88 18t-72 49t-49 72t-18 87q0 48 18 89t49 72t72 49t88 18v0zM512 515z" />
87 </font> 95 </font>
88 </defs></svg> 96 </defs></svg>
@@ -5,6 +5,9 @@ @@ -5,6 +5,9 @@
5 */ 5 */
6 var $ = require('yoho.jquery'); 6 var $ = require('yoho.jquery');
7 7
  8 +require('./footer');
  9 +require('./header');
  10 +
8 function cookie(name) { 11 function cookie(name) {
9 var cookies = document.cookie, 12 var cookies = document.cookie,
10 cookieVal, 13 cookieVal,
  1 +/**
  2 + * 尾部
  3 + * @author: wangqing<robin.wang@yoho.cn>
  4 + * @date: 2015/12/01
  5 + */
  6 +
  7 +var $ = require('yoho.jquery');
  8 +
  9 +var apiDomain;
  10 +
  11 +/**
  12 + * 订阅
  13 + * @return {[type]} [description]
  14 + */
  15 +function actionSubscription() {
  16 + var $subscriberBox = $('#subscriber-box'),
  17 + $subscriberBtn = $('#subscriber-btn'),
  18 + emailReg = /^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/;
  19 +
  20 + var subscribeParam = {
  21 + method: 'open.subscriber.subscriber',
  22 + v: 1,
  23 + return_type: 'jsonp',
  24 + open_key: '12345'
  25 + };
  26 +
  27 + var iconCode = {
  28 + mail: '&#xe61b;',
  29 + tick: '&#xe61a'
  30 + };
  31 +
  32 + var email = $.trim($subscriberBox.val());
  33 +
  34 + var params = {};
  35 +
  36 + $subscriberBox.focus(function() {
  37 + $(this).val('').css('color', '');
  38 + $subscriberBtn.removeClass('done').html(iconCode.mail);
  39 + });
  40 +
  41 + $subscriberBtn.click(function() {
  42 + if (email !== '' && emailReg.test(email)) {
  43 + $.extend(params, subscribeParam, {
  44 + email: email,
  45 + tmp: Math.random(),
  46 + uid: $.uid('_UID')
  47 + });
  48 + try {
  49 + $.getJSON('http://test.open.yohobuy.com' + '/?callback=?', params, function(data) {
  50 + if (data.data.result === 1) {
  51 + $subscriberBox.val('已订阅到:' + email);
  52 + $subscriberBtn.addClass('done').html(iconCode.tick);
  53 + } else {
  54 + $subscriberBox.css('color', 'red');
  55 + }
  56 + });
  57 + } catch (e) {
  58 + console.log(e.message);
  59 + }
  60 + } else {
  61 + $subscriberBox.css('color', 'red');
  62 + }
  63 + });
  64 +}
  65 +
  66 +function actionhomeFootChange() {
  67 + var $vote = $('.vote'),
  68 + $feedBackPage = $('#feed-back-page'),
  69 + count = $vote.children('li').length;
  70 +
  71 + //意见反馈
  72 + $feedBackPage.on('click', 'span', function() {
  73 + var $this = $(this);
  74 +
  75 + if ($this.hasClass('cur')) {
  76 + return;
  77 + }
  78 +
  79 + $this.siblings('.cur').removeClass('cur');
  80 + $this.addClass('cur');
  81 +
  82 + $vote.children().not('.hide').addClass('hide')
  83 + .end()
  84 + .eq($this.index()).removeClass('hide');
  85 + });
  86 +
  87 + $vote.on('click', '.feed-back-btn', function() {
  88 + var $this = $(this),
  89 + $li = $this.closest('li'),
  90 + index = $li.index(),
  91 + params = {},
  92 + _solution = [];
  93 +
  94 + var _answer = $li.find('.feedback-answer').val(),
  95 + _feedback = $li.find('.feedback-id').val(),
  96 + _question = $li.find('.question-id').val();
  97 +
  98 + $li.find(':checked').each(function() {
  99 + _solution.push($(this).val());
  100 + });
  101 +
  102 + params = {
  103 + method: 'open.feedback.submit',
  104 + feedback: _feedback || 0,
  105 + question: _question || 0,
  106 + answer: _answer || '',
  107 + solution: _solution.join(',')
  108 + };
  109 +
  110 + $.getData(apiDomain, params, function(data) {
  111 + var next = index + 1;
  112 +
  113 + if (data.result === 1) {
  114 + if (index === count - 1) {
  115 + alert('感谢您的参与!');
  116 + return;
  117 + }
  118 +
  119 + $li.addClass('hide');
  120 +
  121 + $vote.eq(index + 1).removeClass('hide');
  122 + $feedBackPage.children('.cur').removeClass('cur');
  123 + $feedBackPage.eq(next).addClass('cur');
  124 + }
  125 + });
  126 + });
  127 +}
  128 +
  129 +//初始化
  130 +actionSubscription();
  131 +actionhomeFootChange();
@@ -6,11 +6,26 @@ @@ -6,11 +6,26 @@
6 6
7 7
8 var $ = require('yoho.jquery'); 8 var $ = require('yoho.jquery');
9 -var $yohocookie = require('../plugin/yohocookie');  
10 -var $yohocart = require('../plugin/yohocart');  
11 -var yohodoT = require('../plugin/yohodoT');  
12 - 9 +var handlebars = require('yoho.handlebars');
  10 +var json2 = require('json2');
13 var noticeSuccess = false; 11 var noticeSuccess = false;
  12 +
  13 +/**
  14 + * 判断为1的helper
  15 + * @param {[type]} v1 [description]
  16 + * @param {[type]} options) { if (v1 [description]
  17 + * @return {[type]} [description]
  18 + */
  19 +handlebars.registerHelper('equalone', function(v1, options) {
  20 +
  21 + if (v1 === '1') {
  22 + return options.fn(this);
  23 + } else {
  24 + return options.inverse(this);
  25 + }
  26 +});
  27 +require('../plugin/yohocookie');
  28 +require('../plugin/yohocart');
14 /** 29 /**
15 * 获取头部banner的回调函数 30 * 获取头部banner的回调函数
16 * @param {[type]} data [description] 31 * @param {[type]} data [description]
@@ -549,10 +564,10 @@ function loadCartData() { @@ -549,10 +564,10 @@ function loadCartData() {
549 shopping_key: $.getShoppingKey() 564 shopping_key: $.getShoppingKey()
550 }, function(jsonData) { 565 }, function(jsonData) {
551 if (window.cartTpl === '') { 566 if (window.cartTpl === '') {
552 - window.cartTpl = yohodoT.template($('#mini-cart-tpl').html()); 567 + window.cartTpl = handlebars.compile($('#mini-cart-tpl').html());
553 } 568 }
554 $('#miniCartBox').children('.gobuy-wrapper').html(window.cartTpl({ 569 $('#miniCartBox').children('.gobuy-wrapper').html(window.cartTpl({
555 - cartData: jsonData 570 + carData: jsonData
556 })); 571 }));
557 if (parseInt($('.ic-infomation').html()) === 0) { 572 if (parseInt($('.ic-infomation').html()) === 0) {
558 $('#miniCartBox .gobuy-wrapper').html('<div class="gobuy-empty">' + 573 $('#miniCartBox .gobuy-wrapper').html('<div class="gobuy-empty">' +
@@ -560,7 +575,7 @@ function loadCartData() { @@ -560,7 +575,7 @@ function loadCartData() {
560 } 575 }
561 if ($('#miniCartBox .goods-list li').length < 1) { 576 if ($('#miniCartBox .goods-list li').length < 1) {
562 shoppingInfo = $.cookie('_g'); 577 shoppingInfo = $.cookie('_g');
563 - shoppingData = JSON.parse('(' + shoppingInfo + ')'); 578 + shoppingData = json2.parse(shoppingInfo);
564 if (shoppingData !== null) { 579 if (shoppingData !== null) {
565 strK = '{"_k":"' + shoppingData._k + '","_nac":0' + ',"_ac":0,"_r":0}'; 580 strK = '{"_k":"' + shoppingData._k + '","_nac":0' + ',"_ac":0,"_r":0}';
566 $.setcookie('_g', strK, { 581 $.setcookie('_g', strK, {
@@ -588,7 +603,7 @@ function delCartGoods(id, isreduce) { @@ -588,7 +603,7 @@ function delCartGoods(id, isreduce) {
588 isreduce: isreduce 603 isreduce: isreduce
589 }, function(jsonData) { 604 }, function(jsonData) {
590 var shoppingInfo = $.cookie('_g'); 605 var shoppingInfo = $.cookie('_g');
591 - var shoppingData = JSON.parse('(' + shoppingInfo + ')'); 606 + var shoppingData = json2.parse(shoppingInfo);
592 var strK = '{"_k":"' + shoppingData._k + '","_nac":' + jsonData.total_goods_num + ',"_ac":0,"_r":0}'; 607 var strK = '{"_k":"' + shoppingData._k + '","_nac":' + jsonData.total_goods_num + ',"_ac":0,"_r":0}';
593 608
594 $.setcookie('_g', strK, { 609 $.setcookie('_g', strK, {
@@ -602,12 +617,40 @@ function delCartGoods(id, isreduce) { @@ -602,12 +617,40 @@ function delCartGoods(id, isreduce) {
602 window.apiDomain = 'http://api.open.yohobuy.com'; 617 window.apiDomain = 'http://api.open.yohobuy.com';
603 window.cartTpl = ''; 618 window.cartTpl = '';
604 619
  620 +/**
  621 + * 监听购物车删除
  622 + * @return {[type]} [description]
  623 + */
  624 +function actionListenDelCarGoods() {
  625 + var $delcargoods;
  626 + var goodsid,
  627 + cheapest;
  628 +
  629 + $(document).on('click', '.goodscardelete', function(e) {
  630 + $delcargoods = $(this);
  631 + goodsid = $delcargoods.attr('goodsid');
  632 + cheapest = $delcargoods.attr('cheapest');
  633 + delCartGoods(goodsid, cheapest);
  634 + });
  635 +}
  636 +/**
  637 + * 监听点击更多打折商品
  638 + * @return {[type]} [description]
  639 + */
  640 +function actionListenCartMore() {
  641 + var $morecart;
605 642
  643 + $(document).on('click', '.mycart_i_down', function(e) {
  644 + $morecart = $(this);
  645 + $morecart.toggleClass('mycart_i_up');
  646 + $('#mycartmore').slideToggle(300);
  647 + });
  648 +}
606 /** 649 /**
607 * 点击购物车 650 * 点击购物车
608 * @return {[type]} [description] 651 * @return {[type]} [description]
609 */ 652 */
610 -function clickMiniCartBox() { 653 +function actionClickMiniCartBox() {
611 var $target; 654 var $target;
612 var shopcarurl = 'http://www.yohobuy.com/shopping/cart'; 655 var shopcarurl = 'http://www.yohobuy.com/shopping/cart';
613 656
@@ -771,7 +814,7 @@ function actionLoopUpdCartNum() { @@ -771,7 +814,7 @@ function actionLoopUpdCartNum() {
771 * @return {[type]} [description] 814 * @return {[type]} [description]
772 */ 815 */
773 function actionExeTemplate() { 816 function actionExeTemplate() {
774 - var resulthtml = $('#goodcartempwarpper').html().replace(/\%L/g, '{{').replace(/\%R/g, '}}'); 817 + var resulthtml = $('#goodcartempwarpper').html().replace(/\\/g, '');
775 818
776 $('#goodcartempwarpper').html(resulthtml); 819 $('#goodcartempwarpper').html(resulthtml);
777 } 820 }
@@ -788,7 +831,7 @@ function actionSearch() { @@ -788,7 +831,7 @@ function actionSearch() {
788 * 初始化函数 831 * 初始化函数
789 * @return {[type]} [description] 832 * @return {[type]} [description]
790 */ 833 */
791 -exports.init = function() { 834 +function init() {
792 actionExeTemplate(); //处理模板 835 actionExeTemplate(); //处理模板
793 actionInitCookie(); //初始化cookie 836 actionInitCookie(); //初始化cookie
794 actionExeCookieMap(); //格式化cookie 837 actionExeCookieMap(); //格式化cookie
@@ -803,8 +846,9 @@ exports.init = function() { @@ -803,8 +846,9 @@ exports.init = function() {
803 actionUpdateCartNum(); //更新购物车数量 846 actionUpdateCartNum(); //更新购物车数量
804 actionLoopUpdCartNum(); //循环检测购物车数量 847 actionLoopUpdCartNum(); //循环检测购物车数量
805 actionSearch(); //搜索执行 848 actionSearch(); //搜索执行
806 - delCartGoods();  
807 - clickMiniCartBox();  
808 - $yohocookie();  
809 - $yohocart();  
810 -};  
  849 + actionClickMiniCartBox(); //点击购物车跳转
  850 + actionListenDelCarGoods(); //监听购物车删除
  851 + actionListenCartMore(); //
  852 +}
  853 +
  854 +init();
@@ -15,7 +15,8 @@ @@ -15,7 +15,8 @@
15 "dependencies": { 15 "dependencies": {
16 "yoho.lazyload": "1.0.0", 16 "yoho.lazyload": "1.0.0",
17 "yoho.handlebars": "3.0.3", 17 "yoho.handlebars": "3.0.3",
18 - "yoho.jquery": "1.8.3" 18 + "yoho.jquery": "1.8.3",
  19 + "json2": "1.0.0"
19 }, 20 },
20 "devDependencies": { 21 "devDependencies": {
21 "expect.js": "0.3.1" 22 "expect.js": "0.3.1"
1 1
2 -var jQuery = require('jquery'); 2 +var jQuery = require('yoho.jquery');
3 var $yohocookie = require('./yohocookie'); 3 var $yohocookie = require('./yohocookie');
4 4
5 (function($) { 5 (function($) {
@@ -126,4 +126,7 @@ var $yohocookie = require('./yohocookie'); @@ -126,4 +126,7 @@ var $yohocookie = require('./yohocookie');
126 return shoppingData._k; 126 return shoppingData._k;
127 }, 127 },
128 }) 128 })
129 -})(jQuery);  
  129 +})(jQuery);
  130 +exports.init = function() {
  131 +
  132 +}
1 -var jQuery = require('jquery'); 1 +var jQuery = require('yoho.jquery');
2 2
3 (function($) { 3 (function($) {
4 $.extend({ 4 $.extend({
1 -@font-face {  
2 - font-family: 'icomoon';  
3 - src:font-url('icomoon.eot');  
4 - src:font-url('icomoon.eot?#iefix') format('embedded-opentype'),  
5 - font-url('icomoon.ttf') format('truetype'),  
6 - font-url('icomoon.woff') format('woff'),  
7 - font-url('icomoon.svg#icomoon') format('svg');  
8 - font-weight: normal;  
9 - font-style: normal;  
10 -}  
11 .yoho-footer { 1 .yoho-footer {
12 font-size: 12px; 2 font-size: 12px;
13 - /*----文字颜色----*/  
14 - .red{  
15 - color: #ee0011; 3 +
  4 + .left {
  5 + float: left;
16 } 6 }
17 - .orange{  
18 - color: #f9761a; 7 +
  8 + .right {
  9 + float: right;
19 } 10 }
20 - .rgb0{  
21 - color: #000; 11 +
  12 + .center {
  13 + text-align: center;
22 } 14 }
23 - .rgb2{  
24 - color: #222; 15 +
  16 + * {
  17 + box-sizing: border-box;
25 } 18 }
26 - .rgb4{  
27 - color: #444; 19 +
  20 + .red {
  21 + color: #ee0011;
28 } 22 }
29 - .rgb6{ 23 +
  24 + .rgb6 {
30 color: #666; 25 color: #666;
31 } 26 }
32 - .rgb9{ 27 +
  28 + .rgb9 {
33 color: #999; 29 color: #999;
34 } 30 }
35 31
36 - .rgbc{  
37 - color: #ccc;  
38 - }  
39 - .rgbf{ 32 + .rgbf {
40 color: #fff; 33 color: #fff;
41 } 34 }
42 - .blue{  
43 - color: #006699;  
44 - }  
45 - .blue2{  
46 - color: #468fa2;  
47 - }  
48 - /**函数类**/  
49 - .hidden{ display:none !important;}  
50 - .show{ display:block;}  
51 - .left{float: left;}  
52 - .right{float: right;}  
53 - .relative{position: relative;}  
54 - .absolute{position: absolute;}  
55 - .inline-block{  
56 - display: inline-block;  
57 - }  
58 - .top{  
59 - vertical-align: top;  
60 - }  
61 - .middle{  
62 - vertical-align: middle;  
63 - }  
64 - .center{  
65 - text-align: center;  
66 - }  
67 - .footertop {  
68 - .index-foot {  
69 - background: #eeeeee;  
70 - padding:20px 0;  
71 - }  
72 - .index-foot dd{ 35 +
  36 + .index-foot {
  37 + background: #eeeeee;
  38 + padding:20px 0;
  39 +
  40 + dd {
  41 + width: 370px;
73 margin-right: 20px; 42 margin-right: 20px;
74 float: left; 43 float: left;
75 overflow:hidden; 44 overflow:hidden;
76 - }  
77 - .index-foot dd.last{  
78 - margin-right: 0;  
79 - }  
80 - .index-foot dd .foot-panel{  
81 - background: #fff;  
82 - padding: 20px;  
83 - _padding-right: 10px;  
84 - }  
85 45
86 - .index-foot dd .title{  
87 - text-align: center;  
88 - _zoom:1;  
89 - }  
90 - .index-foot dd .title .title-line{  
91 - border-bottom: 1px solid #dddddd;  
92 - position: absolute;  
93 - top: 9px;  
94 - width: 100%;  
95 - left: 0;  
96 - *top: -6px;  
97 - }  
98 - .index-foot dd .title .text{  
99 - position: absolute;  
100 - width: 100%;  
101 - text-align: center;  
102 - left: 0;  
103 - top: 0;  
104 - }  
105 - .index-foot dd .title .text span{  
106 - background: #fff;  
107 - font-size: 18px;  
108 - line-height: 18px;  
109 - padding: 0 10px;  
110 - }  
111 - .index-foot dd ul{  
112 - margin-top: 18px;  
113 - padding-top: 18px;  
114 - }  
115 - .index-foot dd .two-dim{  
116 - margin-right: -10px;  
117 - }  
118 - .index-foot dd .two-dim li{  
119 - border: 1px solid #ddd;  
120 - padding: 7px;  
121 - margin-right: 10px;  
122 - } 46 + &.last {
  47 + margin-right: 0;
  48 + }
123 49
  50 + .foot-panel {
  51 + background: #fff;
  52 + padding: 20px;
  53 + }
124 54
125 - .index-foot dd .two-dim img.dim-img{  
126 - /*opacity: 0.5;  
127 - filter:alpha(opacity=50);*/  
128 - }  
129 - .index-foot dd .two-dim .dim-hover{  
130 - position: absolute;  
131 - }  
132 - .index-foot dd .two-dim .dim-hover img{  
133 - width: 38px;  
134 - height: 38px;  
135 - }  
136 - .index-foot dd .two-dim .dim-active .dim-img{  
137 - opacity: 1;  
138 - filter:alpha(opacity=100);  
139 - }  
140 - .index-foot dd .two-dim .dim-active .dim-hover{  
141 - display: none;  
142 - }  
143 - .index-foot dd .two-dim li a{  
144 - display: block;  
145 - }  
146 - .index-foot dd .two-dim li p{  
147 - text-align: center;  
148 - margin-top: 13px;  
149 - margin-bottom: 3px;  
150 - line-height: 12px;  
151 - }  
152 - .index-foot dd .item-nav{  
153 - padding-top: 20px;  
154 - }  
155 - .index-foot dd .item-nav a{  
156 - color: #999;  
157 - padding: 0 3px;  
158 - cursor:pointer;  
159 - }  
160 - .index-foot .vote{  
161 - height: 131px;  
162 - line-height: 24px;  
163 - }  
164 - .index-foot .vote input{  
165 - margin: 0 5px 0 1px;  
166 - }  
167 - .index-foot .vote .button{  
168 - height: 24px;  
169 - line-height: 24px;  
170 - width: 55px;  
171 - font-size: 12px;  
172 - margin-top: 10px;  
173 - margin-right: 10px;  
174 - background: #222;  
175 - color: #fff;  
176 - display: inline-block;  
177 - text-align: center;  
178 - }  
179 - .index-foot .vote p{  
180 - height: 24px;  
181 - overflow: hidden;  
182 - }  
183 - .index-foot .vote .vote-item p{  
184 - float: left;  
185 - width: 50%; 55 + .title {
  56 + position: relative;
  57 + text-align: center;
  58 + }
186 59
187 - } 60 + .title-line {
  61 + border-bottom: 1px solid #dddddd;
  62 + position: absolute;
  63 + top: 9px;
  64 + width: 100%;
  65 + left: 0;
  66 + }
188 67
189 - .index-foot .vote textarea{  
190 - width: 98%;  
191 - height: 60px;  
192 - vertical-align: middle;  
193 - margin: 5px 0px 0px 0px;  
194 - resize:none;  
195 - } 68 + .text {
  69 + position: absolute;
  70 + width: 100%;
  71 + text-align: center;
  72 + left: 0;
  73 + top: 0;
  74 +
  75 + span {
  76 + background: #fff;
  77 + font-size: 18px;
  78 + line-height: 18px;
  79 + padding: 0 10px;
  80 + }
  81 + }
196 82
197 - .index-foot ul.mobile{  
198 - margin-right: -10px;  
199 - }  
200 - .index-foot .mobile li{  
201 - margin-right: 10px;  
202 - float: left;  
203 - margin-bottom: 12px;  
204 - } 83 + ul {
  84 + margin-top: 18px;
  85 + padding-top: 18px;
  86 + }
205 87
206 - .index-foot dd li{  
207 - /*height: 131px;*/  
208 - zoom:1;  
209 - } 88 + .two-dim {
  89 + margin-right: -10px;
  90 + overflow: hidden;
210 91
211 - .index-banner{  
212 - width: 100%;  
213 - margin-top: 20px;  
214 - }  
215 - .ifont10{  
216 - font-family: "icomoon" ;  
217 - display:inline-block;  
218 - font-size: 13px;  
219 - line-height: 10px;  
220 - -webkit-transform:scale(0.8);  
221 - }  
222 - }  
223 - .footerbottom {  
224 - width: 100%;  
225 - .promise {  
226 - padding: 20px 0 10px 0;  
227 - background: #000;  
228 - .left {  
229 - line-height: 30px;  
230 - font-size: 12px;  
231 - font-weight: bold;  
232 - .ifont {  
233 - font-size: 24px;  
234 - line-height: 24px;  
235 - vertical-align: middle;  
236 - margin-right: 5px;  
237 - font-weight: normal;  
238 - font-family: "icomoon" ;  
239 - display:inline-block; 92 + li {
  93 + border: 1px solid #ddd;
  94 + padding: 7px;
  95 + margin-right: 10px;
  96 +
  97 + a {
  98 + display: block;
  99 + }
  100 +
  101 + p {
  102 + text-align: center;
  103 + margin-top: 13px;
  104 + margin-bottom: 3px;
  105 + line-height: 12px;
  106 + }
240 } 107 }
241 } 108 }
242 - }  
243 - .subscribe {  
244 - border: 1px solid #262626;  
245 - input {  
246 - height: 32px;  
247 - padding: 0 10px;  
248 - line-height: 32px;  
249 - border: none;  
250 - margin: 0;  
251 - *height: 28px;  
252 - *line-height: 28px;  
253 - background: #000;  
254 -  
255 - &.wrong{  
256 - color: #ee0011; 109 +
  110 + .dim-img {
  111 + display: block;
  112 + width: 87px;
  113 + height: 87px;
  114 + }
  115 +
  116 + .dim-hover {
  117 + position: absolute;
  118 +
  119 + img {
  120 + width: 38px;
  121 + height: 38px;
257 } 122 }
258 } 123 }
259 - a {  
260 - margin-left: 10px;  
261 - font-size: 18px;  
262 - line-height: 32px;  
263 - opacity: 0.5;  
264 - filter: alpha(opacity=50); 124 +
  125 + .dim-active .dim-img {
  126 + opacity: 1;
  127 + filter:alpha(opacity=100);
265 } 128 }
266 - }  
267 - .footer-help {  
268 - background: #000;  
269 - font-size: 12px;  
270 - ul {  
271 - width: 110%; 129 +
  130 + .dim-active .dim-hover {
  131 + display: none;
272 } 132 }
273 - li p {  
274 - line-height: 24px;  
275 133
276 - span{ 134 + .item-nav{
  135 + padding-top: 20px;
  136 +
  137 + span {
277 color: #fff; 138 color: #fff;
  139 + padding: 0 3px;
  140 + cursor:pointer;
  141 + font-size: 20px;
278 } 142 }
279 143
280 - a {  
281 - color: #666;  
282 -  
283 - &:hover {  
284 - text-decoration: underline;  
285 - } 144 + .cur {
  145 + color: #999;
286 } 146 }
287 } 147 }
288 - .screen {  
289 - border-top: 1px solid #262626;  
290 - padding: 15px 0;  
291 - }  
292 } 148 }
293 - .client-title p { 149 +
  150 + .vote {
294 line-height: 24px; 151 line-height: 24px;
295 - }  
296 - .client {  
297 - padding-top: 6px;  
298 - a.ifont {  
299 - font-size: 20px;  
300 - background: #444;  
301 - width: 32px;  
302 - height: 32px;  
303 - margin-right: 3px;  
304 - text-align: center;  
305 - line-height: 32px;  
306 - }  
307 - }  
308 - .footer-link{  
309 - background: #000;  
310 - padding: 10px 0 30px 0;  
311 - font-size: 12px;  
312 - }  
313 - .about-us {  
314 - margin-left: 10px;  
315 - line-height: 20px;  
316 - color: #666;  
317 - a {  
318 - color: #666;  
319 - }  
320 - p span {  
321 - padding: 0 10px; 152 +
  153 + input {
  154 + margin: 0 5px 0 1px;
322 } 155 }
323 - }  
324 - .footer-link .right-flag a {  
325 - margin-right: 5px;  
326 - }  
327 - .footer-client {  
328 - padding: 0px;  
329 - bottom: 25px;  
330 - left: -37px;  
331 - z-index: 10;  
332 - width: 106px;  
333 - top: -140px;  
334 - .client-img {  
335 - background: #fff; 156 +
  157 + .button {
  158 + height: 24px;
  159 + line-height: 24px;
  160 + width: 55px;
  161 + font-size: 12px;
  162 + margin-top: 10px;
  163 + margin-right: 10px;
  164 + background: #222;
  165 + color: #fff;
  166 + display: inline-block;
  167 + text-align: center;
  168 + cursor: pointer;
336 } 169 }
337 - a {  
338 - padding: 8px;  
339 - background: #fff;  
340 - display: block;  
341 - p {  
342 - text-align: center;  
343 - padding-top: 5px;  
344 - } 170 +
  171 + p {
  172 + height: 24px;
  173 + overflow: hidden;
345 } 174 }
346 - .arrow {  
347 - line-height: 12px;  
348 - text-align: center;  
349 - width: 100%;  
350 - font-size: 12px;  
351 - vertical-align: top;  
352 - margin-top: -2px; 175 +
  176 + textarea{
  177 + width: 98%;
  178 + height: 68px;
  179 + vertical-align: middle;
  180 + margin: 5px 0px 0px 0px;
  181 + resize:none;
353 } 182 }
354 } 183 }
355 - .right-flag{  
356 - margin-top: 3px;  
357 - }  
358 - }  
359 - .return-top {  
360 - position: fixed;  
361 - width: 60px;  
362 - height: 60px;  
363 - font-size: 18px;  
364 - text-align: center;  
365 - line-height: 60px;  
366 - color: #fff;  
367 - background: #000;  
368 - opacity: 0.5;  
369 - filter: alpha(opacity=50);  
370 - bottom: 20px;  
371 - cursor: pointer;  
372 - z-index: 99999;  
373 - &:hover {  
374 - opacity: 0.9;  
375 - filter: alpha(opacity=90);  
376 - }  
377 - }  
378 -}  
379 -@media (max-width:1310px){  
380 - .yoho-footer{  
381 - .return-top{  
382 - left: 100%;  
383 - right: 20px;  
384 - margin-left: auto;  
385 - }  
386 - }  
387 -  
388 -}  
389 184
390 -@media (min-width:1310px){  
391 - .yoho-footer{  
392 - .return-top{  
393 - left: 50%;  
394 - margin-left: 595px;  
395 - }  
396 - }  
397 -}  
398 -@media (max-width:1180px){  
399 - .yoho-footer {  
400 - .screen{  
401 - width: 990px;  
402 - margin-left: auto;  
403 - margin-right: auto;  
404 - }  
405 - .screen-l{  
406 - display: none;  
407 - }  
408 - .footerbottom{  
409 - min-width: 990px;  
410 - }  
411 - .footerbottom .footer-right{  
412 - width: 200px;  
413 - width: 202px \9;  
414 - }  
415 - .footerbottom .footer-help ul{  
416 - /*width: 690px;*/  
417 - }  
418 - .footerbottom .footer-help li{  
419 - width: 150px;  
420 - }  
421 - .footerbottom .promise .left{  
422 - margin-right: 45px;  
423 - }  
424 - .footerbottom .subscribe input{  
425 - width: 140px;  
426 - outline: none;  
427 - } 185 + .vote-item p {
  186 + float: left;
  187 + width: 50%;
428 188
429 - /*trends*/  
430 - .article-list{  
431 - width: 670px;  
432 - }  
433 - .article-list ul .article-cover img{  
434 - width: 320px;  
435 - height: 214px;  
436 - }  
437 - .article-list ul .article-summary{  
438 - width: 330px;  
439 - height: 214px;  
440 - overflow: hidden;  
441 - }  
442 - .trends-suggestion ul li{  
443 - width: 208px;  
444 - }  
445 - .trends-suggestion ul li img{  
446 - width: 208px;  
447 - height: 138px;  
448 - }  
449 - .article-list .article-detail img{  
450 - max-width: 670px;  
451 } 189 }
452 190
453 - /*lookbook*/  
454 - .trends-list ul li{  
455 - width: 232px;  
456 - }  
457 - .trends-list ul li a img{  
458 - width: 232px;  
459 - height: 330px;  
460 - }  
461 - .trends-list ul li p{  
462 - width: 222px;  
463 - } 191 + .mobile {
  192 + margin-right: -10px;
464 193
465 - .focus-top3{  
466 - height: 618px;  
467 - }  
468 - .focus-top3 .focus-img img{  
469 - width: 495px;  
470 - height: 618px;  
471 - }  
472 - .focus-top3 ul li, .trends-content iframe{  
473 - height: 618px;  
474 - width: 990px;  
475 - }  
476 - }  
477 -}  
478 -@media (min-width:1180px){  
479 - .yoho-footer{  
480 - .screen{  
481 - width: 1150px;  
482 - margin-left: auto;  
483 - margin-right: auto;  
484 - }  
485 - .footerbottom .footer-right{  
486 - width: 240px;  
487 - width: 242px \9;  
488 - }  
489 - .footerbottom .footer-help ul{  
490 - /*width: 810px;*/  
491 - }  
492 - .footerbottom .footer-help li{  
493 - width: 180px;  
494 - }  
495 - .footerbottom .promise .left{  
496 - margin-right: 60px;  
497 - }  
498 - .footerbottom .subscribe input{  
499 - width: 180px;  
500 - outline: none;  
501 - } 194 + li {
  195 + margin-right: 10px;
  196 + float: left;
  197 + }
502 198
503 - /*trends*/  
504 - .article-list{  
505 - width: 830px;  
506 - }  
507 - .article-list ul .article-cover img{  
508 - width: 360px;  
509 - height: 240px;  
510 - }  
511 - .article-list ul .article-summary{  
512 - width: 450px;  
513 - height: 240px;  
514 - overflow: hidden;  
515 - }  
516 - .trends-suggestion ul li{  
517 - width: 262px;  
518 - }  
519 - .trends-suggestion ul li img{  
520 - width: 262px;  
521 - height: 175px;  
522 - }  
523 - .article-list .article-detail img{  
524 - max-width: 830px; 199 + img {
  200 + display: block;
  201 + width: 103px;
  202 + height: 131px;
  203 + }
525 } 204 }
526 205
527 - /*lookbook*/  
528 - .trends-list ul li{  
529 - width: 272px;  
530 - }  
531 - .trends-list ul li a img{  
532 - width: 272px;  
533 - height: 388px;  
534 - }  
535 - .trends-list ul li p{  
536 - width: 262px;  
537 - }  
538 - .focus-top3{  
539 - height: 716px;  
540 - }  
541 - .focus-top3 .focus-img img{  
542 - width: 575px;  
543 - height: 716px;  
544 - }  
545 - .focus-top3 ul li, .trends-content iframe{  
546 - height: 716px;  
547 - width: 1150px; 206 + .index-banner {
  207 + width: 100%;
  208 + margin-top: 20px;
548 } 209 }
549 } 210 }
550 -  
551 -}  
552 -  
553 -  
554 -/* new index 990 */  
555 -@media (max-width:1180px){  
556 - .sort-enter a, .sort-enter a img{  
557 - width:494px;  
558 - height:388px;  
559 - }  
560 - .sort-enter a span{  
561 - bottom:40px;  
562 - }  
563 - .new-arrial img{  
564 - width:990px;  
565 - }  
566 - .arrial-list ul li, .arrial-list ul li img{  
567 - width:325px;  
568 - height: 265px;  
569 - }  
570 - .hot-brand .con{  
571 - height: 103px;  
572 - }  
573 - .hot-brand .con .btn-page{  
574 - width:90px;  
575 - height:103px;  
576 - background-position: -106px 0;  
577 - }  
578 - .hot-brand .con .btn-page a{  
579 - width: 30px;  
580 - height:30px;  
581 - }  
582 - .hot-brand .con .btn-page a.page-before{  
583 - top: 22px;  
584 - left: 8px;  
585 - }  
586 - .hot-brand .con .btn-page a.page-next{  
587 - top: 50px;  
588 - left: 44px;  
589 - }  
590 - .hot-brand .con .list{  
591 - margin-right: 90px;  
592 - }  
593 - .hot-brand .con .list ul li img{  
594 - width:100px;  
595 - height:103px;  
596 - }  
597 -}  
598 -@media (min-width:1180px){  
599 - .sort-enter a, .sort-enter a img{  
600 - width:574px;  
601 - height:450px;  
602 - }  
603 - .sort-enter a span{  
604 - bottom:50px;  
605 - }  
606 - .new-arrial img{  
607 - width:1150px;  
608 - }  
609 - .arrial-list ul li, .arrial-list ul li img{  
610 - width:378px;  
611 - height:308px;  
612 - }  
613 - .hot-brand .con{  
614 - height: 120px;  
615 - }  
616 - .hot-brand .con .btn-page{  
617 - width:106px;  
618 - height:120px;  
619 - background-position: 0 0;  
620 - }  
621 - .hot-brand .con .btn-page a{  
622 - width: 40px;  
623 - height:40px;  
624 - }  
625 - .hot-brand .con .btn-page a.page-before{  
626 - top: 24px;  
627 - left: 4px;  
628 - }  
629 - .hot-brand .con .btn-page a.page-next{  
630 - top: 58px;  
631 - left: 50px;  
632 - }  
633 - .hot-brand .con .list{  
634 - margin-right: 106px;  
635 - }  
636 - .hot-brand .con .list ul li img{  
637 - width:116px;  
638 - height:120px;  
639 - }  
640 -}  
641 -  
642 -  
643 -  
644 -/*new index*/  
645 -@media (max-width:1180px){  
646 - /*  
647 - .page-index-new .screen{  
648 - width: 988px;  
649 - }*/  
650 -  
651 - .focus-top2{  
652 - height: 388px;  
653 - }  
654 - .focus-top2 .focus-img img{  
655 - width: 988px;  
656 - height: 388px;  
657 - }  
658 - .focus-bottom ul{  
659 - padding: 0 1px;  
660 - height: 46px;  
661 - overflow: hidden;  
662 - }  
663 - .focus-bottom ul li img{  
664 - width: 118px;  
665 - height: 46px;  
666 - }  
667 - .focus-bottom ul li a{  
668 - width: 118px;  
669 - height: 46px;  
670 - }  
671 211
672 - #bigSlide{  
673 - width: 988px;  
674 - height: 388px;  
675 - }  
676 - #bigSlide li{  
677 - width: 988px;  
678 - height: 388px;  
679 - } 212 + .footerbottom {
  213 + width: 100%;
680 214
681 - .dl-index .hot-brands li a img{  
682 - width: 163px;  
683 - height: 163px;  
684 - }  
685 - .dl-index .hot-brands li.li-h-2 a img{  
686 - width: 328px;  
687 - }  
688 - .dl-index .hot-brands li.li-v-2 a img{  
689 - height: 328px;  
690 - }  
691 - .dl-index .hot-brands li .btn-page{  
692 - padding: 36px 0 0 36px;  
693 - width: 127px;  
694 - height: 127px;  
695 - }  
696 - .wrapper-index2{  
697 - width: 988px;  
698 - }  
699 - .wrapper-index2 .index-unit-5{  
700 - width: 823px;  
701 - }  
702 - .wrapper-index2 .index-unit-1{  
703 - width: 163px;  
704 - }  
705 - .wrapper-index2 .index-unit-5 ul.hot-brands{  
706 - height: 330px;  
707 - }  
708 215
709 - .dl-index .index-ul li a img{  
710 - width: 163px;  
711 - height: 206px;  
712 - }  
713 - .dl-index .index-ul li.li-h-2 a img{  
714 - width: 328px;  
715 } 216 }
716 217
717 - .wrapper-index2 .index-ads img{  
718 - width: 163px;  
719 - }  
720 - .wrapper-index2 .index-ads .ads-1 img{  
721 - height: 279px;  
722 - }  
723 - .wrapper-index2 .index-ads .ads-2 img{  
724 - height: 163px;  
725 - } 218 + .promise {
  219 + padding: 20px 0 10px 0;
  220 + background: #000;
726 221
727 - .dl-index .category-top img{  
728 - width: 163px;  
729 - height: 146px;  
730 - }  
731 - .dl-index .category-list{  
732 - padding: 7px 0;  
733 - }  
734 - .dl-index .category-list li{  
735 - width: 76px;  
736 - }  
737 - .dl-index .category-list li a{  
738 - padding: 0px 0 0px 15px;  
739 - height: 24px;  
740 - line-height: 24px;  
741 - }  
742 - .dl-index .brands-list{  
743 - padding: 7px 0;  
744 - }  
745 - .dl-index .brands-list li a{  
746 - line-height: 24px;  
747 - height: 24px;  
748 - padding: 0px 15px 0px 15px; 222 + .left {
  223 + margin-right: 60px;
  224 + line-height: 30px;
  225 + font-size: 12px;
  226 + font-weight: bold;
  227 + }
749 } 228 }
750 229
751 - .index-foot dd{  
752 - width: 316px; 230 + .subscribe {
  231 + border: 1px solid #262626;
  232 + width: 240px;
753 233
754 - }  
755 - .index-foot dd .two-dim img.dim-img{  
756 - width: 69px;  
757 - height: 69px;  
758 - }  
759 - .index-foot .mobile li img{  
760 - width: 85px;  
761 - height: 108px;  
762 - }  
763 - .index-foot ul.mobile{  
764 - margin-top: 30px;  
765 - padding-bottom: 11px;  
766 - height: 108px;  
767 - overflow: hidden;  
768 - }  
769 - .index-foot dd .two-dim{  
770 - margin-top: 26px;  
771 - margin-bottom: 10px;  
772 - /*padding-bottom: 10px;*/  
773 - height: 113px;  
774 - overflow: hidden;  
775 - } 234 + input {
  235 + width: 180px;
  236 + height: 32px;
  237 + padding: 0 10px;
  238 + line-height: 32px;
  239 + border: none;
  240 + margin: 0;
  241 + background: #000;
  242 + }
776 243
777 - .index-foot dd .two-dim .dim-hover{  
778 - left: 16px;  
779 - top: 16px;  
780 - }  
781 - /*hotBrand*/  
782 - .dl-index .hot-brand-new .ids img{  
783 - width:163px;  
784 - }  
785 - .hot-brand-new .recommendBox-new{  
786 - width:891px;  
787 - height:156px;  
788 - }  
789 - .hot-brand-new .recommendBox-new ul li{  
790 - width:99px;  
791 - height:78px;  
792 - }  
793 - .hot-brand-new .recommendBox-new ul li img{  
794 - width:99px;  
795 - height:78px;  
796 - }  
797 - .dl-index .hot-brand-new .index-unit-1{  
798 - width:97px;  
799 - height:156px;  
800 - }  
801 - .dl-index .hot-brand-new .index-unit-1 ul li{  
802 - width:97px;  
803 - height:78px;  
804 - }  
805 - .dl-index .hot-brand-new .index-unit-1 ul li img{  
806 - width:97px;  
807 - height:78px;  
808 - }  
809 - .dl-index .hot-brand-new .btn-page{  
810 - width:97px;  
811 - height:78px;  
812 - background: url('http://static.yohobuy.com/images/v3/icon/btn_page_small.jpg') no-repeat center center ;  
813 - }  
814 - /*猜你喜欢*/  
815 - .index-guess-like li{  
816 - width: 163px;  
817 - float: left;  
818 - margin-right: 2px;  
819 - text-align: center;  
820 - }  
821 - .index-guess-like li img{  
822 - width: 163px; 244 + a {
  245 + margin-left: 10px;
  246 + font-size: 18px;
  247 + line-height: 32px;
  248 + opacity: 0.5;
  249 + filter: alpha(opacity=50);
  250 + }
823 } 251 }
824 252
825 -}  
826 -  
827 -@media (min-width:1180px){  
828 - .focus-top2{  
829 - height: 450px;  
830 - }  
831 - .focus-top2 .focus-img img{  
832 - width: 1150px;  
833 - height: 450px;  
834 - }  
835 - .focus-bottom ul{  
836 - padding: 0 2px;  
837 - height: 54px; 253 + .footer-help {
  254 + background: #000;
  255 + font-size: 12px;
838 overflow: hidden; 256 overflow: hidden;
839 - }  
840 - .focus-bottom ul li img{  
841 - width: 138px;  
842 - height: 54px;  
843 - }  
844 - .focus-bottom ul li a{  
845 - width: 138px;  
846 - height: 54px;  
847 - }  
848 - #bigSlide{  
849 - width: 1150px;  
850 - height: 450px;  
851 - }  
852 - #bigSlide li{  
853 - width: 1150px;  
854 - height: 450px;  
855 - }  
856 -  
857 - .dl-index .hot-brands li a img{  
858 - width: 190px;  
859 - height: 190px;  
860 - }  
861 - .dl-index .hot-brands li.li-h-2 a img{  
862 - width: 382px;  
863 - }  
864 - .dl-index .hot-brands li.li-v-2 a img{  
865 - height: 382px;  
866 - }  
867 - .dl-index .hot-brands li .btn-page{  
868 - padding: 50px 0 0 50px;  
869 - width: 140px;  
870 - height: 140px;  
871 - }  
872 -  
873 - .wrapper-index2 .index-unit-5{  
874 - width: 958px;  
875 - }  
876 - .wrapper-index2 .index-unit-1{  
877 - width: 190px;  
878 - }  
879 - .wrapper-index2 .index-unit-5 ul.hot-brands{  
880 - height: 384px;  
881 - }  
882 -  
883 - .dl-index .index-ul li a img{  
884 - width: 190px;  
885 - height: 240px;  
886 - }  
887 - .dl-index .index-ul li.li-h-2 a img{  
888 - width: 382px;  
889 - }  
890 257
891 - .wrapper-index2 .index-ads img{  
892 - width: 190px;  
893 - }  
894 - .wrapper-index2 .index-ads .ads-1 img{  
895 - height: 320px;  
896 - }  
897 - .wrapper-index2 .index-ads .ads-2 img{  
898 - height: 190px;  
899 - } 258 + ul {
  259 + width: 110%;
  260 + }
900 261
901 - .dl-index .category-top img{  
902 - width: 190px;  
903 - height: 170px;  
904 - } 262 + p {
  263 + line-height: 24px;
905 264
906 - .dl-index .category-list{  
907 - padding: 8px 0;  
908 - }  
909 - .dl-index .category-list li{  
910 - width: 90px;  
911 - }  
912 - .dl-index .category-list li a{  
913 - padding: 0px 0 0px 15px;  
914 - height: 28px;  
915 - line-height: 28px;  
916 - }  
917 - .dl-index .brands-list{  
918 - padding: 8px 0;  
919 - }  
920 - .dl-index .brands-list li a{  
921 - line-height: 28px;  
922 - height: 28px;  
923 - padding: 0px 15px 0px 15px;  
924 - } 265 + span {
  266 + color: #fff;
  267 + }
925 268
926 - .index-foot dd{  
927 - width: 370px; 269 + a {
  270 + color: #666;
928 271
929 - }  
930 - .index-foot dd .two-dim{  
931 - overflow: hidden;  
932 - }  
933 - .index-foot dd .two-dim img.dim-img{  
934 - width: 87px;  
935 - height: 87px;  
936 - }  
937 - .index-foot .mobile li img{  
938 - width: 103px;  
939 - height: 131px;  
940 - } 272 + &:hover {
  273 + text-decoration: underline;
  274 + }
  275 + }
  276 + }
941 277
942 - .index-foot dd .two-dim .dim-hover{  
943 - left: 25px;  
944 - top: 25px;  
945 - }  
946 - .index-foot ul.mobile{  
947 - height: 131px;  
948 - overflow: hidden;  
949 - }  
950 - /*hotBrand*/  
951 - .dl-index .hot-brand-new .ids{  
952 - width:190px;  
953 - }  
954 - .hot-brand-new .recommendBox-new{  
955 - width:1035px;  
956 - height:180px;  
957 - }  
958 - .hot-brand-new .recommendBox-new ul li{  
959 - width:115px;  
960 - height:90px;  
961 - }  
962 - .hot-brand-new .recommendBox-new ul li img{  
963 - width:115px;  
964 - height:90px;  
965 - }  
966 - .dl-index .hot-brand-new .index-unit-1{  
967 - width:115px;  
968 - height:180px; 278 + li {
  279 + width: 180px;
  280 + }
969 281
  282 + .screen {
  283 + border-top: 1px solid #262626;
  284 + padding: 15px 0;
  285 + }
970 } 286 }
971 - .dl-index .hot-brand-new .index-unit-1 ul li{  
972 - width:115px;  
973 - height:90px;  
974 - }  
975 - .dl-index .hot-brand-new .index-unit-1 ul li img{  
976 - width:115px;  
977 - height:90px;  
978 - }  
979 - .dl-index .hot-brand-new .btn-page{  
980 - width:115px;  
981 - height:90px;  
982 - background: url('http://static.yohobuy.com/images/v3/icon/btn_page_big.jpg') no-repeat center center ;  
983 - }  
984 - /*猜你喜欢*/  
985 - .index-guess-like li{  
986 - width: 190px;  
987 - height: 320px;  
988 - float: left;  
989 - margin-right: 2px;  
990 - text-align: center;  
991 - }  
992 -  
993 -}  
994 -  
995 -/*boys*/  
996 287
  288 + .footer-link {
  289 + background: #000;
  290 + padding: 10px 0 30px 0;
  291 + font-size: 12px;
997 292
998 -@media (max-width:1180px){  
999 -  
1000 - .wrapper-right{  
1001 - width: 810px;  
1002 - }  
1003 - .wrapper-main .list-unit{  
1004 - width: 195px; 293 + .right-flag {
  294 + margin-top: 3px;
1005 295
1006 - }  
1007 - .wrapper-main .index-tab{  
1008 - width: 615px; /*750*/  
1009 - overflow: hidden;  
1010 - }  
1011 - .banner-zone .feedback .item-vote{  
1012 - width: 150px;  
1013 - padding: 10px;  
1014 - overflow: hidden;  
1015 - }  
1016 - .wrapper-main .banner-zone div.phone .left-a{  
1017 - padding-right: 5px;  
1018 - }  
1019 - .wrapper-main .banner-zone div.phone .right-a{  
1020 - padding-left: 5px;  
1021 - }  
1022 - .banner-zone .recent-view .recent-goods{  
1023 - width: 153px;  
1024 - }  
1025 - .banner-zone .recent-view .recent-goods img{  
1026 - width: 50px;  
1027 - height: 50px;  
1028 - }  
1029 - .focus-top{  
1030 - height: 334px;  
1031 - }  
1032 - .focus-brands .focus-brands-wrapper{  
1033 - width: 640px;  
1034 - }  
1035 - .focus-top .button-switch .ifont{  
1036 - margin-top: 160px;  
1037 - } 296 + a {
  297 + margin-right: 5px;
  298 + }
  299 + }
1038 300
1039 -} 301 + .about-us {
  302 + line-height: 20px;
  303 + color: #666;
  304 + margin-left: 10px;
1040 305
1041 -@media (min-width:1180px){ 306 + a {
  307 + color: #666;
  308 + }
1042 309
1043 - .wrapper-right{  
1044 - width: 970px; /*990px*/ 310 + span {
  311 + padding: 0 10px;
  312 + }
  313 + }
1045 } 314 }
1046 - .wrapper-main .list-unit{  
1047 - width: 235px; /*240*/  
1048 315
1049 - }  
1050 - .wrapper-main .index-tab{  
1051 - width: 735px; /*750*/  
1052 - overflow: hidden;  
1053 - }  
1054 - .banner-zone .feedback .item-vote{  
1055 - width: 170px;  
1056 - padding: 20px;  
1057 - overflow: hidden;  
1058 - }  
1059 - .wrapper-main .banner-zone div.phone .left-a{  
1060 - padding-right: 20px;  
1061 - }  
1062 - .wrapper-main .banner-zone div.phone .right-a{  
1063 - padding-left: 20px;  
1064 - }  
1065 - .banner-zone .recent-view .recent-goods{  
1066 - width: 183px;  
1067 - }  
1068 - .banner-zone .recent-view .recent-goods img{ 316 + .return-top {
  317 + position: fixed;
1069 width: 60px; 318 width: 60px;
1070 height: 60px; 319 height: 60px;
1071 - }  
1072 - .focus-top{  
1073 - height: 400px;  
1074 - }  
1075 - .focus-brands .focus-brands-wrapper{  
1076 - width: 800px;  
1077 - }  
1078 - .focus-top .button-switch .ifont{  
1079 - margin-top: 185px;  
1080 - }  
1081 -} 320 + left: 50%;
  321 + margin-left: 595px;
  322 + text-align: center;
  323 + line-height: 50px;
  324 + color: #fff;
  325 + background: #000;
  326 + opacity: 0.5;
  327 + filter: alpha(opacity=50);
  328 + bottom: 20px;
  329 + cursor: pointer;
  330 + &:hover {
  331 + opacity: 0.9;
  332 + filter: alpha(opacity=90);
  333 + }
1082 334
1083 -/*brands*/  
1084 -@media (max-width:1180px){  
1085 - .brands-ad .ad-img1 img{  
1086 - width: 490px;  
1087 - height: 240px;  
1088 - }  
1089 - .brands-ad .ad-img2 img{  
1090 - width: 240px;  
1091 - height: 240px;  
1092 - }  
1093 - .brands-logo a{  
1094 - /*margin-left: 19px;*/  
1095 - margin-left: 18px;  
1096 - }  
1097 - .brands-logo a.first{  
1098 - margin-left: 10px;  
1099 - }  
1100 - .wrapper-brands .brands-fixed{  
1101 - width: 956px;  
1102 - }  
1103 - .wrapper-brands .brands-az a{  
1104 - padding: 0 6px; 335 + .iconfont {
  336 + font-size: 34px;
  337 + }
1105 } 338 }
1106 } 339 }
1107 340
1108 -@media (min-width:1180px){  
1109 - .brands-ad .ad-img1 img{  
1110 - width: 570px;  
1111 - height: 280px;  
1112 - }  
1113 - .brands-ad .ad-img2 img{  
1114 - width: 280px;  
1115 - height: 280px;  
1116 - }  
1117 - .brands-logo a{  
1118 - margin-left: 35px;  
1119 - }  
1120 - .brands-logo a.first{  
1121 - margin-left: 18px;  
1122 - }  
1123 - .wrapper-brands .brands-fixed{  
1124 - width: 1116px; 341 +@media (max-width: 1360px) {
  342 + .yoho-footer .return-top {
  343 + left: 100%;
  344 + right: 20px;
  345 + margin-left: auto;
1125 } 346 }
1126 } 347 }
1127 348
1128 -/*goods list*/  
1129 -  
1130 -@media (max-width:1180px){  
1131 - .goods-list{  
1132 - margin-right: -10px;  
1133 - }  
1134 - .goods-list .goods{  
1135 - width: 195px;  
1136 - margin-right: 10px;  
1137 - height: 353px;  
1138 - overflow: hidden;  
1139 - }  
1140 - /*  
1141 - .goods-mini .goods-list{  
1142 - margin-right: -12px;  
1143 - }  
1144 - .goods-mini .goods-list .goods{  
1145 - width: 125px;  
1146 - margin-right: 12px;  
1147 - }*/  
1148 -  
1149 - /*图片固定高度*/  
1150 - .goods-list .goods img{  
1151 - width: 195px;  
1152 - height: 261px;  
1153 - }  
1154 - /*end*/  
1155 -  
1156 - .sort-condition .sort-num{  
1157 - display: none;  
1158 - }  
1159 - .goods-suggestion .goods-more{  
1160 - /*display: none;*/  
1161 - }  
1162 -  
1163 - .brands-suggestion li a{  
1164 - margin: 0 0 0 6px;  
1165 - }  
1166 - .brands-suggestion li a{  
1167 - width: 130px;  
1168 - }  
1169 - .brands-suggestion li img{  
1170 - padding: 22px 24px 22px 24px;  
1171 - }  
1172 -  
1173 - /*0124*/  
1174 - .goods-suggestion .goods-list{  
1175 - height: 353px;  
1176 - overflow: hidden;  
1177 - }  
1178 - .goods-view .goods-list .goods{  
1179 - width: 190px;  
1180 - overflow: hidden;  
1181 - }  
1182 -  
1183 -}  
1184 -  
1185 -@media (min-width: 1180px){  
1186 -  
1187 - .goods-list{  
1188 - margin-right: -10px;  
1189 - }  
1190 - .goods-list .goods{  
1191 - width: 235px;  
1192 - margin-right: 10px;  
1193 - height: 406px;  
1194 - }  
1195 - .goods-mini .goods-list{  
1196 - margin-right: -14px;  
1197 - }  
1198 - .goods-mini .goods-list .goods{  
1199 - width: 150px;  
1200 - margin-right: 14px;  
1201 - height: 293px;  
1202 - }  
1203 - .goods-mini .goods-list .li-first-4{  
1204 - clear: none;  
1205 - }  
1206 - .goods-mini .goods-list .li-first-6{  
1207 - clear: left;  
1208 - }  
1209 -  
1210 - /*图片固定高度*/  
1211 - .goods-list .goods img{  
1212 - width: 235px;  
1213 - height: 314px;  
1214 - }  
1215 - .goods-mini .goods-list .goods img{  
1216 - width: 150px;  
1217 - height: 201px;  
1218 - }  
1219 - /*end*/  
1220 -  
1221 - .brands-suggestion li a{  
1222 - margin: 0 0 0 8px;  
1223 - }  
1224 - .brands-suggestion li a{  
1225 - width: 155px;  
1226 - }  
1227 - .brands-suggestion li img{  
1228 - padding: 22px 37px 22px 36px;  
1229 - }  
1230 -  
1231 -  
1232 - .goods-suggestion .goods-list{  
1233 - height: 293px;  
1234 - overflow: hidden;  
1235 - }  
1236 - .goods-view .goods-mini .goods-list .goods{  
1237 - margin-right: 16px;  
1238 - }  
1239 -  
1240 -} 349 +@media (max-width:1180px) {
  350 + .yoho-footer {
1241 351
  352 + .index-foot dd {
  353 + width: 316px;
1242 354
  355 + .two-dim {
  356 + margin-top: 26px;
  357 + margin-bottom: 10px;
  358 + overflow: hidden;
  359 + }
1243 360
  361 + .dim-img {
  362 + width: 69px;
  363 + height: 69px;
  364 + }
1244 365
1245 -/*goods list top*/ 366 + .mobile img {
  367 + width: 85px;
  368 + height: 108px;
  369 + }
  370 + }
1246 371
1247 -@media (max-width:1180px){  
1248 - .goods-right{  
1249 - width: 810px;  
1250 - } 372 + .subscribe {
  373 + width: 200px;
1251 374
1252 - .goods-right .goods-ad .ad-text{  
1253 - width: 748px;  
1254 - /*height: 248px;*/  
1255 - padding:0px 30px 30px 30px;  
1256 - border:1px solid #eaeceb;  
1257 - }  
1258 - .goods-right .goods-ad .ad-half .ad-text{  
1259 - width: 348px;  
1260 - height: 218px;  
1261 - }  
1262 - .goods-right .goods-ad .ad-half-img{  
1263 - width: 400px;  
1264 - height: 250px;  
1265 - }  
1266 - .goods-right .goods-ad .ad-img{  
1267 - width: 810px;  
1268 - height: 250px;  
1269 - }  
1270 - .goods-right .goods-ad .text-title .title{  
1271 - margin-top: 30px;  
1272 - }  
1273 - /*  
1274 - .search-condition .search-selected p{  
1275 - width: 640px;  
1276 - }*/  
1277 -} 375 + input {
  376 + width: 140px;
  377 + }
  378 + }
1278 379
1279 -@media (min-width:1180px){  
1280 - .goods-right{  
1281 - width: 970px;  
1282 - }  
1283 - .goods-right .goods-ad .ad-text{  
1284 - width: 868px;  
1285 - height: 298px;  
1286 - padding:0px 50px;  
1287 - border:1px solid #eaeceb;  
1288 - }  
1289 - .goods-right .goods-ad .ad-half .ad-text{  
1290 - width: 388px;  
1291 - height: 298px;  
1292 - }  
1293 - .goods-right .goods-ad .ad-half-img{  
1294 - width: 480px;  
1295 - height: 300px;  
1296 - }  
1297 - .goods-right .goods-ad .ad-img{  
1298 - width: 970px;  
1299 - height: 300px;  
1300 - }  
1301 - .goods-right .goods-ad .text-title .title{  
1302 - margin-top: 60px; 380 + .footer-help li {
  381 + width: 150px;
  382 + }
1303 } 383 }
1304 -  
1305 -  
1306 } 384 }