Commit bca01056 authored by xiangzj's avatar xiangzj

市场秩序下拉刷新调整

parent c9ec09ea
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<text class="empty-text">暂无数据</text> <text class="empty-text">暂无数据</text>
</view> </view>
</cell> </cell>
<view class="planout-block-item__last"> </view> <!-- <view class="planout-block-item__last"> </view> -->
</list> </list>
</view> </view>
...@@ -335,6 +335,7 @@ ...@@ -335,6 +335,7 @@
background: #f0f4f5; background: #f0f4f5;
padding: 0 16rpx; padding: 0 16rpx;
overflow-y: scroll; overflow-y: scroll;
padding-bottom: 60rpx
} }
.navs-block { .navs-block {
......
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<text class="empty-text">暂无数据</text> <text class="empty-text">暂无数据</text>
</view> </view>
</cell> </cell>
<view class="planout-block-item__last"> </view> <!-- <view class="planout-block-item__last"> </view> -->
</list> </list>
</view> </view>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
}, },
page: { page: {
"currentPage": "1", "currentPage": "1",
"pageSize": "10", "pageSize": "4",
}, },
loadParams: { loadParams: {
total: 0, total: 0,
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
<text class="empty-text">暂无数据</text> <text class="empty-text">暂无数据</text>
</view> </view>
</cell> </cell>
<view class="planout-block-item__last"> </view> <!-- <view class="planout-block-item__last"> </view> -->
</list> </list>
</view> </view>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
}, },
scrollHeight() { scrollHeight() {
return { return {
'height': `${this.sysinfo.safeArea.height - 44 - 27 }px` 'height': `${this.sysinfo.safeArea.height - 44 - 56 }px`
} }
}, },
...@@ -137,6 +137,49 @@ ...@@ -137,6 +137,49 @@
this.getClueList() this.getClueList()
}, },
methods: { 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) { async getClueList(isRefresh) {
if (this.loadParams.isDone) { if (this.loadParams.isDone) {
return return
...@@ -148,7 +191,8 @@ ...@@ -148,7 +191,8 @@
this.condition.type = 0 this.condition.type = 0
} else { } else {
this.condition.type = 2 this.condition.type = 2
// this.getAllLists(isRefresh)
// return
} }
params = { params = {
...@@ -298,7 +342,7 @@ ...@@ -298,7 +342,7 @@
}, },
checkTab(i) { checkTab(i) {
this.activeTabIndex = i this.activeTabIndex = i
this.lists = [] this.reset()
this.getClueList() this.getClueList()
}, },
handleStatustext(item) { handleStatustext(item) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment