Authored by zhangxiaoru

brand

@@ -31,17 +31,17 @@ const index = (req, res) => { @@ -31,17 +31,17 @@ const index = (req, res) => {
31 { 31 {
32 url: '#', 32 url: '#',
33 name: '', 33 name: '',
34 - src: '#' 34 + src: '//img10.static.yhbimg.com/yhb-img01/2016/07/06/17/01932e57d2dcd5c74afeaffd2525da5834.jpg?imageView2/2/w/570/h/633'
35 }, 35 },
36 { 36 {
37 url: '#', 37 url: '#',
38 name: '', 38 name: '',
39 - src: '#' 39 + src: '//img10.static.yhbimg.com/yhb-img01/2016/07/06/17/01932e57d2dcd5c74afeaffd2525da5834.jpg?imageView2/2/w/570/h/633'
40 }, 40 },
41 { 41 {
42 url: '#', 42 url: '#',
43 name: '', 43 name: '',
44 - src: '#' 44 + src: '//img10.static.yhbimg.com/yhb-img01/2016/07/06/17/01932e57d2dcd5c74afeaffd2525da5834.jpg?imageView2/2/w/570/h/633'
45 } 45 }
46 ], 46 ],
47 category: result.category 47 category: result.category
@@ -16,7 +16,6 @@ const _processListData = (list) => { @@ -16,7 +16,6 @@ const _processListData = (list) => {
16 16
17 list = list || []; 17 list = list || [];
18 list = camelCase(list); 18 list = camelCase(list);
19 - console.log(list);  
20 19
21 _.forEach(list.data.allList, function(value, index) { 20 _.forEach(list.data.allList, function(value, index) {
22 21
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <a href="{{url}}" target="_blank"> 9 <a href="{{url}}" target="_blank">
10 <div class="g-mask"></div> 10 <div class="g-mask"></div>
11 <p class="tips">{{name}}</p> 11 <p class="tips">{{name}}</p>
12 - <img class="lazy" data-original="{{src}}"/> 12 + <img class="lazy" data-original="{{image src 370 304}}"/>
13 </a> 13 </a>
14 </li> 14 </li>
15 {{/each}} 15 {{/each}}
@@ -28,11 +28,6 @@ const index = (req, res, next) => { @@ -28,11 +28,6 @@ const index = (req, res, next) => {
28 link: '/editorial?type=1', 28 link: '/editorial?type=1',
29 pathTitle: '资讯', 29 pathTitle: '资讯',
30 name: '资讯' 30 name: '资讯'
31 - },  
32 - {  
33 - link: '/',  
34 - pathTitle: '资讯',  
35 - name: '资讯'  
36 } 31 }
37 ], 32 ],
38 msgTypes: result.msgTypes, 33 msgTypes: result.msgTypes,
@@ -7,8 +7,7 @@ const _ = require('lodash'); @@ -7,8 +7,7 @@ const _ = require('lodash');
7 7
8 // const moment = require('moment'); 8 // const moment = require('moment');
9 const logger = global.yoho.logger; 9 const logger = global.yoho.logger;
10 -  
11 -// const helpers = global.yoho.helpers; 10 +const helpers = global.yoho.helpers;
12 11
13 const _processNavData = (list, type) => { 12 const _processNavData = (list, type) => {
14 let formatData = []; 13 let formatData = [];
@@ -40,6 +39,7 @@ const _processListData = (list) => { @@ -40,6 +39,7 @@ const _processListData = (list) => {
40 39
41 return data; 40 return data;
42 }); 41 });
  42 + console.log(artList)
43 43
44 return artList; 44 return artList;
45 }; 45 };
@@ -16,7 +16,7 @@ var $list = $('.brands-list'), @@ -16,7 +16,7 @@ var $list = $('.brands-list'),
16 require('../common/header'); 16 require('../common/header');
17 require('../common/return-top'); 17 require('../common/return-top');
18 18
19 -lazyLoad($('.brands-list img.lazy')); 19 +lazyLoad($('.brand-page img.lazy'));
20 20
21 // 品牌类别滚动事件 21 // 品牌类别滚动事件
22 $(window).scroll(function() { 22 $(window).scroll(function() {
@@ -10,7 +10,7 @@ var $ = require('yoho-jquery'), @@ -10,7 +10,7 @@ var $ = require('yoho-jquery'),
10 require('../common/header'); 10 require('../common/header');
11 require('../common/return-top'); 11 require('../common/return-top');
12 12
13 -lazyLoad($('#msg-list img.lazy')); 13 +lazyLoad($('.content-msg img.lazy'));
14 14
15 $('.editorial-index-page').on('click', '.like-icon', function() { 15 $('.editorial-index-page').on('click', '.like-icon', function() {
16 var $this = $(this), 16 var $this = $(this),