1234567891011121314151617181920212223242526272829303132333435363738 |
- <script>
- import store from './store';
- export default {
- async onLaunch() {
- store.dispatch('getAppSystemInfo')
- if(store.getters.scope === 'CUSTOMER'){
- uni.switchTab({
- url:'/pages/client/tabBar/home/index'
- })
- }else{
- uni.navigateTo({
- url:'/pages/merchant/order/index'
- })
- }
- },
- onShow() {
- uni.hideTabBar({
- success: () => {
- console.log('hide tabber success');
- },fail: () => {
- console.log('hide tabber fail');
- }
- })
- }
- };
- </script>
- <style lang="scss">
- @import 'uview-ui/index.scss';
- @import 'design/index.scss';
- @import url('design/common.css');
- page {
- background-color: #f5f5f5;
- color: $uni-text-color;
- font-size: $uni-font-size-base;
- }
- </style>
|