Authored by 陈轩

fix

... ... @@ -9,7 +9,7 @@ const channelDict = require(utilsPath).channelDict;
// Notice: 如果 没有 channel,则不设 gender
exports.channelGender = (req, res, next) => {
if (!req.query.hasOwnProperty('gender')) {
const channel = channelDict(req.cookies._Channel);
const channel = channelDict(req.yoho.channel);
channel && (req.query.gender = channel);
}
... ...
... ... @@ -9,7 +9,7 @@
<ul class="filter-cates">
<li class="filter-cate"
v-for="classify in itemArr"
v-if="config[classify] && showCate(classify, config[classify])"
v-if="showItem(classify)"
@click="entrySub(classify)"
>
<i class="icon icon-right right"></i>
... ... @@ -64,6 +64,15 @@
}
},
methods: {
showItem: function(item) {
let config = this.config;
if (!config || !config[item] || !this.showCate(item, config[item])) {
return false;
}
return true;
},
// 只显示 可选值 大于 1的 筛选项
// groupSort 特殊处理
showCate: function(cateName, cateVals) {
... ...
... ... @@ -33,6 +33,8 @@ const _procProductImg = (product, genderVal) => {
* 商品搜索商品数据处理
*/
module.exports = (list, options) => {
options = options || {};
const pruductList = [];
if (!options.gender) {
... ...