From 7fe96f5576c3659165391525b2c4c05abb4f80c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=98=93?= <105188049+xiaoyiweb@users.noreply.github.com> Date: Mon, 5 Feb 2024 23:15:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 14340 -> 14340 bytes chat/src/layout/components/Login/Email.vue | 4 - chat/src/layout/siderBar/index.vue | 6 +- chat/src/styles/global.less | 43 +-- chat/src/views/chat/chatBase.vue | 2 +- .../views/chat/components/Header/index.vue | 23 +- .../views/chat/components/Message/Text.vue | 2 +- .../views/chat/components/Message/index.vue | 2 +- .../src/views/chat/components/sider/index.vue | 250 +++++++++++++----- service/.DS_Store | Bin 10244 -> 12292 bytes service/src/.DS_Store | Bin 10244 -> 10244 bytes 11 files changed, 227 insertions(+), 105 deletions(-) diff --git a/.DS_Store b/.DS_Store index 0df1bdaeb444f0e7c06352a2f99f9168d9930360..0fe928222eb2afe4767be3186c5a43b3de20ec5c 100644 GIT binary patch delta 338 zcmZoEXepR*fF&znx5dVbX6zFm@NQ=3c*DWMuv=4n^LGJlHfQZc?XxR)9Cc)1U|?ZL zX2@VjWGKnaPjN}g$xi}`abS}#$S@2}&d)6X$}=#Wny@)l{1_wC#+JzqGNO}@D5-2t zlVo9IV^Fc#QMF@ofxH5ODKdGLJRf7i2~lb-|>k!zOa3AfxH5ODKdGLJRjqP$vfq9;!2fYfbG;{NN30d+35ne6Xe|MTcK`( z%Ol)`O&-}z44Xb|ZdTA?Vqt2t?%TXs$&ihWd&Na{-OZC { -
- 老用户密码统一重置为112233
- 登录后请自行修改密码 -
@@ -199,7 +199,7 @@ watch( v-for="item in menuList" :key="item.menuName" class="flex justify-center flex-col items-center" - :class="isMobile ? 'mt-0' : 'mt-3'" + :class="isMobile ? 'mt-0' : 'mt-2'" @click="handleClickMenu(item)" > + + \ No newline at end of file diff --git a/chat/src/views/chat/components/Message/Text.vue b/chat/src/views/chat/components/Message/Text.vue index d86ae70..ee87a94 100644 --- a/chat/src/views/chat/components/Message/Text.vue +++ b/chat/src/views/chat/components/Message/Text.vue @@ -307,7 +307,7 @@ defineExpose({ textRef }) } .header-1 { - background-color: #f1f3f8 !important; + background-color: #fff !important; border-bottom: 1px solid #e3e8f7 !important; height: 30px !important; position: absolute !important; diff --git a/chat/src/views/chat/components/Message/index.vue b/chat/src/views/chat/components/Message/index.vue index 53c79dd..e174304 100644 --- a/chat/src/views/chat/components/Message/index.vue +++ b/chat/src/views/chat/components/Message/index.vue @@ -121,7 +121,7 @@ function handleRegenerate() {

authStore.userBalance) const dialog = useDialog() /* 当前选用的模型的扣费类型 1: 普通 2: 高级 */ -const activeModelKeyDeductType = computed(() => chatStore?.activeModelKeyDeductType) +const activeModelKeyDeductType = computed( + () => chatStore?.activeModelKeyDeductType +) const activeModelKeyPrice = computed(() => chatStore?.activeModelKeyPrice) const oldUse3Token = ref(0) @@ -32,22 +46,30 @@ const newUse4Token = ref(0) const isSearch = ref(false) const searchRef = ref(null) -watch(() => authStore.userBalance.useModel3Token, (newVal, oldVal) => { - oldUse3Token.value = oldVal || 0 - newUse3Token.value = newVal || 0 - model3AnimationInstRef.value?.play() -}, { - immediate: true, - flush: 'post', -}) -watch(() => authStore.userBalance.useModel4Token, (newVal, oldVal) => { - oldUse4Token.value = oldVal || 0 - newUse4Token.value = newVal || 0 - model4AnimationInstRef.value?.play() -}, { - immediate: true, - flush: 'post', -}) +watch( + () => authStore.userBalance.useModel3Token, + (newVal, oldVal) => { + oldUse3Token.value = oldVal || 0 + newUse3Token.value = newVal || 0 + model3AnimationInstRef.value?.play() + }, + { + immediate: true, + flush: 'post', + } +) +watch( + () => authStore.userBalance.useModel4Token, + (newVal, oldVal) => { + oldUse4Token.value = oldVal || 0 + newUse4Token.value = newVal || 0 + model4AnimationInstRef.value?.play() + }, + { + immediate: true, + flush: 'post', + } +) const { isMobile } = useBasicLayout() const addLoading = ref(false) @@ -55,9 +77,10 @@ const addLoading = ref(false) const collapsed = computed(() => appStore.siderCollapsed) const groupKeyWord = ref('') -function handleInputGroupSearch(val: string) { - groupKeyWord.value = val - chatStore.setGroupKeyWord(val) +function handleInputGroupSearch(event: { target: { value: any } }) { + const val = event.target.value; + groupKeyWord.value = val; + chatStore.setGroupKeyWord(val); } function handleBlurInput() { @@ -76,10 +99,8 @@ async function handleAdd() { await chatStore.queryMyGroup() addLoading.value = false - if (isMobile.value) - appStore.setSiderCollapsed(true) - } - catch (error) { + if (isMobile.value) appStore.setSiderCollapsed(true) + } catch (error) { addLoading.value = false } } @@ -135,7 +156,7 @@ watch( { immediate: true, flush: 'post', - }, + } ) @@ -152,83 +173,174 @@ watch( :style="getMobileClass" @update-collapsed="handleUpdateCollapsed" > -
+
-
- - - -
- +
+ +
+
+ + + + +
-
-
-
- - 新对话 - - -
- - - + +
-
-
- + +
+
+ 普通额度: {{ `${userBalance.sumModel3Count || 0} 积分` }}
-
- 我已使用: Token +
+ + 我已使用: + + Token
-
- 模型费用: {{ `${activeModelKeyPrice || 0}积分 / 次对话` }} +
+ + 模型费用: {{ `${activeModelKeyPrice || 0}积分 / 次对话` }}
-
- 我已使用: Token +
+ 我已使用: + + Token
-
- 高级额度: {{ `${userBalance.sumModel4Count || 0} 积分` }} +
+ 高级额度: {{ `${userBalance.sumModel4Count || 0} 积分` }}
-
- 模型费用: {{ `${activeModelKeyPrice || 0}积分 / 次对话` }} +
+ 模型费用: {{ `${activeModelKeyPrice || 0}积分 / 次对话` }}
- + 公告栏 - + 工作台
- - + + 清空全部非置顶会话
-
- +
diff --git a/service/.DS_Store b/service/.DS_Store index 1a801e0747da214bee90bfdd583c736b5ca07831..0d9cd08c3441ee5053864dc31a094c4c41a406d5 100644 GIT binary patch delta 967 zcmZn(Xh~3DU|?W$DortDV9)?EIe-{M3-ADmHUvg{ z!;s04TozoEH?dH8vVjTdPgp*X3$xBzPF_N0QG%;FLQgKLaT%q*;I z>>TVI+#IpN8TsYGC5a`a#ZHrCz3VwSIO7GxtEZ+`RlwkQ0DW0Samm;Du0dvJ1%K0fshKccFw7!+cOkfYsJx^8|9xotyq# z?%{TD(BU*ZHy;s{#HdFKT3w)r7J$5f({NBK%gN6JB?HFIQNs5a8J|zK6wOco#ST!6 z6{H!MY`KAiD{|7^SoofKGQWy0Cn&rQ05QX48y;yEAdh2mhRXbUL>LT65SSw;FY