chenkun 10 months ago
parent
commit
8e32d13717
3 changed files with 10 additions and 6 deletions
  1. +1
    -0
      pages/index/index.vue
  2. +3
    -1
      pages_mine/mine/purse.vue
  3. +6
    -5
      pages_mine/mine/releaseRecord.vue

+ 1
- 0
pages/index/index.vue View File

@ -127,6 +127,7 @@
},
//
onReachBottom() {
console.log("======首页滑动到底部触发====")
if(this.queryParams.pageSize < this.total){
this.queryParams.pageSize += 10
this.indexGetTrendsPage()


+ 3
- 1
pages_mine/mine/purse.vue View File

@ -36,7 +36,7 @@
<view class="cards" >
<view class="cardItem" v-for="(item, index) in list" :key="index">
<view class="cardImage">
<image src="/static/image/addBankCard/1.svg" style="width: 100%;height: 100%;"></image>
<image src="../static/image/addBankCard/1.svg" style="width: 100%;height: 100%;"></image>
</view>
<view class="cardInfo">
<view class="cardNum">
@ -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;


+ 6
- 5
pages_mine/mine/releaseRecord.vue View File

@ -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%;


Loading…
Cancel
Save