3
0
Fork 0
web-store-retail-h5/App.vue

44 lines
993 B
Vue
Raw Normal View History

2025-03-23 09:29:40 +08:00
<script>
import { setToken } from '@/config/auth.js'
2025-03-23 09:29:40 +08:00
export default {
onLaunch: function (options) {
2025-03-23 09:29:40 +08:00
// 分享注册
if (options.query?.token) {
setToken(options.query?.token)
2025-06-12 17:01:36 +08:00
console.log('🌈ad', options.query?.token)
}
2025-03-23 09:29:40 +08:00
const whiteList = [
'pages/shareRegist/index',
// 'pages/shareRegist/success',
2025-03-23 09:29:40 +08:00
'pages/login/index',
// 'pages/wechatPay/bfPay/',
// 'pages/wechatPay/hfPay/',
'pages/shareArea/hiList',
'pages/shareArea/hiOrder',
'pages/pay/hiPay',
2025-03-23 09:29:40 +08:00
]
if (whiteList.indexOf(options.path) !== -1) return
this.$store.dispatch('GetInfo')
this.$store.dispatch('getCarLength')
2025-03-23 09:29:40 +08:00
uni.hideTabBar({})
},
onShow: function () {
uni.hideTabBar({})
},
onHide: function () {},
}
</script>
<style lang="scss">
body {
background-color: #f2f2f2;
}
2025-03-23 09:29:40 +08:00
/*每个页面公共css */
@import '@/uni_modules/uview-ui/index.scss';
::v-deep .uni-picker-container {
z-index: 100000 !important;
2025-03-23 09:29:40 +08:00
}
</style>