From bf1165deba82cd0a8b4610b2d28b4d4d17d2116a Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Tue, 24 Sep 2024 17:08:49 +0800 Subject: [PATCH] 9.24 --- gasStation-uni/pages.json | 6 ++ gasStation-uni/pagesMy/invite/details.vue | 106 +++++++++++++--------- 2 files changed, 68 insertions(+), 44 deletions(-) diff --git a/gasStation-uni/pages.json b/gasStation-uni/pages.json index 4f1e10122..047667dac 100644 --- a/gasStation-uni/pages.json +++ b/gasStation-uni/pages.json @@ -320,6 +320,12 @@ "navigationStyle": "custom" } }, + { + "path": "invite/details", + "style": { + "navigationBarTitleText": "活动详情" + } + }, { "path": "feedback/feedback", "style": { diff --git a/gasStation-uni/pagesMy/invite/details.vue b/gasStation-uni/pagesMy/invite/details.vue index a1ed67fc4..5252d5c47 100644 --- a/gasStation-uni/pagesMy/invite/details.vue +++ b/gasStation-uni/pagesMy/invite/details.vue @@ -1,7 +1,48 @@ @@ -19,26 +60,17 @@ } }, - onLoad() { - this.resetting() //重置方法 - this.getList() //调用请求 - }, + onLoad() {}, onPullDownRefresh() { //下拉刷新 - this.resetting() //重置方法 - this.getList() //调用请求 uni.stopPullDownRefresh() }, onReachBottom() { // 触底加载 if (this.pageNo >= this.totalPage) { - uni.showToast({ - title: '没有下一页数据', - icon: 'none' - }) + } else { this.pageNo++ - this.getList() } }, @@ -46,36 +78,6 @@ }, methods: { - //滞空方法 - resetting() { - this.pageNo = 1 - this.pageSize = 10 - this.totalPage = '' - this.List = [] - }, - // 分页——网络请求 - async getList() { - uni.showLoading({ - title: '加载中' - }); - let res = await request({ - url: '网络请求', - method: 'get', - data: { - pageNo: this.pageNo, - pageSize: this.pageSize, - } - }) - if (res.code == 200) { - uni.hideLoading(); //交互反馈 - if (this.pageNo != 1) { - this.List = this.ruleList.concat(res.result.records) - } else { - this.List = res.result.records - } - this.totalPage = res.result.pages - } - }, goback() { uni.navigateBack() } @@ -92,6 +94,22 @@ width: 100%; height: 100vh; box-sizing: border-box; - + padding-top: 12px; } - + + .box-hang { + background-color: white; + width: 96%; + display: flex; + box-sizing: border-box; + padding: 15px 15px; + border-bottom: 1px solid #f4f5f6; + margin: 0 auto; + font-size: 14px; + } + + .dis { + color: #666666; + width: 30%; + } + \ No newline at end of file