From 5f5609326cb7d69c6cf89e42fd0e654fa416d8b6 Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期四, 31 十月 2024 14:02:43 +0800
Subject: [PATCH] 修改手机号码登录页面

---
 src/components/chat/components/playBar/PlayBar.vue |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/src/components/chat/components/playBar/PlayBar.vue b/src/components/chat/components/playBar/PlayBar.vue
index 6c36c6f..2ad4d43 100644
--- a/src/components/chat/components/playBar/PlayBar.vue
+++ b/src/components/chat/components/playBar/PlayBar.vue
@@ -1,5 +1,5 @@
 <template>
-	<div class="playInput hl_input rounded-[22px] input-border input-shadow" >
+	<div class="playInput hl_input rounded-[22px] input-border input-shadow">
 		<!-- 搴旂敤鍦烘櫙 -->
 		<div class="application-scenarios absolute bottom-[114%] left-4">
 			<div class="flex-items-center space-x-2">
@@ -31,7 +31,12 @@
 			</el-tooltip>
 		</div> -->
 		<div class="assembly flex">
-			<el-button title="鎻掍欢鑿滃崟" class="label flex items-center cursor-pointer" link>
+			<el-button
+				title="杈撳叆甯哥敤璇爣棰橈紝鍙揩鎹疯皟鐢ㄥ父鐢ㄨ"
+				class="label flex items-center cursor-pointer"
+				link
+				@click="commonPhrasesClick"
+			>
 				<img src="/static/images/wave/PlugIn.png" class="set-icon box-border" />
 			</el-button>
 		</div>
@@ -103,24 +108,29 @@
 			@updateInputValue="updateInputValue"
 			:isHome="isHome"
 		/>
+		<CommonPhrases v-model:isShow="isShowPhrase" v-show="isShowPhrase" :isHome="isHome"/>
 	</div>
 </template>
 
 <script setup lang="ts">
+import { onClickOutside } from '@vueuse/core';
 import type { InputInstance } from 'element-plus';
 import { ElMessage } from 'element-plus';
+import _ from 'lodash';
 import getCaretCoordinates from 'textarea-caret';
-import { computed, nextTick, ref, triggerRef } from 'vue';
+import { computed, nextTick, ref } from 'vue';
 import InfoDetail from './InfoDetail.vue';
+import CommonPhrases from './phrase/CommonPhrases.vue';
 import VoicePage from './voicePage/VoicePage.vue';
 import { getMetricsNames, querySimilarityHistory } from '/@/api/ai/chat';
-
-import { onClickOutside } from '@vueuse/core';
-import _ from 'lodash';
 import { activeGroupType, groupTypeList, groupTypeMapIcon } from '/@/stores/chatRoom';
 const emits = defineEmits(['sendClick']);
 const props = defineProps(['isTalking', 'isHome']);
 const voicePageIsShow = defineModel('voicePageIsShow', {
+	type: Boolean,
+	default: false,
+});
+const isShowPhrase = defineModel('isShowPhrase', {
 	type: Boolean,
 	default: false,
 });
@@ -213,7 +223,7 @@
 	lastIsFinish = false;
 	const res = await querySimilarityHistory({
 		question: text,
-		group_type:activeGroupType.value
+		group_type: activeGroupType.value,
 	});
 	lastIsFinish = true;
 	const handleValues = res?.values ?? [];
@@ -417,6 +427,12 @@
 	activeGroupType.value = null;
 };
 //#endregion
+
+//#region ====================== 甯哥敤璇姛鑳� ======================
+const commonPhrasesClick = () => {
+	isShowPhrase.value = true;
+};
+//#endregion
 </script>
 <style scoped lang="scss">
 .set-waterTitle {

--
Gitblit v1.9.3