|
|
|
@@ -1,8 +1,59 @@ |
|
|
|
<script setup> |
|
|
|
import Contact from "../../components/contact" |
|
|
|
import { ref } from 'vue'; |
|
|
|
import { Search2 } from '@nutui/icons-vue-taro'; |
|
|
|
const val = ref(''); |
|
|
|
|
|
|
|
|
|
|
|
const data = ref([ |
|
|
|
{ |
|
|
|
title: 'A', |
|
|
|
list: [ |
|
|
|
{ id: 1, name: '', isVIP: true, company: '阿姨公司', avatar: null }, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: 'B', |
|
|
|
list: [ |
|
|
|
{ id: 2, name: '包子', isVIP: false, company: '公司', avatar: null }, |
|
|
|
{ id: 3, name: '白老师', isVIP: true, company: '', avatar: null }, |
|
|
|
{ id: 4, name: '八哥', isVIP: false, company: '', avatar: null }, |
|
|
|
{ id: 5, name: '保生', isVIP: false, company: '', avatar: null }, |
|
|
|
{ id: 6, name: '巴金', isVIP: false, company: null, avatar: null }, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: 'G', |
|
|
|
list: [ |
|
|
|
{ id: 7, name: '高工', isVIP: false, company: null, avatar: null }, |
|
|
|
{ id: 8, name: '国总', isVIP: false, company: null, avatar: null }, |
|
|
|
{ id: 9, name: '宫崎骏', isVIP: false, company: null, avatar: null }, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: 'H', |
|
|
|
list: [ |
|
|
|
{ id: 10, name: '何同学', isVIP: false, company: null, avatar: null }, |
|
|
|
{ id: 11, name: '韩红', isVIP: false, company: null, avatar: null }, |
|
|
|
{ id: 12, name: '洪秀权', isVIP: false, company: null, avatar: null }, |
|
|
|
] |
|
|
|
} |
|
|
|
]); |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
<view class="index"> |
|
|
|
<text>我是通讯录!</text> |
|
|
|
<view class="pl-3 pt-3 pr-3 h2 d-flex"> |
|
|
|
<view class="flex-grow-1"> |
|
|
|
通讯录 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<nut-searchbar v-model="val"> |
|
|
|
<template #rightin> |
|
|
|
<Search2 /> |
|
|
|
</template> |
|
|
|
</nut-searchbar> |
|
|
|
<Contact :items="data" style="height: 100%"/> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
</script> |