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
4ac3264414c77d3faabc55bf0b3a715c5b321b46
1 parent
5466b6cf
修复样式问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
public/vue/channel/brand-cate.vue
public/vue/channel/brand-cate.vue
View file @
4ac3264
<template>
<div class="cate-page" id='cate-page'>
<div class="cate-container clearfix">
<div class="content"
style="height: 522px;"
>
<div class="content">
<ul class="primary-level">
<li v-for="(index, ca) in cateNavLeftData" class="ellipsis" :class="{focus: index === leftcurrent}" class="p-level-item" @click='cateNavLeftFun(index, ca.relationParameter.sort, ca.categoryName)'>
{{ca.categoryName}}
...
...
@@ -213,6 +213,8 @@
}
</style>
<script>
const $ = require('jquery');
module.exports = {
props: {
category: {
...
...
@@ -275,6 +277,16 @@
},
created() {
this.categoryChangeHandler();
window.addEventListener('touchstart', () => {
const c = $('.content');
const h = c.height();
const h1 = document.body.offsetHeight;
if (h <= h1) {
c.css('height', h1);
}
});
}
};
</script>
...
...
Please
register
or
login
to post a comment