askbot-dragon 0.6.27 → 0.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/ConversationContainer.vue +4 -2
- package/src/components/actionSendToBot.vue +3 -0
- package/src/components/answerDissatisfaction.vue +3 -2
- package/src/components/answerRadio.vue +5 -1
- package/src/components/associationIntention.vue +10 -4
- package/src/components/chatContent.vue +2 -1
- package/src/components/recommend.vue +12 -2
- package/src/components/voiceComponent.vue +2 -1
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<bot-action-satisfactor :msg="botActionSatis"></bot-action-satisfactor>
|
|
33
33
|
<answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
|
|
34
34
|
<feed-back :feedBack="feedBack"></feed-back>
|
|
35
|
-
|
|
35
|
+
<voice-compontent></voice-compontent>
|
|
36
36
|
<!-- <FileType :urls="urls" :color="black"></FileType>-->
|
|
37
37
|
<!-- <FileType :urls="urls" :color="black"></FileType>
|
|
38
38
|
<chat-content :messageList="messageList"></chat-content>-->
|
|
@@ -56,6 +56,7 @@ import LoadingProcess from "./loadingProcess";
|
|
|
56
56
|
import BotActionSatisfactor from "./botActionSatisfactor";
|
|
57
57
|
import AnswerDissatisfaction from "./answerDissatisfaction";
|
|
58
58
|
import ActionSendToBot from "./actionSendToBot";
|
|
59
|
+
import VoiceCompontent from './voiceComponent'
|
|
59
60
|
/* import TicketMessage from "@/components/message/TicketMessage";
|
|
60
61
|
import TicketMessage from "@/components/message/TicketMessage";
|
|
61
62
|
import TextMessage from "@/components/message/TextMessage";
|
|
@@ -81,7 +82,8 @@ export default {
|
|
|
81
82
|
AnswerRadio,
|
|
82
83
|
FormTemplate,
|
|
83
84
|
TextMessage,
|
|
84
|
-
FeedBack
|
|
85
|
+
FeedBack,
|
|
86
|
+
VoiceCompontent
|
|
85
87
|
|
|
86
88
|
|
|
87
89
|
},
|
|
@@ -22,11 +22,12 @@ export default {
|
|
|
22
22
|
props:['msg'],
|
|
23
23
|
methods:{
|
|
24
24
|
sendDissatisfaction(option,apiKey){
|
|
25
|
-
|
|
25
|
+
this.$emit('sendDissatisfaction',option,apiKey)
|
|
26
|
+
/*let value = JSON.stringify({
|
|
26
27
|
input: option.name,
|
|
27
28
|
reply_text: option.answer
|
|
28
29
|
});
|
|
29
|
-
this.$emit('sendMessage','USER_ACTION_TO_DISSATISFACTION_V2',value,null,apiKey)
|
|
30
|
+
this.$emit('sendMessage','USER_ACTION_TO_DISSATISFACTION_V2',value,null,apiKey);*/
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
}
|
|
@@ -34,7 +34,8 @@ export default {
|
|
|
34
34
|
word-wrap: break-word;
|
|
35
35
|
word-break: break-all;
|
|
36
36
|
overflow: hidden;
|
|
37
|
-
padding: 8px 10px 10px 0
|
|
37
|
+
/*padding: 8px 10px 10px 0;*/
|
|
38
|
+
padding-bottom: 10px;
|
|
38
39
|
height: auto;
|
|
39
40
|
border-bottom: 1px solid #EEEEEE;
|
|
40
41
|
}
|
|
@@ -51,6 +52,9 @@ export default {
|
|
|
51
52
|
display: flex;
|
|
52
53
|
align-items: center;
|
|
53
54
|
justify-content: space-between;
|
|
55
|
+
i{
|
|
56
|
+
padding-left: 10px;
|
|
57
|
+
}
|
|
54
58
|
}
|
|
55
59
|
.end{
|
|
56
60
|
border-bottom-left-radius: 25px !important;
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
<p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>
|
|
5
5
|
</div>
|
|
6
6
|
<div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
|
|
7
|
-
<p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>
|
|
7
|
+
<p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
|
|
8
8
|
<Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
|
|
9
9
|
</div>
|
|
10
10
|
<div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend != undefined && msg.content.recommend.status)">
|
|
11
11
|
<p v-html="$options.filters.imageStyle(msg.content.html)"></p>
|
|
12
12
|
</div>
|
|
13
13
|
<div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend != undefined && msg.content.recommend.status)">
|
|
14
|
-
<p v-html="$options.filters.imageStyle(msg.content.html)"></p>
|
|
14
|
+
<p v-html="$options.filters.imageStyle(msg.content.html)" class="answer-rich-text"></p>
|
|
15
15
|
<Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
|
|
16
16
|
</div>
|
|
17
17
|
<div v-else-if="msgType === 'answer_image'" >
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${index+1}.png" align="middle">`
|
|
70
70
|
},
|
|
71
71
|
onRadioClickReco(id, name, apikey) {
|
|
72
|
-
this.$emit("onRadioClick", id, name, apikey
|
|
72
|
+
this.$emit("onRadioClick", id, name, apikey);
|
|
73
73
|
},
|
|
74
74
|
onImageClick(url){
|
|
75
75
|
console.debug('onImageClick',url)
|
|
@@ -82,11 +82,17 @@
|
|
|
82
82
|
<style scoped lang="less">
|
|
83
83
|
@import "../assets/less/converSationContainer/common";
|
|
84
84
|
.association-intention{
|
|
85
|
-
background-color: white;
|
|
86
85
|
.association-img{
|
|
87
86
|
/*display: flex;
|
|
88
87
|
align-items: center;
|
|
89
88
|
justify-content: center;*/
|
|
89
|
+
.options-list{
|
|
90
|
+
padding-top: 8px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.answer-rich-text{
|
|
94
|
+
padding-bottom: 12px;
|
|
95
|
+
border-bottom: 1px solid #EEEEEE;
|
|
90
96
|
}
|
|
91
97
|
}
|
|
92
98
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<p
|
|
6
6
|
v-for="(option, index) in msg.recommend.list"
|
|
7
7
|
class="options-item"
|
|
8
|
+
:class="index!==msg.recommend.list.length -1?'recommend-item':'last-item'"
|
|
8
9
|
:key="msg.nodeId + '_' + index"
|
|
9
10
|
@click="
|
|
10
11
|
$emit(
|
|
@@ -53,10 +54,10 @@ export default {
|
|
|
53
54
|
background-color: white;
|
|
54
55
|
}
|
|
55
56
|
.options-list{
|
|
56
|
-
padding-top: 8px
|
|
57
|
+
/*padding-top: 8px;*/
|
|
57
58
|
/*padding-right: 10px;*/
|
|
58
59
|
.options-item{
|
|
59
|
-
|
|
60
|
+
|
|
60
61
|
height: 25px;
|
|
61
62
|
line-height: 25px;
|
|
62
63
|
background-color: #ffffff;
|
|
@@ -65,6 +66,15 @@ export default {
|
|
|
65
66
|
display: flex;
|
|
66
67
|
align-items: center;
|
|
67
68
|
justify-content: space-between;
|
|
69
|
+
i{
|
|
70
|
+
padding-left: 10px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.recommend-item{
|
|
74
|
+
padding: 8px 0;
|
|
75
|
+
}
|
|
76
|
+
.last-item{
|
|
77
|
+
padding-top: 8px;
|
|
68
78
|
}
|
|
69
79
|
.end{
|
|
70
80
|
border-bottom-left-radius: 25px !important;
|
|
@@ -41,6 +41,7 @@ export default {
|
|
|
41
41
|
bottom: 0;
|
|
42
42
|
width: 100%;
|
|
43
43
|
z-index: 9999;
|
|
44
|
+
left: 0;
|
|
44
45
|
#voice-component-container{
|
|
45
46
|
position: relative;
|
|
46
47
|
#voice-component-c{
|
|
@@ -48,7 +49,7 @@ export default {
|
|
|
48
49
|
width: 130%;
|
|
49
50
|
position: relative;
|
|
50
51
|
left: -15%;
|
|
51
|
-
background: linear-gradient(180deg, #
|
|
52
|
+
background: linear-gradient(180deg, #f2f2f2, #FFFFFF);
|
|
52
53
|
border: 2px solid white;
|
|
53
54
|
border-radius: 100% 100% 0 0;
|
|
54
55
|
border-bottom: none;
|