1234567891011121314151617181920212223242526272829303132333435363738 |
- <template>
- <view class="">
- <view>
- 首页
- </view>
- <u-tabbar :value="2" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
- <u-tabbar-item @click='changeRouter(item)' v-for="item in tabbarList " :key="item.icon" :text="item.text"
- :icon="item.icon">
- </u-tabbar-item>
- </u-tabbar>
- </view>
- </template>
- <script>
- import TabBar from "@/mixins/tabbar.js"
- export default {
- mixins: [TabBar],
- data() {
- return {
-
- };
- },
- methods: {
- // changeRouter(item) {
- // console.log(11, item);
- // uni.redirectTo({
- // url: item.path
- // })
- // }
- },
- }
- </script>
- <style lang="scss">
- </style>
|