<template>
	<view>
		<view v-for="(item,i) in list" class="selectItem" :key="i"  @click="goUrl(item)" >
			{{item.name}}>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						name:"3.选择停车场",url:"pages/main/ahtml/homepage",
						s:1
					},
					{
						
						name:"4.非白名单用户",url:"pages/main/ahtml/nonwhitelist"
					},
					{
						name:"5.停车场详情页",url:"pages/main/ahtml/parkingDetails"
					},
					
					{
						name:"9.地锁详情",url:"pages/main/ahtml/lockInfo"
					},
					{
						name:"13.个人中心",url:"pages/main/ahtml/center",
						s:1
					},
					{
						name:"14.个人信息",url:"pages/main/ahtml/information"
					},
					
					
					{
						name:"15我的地锁",url:"pages/main/ahtml/mylock/myLock"
					},
					{
						name:"16绑定地锁",url:"pages/main/ahtml/mylock/bindLock"
					},
					{
						name:"17绑定地锁（状态）",url:"pages/main/ahtml/mylock/bindLockStatus"
					},
					{
						name:"19修改地锁",url:"pages/main/ahtml/mylock/editLock"
					},
					{
						name:"20详情地锁",url:"pages/main/ahtml/mylock/infoLock"
					},
				]
			}
		},
		methods: {
			goUrl(item){
				if(item.s){
					uni.switchTab({
						url:"/"+item.url
					})
				}else{
					uni.navigateTo({
						url:"/"+item.url
					})
				}
			}
		}
	}
</script>

<style scoped lang="scss" >
	.selectItem{
		margin: 40rpx;
	}
</style>
