|
@@ -2,7 +2,7 @@
|
|
|
* @Author: wjc
|
|
|
* @Date: 2024-06-17 16:02:59
|
|
|
* @LastEditors: wjc
|
|
|
- * @LastEditTime: 2024-07-10 11:40:21
|
|
|
+ * @LastEditTime: 2024-07-10 16:59:31
|
|
|
* @Description:
|
|
|
-->
|
|
|
<template>
|
|
@@ -27,6 +27,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
+ import { onLaunch } from '@dcloudio/uni-app'
|
|
|
import { useUserStore } from '@/stores/modules/userStore'
|
|
|
import { useAppStore } from '@/stores/modules/appStore'
|
|
|
|
|
@@ -36,53 +37,6 @@
|
|
|
const appStore = useAppStore()
|
|
|
const logoutShow = ref(false)
|
|
|
|
|
|
- const originNavBarStyle = computed(() => {
|
|
|
- if (appStore.isDark) {
|
|
|
- return {
|
|
|
- frontColor: '#ffffff',
|
|
|
- backgroundColor: '#1a1a1a',
|
|
|
- animation: {
|
|
|
- duration: 0,
|
|
|
- timingFunc: 'easeIn',
|
|
|
- },
|
|
|
- }
|
|
|
- } else {
|
|
|
- return {
|
|
|
- frontColor: '#000000',
|
|
|
- backgroundColor: '#f8f8f8',
|
|
|
- animation: {
|
|
|
- duration: 0,
|
|
|
- timingFunc: 'easeIn',
|
|
|
- },
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- // watch(
|
|
|
- // () => appStore.isDark,
|
|
|
- // (value) => {
|
|
|
- // if (value) {
|
|
|
- // uni.setNavigationBarColor({
|
|
|
- // frontColor: '#ffffff',
|
|
|
- // backgroundColor: '#1a1a1a',
|
|
|
- // animation: {
|
|
|
- // duration: 0,
|
|
|
- // timingFunc: 'easeIn',
|
|
|
- // },
|
|
|
- // })
|
|
|
- // } else {
|
|
|
- // uni.setNavigationBarColor({
|
|
|
- // frontColor: '#000000',
|
|
|
- // backgroundColor: '#f8f8f8',
|
|
|
- // animation: {
|
|
|
- // duration: 0,
|
|
|
- // timingFunc: 'easeIn',
|
|
|
- // },
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // )
|
|
|
-
|
|
|
const handleCancel = () => {
|
|
|
logoutShow.value = false
|
|
|
}
|
|
@@ -103,4 +57,8 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ onLaunch(() => {
|
|
|
+ uni.hideTabBar()
|
|
|
+ })
|
|
|
</script>
|