Authored by 沈志敏

Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop

@@ -28,7 +28,8 @@ const handleBrandList = origin => { @@ -28,7 +28,8 @@ const handleBrandList = origin => {
28 brands.push({ 28 brands.push({
29 name: subValue.brand_name, 29 name: subValue.brand_name,
30 link: '/brand/' + subValue.brand_domain, 30 link: '/brand/' + subValue.brand_domain,
31 - logo: subValue.brand_ico 31 + logo: subValue.brand_ico,
  32 + domain: subValue.brand_domain
32 }); 33 });
33 }); 34 });
34 35
@@ -9,7 +9,7 @@ const channelDict = require(utilsPath).channelDict; @@ -9,7 +9,7 @@ const channelDict = require(utilsPath).channelDict;
9 // Notice: 如果 没有 channel,则不设 gender 9 // Notice: 如果 没有 channel,则不设 gender
10 exports.channelGender = (req, res, next) => { 10 exports.channelGender = (req, res, next) => {
11 if (!req.query.hasOwnProperty('gender')) { 11 if (!req.query.hasOwnProperty('gender')) {
12 - const channel = channelDict(req.cookies._Channel); 12 + const channel = channelDict(req.yoho.channel);
13 13
14 channel && (req.query.gender = channel); 14 channel && (req.query.gender = channel);
15 } 15 }
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <div class="index"><a href="#{{item.index}}" name="{{item.index}}">{{item.index}}</a></div> 4 <div class="index"><a href="#{{item.index}}" name="{{item.index}}">{{item.index}}</a></div>
5 <div class="brand-big-box clearfix"> 5 <div class="brand-big-box clearfix">
6 <div class="brand-box" v-for="brand in item.brands"> 6 <div class="brand-box" v-for="brand in item.brands">
7 - <a href="{{brand.link}}"> 7 + <a href="{{brand.domain | brandUrl}}">
8 <div class="brand-logo"> 8 <div class="brand-logo">
9 <img v-lazy="brand.logo | resize 150 150" alt="{{brand.name}}"> 9 <img v-lazy="brand.logo | resize 150 150" alt="{{brand.name}}">
10 </div> 10 </div>
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <ul class="filter-cates"> 9 <ul class="filter-cates">
10 <li class="filter-cate" 10 <li class="filter-cate"
11 v-for="classify in itemArr" 11 v-for="classify in itemArr"
12 - v-if="config[classify] && showCate(classify, config[classify])" 12 + v-if="showItem(classify)"
13 @click="entrySub(classify)" 13 @click="entrySub(classify)"
14 > 14 >
15 <i class="icon icon-right right"></i> 15 <i class="icon icon-right right"></i>
@@ -64,6 +64,15 @@ @@ -64,6 +64,15 @@
64 } 64 }
65 }, 65 },
66 methods: { 66 methods: {
  67 + showItem: function(item) {
  68 + let config = this.config;
  69 +
  70 + if (!config || !config[item] || !this.showCate(item, config[item])) {
  71 + return false;
  72 + }
  73 + return true;
  74 + },
  75 +
67 // 只显示 可选值 大于 1的 筛选项 76 // 只显示 可选值 大于 1的 筛选项
68 // groupSort 特殊处理 77 // groupSort 特殊处理
69 showCate: function(cateName, cateVals) { 78 showCate: function(cateName, cateVals) {
@@ -86,6 +86,7 @@ @@ -86,6 +86,7 @@
86 tip('登录失败'); 86 tip('登录失败');
87 }); 87 });
88 } 88 }
  89 + tip(result.message);
89 90
90 if (misc && misc.code === 200) { 91 if (misc && misc.code === 200) {
91 this.isFavorite = misc.data.isFavor === 'Y'; 92 this.isFavorite = misc.data.isFavor === 'Y';
@@ -33,6 +33,8 @@ const _procProductImg = (product, genderVal) => { @@ -33,6 +33,8 @@ const _procProductImg = (product, genderVal) => {
33 * 商品搜索商品数据处理 33 * 商品搜索商品数据处理
34 */ 34 */
35 module.exports = (list, options) => { 35 module.exports = (list, options) => {
  36 + options = options || {};
  37 +
36 const pruductList = []; 38 const pruductList = [];
37 39
38 if (!options.gender) { 40 if (!options.gender) {