vipList.vue
1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<template>
<view>
<view class="searchbar">
<uni-easyinput placeholderStyle="font-size:30rpx" :input-border="false" prefixIcon="search"
v-model="query.name" placeholder="搜索姓名或证件号码" @iconClick="iconClick">
</uni-easyinput>
</view>
<view>会员列表</view>
<view class="indexboxre">
<uni-indexed-list :options="list" :showSelect="true" @click="bindClick"></uni-indexed-list>
</view>
<view class="fixedBottom">
<button class="btn-red" @click="goAddRenew">添 加</button>
</view>
</view>
</template>
<script setup>
import {
ref
} from 'vue'
const query = ref({})
const list = ref([{
"letter": "A",
"data": [
"阿克苏机场",
"阿拉山口机场",
"阿勒泰机场",
"阿里昆莎机场",
"安庆天柱山机场",
"澳门国际机场"
]
}, {
"letter": "B",
"data": [
"保山机场",
"包头机场",
"北海福成机场",
"北京南苑机场",
"北京首都国际机场"
]
}, {
"letter": "C",
"data": [
"保山机场",
"包头机场",
"北海福成机场",
"北京南苑机场",
"北京首都国际机场"
]
}, {
"letter": "D",
"data": [
"保山机场",
"北京首都国际机场"
]
}, {
"letter": "G",
"data": [
"保山机场",
"北京首都国际机场"
]
}, {
"letter": "Z",
"data": [
"保山机场",
"北京首都国际机场"
]
}])
function bindClick(e) {
console.log('点击item,返回数据' + JSON.stringify(e))
}
function goAddRenew(){
uni.navigateBack()
}
</script>
<style scoped lang="scss">
.indexboxre{position: relative;height:calc(100vh - 300rpx);}
.searchbar{display: flex;align-items: center;padding: 25rpx;box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content){border-radius: 35rpx;border: none;
height: 70rpx;}
:deep(.uni-easyinput__content-input){
font-size: 26rpx;}
}
</style>