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