web-base-h5/App.vue

50 lines
1.0 KiB
Vue

<!--
* @Descripttion:
* @version:
* @Author: kBank
* @Date: 2022-11-21 15:11:22
-->
<script>
import { setToken } from '@/config/auth.js'
export default {
onLaunch: function (options) {
// 分享注册
if (options.query?.token) {
setToken(options.query?.token)
}
const whiteList = [
// 'pages/shareRegist/index',
// 'pages/shareRegist/success',
'pages/login/index',
// 'pages/wechatPay/bfPay/',
// 'pages/wechatPay/hfPay/',
// 'pages/shareArea/hiList',
// 'pages/shareArea/hiOrder',
// 'pages/pay/hiPay'
]
if (whiteList.indexOf(options.path) !== -1) return
this.$store.dispatch('GetInfo')
this.$store.dispatch('getCarLength')
uni.hideTabBar({})
},
onShow: function () {
uni.hideTabBar({})
},
onHide: function () {},
}
</script>
<style lang="scss">
body{
background-color: #f2f2f2;
}
/*每个页面公共css */
@import '@/uni_modules/uview-ui/index.scss';
::v-deep .uni-picker-container{
z-index: 100000!important;
}
</style>