新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
41
App.vue
41
App.vue
@ -1,22 +1,43 @@
|
||||
<script>
|
||||
<script setup>
|
||||
import { createBuryPoint } from '@/api/global'
|
||||
import cookie from "@/utils/cookie";
|
||||
import { onLaunch } from "@dcloudio/uni-app";
|
||||
import { useMainStore } from "@/store/store";
|
||||
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
},
|
||||
onHide: function () {
|
||||
const mainStore = useMainStore();
|
||||
onLaunch( () => {
|
||||
const tokenObj = cookie.get('accessToken')
|
||||
let userInfo = ''
|
||||
if (tokenObj && !mainStore.user) {
|
||||
userInfo = mainStore.getUserInfo()
|
||||
}
|
||||
}
|
||||
// 埋点
|
||||
createBuryPoint({
|
||||
event: 'visit',
|
||||
})
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
|
||||
@import "uview-plus/index.scss";
|
||||
@import "style/style.scss";
|
||||
|
||||
page {
|
||||
background-color: #f5f5f5;
|
||||
position: relative;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
&::after{
|
||||
content: '';
|
||||
width: 100%;
|
||||
height: env(safe-area-inset-bottom);
|
||||
background: #f5f5f5;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 9999;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user