diff --git a/pages/index/index.vue b/pages/index/index.vue index 5697092..745c235 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -127,6 +127,7 @@ }, //滚动到屏幕底部 onReachBottom() { + console.log("======首页滑动到底部触发====") if(this.queryParams.pageSize < this.total){ this.queryParams.pageSize += 10 this.indexGetTrendsPage() diff --git a/pages_mine/mine/purse.vue b/pages_mine/mine/purse.vue index 7591c14..745f1c2 100644 --- a/pages_mine/mine/purse.vue +++ b/pages_mine/mine/purse.vue @@ -36,7 +36,7 @@ - + @@ -133,6 +133,7 @@ export default { flex-direction: column; align-items: center; padding-top: 60rpx; + padding-bottom: 40rpx; background-color: #f8faff; height: 18vh; @@ -176,6 +177,7 @@ export default { border-radius: 50rpx 50rpx 0 0; box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2); /* 仅上边的阴影效果 */ background-color: #fff; + overflow: auto; height: calc(82vh - 240rpx); width: 100vw; diff --git a/pages_mine/mine/releaseRecord.vue b/pages_mine/mine/releaseRecord.vue index e862f26..a0935dc 100644 --- a/pages_mine/mine/releaseRecord.vue +++ b/pages_mine/mine/releaseRecord.vue @@ -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%;