food_wechat/pages/main/index.vue

33 lines
536 B
Vue
Raw Normal View History

2024-05-29 21:49:52 +08:00
<template>
<view class="vh100 flex column">
<!-- tabbar -->
<view>
<tabbar></tabbar>
2024-05-29 21:49:52 +08:00
</view>
</view>
</template>
<script>
export default {
data() {
return {
avatarSrc: "", //头像地址
menuCurrent: null, //tabbar当前页
2024-05-29 21:49:52 +08:00
}
},
onShow() {
// 当页面显示时设置tabber的激活项
this.$store.commit('setTabbarCurrent', 2)
2024-05-29 21:49:52 +08:00
},
methods: {
}
}
</script>
<style lang="scss">
.topbar {
background-color: $uni-color-error;
height: 176rpx;
}
.topTit{margin-right: 104rpx;}
</style>