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.
Files changed (77) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +6 -6
  3. package/dragon.iml +7 -7
  4. package/package.json +56 -56
  5. package/public/index.html +43 -43
  6. package/src/App.vue +31 -31
  7. package/src/api/index.js +1 -1
  8. package/src/api/mock.http +2 -2
  9. package/src/api/requestUrl.js +185 -185
  10. package/src/assets/js/AliyunlssUtil.js +92 -92
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/script.js +36 -36
  13. package/src/assets/less/common.css +6773 -6773
  14. package/src/assets/less/converSationContainer/common.less +191 -191
  15. package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
  16. package/src/assets/less/iconfont.css +37 -37
  17. package/src/assets/less/ticketMessage.less +211 -211
  18. package/src/components/ActionAlertIframe.vue +112 -112
  19. package/src/components/AiGuide.vue +467 -467
  20. package/src/components/AskIFrame.vue +15 -15
  21. package/src/components/ConversationContainer.vue +4617 -4617
  22. package/src/components/FileType.vue +86 -86
  23. package/src/components/Message.vue +27 -27
  24. package/src/components/actionSatisfaction.vue +107 -107
  25. package/src/components/actionSendToBot.vue +62 -62
  26. package/src/components/answerDissatisfaction.vue +62 -62
  27. package/src/components/answerRadio.vue +76 -76
  28. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  29. package/src/components/ask-components/Msgloading.vue +37 -37
  30. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  31. package/src/components/askVideo.vue +138 -138
  32. package/src/components/assetDetails.vue +370 -370
  33. package/src/components/assetMessage.vue +228 -228
  34. package/src/components/associationIntention.vue +258 -243
  35. package/src/components/botActionSatisfactor.vue +68 -68
  36. package/src/components/chatContent.vue +513 -513
  37. package/src/components/feedBack.vue +136 -136
  38. package/src/components/fielListView.vue +346 -346
  39. package/src/components/file/AliyunOssComponents.vue +108 -108
  40. package/src/components/formTemplate.vue +3344 -3344
  41. package/src/components/loadingProcess.vue +164 -164
  42. package/src/components/message/ActionAlertIframe.vue +112 -112
  43. package/src/components/message/ShopMessage.vue +164 -164
  44. package/src/components/message/TextMessage.vue +924 -924
  45. package/src/components/message/TicketMessage.vue +177 -177
  46. package/src/components/message/swiper/index.js +4 -4
  47. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  48. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  49. package/src/components/msgLoading.vue +231 -231
  50. package/src/components/myPopup.vue +70 -70
  51. package/src/components/popup.vue +227 -227
  52. package/src/components/receiverMessagePlatform.vue +65 -65
  53. package/src/components/recommend.vue +89 -89
  54. package/src/components/selector/hOption.vue +20 -20
  55. package/src/components/selector/hSelector.vue +199 -199
  56. package/src/components/selector/hWrapper.vue +216 -216
  57. package/src/components/senderMessagePlatform.vue +50 -50
  58. package/src/components/source/BotMessage.vue +24 -24
  59. package/src/components/source/CustomMessage.vue +24 -24
  60. package/src/components/test.vue +260 -260
  61. package/src/components/tree.vue +247 -247
  62. package/src/components/utils/AliyunIssUtil.js +72 -72
  63. package/src/components/utils/ckeditor.js +155 -155
  64. package/src/components/utils/ckeditorImageUpload/command.js +109 -109
  65. package/src/components/utils/ckeditorImageUpload/editing.js +11 -11
  66. package/src/components/utils/ckeditorImageUpload/plugin-image.js +11 -11
  67. package/src/components/utils/ckeditorImageUpload/toolbar-ui.js +40 -40
  68. package/src/components/utils/ckeditorfileUpload/common.js +111 -111
  69. package/src/components/utils/ckeditorfileUpload/editing.js +11 -11
  70. package/src/components/utils/ckeditorfileUpload/plugin_file.js +11 -11
  71. package/src/components/utils/ckeditorfileUpload/toolbar_ui.js +34 -34
  72. package/src/components/utils/format_date.js +25 -25
  73. package/src/components/utils/index.js +6 -6
  74. package/src/components/utils/math_utils.js +29 -29
  75. package/src/components/voiceComponent.vue +119 -119
  76. package/src/main.js +60 -60
  77. 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
- <p>{{msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)}}</p>
6
- </div>
7
- <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
8
- <!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)" class="answer-rich-text"></p>-->
9
- <p class="answer-rich-text">{{msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)}}</p>
10
- <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
11
- </div>
12
- <div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend && msg.content.recommend.status)">
13
- <p v-html="$options.filters.imageStyle(msg.content.html)"></p>
14
- </div>
15
- <div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend && msg.content.recommend.status)">
16
- <p v-html="$options.filters.imageStyle(msg.content.html)" class="answer-rich-text"></p>
17
- <Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
18
- </div>
19
- <div v-else-if="msgType === 'answer_image'" >
20
- <div
21
- class="association-img"
22
- v-if="msg.content.url"
23
- >
24
- <!-- LPY 原生宽度适配有bug,弃用 -->
25
- <template v-if="sourceOhm === 'ohm' && !isOhmPc">
26
- <viewer :images="[msg.content.url]">
27
- <img
28
- v-for="(src,index) in [msg.content.url]"
29
- :src="src"
30
- :key="index"
31
- style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
32
- class="img-class"
33
- />
34
- </viewer>
35
- </template>
36
- <img
37
- v-else
38
- :src="msg.content.url"
39
- style="height: auto; width: calc(100vw - 137px);border-radius: 25px;max-width: 230px"
40
- @click="onImageClick(msg.content.url)"
41
- class="img-class"
42
- />
43
- </div>
44
- <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
45
- </div>
46
- <div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
47
- <div class="association-img" v-if="msg.content.url">
48
- <ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
49
- :progress="msg.content.progress"></ask-video>
50
- </div>
51
- <Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
52
- </div>
53
- </div>
54
- </template>
55
-
56
- <script>
57
- import askVideo from "./askVideo";
58
- import Recommend from "./recommend";
59
- export default {
60
- name: "associationIntention",
61
- components: {Recommend, askVideo},
62
- props: ["msg",'msgType','isOpen','sourceOhm','isOhmPc'],
63
- filters: {
64
- imageStyle: function (html) {
65
- //富文本内图片自适应高度宽度
66
- const regex = new RegExp("<img", "gi");
67
- return html.replace(
68
- regex,
69
- "<img style='max-width: 230px;border-radius: 25px;' onclick='imageOnClick(this)'"
70
- );
71
- },
72
- },
73
- mounted() {
74
- },
75
- methods:{
76
- // 将匹配结果替换表情图片
77
- emotion(res) {
78
- let word = res.replace(/#|;/gi, "");
79
- const list = [
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
- let index = list.indexOf(word);
187
- return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${
188
- index + 1
189
- }.png" align="middle">`;
190
- },
191
- onRadioClickReco(id, name, apikey) {
192
- this.$emit("onRadioClick", id, name, apikey);
193
- },
194
- onImageClick(url){
195
- this.$emit('onImageClick',url)
196
- },
197
- },
198
- watch:{
199
- isOpen:{
200
- handler(value){
201
- if (value){
202
- let reg = this.msg.content.html
203
- if (reg){
204
- reg = reg.replace('<a',"<span class='isReplace'")
205
- reg = reg.replace('</a>','</span>')
206
- console.debug('reg',reg)
207
- this.msg.content.html = reg
208
- }
209
-
210
- }
211
- else {
212
- let reg = this.msg.content.html
213
- console.debug('reg',reg)
214
- if (reg){
215
- reg = reg.replace("<span class='isReplace'","<a download")
216
- let reg2 = reg
217
- reg2 = reg2.replace('</span>','</a>')
218
- this.msg.content.html = reg2
219
- console.debug('reg',reg2)
220
- }
221
- }
222
- }
223
- }
224
- }
225
- }
226
- </script>
227
-
228
-
229
- <style scoped lang="less">
230
- @import "../assets/less/converSationContainer/common";
231
- .association-intention{
232
- .association-img{
233
- /*display: flex;
234
- align-items: center;
235
- justify-content: center;*/
236
-
237
- }
238
- .answer-rich-text{
239
- /*padding-bottom: 10px;
240
- border-bottom: 1px solid #EEEEEE;*/
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>