Forráskód Böngészése

Merge remote-tracking branch 'origin/master'

sys5923812@126.com 1 hónapja
szülő
commit
a2cfeee3a3

+ 19 - 4
src/views/xjc-integratedmachine/environment/ai_interview/ai_career_interview_chat.vue

@@ -79,7 +79,7 @@
                 <div>
                     <div style="display: flex;justify-content: space-between;align-items: center">
                         <div class="tip-title">你可以选择以下问题</div>
-                        <div>X</div>
+                        <div class="tip-button" @click="closeQuestionTip">X</div>
                     </div>
                     <div style="display: flex;align-items: center;flex-wrap: wrap">
                         <div class="tip-item" v-for="(item, index) in questionBankByKeywordList" :key="index" @click="tipSendRequest(item.question)">
@@ -788,6 +788,10 @@
     }
 
     function getQuestionBankByKeyword(){
+        if(inputMessage.value.length <2){
+            showQuestionTipBoxFlag.value = false
+            return
+        }
         let form = {
             type: 1,
             pageNum: 1,
@@ -805,6 +809,10 @@
         })
     }
 
+    function closeQuestionTip(){
+        showQuestionTipBoxFlag.value = false
+    }
+
     onMounted(()=>{
         nextTick(()=>{
             initSpeechRecognition();
@@ -1068,14 +1076,15 @@
         }
     }
     .question-tip-box{
-        width: 1346px;
+        width: 1390px;
         height: 100px;
         overflow: auto;
         z-index: 10;
         position: absolute;
-        right: 68px;
+        right: 44px;
         bottom: 100px;
-
+        background: rgba(255,255,255,0.2);
+        border-radius: 10px 10px 10px 10px;
         .tip-title{
             font-weight: 400;
             font-size: 24px;
@@ -1085,6 +1094,11 @@
             font-style: normal;
             text-transform: none;
         }
+        .tip-button{
+            font-size: 28px;
+            padding: 4px;
+            cursor: pointer;
+        }
         .tip-item{
             height: 41px;
             background: #E9FBFF;
@@ -1099,6 +1113,7 @@
             font-style: normal;
             text-transform: none;
             cursor: pointer;
+            margin: 4px;
         }
     }