Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈轩
9 years ago
Commit
0c9517965cc12ae5d0df73786c652c030560b4ed
1 parent
1e5e280f
fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
doraemon/middleware/channel-gender.js
public/vue/component/product/filter.vue
utils/beautify/product.js
doraemon/middleware/channel-gender.js
View file @
0c95179
...
...
@@ -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
.
_C
hannel
);
const
channel
=
channelDict
(
req
.
yoho
.
c
hannel
);
channel
&&
(
req
.
query
.
gender
=
channel
);
}
...
...
public/vue/component/product/filter.vue
View file @
0c95179
...
...
@@ -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) {
...
...
utils/beautify/product.js
View file @
0c95179
...
...
@@ -33,6 +33,8 @@ const _procProductImg = (product, genderVal) => {
* 商品搜索商品数据处理
*/
module
.
exports
=
(
list
,
options
)
=>
{
options
=
options
||
{};
const
pruductList
=
[];
if
(
!
options
.
gender
)
{
...
...
Please
register
or
login
to post a comment