| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <template>
- <view>
- <block v-if="current == 0">
- <index-view></index-view>
- </block>
- <block v-if="current == 3">
- <mine-view></mine-view>
- </block>
- <view style="height: 100upx;"></view>
- <view class="footer-fixed">
- <bottom-bar-index @onTap="change"></bottom-bar-index>
- </view>
- </view>
- </template>
- <script>
- import indexView from "@/components/indexViews/home-view.vue";
- import bottomBarIndex from "@/components/basic/bottom-bar-index.vue";
- import mineView from "@/components/indexViews/mine-view.vue";
- export default {
- components: {
- bottomBarIndex,
- indexView,
- mineView
- },
- data() {
- return {
- current: 0,
-
- }
- },
- onLoad() {
- // uni.setStorageSync("userId","1413461510759485442")
- },
- methods: {
- change(index) {
- this.current = index;
- }
- }
- }
- </script>
- <style>
-
- </style>
|