|
@@ -1,15 +1,20 @@
|
|
|
-
|
|
|
+import { storage } from "@/utils/storage";
|
|
|
+import { getToken, setToken, removeToken } from "@/utils/auth";
|
|
|
import { defineStore } from "pinia";
|
|
|
+// 接口引用
|
|
|
+import { uploadAvatar, updateUserProfile } from "@/api/system/user";
|
|
|
+import { baseAppInfoApi } from "@/api/common/index";
|
|
|
+import { checkUpdates } from "@/api/system/setting";
|
|
|
+// 组件引用
|
|
|
+import { useStores } from "@/store/modules/index";
|
|
|
+import jweixin from 'weixin-js-sdk'
|
|
|
import config from "@/config";
|
|
|
-import { storage } from "@/utils/storage";
|
|
|
-import modal from "@/plugins/modal.plugins.js";
|
|
|
import tab from "@/plugins/tab.plugins.js";
|
|
|
+import modal from "@/plugins/modal.plugins.js";
|
|
|
+import common from "@/plugins/common.plugins.js";
|
|
|
import setting from "@/plugins/setting.plugins.js";
|
|
|
-import { useStores } from "@/store/modules/index";
|
|
|
|
|
|
-import { uploadAvatar, updateUserProfile } from "@/api/system/user";
|
|
|
-import { baseAppInfoApi } from "@/api/common/index";
|
|
|
-import { checkUpdates } from "@/api/system/setting";
|
|
|
+
|
|
|
|
|
|
const settingStore = defineStore("storage-setting", {
|
|
|
state: () => ({
|
|
@@ -63,10 +68,9 @@ const settingStore = defineStore("storage-setting", {
|
|
|
*/
|
|
|
systemHeightTop() {
|
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
|
- var statusBarHeight = systemInfo.statusBarHeight
|
|
|
this.webViewHeight = systemInfo.safeArea.bottom //高度+安全区域的高度
|
|
|
- this.StatusBar = statusBarHeight
|
|
|
- this.tabBarHeight = systemInfo.screenHeight - systemInfo.safeArea.bottom + "px"
|
|
|
+ this.StatusBar = systemInfo.statusBarHeight
|
|
|
+ this.tabBarHeight = common.isWechatMp() ? "0px" : (systemInfo.screenHeight - systemInfo.safeArea.bottom + "px")
|
|
|
this.barHightTop = this.StatusBar ? this.StatusBar + 44 + 'px' : '44px'
|
|
|
|
|
|
//#ifdef MP
|