Authored by xuqi

Merge branch 'release/1.0'

@@ -13,16 +13,16 @@ const brand = require('../models/brand'); @@ -13,16 +13,16 @@ const brand = require('../models/brand');
13 * @param res 13 * @param res
14 */ 14 */
15 const index = (req, res, next) => { 15 const index = (req, res, next) => {
16 - let channel = req.cookies._Channel || '301'; 16 + let channel = req.cookies._Channel || 'men';
17 let contentCode = ''; 17 let contentCode = '';
18 let name = ''; 18 let name = '';
19 let link = ''; 19 let link = '';
20 20
21 - if (channel === '302') { 21 + if (channel === 'women') {
22 contentCode = '527079e6c46d0f125eb46b835968971b'; 22 contentCode = '527079e6c46d0f125eb46b835968971b';
23 name = 'WOMEN首页'; 23 name = 'WOMEN首页';
24 link = 'http://www.yohoblk.com/women'; 24 link = 'http://www.yohoblk.com/women';
25 - } else if (channel === '303') { 25 + } else if (channel === 'lifestyle') {
26 contentCode = '94b5ed607b6d565ffc29c2c04be121dc'; 26 contentCode = '94b5ed607b6d565ffc29c2c04be121dc';
27 name = 'LIFT STYLE首页'; 27 name = 'LIFT STYLE首页';
28 link = 'http://www.yohoblk.com/lifestyle'; 28 link = 'http://www.yohoblk.com/lifestyle';
@@ -20,16 +20,16 @@ const index = (req, res, next) => { @@ -20,16 +20,16 @@ const index = (req, res, next) => {
20 let limit = req.query.limit || 20; 20 let limit = req.query.limit || 20;
21 let appType = 1; 21 let appType = 1;
22 let udid = md5(req.ip); 22 let udid = md5(req.ip);
23 - let channel = req.cookies._Channel || '301'; 23 + let channel = req.cookies._Channel || 'men';
24 let gender = ''; 24 let gender = '';
25 let name = ''; 25 let name = '';
26 let link = ''; 26 let link = '';
27 27
28 - if (channel === '301') { 28 + if (channel === 'men') {
29 gender = '1,3'; 29 gender = '1,3';
30 name = 'MEN首页'; 30 name = 'MEN首页';
31 link = 'http://www.yohoblk.com'; 31 link = 'http://www.yohoblk.com';
32 - } else if (channel === '302') { 32 + } else if (channel === 'women') {
33 gender = '2,3'; 33 gender = '2,3';
34 name = 'WOMEN首页'; 34 name = 'WOMEN首页';
35 link = 'http://www.yohoblk.com/women'; 35 link = 'http://www.yohoblk.com/women';
@@ -85,17 +85,17 @@ const list = (req, res) => { @@ -85,17 +85,17 @@ const list = (req, res) => {
85 let tag = req.query.query; 85 let tag = req.query.query;
86 let authorId = req.query.authorId; 86 let authorId = req.query.authorId;
87 let udid = md5(req.ip); 87 let udid = md5(req.ip);
88 - let channel = req.cookies._Channel || '301'; 88 + let channel = req.cookies._Channel || 'men';
89 let gender = ''; 89 let gender = '';
90 let name = ''; 90 let name = '';
91 let link = ''; 91 let link = '';
92 let appType = 1; 92 let appType = 1;
93 93
94 - if (channel === '301') { 94 + if (channel === 'men') {
95 gender = '1,3'; 95 gender = '1,3';
96 name = 'MEN首页'; 96 name = 'MEN首页';
97 link = 'http://www.yohoblk.com'; 97 link = 'http://www.yohoblk.com';
98 - } else if (channel === '302') { 98 + } else if (channel === 'women') {
99 gender = '2,3'; 99 gender = '2,3';
100 name = 'WOMEN首页'; 100 name = 'WOMEN首页';
101 link = 'http://www.yohoblk.com/women'; 101 link = 'http://www.yohoblk.com/women';
@@ -156,14 +156,14 @@ const detail = (req, res, next) => { @@ -156,14 +156,14 @@ const detail = (req, res, next) => {
156 let appType = 1; 156 let appType = 1;
157 let uid = req.user.uid; 157 let uid = req.user.uid;
158 let udid = md5(req.ip); 158 let udid = md5(req.ip);
159 - let channel = req.cookies._Channel || '301'; 159 + let channel = req.cookies._Channel || 'men';
160 let name = ''; 160 let name = '';
161 let link = ''; 161 let link = '';
162 162
163 - if (channel === '301') { 163 + if (channel === 'men') {
164 name = 'MEN首页'; 164 name = 'MEN首页';
165 link = 'http://www.yohoblk.com'; 165 link = 'http://www.yohoblk.com';
166 - } else if (channel === '302') { 166 + } else if (channel === 'women') {
167 name = 'WOMEN首页'; 167 name = 'WOMEN首页';
168 link = 'http://www.yohoblk.com/women'; 168 link = 'http://www.yohoblk.com/women';
169 } else { 169 } else {
@@ -53,8 +53,6 @@ const _processListData = (list) => { @@ -53,8 +53,6 @@ const _processListData = (list) => {
53 return listData; 53 return listData;
54 }; 54 };
55 55
56 -  
57 -  
58 /** 56 /**
59 * 首页、列表页列表相关 57 * 首页、列表页列表相关
60 * @param type 58 * @param type
@@ -121,7 +119,7 @@ const getListData = (appType, pageNum, limit, udid, gender, tag, authorId) => { @@ -121,7 +119,7 @@ const getListData = (appType, pageNum, limit, udid, gender, tag, authorId) => {
121 */ 119 */
122 const _getAuthorData = (id) => { 120 const _getAuthorData = (id) => {
123 121
124 - return serviceAPI.get('/guang/service/*/author/getAuthor', { 122 + return serviceAPI.get('guang/service/*/author/getAuthor', {
125 author_id: id 123 author_id: id
126 }).then((result) => { 124 }).then((result) => {
127 if (result && result.code === 200) { 125 if (result && result.code === 200) {
@@ -182,7 +180,6 @@ const _processHeadData = (list) => { @@ -182,7 +180,6 @@ const _processHeadData = (list) => {
182 180
183 } 181 }
184 182
185 -  
186 if (index === 2) { 183 if (index === 2) {
187 newData.headData = _.assign(newData.headData, { 184 newData.headData = _.assign(newData.headData, {
188 commentNum: data.total 185 commentNum: data.total
@@ -358,7 +355,7 @@ const _getHeadData = (id, appType, uid, udid) => { @@ -358,7 +355,7 @@ const _getHeadData = (id, appType, uid, udid) => {
358 par.udid = udid; 355 par.udid = udid;
359 } 356 }
360 357
361 - return serviceAPI.get('/guang/api/*/article/getArticleBaseInfo', par).then((result) => { 358 + return serviceAPI.get('guang/api/*/article/getArticleBaseInfo', par).then((result) => {
362 if (result && result.code === 200) { 359 if (result && result.code === 200) {
363 return result.data; 360 return result.data;
364 } else { 361 } else {
@@ -374,7 +371,7 @@ const _getHeadData = (id, appType, uid, udid) => { @@ -374,7 +371,7 @@ const _getHeadData = (id, appType, uid, udid) => {
374 * @returns {*} 371 * @returns {*}
375 */ 372 */
376 const _getContentData = (id) => { 373 const _getContentData = (id) => {
377 - return serviceAPI.get('/guang/service/*/article/getArticleContent', { 374 + return serviceAPI.get('guang/service/*/article/getArticleContent', {
378 article_id: id 375 article_id: id
379 }).then((result) => { 376 }).then((result) => {
380 if (result && result.code === 200) { 377 if (result && result.code === 200) {
@@ -392,7 +389,7 @@ const _getContentData = (id) => { @@ -392,7 +389,7 @@ const _getContentData = (id) => {
392 * @returns {*} 389 * @returns {*}
393 */ 390 */
394 const _getArticleData = (id) => { 391 const _getArticleData = (id) => {
395 - return serviceAPI.get('/guang/service/v2/article/getArticle', { 392 + return serviceAPI.get('guang/service/v2/article/getArticle', {
396 article_id: id 393 article_id: id
397 }).then((result) => { 394 }).then((result) => {
398 if (result && result.code === 200) { 395 if (result && result.code === 200) {
@@ -410,7 +407,7 @@ const _getArticleData = (id) => { @@ -410,7 +407,7 @@ const _getArticleData = (id) => {
410 * @returns {*} 407 * @returns {*}
411 */ 408 */
412 const _getCommentsData = (id) => { 409 const _getCommentsData = (id) => {
413 - return serviceAPI.get('/guang/api/*/comments/getList', { 410 + return serviceAPI.get('guang/api/*/comments/getList', {
414 article_id: id 411 article_id: id
415 }).then((result) => { 412 }).then((result) => {
416 if (result && result.code === 200) { 413 if (result && result.code === 200) {
@@ -457,7 +454,7 @@ const _getRelateBrand = (id) => { @@ -457,7 +454,7 @@ const _getRelateBrand = (id) => {
457 * @returns {*} 454 * @returns {*}
458 */ 455 */
459 const _getArticlePre = (id, appType) => { 456 const _getArticlePre = (id, appType) => {
460 - return serviceAPI.get('/guang/api/*/article/getArticlePre', { 457 + return serviceAPI.get('guang/api/*/article/getArticlePre', {
461 id: id, 458 id: id,
462 app_type: appType 459 app_type: appType
463 }).then((result) => { 460 }).then((result) => {
@@ -491,7 +488,7 @@ const _getArticlePre = (id, appType) => { @@ -491,7 +488,7 @@ const _getArticlePre = (id, appType) => {
491 * @returns {*} 488 * @returns {*}
492 */ 489 */
493 const _getArticleNext = (id, appType) => { 490 const _getArticleNext = (id, appType) => {
494 - return serviceAPI.get('/guang/api/*/article/getArticleNext', { 491 + return serviceAPI.get('guang/api/*/article/getArticleNext', {
495 id: id, 492 id: id,
496 app_type: appType 493 app_type: appType
497 }).then((result) => { 494 }).then((result) => {
@@ -534,7 +531,7 @@ const setCollect = (id, uid, appType) => { @@ -534,7 +531,7 @@ const setCollect = (id, uid, appType) => {
534 message: '未登录' 531 message: '未登录'
535 }); 532 });
536 } 533 }
537 - return serviceAPI.get('/guang/api/*/favorite/setFavorite', { 534 + return serviceAPI.get('guang/api/*/favorite/setFavorite', {
538 article_id: id, 535 article_id: id,
539 uid: uid, 536 uid: uid,
540 app_type: appType 537 app_type: appType
@@ -554,7 +551,7 @@ const cancelCollect = (id, uid, appType) => { @@ -554,7 +551,7 @@ const cancelCollect = (id, uid, appType) => {
554 message: '未登录' 551 message: '未登录'
555 }); 552 });
556 } 553 }
557 - return serviceAPI.get('/guang/api/*/favorite/cancelFavorite', { 554 + return serviceAPI.get('guang/api/*/favorite/cancelFavorite', {
558 article_id: id, 555 article_id: id,
559 uid: uid, 556 uid: uid,
560 app_type: appType 557 app_type: appType
@@ -569,7 +566,7 @@ const cancelCollect = (id, uid, appType) => { @@ -569,7 +566,7 @@ const cancelCollect = (id, uid, appType) => {
569 */ 566 */
570 const setPraise = (id, udid, appType) => { 567 const setPraise = (id, udid, appType) => {
571 568
572 - return serviceAPI.get('/guang/api/v2/praise/setPraise', { 569 + return serviceAPI.get('guang/api/v2/praise/setPraise', {
573 article_id: id, 570 article_id: id,
574 udid: udid, 571 udid: udid,
575 app_type: appType 572 app_type: appType
@@ -584,7 +581,7 @@ const setPraise = (id, udid, appType) => { @@ -584,7 +581,7 @@ const setPraise = (id, udid, appType) => {
584 */ 581 */
585 const cancelPraise = (id, udid, appType) => { 582 const cancelPraise = (id, udid, appType) => {
586 583
587 - return serviceAPI.get('/guang/api/v2/praise/cancel', { 584 + return serviceAPI.get('guang/api/v2/praise/cancel', {
588 article_id: id, 585 article_id: id,
589 udid: udid, 586 udid: udid,
590 app_type: appType 587 app_type: appType
@@ -605,7 +602,7 @@ const addComment = (id, uid, comment) => { @@ -605,7 +602,7 @@ const addComment = (id, uid, comment) => {
605 message: '未登录' 602 message: '未登录'
606 }); 603 });
607 } 604 }
608 - return serviceAPI.get('/guang/api/*/comments/add', { 605 + return serviceAPI.get('guang/api/*/comments/add', {
609 article_id: id, 606 article_id: id,
610 uid: uid, 607 uid: uid,
611 content: comment 608 content: comment
@@ -613,7 +610,7 @@ const addComment = (id, uid, comment) => { @@ -613,7 +610,7 @@ const addComment = (id, uid, comment) => {
613 }; 610 };
614 611
615 const shareData = () => { 612 const shareData = () => {
616 - return serviceAPI.get('/guang/api/*/share/guang', {}).then((result) => { 613 + return serviceAPI.get('guang/api/*/share/guang', {}).then((result) => {
617 if (result && result.code === 200) { 614 if (result && result.code === 200) {
618 return camelCase(result.data); 615 return camelCase(result.data);
619 } else { 616 } else {
@@ -18,9 +18,9 @@ @@ -18,9 +18,9 @@
18 <a class="author-name" href="{{authorUrl}}">{{name}}</a> 18 <a class="author-name" href="{{authorUrl}}">{{name}}</a>
19 </div> 19 </div>
20 <div class="article-status"> 20 <div class="article-status">
21 - <span class="article-time font">{{time}}</span>  
22 - <span class="article-browse font">浏览:{{click}}</span>  
23 - <span class="article-comments font">评论:{{commentNum}}</span> 21 + <span class="article-time brown-light">{{time}}</span>
  22 + <span class="article-browse">浏览:<b class=" brown-light">{{click}}</b></span>
  23 + <span class="article-comments">评论:<b class="brown-light">{{commentNum}}</b></span>
24 </div> 24 </div>
25 </div> 25 </div>
26 {{/ header}} 26 {{/ header}}
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 </div> 15 </div>
16 <div class="comment-info"> 16 <div class="comment-info">
17 <p class="comment-content">{{content}}</p> 17 <p class="comment-content">{{content}}</p>
18 - <p class="comment-time font">{{createTime}}</p> 18 + <p class="comment-time brown-light">{{createTime}}</p>
19 </div> 19 </div>
20 </li> 20 </li>
21 {{/ list}} 21 {{/ list}}
1 <div class="content-msg clearfix" data-id="{{id}}"> 1 <div class="content-msg clearfix" data-id="{{id}}">
2 - <div class="msg-left"><i class="iconfont">&#xe606;</i> <span class="time-word font">{{publishTime}}</span></div> 2 + <div class="msg-left"><i class="iconfont">&#xe606;</i> <span class="time-word font brown-light">{{publishTime}}</span></div>
3 <div class="msg-right"> 3 <div class="msg-right">
4 <a class="msg-title" href="/editorial/{{id}}.html" target="_blank">{{title}}</a> 4 <a class="msg-title" href="/editorial/{{id}}.html" target="_blank">{{title}}</a>
5 <a href="/editorial/{{id}}.html" target="_blank"> 5 <a href="/editorial/{{id}}.html" target="_blank">
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <div class="msg-app"> 9 <div class="msg-app">
10 <span class="like-comment"> 10 <span class="like-comment">
11 <i class="iconfont like-icon {{#if isPraise}}liked{{/if}}">&#xe60e;</i> 11 <i class="iconfont like-icon {{#if isPraise}}liked{{/if}}">&#xe60e;</i>
12 - <b class="like-num font">{{praiseNum}}</b> 12 + <b class="like-num brown-light font">{{praiseNum}}</b>
13 </span> 13 </span>
14 </div> 14 </div>
15 </div> 15 </div>
@@ -196,6 +196,12 @@ const favorite = { @@ -196,6 +196,12 @@ const favorite = {
196 editorialList: data.data 196 editorialList: data.data
197 }; 197 };
198 198
  199 + _.forEach(retData.editorialList, function(val) {
  200 + val.publishTime = val.publishTime.replace(/年|月/g, '/');
  201 + val.publishTime = val.publishTime.replace(/日/g, '');
  202 + });
  203 +
  204 +
199 retData.total = data.total; 205 retData.total = data.total;
200 retData.paginationData = { 206 retData.paginationData = {
201 page: page, 207 page: page,
@@ -227,6 +233,27 @@ const favorite = { @@ -227,6 +233,27 @@ const favorite = {
227 }).catch(next); 233 }).catch(next);
228 }, 234 },
229 235
  236 + // 取消商品、店铺收藏
  237 + cancelMulti(req, res, next) {
  238 + let shops = req.body.shops;
  239 + let brands = req.body.brands;
  240 + let uid = req.user.uid;
  241 +
  242 + let promises = [];
  243 +
  244 + if (shops) {
  245 + promises.push(FavoriteData.cancelFavorite(uid, shops, 'shop'));
  246 + }
  247 +
  248 + if (brands) {
  249 + promises.push(FavoriteData.cancelFavorite(uid, brands, 'brand'));
  250 + }
  251 +
  252 + Promise.all(promises).then(() => {
  253 + res.json({code: 200});
  254 + }).catch(next);
  255 + },
  256 +
230 // 取消资讯收藏 257 // 取消资讯收藏
231 editorialCancel(req, res, next) { 258 editorialCancel(req, res, next) {
232 let ids = req.body.ids; 259 let ids = req.body.ids;
@@ -92,6 +92,7 @@ router.get('/collection', auth, favorite.goods); @@ -92,6 +92,7 @@ router.get('/collection', auth, favorite.goods);
92 router.get('/collection/brand', auth, favorite.brand); 92 router.get('/collection/brand', auth, favorite.brand);
93 router.get('/collection/editorial', auth, favorite.editorial); 93 router.get('/collection/editorial', auth, favorite.editorial);
94 router.post('/collection/cancel', auth, favorite.cancel); 94 router.post('/collection/cancel', auth, favorite.cancel);
  95 +router.post('/collection/cancel/multi', auth, favorite.cancelMulti);
95 router.post('/collection/editorial/cancel', auth, favorite.editorialCancel); 96 router.post('/collection/editorial/cancel', auth, favorite.editorialCancel);
96 97
97 module.exports = router; 98 module.exports = router;
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <div class="check"> 9 <div class="check">
10 {{> icon/checkbox}} 10 {{> icon/checkbox}}
11 </div> 11 </div>
12 - <div class="brand-info" data-id="{{brandId}}"> 12 + <div class="brand-info" data-id="{{brandId}}" data-type="{{brandOrShopType}}">
13 <div class="brand-icon"> 13 <div class="brand-icon">
14 <img src="{{image brandIco 145 126}}" alt="" width="145" height="126"> 14 <img src="{{image brandIco 145 126}}" alt="" width="145" height="126">
15 </div> 15 </div>
@@ -23,9 +23,9 @@ @@ -23,9 +23,9 @@
23 </div> 23 </div>
24 <div class="editorial-some"> 24 <div class="editorial-some">
25 <span class="author">{{author.name}}</span> 25 <span class="author">{{author.name}}</span>
26 - <span class="time">{{publishTime}}</span>  
27 - <span>浏览: {{viewsNum}}</span>  
28 - <span>评论: {{praiseNum}}</span> 26 + <span class="time brown-light">{{publishTime}}</span>
  27 + <span>浏览: <b class="brown-light">{{viewsNum}}</b></span>
  28 + <span>评论: <b class="brown-light">{{praiseNum}}</b></span>
29 </div> 29 </div>
30 <p class="summer"> 30 <p class="summer">
31 {{intro}} 31 {{intro}}
@@ -17,19 +17,13 @@ @@ -17,19 +17,13 @@
17 17
18 <div class="info-box"> 18 <div class="info-box">
19 <h4 class="status-title">发票信息</h4> 19 <h4 class="status-title">发票信息</h4>
20 - {{#if invoice}}  
21 {{# invoice}} 20 {{# invoice}}
22 - {{#if showInvoice}}  
23 - <p class="text">发票类型:{{typeText}}</p>  
24 - <p class="text">发票抬头:{{title}}</p>  
25 - <p class="text">发票内容:{{contentValue}}</p> 21 + <p class="text">发票类型:{{typeText}}</p>
  22 + <p class="text">发票抬头:{{title}}</p>
  23 + <p class="text">发票内容:{{contentValue}}</p>
26 {{^}} 24 {{^}}
27 - <p class="text">暂不需要发票</p>  
28 - {{/if}} 25 + <p class="text">暂不需要发票</p>
29 {{/ invoice}} 26 {{/ invoice}}
30 - {{^}}  
31 - <p class="text">暂不需要发票</p>  
32 - {{/if}}  
33 </div> 27 </div>
34 28
35 {{#if remark}} 29 {{#if remark}}
@@ -136,12 +136,11 @@ const ShopService = { @@ -136,12 +136,11 @@ const ShopService = {
136 136
137 if (info.shopId) { 137 if (info.shopId) {
138 let shopIntro = yield ShopService.getShopIntro(info.shopId, uid); 138 let shopIntro = yield ShopService.getShopIntro(info.shopId, uid);
139 - let brandInfo = yield BrandService.getBrandInfo(info.brandId, uid);  
140 139
141 info.name = shopIntro.shopName; 140 info.name = shopIntro.shopName;
142 info.info = shopIntro.shopIntro; 141 info.info = shopIntro.shopIntro;
143 info.btnName = '品牌介绍'; 142 info.btnName = '品牌介绍';
144 - info.isFavorite = brandInfo.isFavorite === 'Y'; 143 + info.isFavorite = shopIntro.isFavorite === 'Y';
145 info.showShopName = shopIntro.isShowShopName === 'Y'; 144 info.showShopName = shopIntro.isShowShopName === 'Y';
146 145
147 let shopData = yield Promise.all([ShopService.getShopDecorator(info.shopId), 146 let shopData = yield Promise.all([ShopService.getShopDecorator(info.shopId),
@@ -133,7 +133,7 @@ @@ -133,7 +133,7 @@
133 {{/if}} 133 {{/if}}
134 {{#if addToBag}} 134 {{#if addToBag}}
135 <span id="add-to-bag" class="btn"> 135 <span id="add-to-bag" class="btn">
136 - <i class="iconfont">&#xe632;</i> 136 + <i class="iconfont">&#xe64b;</i>
137 加入购物袋 137 加入购物袋
138 </span> 138 </span>
139 {{/if}} 139 {{/if}}
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <th width="{{width}}"> 5 <th width="{{width}}">
6 {{name}} 6 {{name}}
7 {{#if doubt}} 7 {{#if doubt}}
8 - <span class="show-img"></span> 8 + <span class="iconfont show-img">&#xe64d;</span>
9 {{/if}} 9 {{/if}}
10 </th> 10 </th>
11 {{/ thead}} 11 {{/ thead}}
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <div class="goods" data-id="{{productId}}" data-url="{{url}}"> 3 <div class="goods" data-id="{{productId}}" data-url="{{url}}">
4 <div class="goods-img"> 4 <div class="goods-img">
5 <a href="{{url}}" target="_blank"> 5 <a href="{{url}}" target="_blank">
6 - <img class="lazy" data-original="{{image defaultImages 267 354}}" width="267" height="354" alt=""> 6 + <img class="lazy" data-original="{{image defaultImages 263 351}}" width="263" height="351" alt="">
7 </a> 7 </a>
8 </div> 8 </div>
9 {{#if showBrand}} 9 {{#if showBrand}}
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 </div> 22 </div>
23 <div class="goods-list hide"> 23 <div class="goods-list hide">
24 {{#each goodsList}} 24 {{#each goodsList}}
25 - <i data-url="{{url}}">{{image imagesUrl 267 354}}</i> 25 + <i data-url="{{url}}">{{image imagesUrl 263 351}}</i>
26 {{/each}} 26 {{/each}}
27 </div> 27 </div>
28 </div> 28 </div>
@@ -14,14 +14,22 @@ @@ -14,14 +14,22 @@
14 </label> 14 </label>
15 <label class="page-info"><span class="cur-page">{{page}}</span>/<span class="total-page">{{pageTotal}}</span></label> 15 <label class="page-info"><span class="cur-page">{{page}}</span>/<span class="total-page">{{pageTotal}}</span></label>
16 {{#isEqual page 1}} 16 {{#isEqual page 1}}
17 - <span class="iconfont page disable page-pre">&#xe607;</span> 17 + <div class="page disable page-pre">
  18 + <span class="iconfont">&#xe607;</span>
  19 + </div>
18 {{^}} 20 {{^}}
19 - <span class="iconfont page page-pre">&#xe607;</span> 21 + <div class="page page-pre">
  22 + <span class="iconfont ">&#xe607;</span>
  23 + </div>
20 {{/isEqual}} 24 {{/isEqual}}
21 {{#isEqual page pageTotal}} 25 {{#isEqual page pageTotal}}
22 - <span class="iconfont page disable page-next">&#xe61e;</span> 26 + <div class="page disable page-next">
  27 + <span class="iconfont">&#xe61e;</span>
  28 + </div>
23 {{^}} 29 {{^}}
24 - <span class="iconfont page page-next">&#xe61e;</span> 30 + <div class="page page-next">
  31 + <span class="iconfont">&#xe61e;</span>
  32 + </div>
25 {{/isEqual}} 33 {{/isEqual}}
26 </div> 34 </div>
27 {{/paginationData}} 35 {{/paginationData}}
@@ -63,7 +63,7 @@ module.exports = { @@ -63,7 +63,7 @@ module.exports = {
63 udp: { // send by udp 63 udp: { // send by udp
64 measurement: 'yohoblk_pc_log', 64 measurement: 'yohoblk_pc_log',
65 level: 'debug', // logger level 65 level: 'debug', // logger level
66 - host: '54.222.219.223', // influxdb host 66 + host: 'influxdblog.yohoops.org', // influxdb host
67 port: '4444' // influxdb port 67 port: '4444' // influxdb port
68 }, 68 },
69 console: { 69 console: {
@@ -99,7 +99,7 @@ if (isProduction) { @@ -99,7 +99,7 @@ if (isProduction) {
99 Object.assign(module.exports, { 99 Object.assign(module.exports, {
100 appName: 'www.yohoblk.com', 100 appName: 'www.yohoblk.com',
101 domains: { 101 domains: {
102 - singleApi: 'http://api_single.yoho.cn/', 102 + singleApi: 'http://single.yoho.cn/',
103 api: 'http://api.yoho.yohoops.org/', 103 api: 'http://api.yoho.yohoops.org/',
104 service: 'http://service.yoho.yohoops.org/', 104 service: 'http://service.yoho.yohoops.org/',
105 search: 'http://search.yohoops.org/yohosearch/' 105 search: 'http://search.yohoops.org/yohosearch/'
@@ -13,7 +13,7 @@ module.exports = (req, res, next) => { @@ -13,7 +13,7 @@ module.exports = (req, res, next) => {
13 let refer = ''; 13 let refer = '';
14 14
15 if (req.method === 'GET') { 15 if (req.method === 'GET') {
16 - refer = req.getUrl(); 16 + refer = `${req.protocol}://${req.hostname}${req.originalUrl}`;
17 } else { 17 } else {
18 refer = req.get('Referer'); 18 refer = req.get('Referer');
19 } 19 }
@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 <a href="{{../siteUrl}}/help">帮助中心</a> 31 <a href="{{../siteUrl}}/help">帮助中心</a>
32 </li> 32 </li>
33 <li class="tag-phone"> 33 <li class="tag-phone">
34 - <span class="tools-icon icon-phone"></span> 34 + <span class="iconfont tools-icon icon-phone">&#xe649;</span>
35 手机版 35 手机版
36 <div class="down-app-box sub-wrapper"> 36 <div class="down-app-box sub-wrapper">
37 <div class="down-qr"></div> 37 <div class="down-qr"></div>
@@ -41,9 +41,7 @@ @@ -41,9 +41,7 @@
41 </li> 41 </li>
42 <li class="tag-bag"> 42 <li class="tag-bag">
43 <a href="{{../siteUrl}}/shopping/cart"> 43 <a href="{{../siteUrl}}/shopping/cart">
44 - <span class="tools-icon icon-bag">  
45 - <b class="bag-num"></b>  
46 - </span> 44 + <span class="iconfont tools-icon icon-bag">&#xe64b;</span>
47 购物袋 45 购物袋
48 </a> 46 </a>
49 <div class="mini-bag-box sub-wrapper bag-empty"> 47 <div class="mini-bag-box sub-wrapper bag-empty">
@@ -57,11 +57,11 @@ @@ -57,11 +57,11 @@
57 {{/ subNav}} 57 {{/ subNav}}
58 </ul> 58 </ul>
59 <div class="search-entry"> 59 <div class="search-entry">
60 - <span class="iconfont">&#xe605;</span> 60 + <span class="iconfont">&#xe64a;</span>
61 <div class="search-wrapper"> 61 <div class="search-wrapper">
62 <div class="search-input"> 62 <div class="search-input">
63 <form id="search-form" action="{{../siteUrl}}/product/query"> 63 <form id="search-form" action="{{../siteUrl}}/product/query">
64 - <span class="iconfont left">&#xe605;</span> 64 + <span class="iconfont left">&#xe64a;</span>
65 <input type="text" name="query" id="search-key" class="search-key" autocomplete="off"> 65 <input type="text" name="query" id="search-key" class="search-key" autocomplete="off">
66 <span class="iconfont right clear-input">&#xe608;</span> 66 <span class="iconfont right clear-input">&#xe608;</span>
67 </form> 67 </form>
@@ -15,7 +15,6 @@ @@ -15,7 +15,6 @@
15 {{/if}} 15 {{/if}}
16 </li> 16 </li>
17 <li><a href="{{siteUrl}}/me">个人中心</a></li> 17 <li><a href="{{siteUrl}}/me">个人中心</a></li>
18 - <li><a href="{{siteUrl}}/me/order">订单中心</a></li>  
19 <li><a href="{{siteUrl}}/help">帮助中心</a></li> 18 <li><a href="{{siteUrl}}/help">帮助中心</a></li>
20 </ul> 19 </ul>
21 </div> 20 </div>
No preview for this file type
@@ -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 Thu Jul 21 15:35:40 2016 5 +Created by FontForge 20120731 at Wed Aug 17 17:32:05 2016
6 By admin 6 By admin
7 </metadata> 7 </metadata>
8 <defs> 8 <defs>
@@ -19,7 +19,7 @@ Created by FontForge 20120731 at Thu Jul 21 15:35:40 2016 @@ -19,7 +19,7 @@ Created by FontForge 20120731 at Thu Jul 21 15:35:40 2016
19 bbox="0 -224 1303 896.303" 19 bbox="0 -224 1303 896.303"
20 underline-thickness="50" 20 underline-thickness="50"
21 underline-position="-100" 21 underline-position="-100"
22 - unicode-range="U+0078-E648" 22 + unicode-range="U+0078-E64D"
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" />
@@ -41,8 +41,8 @@ d="M0 896h1024v-1024h-1024v1024zM85 -43h854v854h-854v-854z" /> @@ -41,8 +41,8 @@ d="M0 896h1024v-1024h-1024v1024zM85 -43h854v854h-854v-854z" />
41 <glyph glyph-name="uniE602" unicode="&#xe602;" 41 <glyph glyph-name="uniE602" unicode="&#xe602;"
42 d="M1024 896h-1024v-1024h1024v1024zM448 101l-237 238l90 90l147 -146l307 306l90 -90l-397 -397v-1z" /> 42 d="M1024 896h-1024v-1024h1024v1024zM448 101l-237 238l90 90l147 -146l307 306l90 -90l-397 -397v-1z" />
43 <glyph glyph-name="uniE603" unicode="&#xe603;" 43 <glyph glyph-name="uniE603" unicode="&#xe603;"
44 -d="M512 -128q-139 0 -257 68.5t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257t-68.5 -257t-186.5 -186.5t-257 -68.5zM512 -14q108 0 200 53t145 145t53 200t-53 200t-145 145t-200 53t-200 -53t-145 -145t-53 -200t53 -200  
45 -t145 -145t200 -53zM512 100q118 0 201 83t83 201t-83 201t-201 83t-201 -83t-83 -201t83 -201t201 -83z" /> 44 +d="M512 -212q-139 0 -257 68.5t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257t-68.5 -257t-186.5 -186.5t-257 -68.5zM512 -98q108 0 200 53t145 145t53 200t-53 200t-145 145t-200 53t-200 -53t-145 -145t-53 -200t53 -200
  45 +t145 -145t200 -53zM512 16q118 0 201 83t83 201t-83 201t-201 83t-201 -83t-83 -201t83 -201t201 -83z" />
46 <glyph glyph-name="uniE604" unicode="&#xe604;" 46 <glyph glyph-name="uniE604" unicode="&#xe604;"
47 d="M512 684q159 0 271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5zM512 812q-139 0 -257 -68.5t-186.5 -186.5t-68.5 -257t68.5 -257t186.5 -186.5t257 -68.5t257 68.5t186.5 186.5t68.5 257t-68.5 257 47 d="M512 684q159 0 271.5 -112.5t112.5 -271.5t-112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5zM512 812q-139 0 -257 -68.5t-186.5 -186.5t-68.5 -257t68.5 -257t186.5 -186.5t257 -68.5t257 68.5t186.5 186.5t68.5 257t-68.5 257
48 t-186.5 186.5t-257 68.5z" /> 48 t-186.5 186.5t-257 68.5z" />
@@ -89,6 +89,9 @@ d="M795 342q0 -109 -78 -185.5t-188.5 -76.5t-189 76.5t-78.5 185t78.5 185.5t188.5 @@ -89,6 +89,9 @@ d="M795 342q0 -109 -78 -185.5t-188.5 -76.5t-189 76.5t-78.5 185t78.5 185.5t188.5
89 d="M911 725h-242v123q0 21 -13.5 34.5t-34.5 13.5h-246q-20 0 -33.5 -13.5t-13.5 -34.5v-123h-246q-21 0 -34.5 -13.5t-13.5 -34t13.5 -34t34.5 -13.5h293h243h293q21 0 34.5 13.5t13.5 34t-13.5 34t-34.5 13.5zM423 725v72h147v-72h-147zM765 579q-21 0 -34.5 -14 89 d="M911 725h-242v123q0 21 -13.5 34.5t-34.5 13.5h-246q-20 0 -33.5 -13.5t-13.5 -34.5v-123h-246q-21 0 -34.5 -13.5t-13.5 -34t13.5 -34t34.5 -13.5h293h243h293q21 0 34.5 13.5t13.5 34t-13.5 34t-34.5 13.5zM423 725v72h147v-72h-147zM765 579q-21 0 -34.5 -14
90 t-13.5 -34v-560h-441v560q0 20 -13.5 34t-34 14t-34 -14t-13.5 -34v-611q0 -21 13.5 -34.5t34.5 -13.5h536q20 0 33.5 13.5t13.5 34.5v611q3 20 -11.5 34t-35.5 14zM447 67v389q0 20 -13.5 33.5t-34 13.5t-34 -13.5t-13.5 -33.5v-389q0 -21 13.5 -34.5t34 -13.5t34 13.5 90 t-13.5 -34v-560h-441v560q0 20 -13.5 34t-34 14t-34 -14t-13.5 -34v-611q0 -21 13.5 -34.5t34.5 -13.5h536q20 0 33.5 13.5t13.5 34.5v611q3 20 -11.5 34t-35.5 14zM447 67v389q0 20 -13.5 33.5t-34 13.5t-34 -13.5t-13.5 -33.5v-389q0 -21 13.5 -34.5t34 -13.5t34 13.5
91 t13.5 34.5zM645 67v389q0 20 -13.5 33.5t-34.5 13.5q-20 0 -35.5 -13.5t-15.5 -33.5v-389q0 -21 13.5 -34.5t34.5 -13.5t36 13.5t15 34.5z" /> 91 t13.5 34.5zM645 67v389q0 20 -13.5 33.5t-34.5 13.5q-20 0 -35.5 -13.5t-15.5 -33.5v-389q0 -21 13.5 -34.5t34.5 -13.5t36 13.5t15 34.5z" />
  92 + <glyph glyph-name="uniE615" unicode="&#xe615;"
  93 +d="M512 300zM219 300q0 121 86 207t207 86t207 -86t86 -207t-86 -207t-207 -86t-207 86t-86 207zM512 -212q-140 0 -258 68t-186 186t-68 258t68 258t186 186t258 68t258 -68t186 -186t68 -258t-68 -258t-186 -186t-258 -68zM512 739q-89 0 -170 -35t-140 -94t-94 -140
  94 +t-35 -170t35 -170t94 -140t140 -94t170 -35t170 35t140 94t94 140t35 170t-35 170t-94 140t-140 94t-170 35z" />
92 <glyph glyph-name="uniE616" unicode="&#xe616;" 95 <glyph glyph-name="uniE616" unicode="&#xe616;"
93 d="M894 554l-43 43l-339 -339l-339 339l-43 -43l382 -383z" /> 96 d="M894 554l-43 43l-339 -339l-339 339l-43 -43l382 -383z" />
94 <glyph glyph-name="uniE617" unicode="&#xe617;" 97 <glyph glyph-name="uniE617" unicode="&#xe617;"
@@ -244,5 +247,16 @@ d="M1024 -106l-230 231q83 88 111.5 203.5t-3 231t-118.5 202.5q-66 65 -150.5 99.5t @@ -244,5 +247,16 @@ d="M1024 -106l-230 231q83 88 111.5 203.5t-3 231t-118.5 202.5q-66 65 -150.5 99.5t
244 q0 174 125 304q60 60 138.5 92.5t165.5 32.5q174 0 304 -125q61 -61 93 -141t32 -161t-32 -161t-93 -142q-60 -60 -139 -92t-165.5 -32t-165 32t-138.5 92z" /> 247 q0 174 125 304q60 60 138.5 92.5t165.5 32.5q174 0 304 -125q61 -61 93 -141t32 -161t-32 -161t-93 -142q-60 -60 -139 -92t-165.5 -32t-165 32t-138.5 92z" />
245 <glyph glyph-name="uniE648" unicode="&#xe648;" horiz-adv-x="1025" 248 <glyph glyph-name="uniE648" unicode="&#xe648;" horiz-adv-x="1025"
246 d="M1024 480v338q0 32 -23 55t-55 23h-331h-14q-55 0 -76 -21l-506 -506q-19 -19 -19 -46t19 -45l387 -387q18 -19 45 -19t46 19l506 506q10 10 15 25.5t5.5 26.5t0.5 31zM764 549q-36 0 -61.5 25.5t-25.5 61.5t25.5 61t61.5 25t61 -25t25 -61t-25 -61.5t-61 -25.5z" /> 249 d="M1024 480v338q0 32 -23 55t-55 23h-331h-14q-55 0 -76 -21l-506 -506q-19 -19 -19 -46t19 -45l387 -387q18 -19 45 -19t46 19l506 506q10 10 15 25.5t5.5 26.5t0.5 31zM764 549q-36 0 -61.5 25.5t-25.5 61.5t25.5 61t61.5 25t61 -25t25 -61t-25 -61.5t-61 -25.5z" />
  250 + <glyph glyph-name="uniE649" unicode="&#xe649;"
  251 +d="M129 896v-1024h766v1024h-766zM576 -60h-128v127h128v-127zM769 127h-514v641h514v-641z" />
  252 + <glyph glyph-name="uniE64A" unicode="&#xe64a;" horiz-adv-x="1028"
  253 +d="M1028 -36l-93 -92l-204 203q-123 -92 -273 -92q-93 0 -178 36.5t-146 97.5t-97.5 145.5t-36.5 177t36.5 177.5t97.5 146t146 97t178 36t178 -36t146.5 -97t97.5 -146t36 -177q0 -150 -92 -272l204 -204v0zM458 766q-89 0 -164 -44t-119 -119t-44 -163.5t44 -163.5
  254 +t119 -118.5t164 -43.5t164.5 43.5t119 118.5t43.5 163.5t-43.5 163.5t-119 119t-164.5 44v0z" />
  255 + <glyph glyph-name="uniE64B" unicode="&#xe64b;"
  256 +d="M812 568l-137 328h-326l-137 -328h-206l79 -696h854l79 696h-206zM418 786h189l91 -218h-371z" />
  257 + <glyph glyph-name="uniE64D" unicode="&#xe64d;"
  258 +d="M512 886q-102 0 -195 -39.5t-160.5 -107t-107 -160.5t-39.5 -195t39.5 -195t107 -160.5t160.5 -107t195 -39.5t195 39.5t160.5 107t107 160.5t39.5 195t-39.5 195t-107 160.5t-160.5 107t-195 39.5zM521 -15q-34 0 -58.5 24t-24.5 58.5t24.5 58.5t58.5 24t58 -24t24 -58
  259 +q1 -34 -23.5 -58.5t-58.5 -24.5zM738 477q-17 -34 -67 -83q-45 -43 -60 -61q-12 -16 -17 -35q-6 -22 -6 -61l1 -31h-142v30q0 56 9 90q11 38 30 64q17 23 62 71q43 44 52 60q8 13 8 44q0 28 -20 51q-20 21 -61 21q-29 0 -48.5 -9.5t-28.5 -27.5t-12.5 -36t-3.5 -43v-30h-142
  260 +l1 31q2 72 18 111q16 40 52 73q34 31 78 46q41 14 88 14q96 0 160 -56q66 -59 66 -154q0 -43 -17 -79z" />
247 </font> 261 </font>
248 </defs></svg> 262 </defs></svg>
No preview for this file type
No preview for this file type

841 Bytes | W: | H:

413 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

499 Bytes | W: | H:

241 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -121,7 +121,7 @@ function comment() { @@ -121,7 +121,7 @@ function comment() {
121 var commentInfo = $('#comment-info').val(); 121 var commentInfo = $('#comment-info').val();
122 122
123 if (commentInfo === '') { 123 if (commentInfo === '') {
124 - new _alert('评论不能为空').show(); 124 + // new _alert('评论不能为空').show();
125 return false; 125 return false;
126 } 126 }
127 commenting = true; 127 commenting = true;
@@ -46,18 +46,24 @@ var FavoriteBrand = { @@ -46,18 +46,24 @@ var FavoriteBrand = {
46 46
47 $('.btn.cancel', $root).click(function() { 47 $('.btn.cancel', $root).click(function() {
48 var id = $(this).parents('.brand-info').data('id'); 48 var id = $(this).parents('.brand-info').data('id');
  49 + var type = $(this).parents('.brand-info').data('type');
49 50
50 - FavoriteBrand.doCancel(id); 51 + FavoriteBrand.doCancel(id, type);
51 }); 52 });
52 53
53 $('.favorite-cancel', $root).click(function() { 54 $('.favorite-cancel', $root).click(function() {
54 - var ids = []; 55 + var shopId = [];
  56 + var brandId = [];
55 57
56 $('.brand-info.choose', $root).each(function() { 58 $('.brand-info.choose', $root).each(function() {
57 - ids.push($(this).data('id')); 59 + if ($(this).data('type') === 'shop') {
  60 + shopId.push($(this).data('id'));
  61 + } else if ($(this).data('type') === 'brand') {
  62 + brandId.push($(this).data('id'));
  63 + }
58 }); 64 });
59 65
60 - FavoriteBrand.doCancel(ids.join(',')); 66 + FavoriteBrand.doCancelMulti(shopId.join(','), brandId.join(','));
61 }); 67 });
62 }, 68 },
63 moveSlide: function(ele) { 69 moveSlide: function(ele) {
@@ -72,15 +78,25 @@ var FavoriteBrand = { @@ -72,15 +78,25 @@ var FavoriteBrand = {
72 $(currLi).removeClass('show'); 78 $(currLi).removeClass('show');
73 } 79 }
74 }, 80 },
75 - doCancel: function(ids) { 81 + doCancel: function(ids, type) {
76 $.post('/me/collection/cancel', { 82 $.post('/me/collection/cancel', {
77 - type: 'brand', 83 + type: type || 'brand',
78 ids: ids 84 ids: ids
79 }, function(data) { 85 }, function(data) {
80 if (data.code === 200) { 86 if (data.code === 200) {
81 location.href = '/me/collection/brand'; 87 location.href = '/me/collection/brand';
82 } 88 }
83 }); 89 });
  90 + },
  91 + doCancelMulti: function(shops, brands) {
  92 + $.post('/me/collection/cancel/multi', {
  93 + shops: shops,
  94 + brands: brands
  95 + }, function(data) {
  96 + if (data.code === 200) {
  97 + location.href = '/me/collection/brand';
  98 + }
  99 + });
84 } 100 }
85 }; 101 };
86 102
@@ -87,5 +87,3 @@ $('#go-pay-btn').click(function() { @@ -87,5 +87,3 @@ $('#go-pay-btn').click(function() {
87 } 87 }
88 }); 88 });
89 }); 89 });
90 -  
91 -console.log(window.history);  
@@ -92,20 +92,12 @@ @@ -92,20 +92,12 @@
92 .tools-icon { 92 .tools-icon {
93 width: 20px; 93 width: 20px;
94 height: 20px; 94 height: 20px;
  95 + line-height: 20px;
  96 + font-size: 16px;
  97 + color: #1b1b1b;
95 display: inline-block; 98 display: inline-block;
96 - vertical-align: middle;  
97 position: relative; 99 position: relative;
98 - top: -1px;  
99 - }  
100 -  
101 - .icon-phone {  
102 - background-image: url('/layout/phone.png');  
103 - }  
104 -  
105 - .icon-bag {  
106 - background-image: url('/layout/bag.png');  
107 - line-height: 24px;  
108 - text-align: center; 100 + top: 1px;
109 } 101 }
110 102
111 .bag-num { 103 .bag-num {
@@ -12,10 +12,10 @@ @@ -12,10 +12,10 @@
12 12
13 &:first-child { 13 &:first-child {
14 margin-right: 10px; 14 margin-right: 10px;
15 - border: 1px solid #333; 15 + border: 2px solid #1b1b1b;
16 16
17 &:hover { 17 &:hover {
18 - background-color: #333; 18 + background-color: #1b1b1b;
19 cursor: pointer; 19 cursor: pointer;
20 color: #fff; 20 color: #fff;
21 } 21 }
@@ -23,10 +23,10 @@ @@ -23,10 +23,10 @@
23 23
24 &:last-child { 24 &:last-child {
25 margin-left: 10px; 25 margin-left: 10px;
26 - border: 1px solid #333; 26 + border: 2px solid #1b1b1b;
27 27
28 &:hover { 28 &:hover {
29 - background-color: #333; 29 + background-color: #1b1b1b;
30 cursor: pointer; 30 cursor: pointer;
31 color: #fff; 31 color: #fff;
32 } 32 }
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 } 34 }
35 35
36 .active { 36 .active {
37 - background-color: #333; 37 + background-color: #1b1b1b;
38 color: #fff; 38 color: #fff;
39 } 39 }
40 40
@@ -20,10 +20,6 @@ @@ -20,10 +20,6 @@
20 height: 40px; 20 height: 40px;
21 } 21 }
22 22
23 - .font {  
24 - font-family: '黑体';  
25 - }  
26 -  
27 .paging { 23 .paging {
28 margin-top: 40px; 24 margin-top: 40px;
29 margin-bottom: 80px; 25 margin-bottom: 80px;
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 line-height: 30px; 11 line-height: 30px;
12 text-align: center; 12 text-align: center;
13 border-bottom: 1px solid #bbb; 13 border-bottom: 1px solid #bbb;
14 - color: #a0a0a0; 14 + color: #999;
15 } 15 }
16 16
17 .msg-right { 17 .msg-right {
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 30
31 .msg-title { 31 .msg-title {
32 font-size: 20px; 32 font-size: 20px;
33 - color: #333; 33 + color: #1b1b1b;
34 line-height: 30px; 34 line-height: 30px;
35 max-height: 64px; 35 max-height: 64px;
36 overflow: hidden; 36 overflow: hidden;
@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 } 42 }
43 43
44 .msg-title:hover { 44 .msg-title:hover {
45 - color: #ff1414; 45 + color: #379ed6;
46 } 46 }
47 47
48 .lazy { 48 .lazy {
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 } 86 }
87 87
88 .like-comment { 88 .like-comment {
89 - color: #a6a6a6; 89 + color: #999;
90 cursor: pointer; 90 cursor: pointer;
91 font-size: 14px; 91 font-size: 14px;
92 92
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 } 36 }
37 37
38 .coll { 38 .coll {
39 - color: #1d1d1d; 39 + color: #fc0d1b;
40 } 40 }
41 41
42 .iconfont { 42 .iconfont {
@@ -429,10 +429,8 @@ @@ -429,10 +429,8 @@
429 .show-img { 429 .show-img {
430 width: 14px; 430 width: 14px;
431 height: 14px; 431 height: 14px;
  432 + font-size: 14px;
432 display: inline-block; 433 display: inline-block;
433 - position: relative;  
434 - top: 2px;  
435 - background: url('/product/doubt.png') no-repeat;  
436 cursor: pointer; 434 cursor: pointer;
437 } 435 }
438 436
@@ -301,17 +301,16 @@ @@ -301,17 +301,16 @@
301 } 301 }
302 302
303 .goods-area { 303 .goods-area {
304 - margin: 0 -12px; 304 + margin: 0 -15px;
305 position: relative; 305 position: relative;
306 306
307 .goods { 307 .goods {
308 - margin: 10px 0 26px;  
309 - padding: 10px; 308 + margin: 10px 0 16px;
  309 + padding: 10px 13px;
310 float: left; 310 float: left;
311 text-align: center; 311 text-align: center;
312 border: 2px solid #fff; 312 border: 2px solid #fff;
313 cursor: pointer; 313 cursor: pointer;
314 - width: 287px;  
315 314
316 .goods-brand { 315 .goods-brand {
317 font-weight: 700; 316 font-weight: 700;
@@ -324,8 +323,8 @@ @@ -324,8 +323,8 @@
324 .goods-img { 323 .goods-img {
325 position: relative; 324 position: relative;
326 overflow: hidden; 325 overflow: hidden;
327 - width: 267px;  
328 - height: 354px; 326 + width: 263px;
  327 + height: 351px;
329 328
330 img { 329 img {
331 margin: 0; 330 margin: 0;
@@ -345,7 +344,7 @@ @@ -345,7 +344,7 @@
345 344
346 .goods-name { 345 .goods-name {
347 padding: 4px 10px 10px; 346 padding: 4px 10px 10px;
348 - width: 265px; 347 + width: 263px;
349 overflow: hidden; 348 overflow: hidden;
350 text-overflow: ellipsis; 349 text-overflow: ellipsis;
351 white-space: nowrap; 350 white-space: nowrap;
@@ -67,29 +67,49 @@ @@ -67,29 +67,49 @@
67 67
68 .page { 68 .page {
69 color: #1b1b1b; 69 color: #1b1b1b;
70 - font-weight: 700;  
71 border: 2px solid #1b1b1b; 70 border: 2px solid #1b1b1b;
72 width: 24px; 71 width: 24px;
73 height: 24px; 72 height: 24px;
74 - line-height: 24px;  
75 display: inline-block; 73 display: inline-block;
76 - font-size: 14px;  
77 - text-align: center;  
78 margin-right: 8px; 74 margin-right: 8px;
79 cursor: pointer; 75 cursor: pointer;
  76 +
  77 + span {
  78 + font-weight: 700;
  79 + font-size: 14px;
  80 + display: block;
  81 + position: relative;
  82 + line-height: 22px;
  83 + text-align: center;
  84 + }
  85 + }
  86 +
  87 + .page:hover {
  88 + background-color: #1b1b1b;
  89 + color: #fff;
80 } 90 }
81 91
82 .page.disable { 92 .page.disable {
83 - color: #878787;  
84 - border: 2px solid #878787; 93 + color: #eee;
  94 + border: 2px solid #eee;
  95 + }
  96 +
  97 + .page.disable:hover {
  98 + color: #eee;
  99 + border: 2px solid #eee;
  100 + background-color: #fff;
85 } 101 }
86 102
87 .page.page-next { 103 .page.page-next {
88 - line-height: 20px; 104 + span {
  105 + top: -1px;
  106 + }
89 } 107 }
90 108
91 .page.page-pre { 109 .page.page-pre {
92 - line-height: 20px; 110 + span {
  111 + left: -1px;
  112 + }
93 } 113 }
94 } 114 }
95 } 115 }
1 .yoho-product-list, 1 .yoho-product-list,
2 .yoho-shop-index { 2 .yoho-shop-index {
3 -  
4 .yoho-product-list-content { 3 .yoho-product-list-content {
5 margin-top: 30px; 4 margin-top: 30px;
6 } 5 }
@@ -41,14 +40,12 @@ @@ -41,14 +40,12 @@
41 } 40 }
42 41
43 .brand-fav.coled .iconfont { 42 .brand-fav.coled .iconfont {
44 - color: #000; 43 + color: #fc0d1b;
45 } 44 }
46 -  
47 } 45 }
48 } 46 }
49 47
50 .shop-menu { 48 .shop-menu {
51 -  
52 border-bottom: 1px solid #eee; 49 border-bottom: 1px solid #eee;
53 50
54 li { 51 li {
@@ -68,11 +65,9 @@ @@ -68,11 +65,9 @@
68 .brand-info-wrapper { 65 .brand-info-wrapper {
69 display: none; 66 display: none;
70 } 67 }
71 -  
72 } 68 }
73 69
74 .yoho-shop-index { 70 .yoho-shop-index {
75 -  
76 font-size: 14px; 71 font-size: 14px;
77 72
78 @import "order-area"; 73 @import "order-area";
@@ -94,6 +89,7 @@ @@ -94,6 +89,7 @@
94 89
95 a { 90 a {
96 display: block; 91 display: block;
  92 +
97 img { 93 img {
98 width: 100%; 94 width: 100%;
99 height: 190px; 95 height: 190px;
@@ -116,6 +112,7 @@ @@ -116,6 +112,7 @@
116 .all-product-warp { 112 .all-product-warp {
117 .goods-wrap { 113 .goods-wrap {
118 margin: 0 -10px; 114 margin: 0 -10px;
  115 +
119 .goods-info { 116 .goods-info {
120 float: left; 117 float: left;
121 width: 272px; 118 width: 272px;
@@ -165,7 +162,6 @@ @@ -165,7 +162,6 @@
165 color: #fff; 162 color: #fff;
166 z-index: 2; 163 z-index: 2;
167 } 164 }
168 -  
169 } 165 }
170 } 166 }
171 167
@@ -180,7 +176,6 @@ @@ -180,7 +176,6 @@
180 } 176 }
181 177
182 .editorial-wrap { 178 .editorial-wrap {
183 -  
184 margin: 0 -10px; 179 margin: 0 -10px;
185 180
186 .editorial-info { 181 .editorial-info {
@@ -206,6 +201,7 @@ @@ -206,6 +201,7 @@
206 201
207 .floor-header { 202 .floor-header {
208 position: relative; 203 position: relative;
  204 +
209 .floor-more { 205 .floor-more {
210 position: absolute; 206 position: absolute;
211 right: 0; 207 right: 0;
@@ -244,6 +240,7 @@ @@ -244,6 +240,7 @@
244 line-height: 30px; 240 line-height: 30px;
245 width: 1000px; 241 width: 1000px;
246 overflow: hidden; 242 overflow: hidden;
  243 +
247 div { 244 div {
248 float: left; 245 float: left;
249 margin: 0 5px; 246 margin: 0 5px;
@@ -253,13 +250,13 @@ @@ -253,13 +250,13 @@
253 250
254 div:hover { 251 div:hover {
255 background-color: #000; 252 background-color: #000;
  253 +
256 a { 254 a {
257 color: #fff !important; 255 color: #fff !important;
258 } 256 }
259 } 257 }
260 } 258 }
261 } 259 }
262 -  
263 } 260 }
264 261
265 .yoho-dialog.brand-info-dialog { 262 .yoho-dialog.brand-info-dialog {
@@ -278,6 +275,7 @@ @@ -278,6 +275,7 @@
278 .brand-info-title { 275 .brand-info-title {
279 text-align: left; 276 text-align: left;
280 margin: 20px 0 50px; 277 margin: 20px 0 50px;
  278 +
281 h2 { 279 h2 {
282 font-size: 18px; 280 font-size: 18px;
283 font-weight: 700; 281 font-weight: 700;
@@ -289,6 +287,7 @@ @@ -289,6 +287,7 @@
289 text-align: left; 287 text-align: left;
290 font-size: 12px; 288 font-size: 12px;
291 line-height: 20px; 289 line-height: 20px;
  290 +
292 p { 291 p {
293 font-size: 12px; 292 font-size: 12px;
294 line-height: 20px; 293 line-height: 20px;