Files
FirstUI-vue/pages/component/nav/indexList-A/indexList-A.vue
2023-08-17 21:28:49 +08:00

47 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号1 8 614072 5 4 9身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<fui-index-list isSrc :listData="lists" @init="init" @click="itemClick">
<fui-search-bar @search="search"></fui-search-bar>
<template v-slot:footer>
<fui-loadmore v-if="!show"></fui-loadmore>
<fui-divider text="66个朋友及联系人" v-if="show"></fui-divider>
</template>
</fui-index-list>
</template>
<script>
import lists from './index.list.js'
export default {
data() {
return {
//如果是请求数据返回返回后直接整体赋值给lists注意数据格式正确
lists: lists,
show: false
}
},
onLoad() {
// setTimeout(() => {
// this.show = true;
// }, 500)
},
methods: {
init() {
this.show = true;
},
search(e) {
this.fui.toast(`搜索:${e.detail.value}`)
//相关逻辑自行处理
// ...
},
itemClick(e) {
console.log(e)
}
}
}
</script>
<style>
page {
font-weight: normal;
}
</style>