<template>
<div class="box">
<van-list
v-model="loading"
:finished="finished"
:offset="offset"
loading-text="正在拼命加载中..."
finished-text="暂无更多内容了"
@load="getrecord"
>
<div class="row"></div>
</van-list>
</div>
</template>
<script>
import { getStudyRecordList } from "../axios/request";
export default {
data() {
return {
record_list: [],
page: 0,
loading: false,
finished: false,
offset: 0
};
},
mounted() {},
methods: {
async getrecord() {
this.page += 1;
this.loading = true;
this.finished = false;
const res = await getStudyRecordList({ page: this.page, limit: 10 });
if (res.status == 1) {
this.record_list = this.record_list.concat(res.data)
}
this.loading = false;
} else {
this.finished = true;
}
}
}
};
</script>
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有