Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
cb7fc6ac5152c3f54ca71c9470c2b9c8aba4feda
1 parent
d93a8084
fix scoll
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
apps/pages/userpage/author.vue
apps/pages/userpage/components/water-fall.vue
apps/pages/userpage/author.vue
View file @
cb7fc6a
...
...
@@ -101,7 +101,7 @@
if (!this.$route.params.id) {
this._apiNamePre += 'Mine';
}
console.log(this.$route.params);
this.autherInfo = {
authorUid: this.$route.params.id,
authorType: this.$route.params.type || 1
...
...
@@ -208,7 +208,7 @@ console.log(this.$route.params);
info.page = info.page || 1;
if (info.page >
=
info.totalPage) {
if (info.page > info.totalPage) {
return;
}
...
...
apps/pages/userpage/components/water-fall.vue
View file @
cb7fc6a
...
...
@@ -34,7 +34,7 @@
</template>
<script>
import {assign, get} from 'lodash';
import {assign, get
, forEach
} from 'lodash';
export default {
data() {
...
...
@@ -77,7 +77,16 @@ export default {
},
mounted() {
this.$on('calced', (nlist) => {
this.viewList = this.viewList.concat(nlist);
nlist = [...nlist];
forEach(this.viewList, value => {
if (!value._temporary) {
nlist.push(value);
}
}),
this.viewList = nlist;
this.$nextTick(() => {
this.calcLayout();
})
...
...
@@ -118,6 +127,7 @@ export default {
item.coverHeight = Math.floor(item.imageHeight / item.imageWidth * this.coverImageWidth);
nlist.push(assign({_temporary: true}, item));
this.calcIndex++;
};
this.$emit('calced', nlist);
...
...
@@ -169,6 +179,7 @@ export default {
}
this.loadedIndex = this.list.length;
this.colsHeight = [...this.colsHeight];
this.resetViewList();
},
...
...
@@ -339,8 +350,12 @@ export default {
}
.name {
max-width: 170px;
display: inline-block;
vertical-align: middle;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fav {
...
...
Please
register
or
login
to post a comment