当前位置:网站首页>Applet pull-up loading data
Applet pull-up loading data
2022-06-13 06:11:00 【Jiuwujiuwu】
Request data
async getList() {
let data = {
"model": "1",
"pageSize": this.data.pageSize,
"pageNum": this.data.pageNum
}
let res = await subCertificate(data)
if (res.resultStates !== 0) {
return Dialog.alert({
title: ' Tips ',
message: ' No relevant data of the vehicle ',
}).then(() => {
});
}
let list = res.content.taskVoList
if (this.data.pageNum > 1) {
list = this.data.list.concat(res.content.taskVoList)
}
this.setData({
list: list,
total: res.content.total,
vin: res.content.vin
})
},
Pull up to load data
onReachBottom: function () {
let num = Math.ceil(this.data.total / 5)// Rounding up
var self = this;
if (this.data.pageNum >= num) {
Dialog.alert({
title: ' Tips ',
message: ' No more data ',
}).then(() => {
});
} else {
var pageNumber = self.data.pageNum + 1;
self.setData({
pageNum: pageNumber,
})
this.getList()
}
},
边栏推荐
- High burst solution 2
- 不在以下合法域名列表中,微信小程序解决办法
- 本地文件秒搜工具 Everything
- Echart折线图:当多条折线存在相同name,图例仍全部显示
- Pod libwebp error reporting solution
- USB 0xc0000011 error
- Leetcode- divide candy - simple
- Echart line chart: multiple line charts show only one line at a time
- Leetcode- string addition - simple
- The boys x pubgmobile linkage is coming! Check out the latest game posters
猜你喜欢

Echart histogram: stack histogram value formatted display

微信小程序:点击事件获取当前设备信息(基础)

推荐扩容工具,彻底解决C盘及其它磁盘空间不够的难题

Echart line chart: different colors are displayed when the names of multiple line charts are the same

Echart折线图:多条折线图每次仅展示一条

Detailed explanation of Yanghui triangle

You still can't remotely debug idea? Come and have a look at my article. It's easy to use

Echart柱状图:x轴显示value,y轴显示类别

Annotation only integration SSM framework

Echart histogram: echart implements stacked histogram
随机推荐
Echart line chart: different colors are displayed when the names of multiple line charts are the same
自定义View
[spark]spark introductory practical series_ 8_ Spark_ Mllib (upper)__ Introduction to machine learning and sparkmllib
Uniapp mobile terminal uses canvas to draw background convex arc
Interrupt processing
Leetcode- first unique character in string - simple
Intelligent digital asset management helps enterprises win the post epidemic Era
Leetcode guessing numbers game - simple
Zero copy technology
本地文件秒搜工具 Everything
Complete USB debugging assistant
Echart line chart: multiple line charts show only one line at a time
php 分布式事务 原理详解
Test logiciel - résumé des FAQ d'interface
Data conversion analysis tool
Missing tag identification in cots RFID systems: bringing the gap between theory and Practice
Echart histogram: stacked histogram displays value
[compilation and assembly link] coff file and structure description
MySQL trigger
高迸发解决方案2