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
Plain Diff
Browse Files
Authored by
陈峰
8 years ago
Commit
c405c70861af458f8a5a99470937cfc28978d92a
2 parents
f643a4e7
80d5398d
Merge branch 'release/3.0' of
http://git.yoho.cn/fe/yohoblk-wap
into release/3.0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
apps/me/views/action/about.hbs
public/vue/channel/brand-cate.vue
public/vue/component/product/filter/filter-item.vue
public/vue/component/product/filter/index.vue
apps/me/views/action/about.hbs
View file @
c405c70
...
...
@@ -8,7 +8,7 @@
<div
class=
"blk-header-right"
>
</div>
<div
class=
"blk-header-main"
>
<span
class=
"blk-header-title"
>
关于
</span>
<span
class=
"blk-header-title"
>
关于
我们
</span>
</div>
</div>
<div
class=
"blk-header-gap"
></div>
...
...
public/vue/channel/brand-cate.vue
View file @
c405c70
...
...
@@ -23,7 +23,7 @@
<ul class="sub-level">
<li v-for="(sub, index) in cateNavRightData" :key="index" :class="{'sub-checked': sub.checked}">
<div class="block ellipsis">
<a v-if="jump" :href="`/product/list?sort=${sub.relation_parameter.sort}&sort_name=${sub.category_name}&gender=${gender}`">{{sub.category_name}}</a>
<a
class="ellipsis"
v-if="jump" :href="`/product/list?sort=${sub.relation_parameter.sort}&sort_name=${sub.category_name}&gender=${gender}`">{{sub.category_name}}</a>
<a v-else @click="noJumpReturn(sub.relation_parameter.sort, sub.category_name)">{{sub.category_name}}</a>
</div>
<div class="checked">
...
...
public/vue/component/product/filter/filter-item.vue
View file @
c405c70
...
...
@@ -60,6 +60,12 @@ export default {
return;
}
if (this.name === '折扣') {
this.$nextTick(() => {
bus.$emit('choices.scrollBottom');
});
}
bus.$emit('expand.choice.only', this.name);
},
toggleChoice(index, choice) {
...
...
@@ -152,6 +158,11 @@ export default {
},
foldExcept(name) {
this.show = this.name === name;
if (name === '折扣') {
this.$nextTick(() => {
bus.$emit('discount.scrollBottom');
});
}
},
subFilterChange(sub, filter){
if (typeMap[this.name] === sub.subType) {
...
...
public/vue/component/product/filter/index.vue
View file @
c405c70
...
...
@@ -282,6 +282,10 @@ export default {
this.values[name] = [];
delete this.chosen[name];
}
},
scrollBottom() {
let $el = document.querySelector('.filter-items');
$el.scrollTop = $el.scrollHeight;
}
},
components: {
...
...
@@ -307,6 +311,7 @@ export default {
});
bus.$on('expand.subFilter', this.expandSub);
bus.$on('discount.scrollBottom', this.scrollBottom);
}
};
</script>
...
...
Please
register
or
login
to post a comment