askbot-dragon 1.6.76-beta → 1.6.78-beta
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 +55 -55
- package/public/index.html +72 -72
- 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/common.js +252 -252
- package/src/assets/js/hammer.js +100 -100
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +199 -199
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +294 -294
- package/src/components/ActionAlertIframe.vue +177 -177
- package/src/components/AiGuide.vue +466 -466
- package/src/components/AnswerDocknowledge.vue +1059 -1059
- package/src/components/AnswerVoice.vue +285 -285
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +4934 -4934
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/MyEditor.vue +351 -351
- 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 +186 -186
- 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 +162 -162
- package/src/components/assetDetails.vue +378 -378
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +355 -355
- package/src/components/attachmentPreview.vue +90 -90
- 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 +351 -351
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3572 -3572
- package/src/components/intelligentSummary.vue +227 -227
- package/src/components/kkview.vue +1138 -1138
- 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 +201 -201
- 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/newPdfPosition.vue +877 -877
- package/src/components/pdfPosition.vue +1508 -1506
- package/src/components/popup.vue +227 -227
- package/src/components/previewDoc.vue +247 -247
- package/src/components/previewPdf.vue +791 -757
- package/src/components/receiverMessagePlatform.vue +65 -65
- package/src/components/recommend.vue +80 -80
- 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 +294 -294
- package/src/components/utils/AliyunIssUtil.js +81 -81
- package/src/components/utils/ckeditor.js +174 -174
- 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/components/welcomeKnowledgeFile.vue +340 -340
- package/src/components/welcomeLlmCard.vue +140 -140
- package/src/components/welcomeSuggest.vue +97 -97
- package/src/main.js +57 -57
- package/vue.config.js +54 -54
|
@@ -1,187 +1,187 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="answer-radio">
|
|
3
|
-
<p class="radio-description" v-html="msg.content.description"
|
|
4
|
-
v-if="msg.content.description && !msg.content.isKnowledgeSummary"></p>
|
|
5
|
-
<div class="bottom-link" v-if="msg.content.description && !msg.content.isKnowledgeSummary"></div>
|
|
6
|
-
<div :class="['options-list', msg.content.isKnowledgeSummary ? 'isKnowledgeSummary' : '']">
|
|
7
|
-
<div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您推荐了以下内容</div>
|
|
8
|
-
<div v-for="(option, index) in formatOptions[activeIndex]" class="options-item"
|
|
9
|
-
:class="index !== msg.content.options.length - 1 ? 'recommend-item' : 'last-item'" :key="msg.nodeId + '_' + index"
|
|
10
|
-
@click="radioClick(msg, option, index)">
|
|
11
|
-
|
|
12
|
-
<!-- <el-tooltip class="item" effect="dark" :content="option.name" placement="bottom-start" v-if="!isMobile">
|
|
13
|
-
<span > {{ option.name }}</span>
|
|
14
|
-
</el-tooltip> -->
|
|
15
|
-
<span> {{ option.name }}</span>
|
|
16
|
-
<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<div v-if="showPage" class="switch-page">
|
|
20
|
-
<span @click="changeActivePage" class="switch-page-btn">换一批</span>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
export default {
|
|
27
|
-
name: "answerRadio",
|
|
28
|
-
data() {
|
|
29
|
-
return {
|
|
30
|
-
isMobile: false,
|
|
31
|
-
formatOptions: [],
|
|
32
|
-
activeIndex: 0,
|
|
33
|
-
pageSize: 5,
|
|
34
|
-
showPage: false,
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
props: ['msg'],
|
|
38
|
-
mounted() {
|
|
39
|
-
console.log(this.msg, 'msg');
|
|
40
|
-
// 关键词推荐 前端分页
|
|
41
|
-
if (this.msg.id == "recdNodeId" && this.msg.content.options.length > this.pageSize) {
|
|
42
|
-
this.formatOptions = this.chunkArray(this.msg.content.options, this.pageSize);
|
|
43
|
-
this.activeIndex = 0;
|
|
44
|
-
this.showPage = true;
|
|
45
|
-
} else {
|
|
46
|
-
this.formatOptions = [this.msg.content.options];
|
|
47
|
-
this.activeIndex = 0;
|
|
48
|
-
}
|
|
49
|
-
this.judgeIsMobile();
|
|
50
|
-
},
|
|
51
|
-
methods: {
|
|
52
|
-
changeActivePage(){
|
|
53
|
-
if (this.activeIndex >= this.formatOptions.length - 1) {
|
|
54
|
-
this.activeIndex = 0;
|
|
55
|
-
} else {
|
|
56
|
-
this.activeIndex++;
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
chunkArray(array, size) {
|
|
60
|
-
let chunks = [];
|
|
61
|
-
for (let i = 0; i < array.length; i += size) {
|
|
62
|
-
let chunk = array.slice(i, i + size);
|
|
63
|
-
chunks.push(chunk);
|
|
64
|
-
}
|
|
65
|
-
return chunks;
|
|
66
|
-
},
|
|
67
|
-
judgeIsMobile() {
|
|
68
|
-
let flag = navigator.userAgent.match(
|
|
69
|
-
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
70
|
-
);
|
|
71
|
-
if (flag) {
|
|
72
|
-
this.isMobile = true;
|
|
73
|
-
} else {
|
|
74
|
-
this.isMobile = false;
|
|
75
|
-
}
|
|
76
|
-
console.log(this.isMobile, 'this.isMobile');
|
|
77
|
-
},
|
|
78
|
-
radioClick(msg, option, index) {
|
|
79
|
-
let value = option.answerId ? msg.id + '_' + index + '_' + option.value + '_' + option.name + '_' + option.answerId : msg.id + '_' + index + '_' + option.value + '_' + option.name
|
|
80
|
-
this.$emit('onRadioClick', value, option.name, msg.apiKey, msg.actionCategory, msg.msgId ? msg.msgId : '', option.apiKey)
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style scoped lang="less">
|
|
88
|
-
#answer-radio {
|
|
89
|
-
.switch-page {
|
|
90
|
-
margin-top: 10px;
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-direction: column;
|
|
93
|
-
align-items: center;
|
|
94
|
-
.switch-page-btn {
|
|
95
|
-
width: 80px;
|
|
96
|
-
height: 30px;
|
|
97
|
-
border-radius: 15px;
|
|
98
|
-
border: solid 1px #366AFF;
|
|
99
|
-
color: #366AFF;
|
|
100
|
-
line-height: 30px;
|
|
101
|
-
text-align: center;
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
.radio-description {
|
|
106
|
-
word-wrap: break-word;
|
|
107
|
-
word-break: break-all;
|
|
108
|
-
overflow: hidden;
|
|
109
|
-
/*padding: 8px 10px 10px 0;*/
|
|
110
|
-
padding-bottom: 10px;
|
|
111
|
-
height: auto;
|
|
112
|
-
/* border-bottom: 1px solid #EEEEEE;*/
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.bottom-link {
|
|
116
|
-
height: 1px;
|
|
117
|
-
background-color: #EEEEEE;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.options-list {
|
|
121
|
-
padding-top: 4px;
|
|
122
|
-
/* padding-top: 10px;*/
|
|
123
|
-
/*padding-right: 10px;*/
|
|
124
|
-
|
|
125
|
-
.options-item {
|
|
126
|
-
// height: 25px;
|
|
127
|
-
line-height: 25px;
|
|
128
|
-
background-color: #ffffff;
|
|
129
|
-
color: #366aff;
|
|
130
|
-
cursor: pointer;
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
justify-content: space-between;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
i {
|
|
137
|
-
padding-left: 10px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.options-item-text {
|
|
141
|
-
text-overflow: ellipsis;
|
|
142
|
-
display: -webkit-box; //使用了flex,需要加
|
|
143
|
-
overflow: hidden; //超出隐藏
|
|
144
|
-
word-break: break-all; //纯英文、数字、中文
|
|
145
|
-
text-overflow: ellipsis; //省略号
|
|
146
|
-
-webkit-box-orient: vertical; //垂直
|
|
147
|
-
-webkit-line-clamp: 1; //显示一行
|
|
148
|
-
white-space: pre-line; //
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&.isKnowledgeSummary {
|
|
153
|
-
background: #EEF1FF;
|
|
154
|
-
border-radius: 10px;
|
|
155
|
-
padding: 10px;
|
|
156
|
-
|
|
157
|
-
.options-item {
|
|
158
|
-
background: #EEF1FF;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.tips {
|
|
163
|
-
width: 131px;
|
|
164
|
-
height: 22px;
|
|
165
|
-
background: #366AFF;
|
|
166
|
-
border-radius: 5px;
|
|
167
|
-
text-align: center;
|
|
168
|
-
line-height: 22px;
|
|
169
|
-
color: #fff;
|
|
170
|
-
font-size: 12px;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.recommend-item {
|
|
174
|
-
padding: 8px 0;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.last-item {
|
|
178
|
-
padding-top: 8px;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.end {
|
|
182
|
-
border-bottom-left-radius: 25px !important;
|
|
183
|
-
border-bottom-right-radius: 25px !important;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div id="answer-radio">
|
|
3
|
+
<p class="radio-description" v-html="msg.content.description"
|
|
4
|
+
v-if="msg.content.description && !msg.content.isKnowledgeSummary"></p>
|
|
5
|
+
<div class="bottom-link" v-if="msg.content.description && !msg.content.isKnowledgeSummary"></div>
|
|
6
|
+
<div :class="['options-list', msg.content.isKnowledgeSummary ? 'isKnowledgeSummary' : '']">
|
|
7
|
+
<div v-if="msg.content.isKnowledgeSummary" class="tips">AI为您推荐了以下内容</div>
|
|
8
|
+
<div v-for="(option, index) in formatOptions[activeIndex]" class="options-item"
|
|
9
|
+
:class="index !== msg.content.options.length - 1 ? 'recommend-item' : 'last-item'" :key="msg.nodeId + '_' + index"
|
|
10
|
+
@click="radioClick(msg, option, index)">
|
|
11
|
+
|
|
12
|
+
<!-- <el-tooltip class="item" effect="dark" :content="option.name" placement="bottom-start" v-if="!isMobile">
|
|
13
|
+
<span > {{ option.name }}</span>
|
|
14
|
+
</el-tooltip> -->
|
|
15
|
+
<span> {{ option.name }}</span>
|
|
16
|
+
<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div v-if="showPage" class="switch-page">
|
|
20
|
+
<span @click="changeActivePage" class="switch-page-btn">换一批</span>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
export default {
|
|
27
|
+
name: "answerRadio",
|
|
28
|
+
data() {
|
|
29
|
+
return {
|
|
30
|
+
isMobile: false,
|
|
31
|
+
formatOptions: [],
|
|
32
|
+
activeIndex: 0,
|
|
33
|
+
pageSize: 5,
|
|
34
|
+
showPage: false,
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
props: ['msg'],
|
|
38
|
+
mounted() {
|
|
39
|
+
console.log(this.msg, 'msg');
|
|
40
|
+
// 关键词推荐 前端分页
|
|
41
|
+
if (this.msg.id == "recdNodeId" && this.msg.content.options.length > this.pageSize) {
|
|
42
|
+
this.formatOptions = this.chunkArray(this.msg.content.options, this.pageSize);
|
|
43
|
+
this.activeIndex = 0;
|
|
44
|
+
this.showPage = true;
|
|
45
|
+
} else {
|
|
46
|
+
this.formatOptions = [this.msg.content.options];
|
|
47
|
+
this.activeIndex = 0;
|
|
48
|
+
}
|
|
49
|
+
this.judgeIsMobile();
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
changeActivePage(){
|
|
53
|
+
if (this.activeIndex >= this.formatOptions.length - 1) {
|
|
54
|
+
this.activeIndex = 0;
|
|
55
|
+
} else {
|
|
56
|
+
this.activeIndex++;
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
chunkArray(array, size) {
|
|
60
|
+
let chunks = [];
|
|
61
|
+
for (let i = 0; i < array.length; i += size) {
|
|
62
|
+
let chunk = array.slice(i, i + size);
|
|
63
|
+
chunks.push(chunk);
|
|
64
|
+
}
|
|
65
|
+
return chunks;
|
|
66
|
+
},
|
|
67
|
+
judgeIsMobile() {
|
|
68
|
+
let flag = navigator.userAgent.match(
|
|
69
|
+
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
|
|
70
|
+
);
|
|
71
|
+
if (flag) {
|
|
72
|
+
this.isMobile = true;
|
|
73
|
+
} else {
|
|
74
|
+
this.isMobile = false;
|
|
75
|
+
}
|
|
76
|
+
console.log(this.isMobile, 'this.isMobile');
|
|
77
|
+
},
|
|
78
|
+
radioClick(msg, option, index) {
|
|
79
|
+
let value = option.answerId ? msg.id + '_' + index + '_' + option.value + '_' + option.name + '_' + option.answerId : msg.id + '_' + index + '_' + option.value + '_' + option.name
|
|
80
|
+
this.$emit('onRadioClick', value, option.name, msg.apiKey, msg.actionCategory, msg.msgId ? msg.msgId : '', option.apiKey)
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<style scoped lang="less">
|
|
88
|
+
#answer-radio {
|
|
89
|
+
.switch-page {
|
|
90
|
+
margin-top: 10px;
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
align-items: center;
|
|
94
|
+
.switch-page-btn {
|
|
95
|
+
width: 80px;
|
|
96
|
+
height: 30px;
|
|
97
|
+
border-radius: 15px;
|
|
98
|
+
border: solid 1px #366AFF;
|
|
99
|
+
color: #366AFF;
|
|
100
|
+
line-height: 30px;
|
|
101
|
+
text-align: center;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.radio-description {
|
|
106
|
+
word-wrap: break-word;
|
|
107
|
+
word-break: break-all;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
/*padding: 8px 10px 10px 0;*/
|
|
110
|
+
padding-bottom: 10px;
|
|
111
|
+
height: auto;
|
|
112
|
+
/* border-bottom: 1px solid #EEEEEE;*/
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.bottom-link {
|
|
116
|
+
height: 1px;
|
|
117
|
+
background-color: #EEEEEE;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.options-list {
|
|
121
|
+
padding-top: 4px;
|
|
122
|
+
/* padding-top: 10px;*/
|
|
123
|
+
/*padding-right: 10px;*/
|
|
124
|
+
|
|
125
|
+
.options-item {
|
|
126
|
+
// height: 25px;
|
|
127
|
+
line-height: 25px;
|
|
128
|
+
background-color: #ffffff;
|
|
129
|
+
color: #366aff;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: space-between;
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
i {
|
|
137
|
+
padding-left: 10px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.options-item-text {
|
|
141
|
+
text-overflow: ellipsis;
|
|
142
|
+
display: -webkit-box; //使用了flex,需要加
|
|
143
|
+
overflow: hidden; //超出隐藏
|
|
144
|
+
word-break: break-all; //纯英文、数字、中文
|
|
145
|
+
text-overflow: ellipsis; //省略号
|
|
146
|
+
-webkit-box-orient: vertical; //垂直
|
|
147
|
+
-webkit-line-clamp: 1; //显示一行
|
|
148
|
+
white-space: pre-line; //
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&.isKnowledgeSummary {
|
|
153
|
+
background: #EEF1FF;
|
|
154
|
+
border-radius: 10px;
|
|
155
|
+
padding: 10px;
|
|
156
|
+
|
|
157
|
+
.options-item {
|
|
158
|
+
background: #EEF1FF;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.tips {
|
|
163
|
+
width: 131px;
|
|
164
|
+
height: 22px;
|
|
165
|
+
background: #366AFF;
|
|
166
|
+
border-radius: 5px;
|
|
167
|
+
text-align: center;
|
|
168
|
+
line-height: 22px;
|
|
169
|
+
color: #fff;
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.recommend-item {
|
|
174
|
+
padding: 8px 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.last-item {
|
|
178
|
+
padding-top: 8px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.end {
|
|
182
|
+
border-bottom-left-radius: 25px !important;
|
|
183
|
+
border-bottom-right-radius: 25px !important;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
187
|
</style>
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="media-body-ps">
|
|
3
|
-
<view class="other" v-html="message.content.replyText"></view>
|
|
4
|
-
<view
|
|
5
|
-
v-for="(reply_option, index) in message.content.replyOptions"
|
|
6
|
-
v-bind:class="[index == message.content.replyOptions.length - 1 ? 'end' : '', 'ps']"
|
|
7
|
-
:key="index"
|
|
8
|
-
:data-name="reply_option.name"
|
|
9
|
-
:data-answer="reply_option.answer"
|
|
10
|
-
@click="onClick(reply_option)" >
|
|
11
|
-
<view :data-name="reply_option.name"
|
|
12
|
-
:data-answer="reply_option.answer">{{ reply_option.name }}
|
|
13
|
-
</view>
|
|
14
|
-
</view>
|
|
15
|
-
</view>
|
|
16
|
-
</template>
|
|
17
|
-
<script>
|
|
18
|
-
export default {
|
|
19
|
-
name:"DissatisfactionOptions",
|
|
20
|
-
props:["message"],
|
|
21
|
-
methods:{
|
|
22
|
-
onClick(option){
|
|
23
|
-
this.$emit('onOption',option);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
29
|
-
<style lang='less'>
|
|
30
|
-
.other {
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
word-wrap: break-word;
|
|
33
|
-
word-break: break-all;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
padding: 8px 20px 8px 15px;
|
|
36
|
-
height: auto;
|
|
37
|
-
}
|
|
38
|
-
.ps {
|
|
39
|
-
padding: 8px 20px 8px 15px;
|
|
40
|
-
height: auto;
|
|
41
|
-
border-top: 1px solid #F4F8FC;
|
|
42
|
-
background-color: #ffffff;
|
|
43
|
-
color: var(--color);
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
i{
|
|
50
|
-
margin-left: 20px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.end {
|
|
54
|
-
border: 1px solid #F4F8FC;
|
|
55
|
-
border-bottom-left-radius: 32px !important;
|
|
56
|
-
border-bottom-right-radius: 32px !important;
|
|
57
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<view class="media-body-ps">
|
|
3
|
+
<view class="other" v-html="message.content.replyText"></view>
|
|
4
|
+
<view
|
|
5
|
+
v-for="(reply_option, index) in message.content.replyOptions"
|
|
6
|
+
v-bind:class="[index == message.content.replyOptions.length - 1 ? 'end' : '', 'ps']"
|
|
7
|
+
:key="index"
|
|
8
|
+
:data-name="reply_option.name"
|
|
9
|
+
:data-answer="reply_option.answer"
|
|
10
|
+
@click="onClick(reply_option)" >
|
|
11
|
+
<view :data-name="reply_option.name"
|
|
12
|
+
:data-answer="reply_option.answer">{{ reply_option.name }}
|
|
13
|
+
</view>
|
|
14
|
+
</view>
|
|
15
|
+
</view>
|
|
16
|
+
</template>
|
|
17
|
+
<script>
|
|
18
|
+
export default {
|
|
19
|
+
name:"DissatisfactionOptions",
|
|
20
|
+
props:["message"],
|
|
21
|
+
methods:{
|
|
22
|
+
onClick(option){
|
|
23
|
+
this.$emit('onOption',option);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
<style lang='less'>
|
|
30
|
+
.other {
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
word-wrap: break-word;
|
|
33
|
+
word-break: break-all;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
padding: 8px 20px 8px 15px;
|
|
36
|
+
height: auto;
|
|
37
|
+
}
|
|
38
|
+
.ps {
|
|
39
|
+
padding: 8px 20px 8px 15px;
|
|
40
|
+
height: auto;
|
|
41
|
+
border-top: 1px solid #F4F8FC;
|
|
42
|
+
background-color: #ffffff;
|
|
43
|
+
color: var(--color);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
font-size: 14px;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
i{
|
|
50
|
+
margin-left: 20px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
.end {
|
|
54
|
+
border: 1px solid #F4F8FC;
|
|
55
|
+
border-bottom-left-radius: 32px !important;
|
|
56
|
+
border-bottom-right-radius: 32px !important;
|
|
57
|
+
}
|
|
58
58
|
</style>
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="media-body-loading">
|
|
3
|
-
<view class="bot_loading">
|
|
4
|
-
<span></span>
|
|
5
|
-
<span></span>
|
|
6
|
-
<span></span>
|
|
7
|
-
<span></span>
|
|
8
|
-
</view>
|
|
9
|
-
</view>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
export default {
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
name: ''
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<style lang="less">
|
|
23
|
-
.media-body-loading {
|
|
24
|
-
background-color: #f4f8fc;
|
|
25
|
-
border: 1px solid #f4f8fc;
|
|
26
|
-
word-break: break-word;
|
|
27
|
-
box-shadow: 0px 0px 5px 0px rgba(76, 97, 255, 0.38);
|
|
28
|
-
flex: 1;
|
|
29
|
-
min-height: 30px;
|
|
30
|
-
line-height: 30px;
|
|
31
|
-
border-radius: 32px;
|
|
32
|
-
border-top-left-radius: 0px;
|
|
33
|
-
padding: 8px 15px;
|
|
34
|
-
text-align: left;
|
|
35
|
-
margin-left: 5px;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<view class="media-body-loading">
|
|
3
|
+
<view class="bot_loading">
|
|
4
|
+
<span></span>
|
|
5
|
+
<span></span>
|
|
6
|
+
<span></span>
|
|
7
|
+
<span></span>
|
|
8
|
+
</view>
|
|
9
|
+
</view>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
export default {
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
name: ''
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<style lang="less">
|
|
23
|
+
.media-body-loading {
|
|
24
|
+
background-color: #f4f8fc;
|
|
25
|
+
border: 1px solid #f4f8fc;
|
|
26
|
+
word-break: break-word;
|
|
27
|
+
box-shadow: 0px 0px 5px 0px rgba(76, 97, 255, 0.38);
|
|
28
|
+
flex: 1;
|
|
29
|
+
min-height: 30px;
|
|
30
|
+
line-height: 30px;
|
|
31
|
+
border-radius: 32px;
|
|
32
|
+
border-top-left-radius: 0px;
|
|
33
|
+
padding: 8px 15px;
|
|
34
|
+
text-align: left;
|
|
35
|
+
margin-left: 5px;
|
|
36
|
+
}
|
|
37
|
+
</style>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view>
|
|
3
|
-
<view v-html="message.content.input"></view>
|
|
4
|
-
</view>
|
|
5
|
-
</template>
|
|
6
|
-
<script>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
name:"SatisfactionV2",
|
|
11
|
-
props:["message"],
|
|
12
|
-
methods:{
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<view v-html="message.content.input"></view>
|
|
4
|
+
</view>
|
|
5
|
+
</template>
|
|
6
|
+
<script>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
name:"SatisfactionV2",
|
|
11
|
+
props:["message"],
|
|
12
|
+
methods:{
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
</script>
|