添加重新投保页面

This commit is contained in:
mengxiaolong
2021-03-02 17:48:01 +08:00
parent d2bb084097
commit 1dd20275bb
21 changed files with 1472 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
<template>
<van-list v-model="loading" @load="onLoad" :finished="finished" :finished-text="finishText" :immediate-check="immediateCheck">
<slot> </slot>
</van-list>
</template>
<script>
export default {
name: 'ListShowing',
props: {
loadFun: {
type: Function
},
finishText: {
type: String,
default: '没有更多数据了'
},
immediateCheck: {
type: Boolean,
default: true
}
},
data() {
return {
loading: false,
finished: false
}
},
methods: {
async onLoad() {
let res = await this.loadFun()
this.finished = res.finished
this.loading = false
console.log(res)
}
}
}
</script>
<style lang="scss" scoped></style>