|
@@ -16,7 +16,13 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <ul class="w-list" v-if="list.length>0">
|
|
|
|
|
|
|
+ <ul
|
|
|
|
|
+ class="w-list"
|
|
|
|
|
+ v-if="!(list.length === 0 && !hasMoreData)"
|
|
|
|
|
+ v-infinite-scroll="requestMoreData"
|
|
|
|
|
+ :infinite-scroll-disabled="!hasMoreData || isRequestingMoreData"
|
|
|
|
|
+ infinite-scroll-distance="315"
|
|
|
|
|
+ >
|
|
|
<li class="add-work" @click="add">
|
|
<li class="add-work" @click="add">
|
|
|
<div class="add-con">
|
|
<div class="add-con">
|
|
|
<div>
|
|
<div>
|
|
@@ -102,8 +108,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted(){
|
|
mounted(){
|
|
|
- this.getWorksList()
|
|
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
watch:{
|
|
watch:{
|
|
|
// searchKey(){
|
|
// searchKey(){
|
|
@@ -112,7 +116,6 @@ export default {
|
|
|
// }
|
|
// }
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
-
|
|
|
|
|
openShare(data){
|
|
openShare(data){
|
|
|
getPanoInfo(data.id, (data) => {
|
|
getPanoInfo(data.id, (data) => {
|
|
|
if (data.scenes.length<=0) {
|
|
if (data.scenes.length<=0) {
|
|
@@ -160,13 +163,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- getWorksList() {
|
|
|
|
|
|
|
+ requestMoreData() {
|
|
|
this.isClickSearch = !!this.searchKey;
|
|
this.isClickSearch = !!this.searchKey;
|
|
|
this.isRequestingMoreData = true
|
|
this.isRequestingMoreData = true
|
|
|
getWorksList(
|
|
getWorksList(
|
|
|
{
|
|
{
|
|
|
pageNum: Math.floor(this.list.length / config.PAGE_SIZE) + 1,
|
|
pageNum: Math.floor(this.list.length / config.PAGE_SIZE) + 1,
|
|
|
- pageSize: config.pageSize,
|
|
|
|
|
|
|
+ pageSize: config.PAGE_SIZE,
|
|
|
searchKey: this.searchKey,
|
|
searchKey: this.searchKey,
|
|
|
},
|
|
},
|
|
|
(data) => {
|
|
(data) => {
|
|
@@ -196,6 +199,7 @@ export default {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
.tab{
|
|
.tab{
|
|
|
|
|
+ flex: 0 0 auto;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
background: #fff;
|
|
background: #fff;
|
|
@@ -215,6 +219,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.w-list{
|
|
.w-list{
|
|
|
|
|
+ flex: 1 1 auto;
|
|
|
|
|
+ overflow: auto;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
flex-wrap: wrap;
|
|
flex-wrap: wrap;
|
|
|
margin-top: 30px;
|
|
margin-top: 30px;
|