flat:4.7暂存
This commit is contained in:
34
App.vue
34
App.vue
@@ -1,9 +1,9 @@
|
||||
<script setup>
|
||||
import { reactive, inject } from 'vue';
|
||||
import { reactive, inject, onMounted } from 'vue';
|
||||
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
|
||||
import useUserStore from './stores/useUserStore';
|
||||
import useDictStore from './stores/useDictStore';
|
||||
const { $api, navTo } = inject('globalFunction');
|
||||
const { $api, navTo, appendScriptTagElement } = inject('globalFunction');
|
||||
|
||||
onLaunch((options) => {
|
||||
useDictStore().getDictData();
|
||||
@@ -26,6 +26,19 @@ onLaunch((options) => {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
appendScriptTagElement('./static/js/jweixin-1.4.0.js').then(() => {
|
||||
console.log('✅ 微信 JSSDK 加载完成');
|
||||
});
|
||||
} else {
|
||||
appendScriptTagElement('/static/js/jweixin-1.4.0.js').then(() => {
|
||||
console.log('✅ 微信 JSSDK 加载完成');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
console.log('App Show');
|
||||
});
|
||||
@@ -39,7 +52,18 @@ onHide(() => {
|
||||
@import '@/common/common.css';
|
||||
/* 修改pages tabbar样式 H5有效 */
|
||||
.uni-tabbar .uni-tabbar__item:nth-child(4) .uni-tabbar__bd .uni-tabbar__icon {
|
||||
height: 100% !important;
|
||||
width: 80rpx !important;
|
||||
height: 78rpx !important;
|
||||
width: 78rpx !important;
|
||||
margin-top: -1rpx;
|
||||
}
|
||||
</style>
|
||||
.uni-tabbar-border {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
/* 提升toast层级 */
|
||||
uni-toast,
|
||||
uni-modal,
|
||||
.uni-modal,
|
||||
.uni-mask {
|
||||
z-index: 999;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user