Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘川
wly-APP
Commits
bca01056
Commit
bca01056
authored
Jul 21, 2023
by
xiangzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
市场秩序下拉刷新调整
parent
c9ec09ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
7 deletions
+52
-7
breakwords-handle.nvue
pages/breakwords-handle/breakwords-handle.nvue
+2
-1
breakwords-market.nvue
pages/breakwords-market/breakwords-market.nvue
+2
-2
breakwords-mission.nvue
pages/breakwords-mission/breakwords-mission.nvue
+48
-4
No files found.
pages/breakwords-handle/breakwords-handle.nvue
View file @
bca01056
...
...
@@ -84,7 +84,7 @@
<text class="empty-text">暂无数据</text>
</view>
</cell>
<
view class="planout-block-item__last"> </view
>
<
!-- <view class="planout-block-item__last"> </view> --
>
</list>
</view>
...
...
@@ -335,6 +335,7 @@
background: #f0f4f5;
padding: 0 16rpx;
overflow-y: scroll;
padding-bottom: 60rpx
}
.navs-block {
...
...
pages/breakwords-market/breakwords-market.nvue
View file @
bca01056
...
...
@@ -87,7 +87,7 @@
<text class="empty-text">暂无数据</text>
</view>
</cell>
<
view class="planout-block-item__last"> </view
>
<
!-- <view class="planout-block-item__last"> </view> --
>
</list>
</view>
...
...
@@ -122,7 +122,7 @@
},
page: {
"currentPage": "1",
"pageSize": "
10
",
"pageSize": "
4
",
},
loadParams: {
total: 0,
...
...
pages/breakwords-mission/breakwords-mission.nvue
View file @
bca01056
...
...
@@ -69,7 +69,7 @@
<text class="empty-text">暂无数据</text>
</view>
</cell>
<
view class="planout-block-item__last"> </view
>
<
!-- <view class="planout-block-item__last"> </view> --
>
</list>
</view>
...
...
@@ -126,7 +126,7 @@
},
scrollHeight() {
return {
'height': `${this.sysinfo.safeArea.height - 44 -
27
}px`
'height': `${this.sysinfo.safeArea.height - 44 -
56
}px`
}
},
...
...
@@ -137,6 +137,49 @@
this.getClueList()
},
methods: {
async getAllLists(isRefresh){
const params1 = {
...this.page,
...this.condition,
type: 1
}
const params2 = {
...this.page,
...this.condition,
type: 2
}
uni.showLoading({
title: '加载中'
});
setTimeout(function() {
uni.hideLoading();
}, 2000);
const res1 = await apiGetMissionList(params1)
const res2 = await apiGetMissionList(params2)
uni.hideLoading();
const {
count,
pagesize,
data,
results
} = res1.data
console.log(res2.data,'res2.data')
this.loadParams.total = data.concat(res2.data.data).length
this.loadParams.totalPage = Math.ceil((count * 1 + res2.data.count * 1)/ (pagesize * 1))
if (isRefresh) {
this.lists = data.concat(res2.data.data)
this.loadParams.isDone = false
} else {
this.lists = this.lists.concat(data.concat(res2.data.data))
}
setTimeout(() => {
this.refreshing = false;
}, 300)
},
async getClueList(isRefresh) {
if (this.loadParams.isDone) {
return
...
...
@@ -148,7 +191,8 @@
this.condition.type = 0
} else {
this.condition.type = 2
// this.getAllLists(isRefresh)
// return
}
params = {
...
...
@@ -298,7 +342,7 @@
},
checkTab(i) {
this.activeTabIndex = i
this.
lists = []
this.
reset()
this.getClueList()
},
handleStatustext(item) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment