pages/home/home.vue
@@ -3,7 +3,7 @@ <scroll-view scroll-y class="page"> <view class="nav-list"> <navigator hover-class='none' class="nav-li" navigateTo :url="'/pages/project' + item.url" :url="item.url" :class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1',width: item.width}]" v-for="(item,index) in menu" @@ -22,7 +22,8 @@ import { mapState } from 'vuex'//引入mapState export default { data() { return {} return { } }, onShow() { console.log(this.menu);