|
|
@ -43,18 +43,20 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
recordsList: [], |
|
|
|
total: 0, |
|
|
|
checkedIndex: 0, |
|
|
|
queryParams: { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10, |
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
onReachBottom() { |
|
|
|
console.log("=====") |
|
|
|
console.log("===我的发布页面到底部了,开始加载数据===") |
|
|
|
let allTotal = this.queryParams.pageNo * this.queryParams.pageSize |
|
|
|
if (allTotal < this.total) { |
|
|
|
//当前条数小于总条数 则增加请求数 |
|
|
@ -72,8 +74,7 @@ |
|
|
|
this.$store.commit('getUserInfo') |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getData(type) { |
|
|
|
|
|
|
|
getData() { |
|
|
|
this.$api('infoGetMyReleasePage', { |
|
|
|
pageNo: this.queryParams.pageNo, |
|
|
|
pageSize: this.queryParams.pageSize, |
|
|
@ -82,6 +83,7 @@ |
|
|
|
}, res => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.recordsList = res.result.records |
|
|
|
this.total = res.result.total |
|
|
|
console.log(res.result, "发布列表") |
|
|
|
} |
|
|
|
}) |
|
|
@ -90,7 +92,6 @@ |
|
|
|
// 标签栏发生变化 |
|
|
|
tabChange(type) { |
|
|
|
this.checkedIndex = (type == 'all' ? 0 : (type == 'tiezi' ? 1 : 2)) |
|
|
|
// this.$refs.releaseList.checkedIndex = this.checkedIndex |
|
|
|
this.queryParams.pageNo = 1 |
|
|
|
this.queryParams.pageSize = 10 |
|
|
|
this.getData() |
|
|
@ -148,7 +149,7 @@ |
|
|
|
|
|
|
|
.publishListClass { |
|
|
|
//margin-top: 10rpx; |
|
|
|
height: 78vh; |
|
|
|
//height: 78vh; |
|
|
|
//margin-top: 300rpx; |
|
|
|
overflow: auto; |
|
|
|
width: 100%; |
|
|
|