我的
This commit is contained in:
50
src/pages/me/school.vue
Normal file
50
src/pages/me/school.vue
Normal file
@@ -0,0 +1,50 @@
|
||||
<template>
|
||||
<view>
|
||||
<IndexList :dataList="dataList" nameKey="schoolName" v-model:current="current" @click="click"></IndexList>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import IndexList from '@/components/liu-indexed-list/liu-indexed-list.vue'
|
||||
export default {
|
||||
components: {
|
||||
IndexList
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
current: '1',
|
||||
dataList: [{
|
||||
id: '1',
|
||||
schoolName: '爱尚学车驾校长安分校',
|
||||
},{
|
||||
id: '2',
|
||||
schoolName: '八一驾校',
|
||||
},{
|
||||
id: '3',
|
||||
schoolName: '八零驾校',
|
||||
},{
|
||||
id: '4',
|
||||
schoolName: '畅通驾校',
|
||||
},{
|
||||
id: '5',
|
||||
schoolName: '金灵驾校',
|
||||
},{
|
||||
id: '6',
|
||||
schoolName: '通顺驾校',
|
||||
}]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
click() {
|
||||
// 设置用户驾校
|
||||
|
||||
// 然后返回
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user