<template>
<view class="content">
<view v-for="(item,index) in tablist" :key='index' >
<view @click.native="about" class="login">{{item.name}}</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tablist:[
{
name:'A页面',
path:'/pages/index/index'
},
{
name:'B页面',
path:'/pages/about/index'
}
]
}
},
methods: {
about(){
console.log('点击到了')
uni.navigateTo({
url:'/pages/about/index'
})
}
}
}
</script>
0 个回复