Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0
Showing
9 changed files
with
36 additions
and
14 deletions
@@ -21,8 +21,9 @@ const brand = require('../models/brand'); | @@ -21,8 +21,9 @@ const brand = require('../models/brand'); | ||
21 | const index = (req, res, next) => { | 21 | const index = (req, res, next) => { |
22 | let channel = req.query.brand || 1; | 22 | let channel = req.query.brand || 1; |
23 | let contentCode = 'd0149783b8dd2adaf083fd10556c39a9'; | 23 | let contentCode = 'd0149783b8dd2adaf083fd10556c39a9'; |
24 | + let appType = 1; | ||
24 | 25 | ||
25 | - brand.getListData(contentCode, channel).then((result) => { | 26 | + brand.getListData(contentCode, channel, appType).then((result) => { |
26 | res.display('index', { | 27 | res.display('index', { |
27 | module: 'brand', | 28 | module: 'brand', |
28 | page: 'index', | 29 | page: 'index', |
@@ -42,6 +42,7 @@ const _processListData = (list) => { | @@ -42,6 +42,7 @@ const _processListData = (list) => { | ||
42 | } | 42 | } |
43 | ); | 43 | ); |
44 | }); | 44 | }); |
45 | + console.log(listData) | ||
45 | 46 | ||
46 | return listData; | 47 | return listData; |
47 | }; | 48 | }; |
@@ -96,9 +97,10 @@ const _getResources = (contentCode) => { | @@ -96,9 +97,10 @@ const _getResources = (contentCode) => { | ||
96 | * @param channel | 97 | * @param channel |
97 | * @returns {*} | 98 | * @returns {*} |
98 | */ | 99 | */ |
99 | -const _getBreakingSort = (channel) => { | 100 | +const _getBreakingSort = (channel, appType) => { |
100 | return api.get('', { | 101 | return api.get('', { |
101 | - yo_channel: channel, | 102 | + yh_channel: channel, |
103 | + app_type: appType, | ||
102 | method: 'app.brand.newBrandList' | 104 | method: 'app.brand.newBrandList' |
103 | }).then((result) => { | 105 | }).then((result) => { |
104 | if (result && result.code === 200) { | 106 | if (result && result.code === 200) { |
@@ -114,8 +116,8 @@ const _getBreakingSort = (channel) => { | @@ -114,8 +116,8 @@ const _getBreakingSort = (channel) => { | ||
114 | * 获取品牌一览相关数据 | 116 | * 获取品牌一览相关数据 |
115 | * @returns {*} | 117 | * @returns {*} |
116 | */ | 118 | */ |
117 | -const getListData = (contentCode, channel) => { | ||
118 | - return Promise.all([_getResources(contentCode), _getBreakingSort(channel)]) | 119 | +const getListData = (contentCode, channel, appType) => { |
120 | + return Promise.all([_getResources(contentCode), _getBreakingSort(channel, appType)]) | ||
119 | .then((result) => { | 121 | .then((result) => { |
120 | 122 | ||
121 | return { | 123 | return { |
@@ -6,7 +6,8 @@ exports.index = (req, res) => { | @@ -6,7 +6,8 @@ exports.index = (req, res) => { | ||
6 | model.getContent(channelType).then(result => { | 6 | model.getContent(channelType).then(result => { |
7 | res.display('index', Object.assign({ | 7 | res.display('index', Object.assign({ |
8 | module: 'channel', | 8 | module: 'channel', |
9 | - page: 'home' | 9 | + page: 'home', |
10 | + dataPage: channelType | ||
10 | }, result)); | 11 | }, result)); |
11 | }); | 12 | }); |
12 | }; | 13 | }; |
@@ -152,10 +152,10 @@ | @@ -152,10 +152,10 @@ | ||
152 | </div> | 152 | </div> |
153 | </div> | 153 | </div> |
154 | <div class="reason-info"> | 154 | <div class="reason-info"> |
155 | - <span>问题描述:{{reasonName}}</span> | 155 | + <span>问题描述:{{remark}}</span> |
156 | <div class="reason-img">照片凭证: | 156 | <div class="reason-img">照片凭证: |
157 | <div class="evidence"> | 157 | <div class="evidence"> |
158 | - <img src="{{image img 70 90}}"> | 158 | + <img src="{{evidenceImages}}"> |
159 | </div> | 159 | </div> |
160 | </div> | 160 | </div> |
161 | </div> | 161 | </div> |
@@ -10,18 +10,18 @@ const seoMap = { | @@ -10,18 +10,18 @@ const seoMap = { | ||
10 | /* eslint-disable */ | 10 | /* eslint-disable */ |
11 | '/': { | 11 | '/': { |
12 | title: 'YOHO!BLK', | 12 | title: 'YOHO!BLK', |
13 | - keywords: 'Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款', | 13 | + keywords: 'YOHO!BLK有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款', |
14 | description: 'YOHO!BLK,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。' | 14 | description: 'YOHO!BLK,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。' |
15 | }, | 15 | }, |
16 | '/women': { | 16 | '/women': { |
17 | title: 'YOHO!BLK', | 17 | title: 'YOHO!BLK', |
18 | keywords: '女生服饰,时尚潮流女装,日韩女装,女装正品购物网站,女装全球购', | 18 | keywords: '女生服饰,时尚潮流女装,日韩女装,女装正品购物网站,女装全球购', |
19 | - description: 'YOHO!BLK 有货官网女生频道汇集了全球女装潮流时尚,提供时尚潮流女装,日版女装,韩版女装,潮牌女装正品全球购。YOHO!BLK有货购物100%正品保证,支持货到付款。' | 19 | + description: 'YOHO!BLK有货官网女生频道汇集了全球女装潮流时尚,提供时尚潮流女装,日版女装,韩版女装,潮牌女装正品全球购。YOHO!BLK有货购物100%正品保证,支持货到付款。' |
20 | }, | 20 | }, |
21 | '/lifestyle': { | 21 | '/lifestyle': { |
22 | title: 'YOHO!BLK', | 22 | title: 'YOHO!BLK', |
23 | keywords: '创意生活,创意生活馆,潮流家居,潮流创意家居,家居生活用品,YOHO!有货', | 23 | keywords: '创意生活,创意生活馆,潮流家居,潮流创意家居,家居生活用品,YOHO!有货', |
24 | - description: 'YOHO!BLK官网创意生活频道汇集了创意生活馆,潮流创意家居,家居生活用品等正品网购,给您的生活带来更多创意。YOHO!BLK有货购物100%正品保证,支持货到付款。' | 24 | + description: 'YOHO!BLK创意生活频道汇集了创意生活馆,潮流创意家居,家居生活用品等正品网购,给您的生活带来更多创意。YOHO!BLK有货购物100%正品保证,支持货到付款。' |
25 | } | 25 | } |
26 | /* eslint-enable */ | 26 | /* eslint-enable */ |
27 | }; | 27 | }; |
@@ -6,6 +6,8 @@ | @@ -6,6 +6,8 @@ | ||
6 | 6 | ||
7 | var lazyLoad = require('yoho-jquery-lazyload'); | 7 | var lazyLoad = require('yoho-jquery-lazyload'); |
8 | 8 | ||
9 | +var homePage = $('.home-page').data('page'); | ||
10 | + | ||
9 | require('../common/header'); | 11 | require('../common/header'); |
10 | require('../common/return-top'); | 12 | require('../common/return-top'); |
11 | require('../plugins/slider'); | 13 | require('../plugins/slider'); |
@@ -24,3 +26,12 @@ $('.card').mouseenter(function() { | @@ -24,3 +26,12 @@ $('.card').mouseenter(function() { | ||
24 | $('.active').removeClass('active'); | 26 | $('.active').removeClass('active'); |
25 | $this.addClass('active'); | 27 | $this.addClass('active'); |
26 | }); | 28 | }); |
29 | + | ||
30 | + | ||
31 | +if ($.inArray(homePage, ['men', 'women', 'lifestyle']) > -1) { | ||
32 | + window.setCookie('_Channel', homePage, { | ||
33 | + domain: '.yohoblk.com', | ||
34 | + path: '/', | ||
35 | + expires: 365 | ||
36 | + }); | ||
37 | +} |
@@ -11,7 +11,8 @@ var $mainWrap = $('.exchange-detail-page'), | @@ -11,7 +11,8 @@ var $mainWrap = $('.exchange-detail-page'), | ||
11 | var $expressCompany = $('.express-company'), | 11 | var $expressCompany = $('.express-company'), |
12 | $expressCode = $('.express-code'); | 12 | $expressCode = $('.express-code'); |
13 | 13 | ||
14 | -var expressList = $editExpress.data(); | 14 | +var expressList = $editExpress.data(), |
15 | + remark = $('.reason-info').find('span').text().length; | ||
15 | 16 | ||
16 | function cancelExchangeApply() { | 17 | function cancelExchangeApply() { |
17 | $.ajax({ | 18 | $.ajax({ |
@@ -76,3 +77,9 @@ $showExpress.on('click', '.reset-express', function() { | @@ -76,3 +77,9 @@ $showExpress.on('click', '.reset-express', function() { | ||
76 | $showExpress.addClass('hide'); | 77 | $showExpress.addClass('hide'); |
77 | $editExpress.removeClass('hide'); | 78 | $editExpress.removeClass('hide'); |
78 | }); | 79 | }); |
80 | + | ||
81 | +console.log($('.reason-info').find('span').text().length); | ||
82 | + | ||
83 | +if (remark <= 5) { | ||
84 | + $('.reason-info').hide(); | ||
85 | +} |
-
Please register or login to post a comment