From 226a24b06be7ae71be97bc625037392e422d9956 Mon Sep 17 00:00:00 2001 From: wangyifeng <812766448@qq.com> Date: Mon, 10 Mar 2025 09:57:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=8F=90=E6=B5=8B=E5=89=8D?= =?UTF-8?q?=E7=9A=84=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 7 +++++- src/components/custom-input/custom-input.vue | 20 ++++++++++++---- .../components/settingFormItem.vue | 24 ++++++++++++++----- src/pages/chatSettings/index.vue | 2 +- src/pages/index/index.vue | 11 ++------- src/pages/search/searchByCondition/index.vue | 6 ++++- src/store/auth/index.js | 4 ++-- 7 files changed, 50 insertions(+), 24 deletions(-) diff --git a/src/App.vue b/src/App.vue index a338a43..db49d9c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,6 +2,8 @@ import { useStatus } from '@/store/status' import { useUserStore } from '@/store' import { useProvideUserModal } from '@/hooks' +import {useAuth} from "@/store/auth"; +const {token} = useAuth() import ws from '@/connect' const { statusBarHeight } = useStatus() const { uid, isShow } = useProvideUserModal() @@ -10,10 +12,13 @@ const root = document.documentElement root.style.setProperty('--statusBarHeight', `${statusBarHeight.value}px`) const handleWebview = () => { let statusBarHeight = window?.plus?.navigator?.getStatusbarHeight() - plus.webview.currentWebview().setStyle({ + const webview = plus.webview.currentWebview() + webview.setStyle({ top: statusBarHeight, bottom: 0, }) + // console.log(webview) + token.value = webview.token } const init = () => { userStore.loadSetting() diff --git a/src/components/custom-input/custom-input.vue b/src/components/custom-input/custom-input.vue index a46b6bb..0e97e3f 100644 --- a/src/components/custom-input/custom-input.vue +++ b/src/components/custom-input/custom-input.vue @@ -1,5 +1,5 @@ diff --git a/src/pages/chatSettings/components/settingFormItem.vue b/src/pages/chatSettings/components/settingFormItem.vue index a48df44..94b0384 100644 --- a/src/pages/chatSettings/components/settingFormItem.vue +++ b/src/pages/chatSettings/components/settingFormItem.vue @@ -4,12 +4,14 @@
{{ props?.item?.label }}
-
- +
+ {{ props?.item?.value }} +
{{ props?.item?.value }}
@@ -65,7 +70,14 @@ const props = defineProps({ }) const emits = defineEmits(['toManagePage', 'changeSwitch']) const toManagePage = (item) => { - emits('toManagePage', item.label) + if ( + props?.item?.hasPointer && + (props?.isManager || + (!props?.isManager && + props?.item?.label !== t('chat.settings.groupName'))) + ) { + emits('toManagePage', item.label) + } } const modelValue = computed(() => { let switchStatus = false @@ -136,7 +148,7 @@ const changeSwitch = (e, item) => { color: #747474; } } - .cab1{ + .cab1 { white-space: nowrap; overflow: hidden; max-width: 100%; diff --git a/src/pages/chatSettings/index.vue b/src/pages/chatSettings/index.vue index 6f6f5aa..330e68a 100644 --- a/src/pages/chatSettings/index.vue +++ b/src/pages/chatSettings/index.vue @@ -96,7 +96,7 @@