askbot-dragon 1.0.13 → 1.0.14
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/README.md +27 -27
- package/babel.config.js +6 -6
- package/dragon.iml +7 -7
- package/package.json +56 -56
- package/public/index.html +43 -43
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/js/AliyunlssUtil.js +92 -92
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +191 -191
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +211 -211
- package/src/components/ActionAlertIframe.vue +112 -112
- package/src/components/AiGuide.vue +467 -467
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +4617 -4617
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/actionSatisfaction.vue +107 -107
- package/src/components/actionSendToBot.vue +62 -62
- package/src/components/answerDissatisfaction.vue +62 -62
- package/src/components/answerRadio.vue +76 -76
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +138 -138
- package/src/components/assetDetails.vue +370 -370
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +258 -243
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/fielListView.vue +346 -346
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3344 -3344
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +924 -924
- package/src/components/message/TicketMessage.vue +177 -177
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +503 -503
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +70 -70
- package/src/components/popup.vue +227 -227
- package/src/components/receiverMessagePlatform.vue +65 -65
- package/src/components/recommend.vue +89 -89
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/senderMessagePlatform.vue +50 -50
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/tree.vue +247 -247
- package/src/components/utils/AliyunIssUtil.js +72 -72
- package/src/components/utils/ckeditor.js +155 -155
- package/src/components/utils/ckeditorImageUpload/command.js +109 -109
- package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
- package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
- package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
- package/src/components/utils/ckeditorfileUpload/common.js +111 -111
- package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
- package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
- package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
- package/src/components/utils/format_date.js +25 -25
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +29 -29
- package/src/components/voiceComponent.vue +119 -119
- package/src/main.js +60 -60
- package/vue.config.js +47 -47
|
@@ -1,244 +1,259 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="association-intention">
|
|
3
|
-
<div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && !(msg.recommend&& msg.recommend.status)">
|
|
4
|
-
<!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</div>
|
|
12
|
-
<div v-if="
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="association-intention">
|
|
3
|
+
<div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && !(msg.recommend&& msg.recommend.status)">
|
|
4
|
+
<!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
|
|
5
|
+
<template v-if="msgContent(msg.content)">
|
|
6
|
+
<p>{{msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)}}</p>
|
|
7
|
+
</template>
|
|
8
|
+
<template v-else>
|
|
9
|
+
<p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
|
|
10
|
+
</template>
|
|
11
|
+
</div>
|
|
12
|
+
<div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
|
|
13
|
+
<template v-if="msgContent(msg.content)">
|
|
14
|
+
<p>{{msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)}}</p>
|
|
15
|
+
</template>
|
|
16
|
+
<template v-else>
|
|
17
|
+
<p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>
|
|
18
|
+
</template>
|
|
19
|
+
<Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
|
|
20
|
+
</div>
|
|
21
|
+
<div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend && msg.content.recommend.status)">
|
|
22
|
+
<p v-html="$options.filters.imageStyle(msg.content.html)"></p>
|
|
23
|
+
</div>
|
|
24
|
+
<div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend && msg.content.recommend.status)">
|
|
25
|
+
<p v-html="$options.filters.imageStyle(msg.content.html)" class="answer-rich-text"></p>
|
|
26
|
+
<Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
|
|
27
|
+
</div>
|
|
28
|
+
<div v-else-if="msgType === 'answer_image'" >
|
|
29
|
+
<div
|
|
30
|
+
class="association-img"
|
|
31
|
+
v-if="msg.content.url"
|
|
32
|
+
>
|
|
33
|
+
<!-- LPY 原生宽度适配有bug,弃用 -->
|
|
34
|
+
<template v-if="sourceOhm === 'ohm' && !isOhmPc">
|
|
35
|
+
<viewer :images="[msg.content.url]">
|
|
36
|
+
<img
|
|
37
|
+
v-for="(src,index) in [msg.content.url]"
|
|
38
|
+
:src="src"
|
|
39
|
+
:key="index"
|
|
40
|
+
style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
|
|
41
|
+
class="img-class"
|
|
42
|
+
/>
|
|
43
|
+
</viewer>
|
|
44
|
+
</template>
|
|
45
|
+
<img
|
|
46
|
+
v-else
|
|
47
|
+
:src="msg.content.url"
|
|
48
|
+
style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
|
|
49
|
+
@click="onImageClick(msg.content.url)"
|
|
50
|
+
class="img-class"
|
|
51
|
+
/>
|
|
52
|
+
</div>
|
|
53
|
+
<Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
|
|
54
|
+
</div>
|
|
55
|
+
<div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
|
|
56
|
+
<div class="association-img" v-if="msg.content.url">
|
|
57
|
+
<ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
|
|
58
|
+
:progress="msg.content.progress"></ask-video>
|
|
59
|
+
</div>
|
|
60
|
+
<Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script>
|
|
66
|
+
import askVideo from "./askVideo";
|
|
67
|
+
import Recommend from "./recommend";
|
|
68
|
+
export default {
|
|
69
|
+
name: "associationIntention",
|
|
70
|
+
components: {Recommend, askVideo},
|
|
71
|
+
props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc'],
|
|
72
|
+
filters: {
|
|
73
|
+
imageStyle: function (html) {
|
|
74
|
+
//富文本内图片自适应高度宽度
|
|
75
|
+
const regex = new RegExp("<img", "gi");
|
|
76
|
+
return html.replace(
|
|
77
|
+
regex,
|
|
78
|
+
"<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
mounted() {
|
|
83
|
+
},
|
|
84
|
+
methods:{
|
|
85
|
+
// 将匹配结果替换表情图片
|
|
86
|
+
emotion(res) {
|
|
87
|
+
let word = res.replace(/#|;/gi, "");
|
|
88
|
+
const list = [
|
|
89
|
+
"微笑",
|
|
90
|
+
"撇嘴",
|
|
91
|
+
"色",
|
|
92
|
+
"发呆",
|
|
93
|
+
"得意",
|
|
94
|
+
"流泪",
|
|
95
|
+
"害羞",
|
|
96
|
+
"闭嘴",
|
|
97
|
+
"睡",
|
|
98
|
+
"大哭",
|
|
99
|
+
"尴尬",
|
|
100
|
+
"发怒",
|
|
101
|
+
"调皮",
|
|
102
|
+
"呲牙",
|
|
103
|
+
"惊讶",
|
|
104
|
+
"难过",
|
|
105
|
+
"酷",
|
|
106
|
+
"冷汗",
|
|
107
|
+
"抓狂",
|
|
108
|
+
"吐",
|
|
109
|
+
"偷笑",
|
|
110
|
+
"可爱",
|
|
111
|
+
"白眼",
|
|
112
|
+
"傲慢",
|
|
113
|
+
"饥饿",
|
|
114
|
+
"困",
|
|
115
|
+
"惊恐",
|
|
116
|
+
"流汗",
|
|
117
|
+
"憨笑",
|
|
118
|
+
"大兵",
|
|
119
|
+
"奋斗",
|
|
120
|
+
"咒骂",
|
|
121
|
+
"疑问",
|
|
122
|
+
"嘘",
|
|
123
|
+
"晕",
|
|
124
|
+
"折磨",
|
|
125
|
+
"衰",
|
|
126
|
+
"骷髅",
|
|
127
|
+
"敲打",
|
|
128
|
+
"再见",
|
|
129
|
+
"擦汗",
|
|
130
|
+
"抠鼻",
|
|
131
|
+
"鼓掌",
|
|
132
|
+
"糗大了",
|
|
133
|
+
"坏笑",
|
|
134
|
+
"左哼哼",
|
|
135
|
+
"右哼哼",
|
|
136
|
+
"哈欠",
|
|
137
|
+
"鄙视",
|
|
138
|
+
"委屈",
|
|
139
|
+
"快哭了",
|
|
140
|
+
"阴险",
|
|
141
|
+
"亲亲",
|
|
142
|
+
"吓",
|
|
143
|
+
"可怜",
|
|
144
|
+
"菜刀",
|
|
145
|
+
"西瓜",
|
|
146
|
+
"啤酒",
|
|
147
|
+
"篮球",
|
|
148
|
+
"乒乓",
|
|
149
|
+
"咖啡",
|
|
150
|
+
"饭",
|
|
151
|
+
"猪头",
|
|
152
|
+
"玫瑰",
|
|
153
|
+
"凋谢",
|
|
154
|
+
"示爱",
|
|
155
|
+
"爱心",
|
|
156
|
+
"心碎",
|
|
157
|
+
"蛋糕",
|
|
158
|
+
"闪电",
|
|
159
|
+
"炸弹",
|
|
160
|
+
"刀",
|
|
161
|
+
"足球",
|
|
162
|
+
"瓢虫",
|
|
163
|
+
"便便",
|
|
164
|
+
"月亮",
|
|
165
|
+
"太阳",
|
|
166
|
+
"礼物",
|
|
167
|
+
"拥抱",
|
|
168
|
+
"强",
|
|
169
|
+
"弱",
|
|
170
|
+
"握手",
|
|
171
|
+
"胜利",
|
|
172
|
+
"抱拳",
|
|
173
|
+
"勾引",
|
|
174
|
+
"拳头",
|
|
175
|
+
"差劲",
|
|
176
|
+
"爱你",
|
|
177
|
+
"不",
|
|
178
|
+
"可以",
|
|
179
|
+
"爱情",
|
|
180
|
+
"飞吻",
|
|
181
|
+
"跳跳",
|
|
182
|
+
"发抖",
|
|
183
|
+
"怄火",
|
|
184
|
+
"转圈",
|
|
185
|
+
"磕头",
|
|
186
|
+
"回头",
|
|
187
|
+
"跳绳",
|
|
188
|
+
"挥手",
|
|
189
|
+
"激动",
|
|
190
|
+
"街舞",
|
|
191
|
+
"献吻",
|
|
192
|
+
"左太极",
|
|
193
|
+
"右太极",
|
|
194
|
+
];
|
|
195
|
+
let index = list.indexOf(word);
|
|
196
|
+
return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${
|
|
197
|
+
index + 1
|
|
198
|
+
}.png" align="middle">`;
|
|
199
|
+
},
|
|
200
|
+
onRadioClickReco(id, name, apikey) {
|
|
201
|
+
this.$emit("onRadioClick", id, name, apikey);
|
|
202
|
+
},
|
|
203
|
+
onImageClick(url){
|
|
204
|
+
this.$emit('onImageClick',url)
|
|
205
|
+
},
|
|
206
|
+
msgContent(content){
|
|
207
|
+
let msg = content.replace('<br/>',"\n");
|
|
208
|
+
var reg = /<[^>]+>/g;
|
|
209
|
+
return reg.test(msg);
|
|
210
|
+
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
watch:{
|
|
214
|
+
isOpen:{
|
|
215
|
+
handler(value){
|
|
216
|
+
if (value){
|
|
217
|
+
let reg = this.msg.content.html
|
|
218
|
+
if (reg){
|
|
219
|
+
reg = reg.replace('<a',"<span class='isReplace'")
|
|
220
|
+
reg = reg.replace('</a>','</span>')
|
|
221
|
+
console.debug('reg',reg)
|
|
222
|
+
this.msg.content.html = reg
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
let reg = this.msg.content.html
|
|
228
|
+
console.debug('reg',reg)
|
|
229
|
+
if (reg){
|
|
230
|
+
reg = reg.replace("<span class='isReplace'","<a download")
|
|
231
|
+
let reg2 = reg
|
|
232
|
+
reg2 = reg2.replace('</span>','</a>')
|
|
233
|
+
this.msg.content.html = reg2
|
|
234
|
+
console.debug('reg',reg2)
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
</script>
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
<style scoped lang="less">
|
|
245
|
+
@import "../assets/less/converSationContainer/common";
|
|
246
|
+
.association-intention{
|
|
247
|
+
.association-img{
|
|
248
|
+
/*display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
justify-content: center;*/
|
|
251
|
+
|
|
252
|
+
}
|
|
253
|
+
.answer-rich-text{
|
|
254
|
+
/*padding-bottom: 10px;
|
|
255
|
+
border-bottom: 1px solid #EEEEEE;*/
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
244
259
|
</style>
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bot-action-satisfator">
|
|
3
|
-
<div class="replay">
|
|
4
|
-
<p class="reply-text" v-html="msg.content.reply_text"></p>
|
|
5
|
-
<div v-if="
|
|
6
|
-
msg.content.reply_options != null &&
|
|
7
|
-
msg.content.reply_options.length > 0
|
|
8
|
-
">
|
|
9
|
-
<p
|
|
10
|
-
|
|
11
|
-
v-for="(option, index) in msg.content.reply_options"
|
|
12
|
-
class="statisfaction-item"
|
|
13
|
-
:key="index"
|
|
14
|
-
@click="
|
|
15
|
-
onSatisfactionClick(
|
|
16
|
-
'user_action_to_unsatisfactory',
|
|
17
|
-
option.name,
|
|
18
|
-
option.answer, null,msg.apiKey
|
|
19
|
-
)
|
|
20
|
-
"
|
|
21
|
-
>
|
|
22
|
-
{{ option.name }}<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
23
|
-
</p>
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
export default {
|
|
32
|
-
name: "botActionSatisfactor",
|
|
33
|
-
props:['msg'],
|
|
34
|
-
methods:{
|
|
35
|
-
onSatisfactionClick(type, choose, answer, answerRadio,answerApiKey) {
|
|
36
|
-
this.$emit("onSatisfactionClick", type, choose, answer, answerRadio,answerApiKey);
|
|
37
|
-
},
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
</script>
|
|
41
|
-
|
|
42
|
-
<style scoped lang="less">
|
|
43
|
-
@import "../assets/less/converSationContainer/common";
|
|
44
|
-
.bot-action-satisfator{
|
|
45
|
-
.reply-text{
|
|
46
|
-
word-wrap: break-word;
|
|
47
|
-
word-break: break-all;
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
padding: 8px 0 10px 0;
|
|
50
|
-
height: auto;
|
|
51
|
-
border-bottom: 1px solid #EEEEEE;
|
|
52
|
-
}
|
|
53
|
-
.statisfaction-item{
|
|
54
|
-
padding: 8px 0;
|
|
55
|
-
height: 25px;
|
|
56
|
-
line-height: 25px;
|
|
57
|
-
background-color: #ffffff;
|
|
58
|
-
color: #366aff;
|
|
59
|
-
cursor:pointer;
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
justify-content: space-between;
|
|
63
|
-
}
|
|
64
|
-
.end{
|
|
65
|
-
border-bottom-left-radius: 25px !important;
|
|
66
|
-
border-bottom-right-radius: 25px !important;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bot-action-satisfator">
|
|
3
|
+
<div class="replay">
|
|
4
|
+
<p class="reply-text" v-html="msg.content.reply_text"></p>
|
|
5
|
+
<div v-if="
|
|
6
|
+
msg.content.reply_options != null &&
|
|
7
|
+
msg.content.reply_options.length > 0
|
|
8
|
+
">
|
|
9
|
+
<p
|
|
10
|
+
|
|
11
|
+
v-for="(option, index) in msg.content.reply_options"
|
|
12
|
+
class="statisfaction-item"
|
|
13
|
+
:key="index"
|
|
14
|
+
@click="
|
|
15
|
+
onSatisfactionClick(
|
|
16
|
+
'user_action_to_unsatisfactory',
|
|
17
|
+
option.name,
|
|
18
|
+
option.answer, null,msg.apiKey
|
|
19
|
+
)
|
|
20
|
+
"
|
|
21
|
+
>
|
|
22
|
+
{{ option.name }}<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
23
|
+
</p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script>
|
|
31
|
+
export default {
|
|
32
|
+
name: "botActionSatisfactor",
|
|
33
|
+
props:['msg'],
|
|
34
|
+
methods:{
|
|
35
|
+
onSatisfactionClick(type, choose, answer, answerRadio,answerApiKey) {
|
|
36
|
+
this.$emit("onSatisfactionClick", type, choose, answer, answerRadio,answerApiKey);
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<style scoped lang="less">
|
|
43
|
+
@import "../assets/less/converSationContainer/common";
|
|
44
|
+
.bot-action-satisfator{
|
|
45
|
+
.reply-text{
|
|
46
|
+
word-wrap: break-word;
|
|
47
|
+
word-break: break-all;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
padding: 8px 0 10px 0;
|
|
50
|
+
height: auto;
|
|
51
|
+
border-bottom: 1px solid #EEEEEE;
|
|
52
|
+
}
|
|
53
|
+
.statisfaction-item{
|
|
54
|
+
padding: 8px 0;
|
|
55
|
+
height: 25px;
|
|
56
|
+
line-height: 25px;
|
|
57
|
+
background-color: #ffffff;
|
|
58
|
+
color: #366aff;
|
|
59
|
+
cursor:pointer;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
}
|
|
64
|
+
.end{
|
|
65
|
+
border-bottom-left-radius: 25px !important;
|
|
66
|
+
border-bottom-right-radius: 25px !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
69
|
</style>
|