|
@@ -4,35 +4,15 @@
|
|
|
<router-view v-if="$route.meta.keepAlive"></router-view>
|
|
|
</keep-alive>
|
|
|
<router-view v-if="!$route.meta.keepAlive"></router-view>
|
|
|
- <van-tabbar
|
|
|
- class="af-entry-tabbar"
|
|
|
- v-model="activeTab"
|
|
|
- :placeholder="true"
|
|
|
- v-show="$route.meta.isUseVanTabbar"
|
|
|
- @change="onChange">
|
|
|
- <van-tabbar-item
|
|
|
- name="PlaceList"
|
|
|
- icon="wap-home-o">订座
|
|
|
- </van-tabbar-item>
|
|
|
- <van-tabbar-item
|
|
|
- name="PlaceReserve"
|
|
|
- icon="user-o">我的订座
|
|
|
- </van-tabbar-item>
|
|
|
- </van-tabbar>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { Tabbar, TabbarItem } from 'vant'
|
|
|
import { WxConfig } from './utils/wxConfig'
|
|
|
import { platform } from './utils/platform'
|
|
|
|
|
|
export default {
|
|
|
name: 'App',
|
|
|
- components: {
|
|
|
- 'van-tabbar': Tabbar,
|
|
|
- 'van-tabbar-item': TabbarItem
|
|
|
- },
|
|
|
data () {
|
|
|
return {
|
|
|
activeTab: 'PlaceList'
|
|
@@ -77,12 +57,4 @@ export default {
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-.af-entry {
|
|
|
- &-tabbar {
|
|
|
- .van-tabbar--fixed {
|
|
|
- box-shadow: 0px -2px 4px 0px rgba(13, 13, 13, 0.03);
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|