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() { onReachBottom() {
console.log("======首页滑动到底部触发====")
if(this.queryParams.pageSize < this.total){ if(this.queryParams.pageSize < this.total){
this.queryParams.pageSize += 10 this.queryParams.pageSize += 10
this.indexGetTrendsPage() this.indexGetTrendsPage()


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

@ -36,7 +36,7 @@
<view class="cards" > <view class="cards" >
<view class="cardItem" v-for="(item, index) in list" :key="index"> <view class="cardItem" v-for="(item, index) in list" :key="index">
<view class="cardImage"> <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>
<view class="cardInfo"> <view class="cardInfo">
<view class="cardNum"> <view class="cardNum">
@ -133,6 +133,7 @@ export default {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
padding-top: 60rpx; padding-top: 60rpx;
padding-bottom: 40rpx;
background-color: #f8faff; background-color: #f8faff;
height: 18vh; height: 18vh;
@ -176,6 +177,7 @@ export default {
border-radius: 50rpx 50rpx 0 0; border-radius: 50rpx 50rpx 0 0;
box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2); /* 仅上边的阴影效果 */ box-shadow: 0 -10rpx 10rpx rgba(0, 0, 0, 0.2); /* 仅上边的阴影效果 */
background-color: #fff; background-color: #fff;
overflow: auto;
height: calc(82vh - 240rpx); height: calc(82vh - 240rpx);
width: 100vw; width: 100vw;


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

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


Loading…
Cancel
Save