Authored by yyq

Merge branch 'release/1.0' of git.yoho.cn:fe/yoho-blk into release/1.0

... ... @@ -21,8 +21,9 @@ const brand = require('../models/brand');
const index = (req, res, next) => {
let channel = req.query.brand || 1;
let contentCode = 'd0149783b8dd2adaf083fd10556c39a9';
let appType = 1;
brand.getListData(contentCode, channel).then((result) => {
brand.getListData(contentCode, channel, appType).then((result) => {
res.display('index', {
module: 'brand',
page: 'index',
... ...
... ... @@ -42,6 +42,7 @@ const _processListData = (list) => {
}
);
});
console.log(listData)
return listData;
};
... ... @@ -96,9 +97,10 @@ const _getResources = (contentCode) => {
* @param channel
* @returns {*}
*/
const _getBreakingSort = (channel) => {
const _getBreakingSort = (channel, appType) => {
return api.get('', {
yo_channel: channel,
yh_channel: channel,
app_type: appType,
method: 'app.brand.newBrandList'
}).then((result) => {
if (result && result.code === 200) {
... ... @@ -114,8 +116,8 @@ const _getBreakingSort = (channel) => {
* 获取品牌一览相关数据
* @returns {*}
*/
const getListData = (contentCode, channel) => {
return Promise.all([_getResources(contentCode), _getBreakingSort(channel)])
const getListData = (contentCode, channel, appType) => {
return Promise.all([_getResources(contentCode), _getBreakingSort(channel, appType)])
.then((result) => {
return {
... ...
... ... @@ -6,7 +6,8 @@ exports.index = (req, res) => {
model.getContent(channelType).then(result => {
res.display('index', Object.assign({
module: 'channel',
page: 'home'
page: 'home',
dataPage: channelType
}, result));
});
};
... ...
<div class="home-page blk-page">
<div class="home-page blk-page" data-page="{{dataPage}}">
<div class="top-slider-container">
{{# content}}
{{#if slider}}
... ...
... ... @@ -678,7 +678,7 @@ const _setExchangeDetailData = (data) => {
default:
break;
}
console.log(list);
return list;
};
... ...
... ... @@ -152,10 +152,10 @@
</div>
</div>
<div class="reason-info">
<span>问题描述:{{reasonName}}</span>
<span>问题描述:{{remark}}</span>
<div class="reason-img">照片凭证:
<div class="evidence">
<img src="{{image img 70 90}}">
<img src="{{evidenceImages}}">
</div>
</div>
</div>
... ...
... ... @@ -10,18 +10,18 @@ const seoMap = {
/* eslint-disable */
'/': {
title: 'YOHO!BLK',
keywords: 'Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款',
keywords: 'YOHO!BLK有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款',
description: 'YOHO!BLK,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。'
},
'/women': {
title: 'YOHO!BLK',
keywords: '女生服饰,时尚潮流女装,日韩女装,女装正品购物网站,女装全球购',
description: 'YOHO!BLK 有货官网女生频道汇集了全球女装潮流时尚,提供时尚潮流女装,日版女装,韩版女装,潮牌女装正品全球购。YOHO!BLK有货购物100%正品保证,支持货到付款。'
description: 'YOHO!BLK有货官网女生频道汇集了全球女装潮流时尚,提供时尚潮流女装,日版女装,韩版女装,潮牌女装正品全球购。YOHO!BLK有货购物100%正品保证,支持货到付款。'
},
'/lifestyle': {
title: 'YOHO!BLK',
keywords: '创意生活,创意生活馆,潮流家居,潮流创意家居,家居生活用品,YOHO!有货',
description: 'YOHO!BLK官网创意生活频道汇集了创意生活馆,潮流创意家居,家居生活用品等正品网购,给您的生活带来更多创意。YOHO!BLK有货购物100%正品保证,支持货到付款。'
description: 'YOHO!BLK创意生活频道汇集了创意生活馆,潮流创意家居,家居生活用品等正品网购,给您的生活带来更多创意。YOHO!BLK有货购物100%正品保证,支持货到付款。'
}
/* eslint-enable */
};
... ...
... ... @@ -6,6 +6,8 @@
var lazyLoad = require('yoho-jquery-lazyload');
var homePage = $('.home-page').data('page');
require('../common/header');
require('../common/return-top');
require('../plugins/slider');
... ... @@ -24,3 +26,12 @@ $('.card').mouseenter(function() {
$('.active').removeClass('active');
$this.addClass('active');
});
if ($.inArray(homePage, ['men', 'women', 'lifestyle']) > -1) {
window.setCookie('_Channel', homePage, {
domain: '.yohoblk.com',
path: '/',
expires: 365
});
}
... ...
... ... @@ -11,7 +11,8 @@ var $mainWrap = $('.exchange-detail-page'),
var $expressCompany = $('.express-company'),
$expressCode = $('.express-code');
var expressList = $editExpress.data();
var expressList = $editExpress.data(),
remark = $('.reason-info').find('span').text().length;
function cancelExchangeApply() {
$.ajax({
... ... @@ -76,3 +77,9 @@ $showExpress.on('click', '.reset-express', function() {
$showExpress.addClass('hide');
$editExpress.removeClass('hide');
});
console.log($('.reason-info').find('span').text().length);
if (remark <= 5) {
$('.reason-info').hide();
}
... ...