askbot-dragon 0.6.21 → 0.6.25
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/public/index.html +1 -1
- package/src/App.vue +2 -1
- package/src/assets/js/script.js +37 -0
- package/src/assets/less/common.css +17 -7
- package/src/assets/less/converSationContainer/common.less +23 -4583
- package/src/assets/less/converSationContainer/converSatonContainer.less +1 -0
- package/src/assets/less/iconfont.css +17 -0
- package/src/assets/less/ticketMessage.less +84 -188
- package/src/components/ConversationContainer.vue +334 -510
- package/src/components/actionSatisfaction.vue +76 -0
- package/src/components/actionSendToBot.vue +60 -0
- package/src/components/answerDissatisfaction.vue +61 -0
- package/src/components/answerRadio.vue +64 -0
- package/src/components/askVideo.vue +46 -0
- package/src/components/associationIntention.vue +91 -0
- package/src/components/botActionSatisfactor.vue +72 -0
- package/src/components/feedBack.vue +26 -15
- package/src/components/formTemplate.vue +160 -79
- package/src/components/loadingProcess.vue +176 -0
- package/src/components/message/TextMessage.vue +47 -12
- package/src/components/message/TicketMessage.vue +16 -22
- package/src/components/message/swiper/ticketSwiper.vue +9 -35
- package/src/components/msgLoading.vue +231 -0
- package/src/components/recommend.vue +76 -0
- package/src/components/voiceComponent.vue +102 -0
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
{{text.template}}
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
|
-
<div
|
|
11
|
-
<el-button
|
|
10
|
+
<div id="submit">
|
|
11
|
+
<el-button plain size="small" @click="submitClick" :disabled="disableds" >{{submitValue}}</el-button>
|
|
12
12
|
</div>
|
|
13
13
|
<div v-if="isCompany">
|
|
14
14
|
<div v-if="single === true" style="border-top: 1px dashed #ebebeb;display: flex;justify-content: space-between" class="editMessage">
|
|
@@ -322,11 +322,11 @@ export default {
|
|
|
322
322
|
let icon=text.getElementsByClassName('arsenalkebianji')
|
|
323
323
|
for (let i=0;i<icon.length;i++)
|
|
324
324
|
{
|
|
325
|
-
icon[i].style.color='#
|
|
325
|
+
icon[i].style.color='#366aff'
|
|
326
326
|
}
|
|
327
327
|
for (let i=0;i<cpntain.length;i++)
|
|
328
328
|
{
|
|
329
|
-
if(this.type
|
|
329
|
+
if(this.type)
|
|
330
330
|
{
|
|
331
331
|
cpntain[i].style.paddingRight=0.2+'rem'
|
|
332
332
|
cpntain[i].style.paddingLeft=0.2+'rem'
|
|
@@ -676,6 +676,7 @@ export default {
|
|
|
676
676
|
}
|
|
677
677
|
},
|
|
678
678
|
inputBlur(){
|
|
679
|
+
console.debug('inputBlur')
|
|
679
680
|
this.single=false
|
|
680
681
|
},
|
|
681
682
|
quedingClick(){
|
|
@@ -853,31 +854,65 @@ export default {
|
|
|
853
854
|
|
|
854
855
|
<style lang="less">
|
|
855
856
|
@import "../../assets/less/common.css";
|
|
857
|
+
#textMessage{
|
|
858
|
+
#submit{
|
|
859
|
+
margin-top: 10px;
|
|
860
|
+
display: flex;
|
|
861
|
+
align-items: center;
|
|
862
|
+
justify-content: center;
|
|
863
|
+
.el-button{
|
|
864
|
+
border: 1px solid #BBCDFF;
|
|
865
|
+
border-radius: 14px;
|
|
866
|
+
background-color: white;
|
|
867
|
+
color: #366aff;
|
|
868
|
+
font-weight: 400;
|
|
869
|
+
}
|
|
870
|
+
.el-button--small{
|
|
871
|
+
padding: 9px 30px;
|
|
872
|
+
font-size: 1em;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
#html{
|
|
876
|
+
p{
|
|
877
|
+
color:#A9B3C6;
|
|
878
|
+
}
|
|
879
|
+
.ask-component-placeholder-icon{
|
|
880
|
+
padding-left: 12px;
|
|
881
|
+
color: #366aff;
|
|
882
|
+
font-size: 18px;
|
|
883
|
+
}
|
|
884
|
+
.ask-component-placeholder-span{
|
|
885
|
+
color: #616161!important;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
856
889
|
.remPhoneClass{
|
|
857
890
|
margin: 0 auto;
|
|
858
|
-
width: 80vw
|
|
891
|
+
/*width: 80vw;*/
|
|
859
892
|
.inputClass{
|
|
893
|
+
margin-top: 8px;
|
|
860
894
|
width: 100%;
|
|
895
|
+
.el-input__inner{
|
|
896
|
+
border-radius: 9px;
|
|
897
|
+
}
|
|
861
898
|
}
|
|
862
899
|
.htmlClass{
|
|
863
900
|
padding: 4px 0;
|
|
864
901
|
}
|
|
865
|
-
#submit{
|
|
866
|
-
padding: 4px 0;
|
|
867
|
-
}
|
|
868
902
|
|
|
869
903
|
}
|
|
870
904
|
.remCompanyClass{
|
|
871
905
|
|
|
872
906
|
margin: 0 auto;
|
|
873
|
-
width: 300px
|
|
907
|
+
/*width: 300px;*/
|
|
874
908
|
.inputClass{
|
|
875
909
|
padding: 10px 0 10px 0;
|
|
876
910
|
width: 100%;
|
|
911
|
+
.el-input__inner{
|
|
912
|
+
border-radius: 9px;
|
|
913
|
+
}
|
|
877
914
|
}
|
|
878
|
-
|
|
879
|
-
padding: 10px 0 4px 10px;
|
|
880
|
-
}
|
|
915
|
+
|
|
881
916
|
.editMessage{
|
|
882
917
|
display: flex;
|
|
883
918
|
justify-content: space-between;
|
|
@@ -12,36 +12,30 @@
|
|
|
12
12
|
<div class="ticketMessageContain">
|
|
13
13
|
<div :class="{isPhoneClass:isPhone===true,isCompayClass:isCompany===true}">
|
|
14
14
|
<div :class="{isIosClass:isIos===true,isAndroidClass:isAndroid===true}">
|
|
15
|
-
<div class="htmlClass"
|
|
16
|
-
<div v-for="(items,ind) in item.content.htmlList"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<div class="htmlClass">
|
|
16
|
+
<div v-for="(items,ind) in item.content.htmlList"
|
|
17
|
+
:key="ind"
|
|
18
|
+
class="html-item"
|
|
19
|
+
>
|
|
20
|
+
<div class="img" v-if="items.type==='IMAGE'">
|
|
21
|
+
<img :src="items.src">
|
|
21
22
|
</div>
|
|
22
|
-
<div v-if="items.type==='SINGLE'">
|
|
23
|
-
<div class="
|
|
24
|
-
<div v-html="itemss" class="singleItem"></div>
|
|
25
|
-
</div>
|
|
23
|
+
<div class="singleClass" v-else-if="items.type==='SINGLE'">
|
|
24
|
+
<div v-html="itemss" class="singleItem" v-for="(itemss,inde) in items.list" :key="inde"></div>
|
|
26
25
|
</div>
|
|
27
|
-
<div v-if="items.type==='DOUBLE'">
|
|
28
|
-
<div
|
|
29
|
-
<div class="doubleItem" v-for="(itemss,__index) in items.list" :key="__index" v-html="itemss">
|
|
30
|
-
</div>
|
|
31
|
-
|
|
26
|
+
<div class="doubleClass" v-else-if="items.type==='DOUBLE'">
|
|
27
|
+
<div class="doubleItem" v-for="(itemss,__index) in items.list" :key="__index" v-html="itemss">
|
|
32
28
|
</div>
|
|
33
29
|
</div>
|
|
34
|
-
<div v-if="items.type==='TRIPLE'">
|
|
35
|
-
<div class="
|
|
36
|
-
<div v-html="itemss" class="tripleItem" v-for="(itemss,___index) in items.list" :key="___index"></div>
|
|
37
|
-
</div>
|
|
30
|
+
<div class="tripleClass" v-else-if="items.type==='TRIPLE'">
|
|
31
|
+
<div v-html="itemss" class="tripleItem" v-for="(itemss,___index) in items.list" :key="___index"></div>
|
|
38
32
|
</div>
|
|
39
33
|
</div>
|
|
40
34
|
</div>
|
|
41
|
-
<div
|
|
42
|
-
<div class="
|
|
35
|
+
<div class="button-list">
|
|
36
|
+
<div v-for="(items,____index) in item.content.buttonList" :key="____index" class="button-item">
|
|
43
37
|
<div @click="btnClick(items)" class="buttonClassItem">
|
|
44
|
-
{{items.name}}
|
|
38
|
+
<span class="btn-name">{{items.name}}</span>
|
|
45
39
|
</div>
|
|
46
40
|
</div>
|
|
47
41
|
</div>
|
|
@@ -401,39 +401,17 @@ export default {
|
|
|
401
401
|
justify-content: center;
|
|
402
402
|
width: 100%;
|
|
403
403
|
}
|
|
404
|
-
/*.isPhoneClass{
|
|
405
|
-
.bullet_item{
|
|
406
|
-
width: 0.1rem;
|
|
407
|
-
height: 0.1rem;
|
|
408
|
-
margin: 0 0.1rem;
|
|
409
|
-
}
|
|
410
|
-
}*/
|
|
411
|
-
/*.isAndroidClass,.isPcClass{
|
|
412
|
-
!*.bullet_item{
|
|
413
|
-
width: 0.05rem;
|
|
414
|
-
height: 0.05rem;
|
|
415
|
-
margin: 0 0.03rem;
|
|
416
|
-
}*!
|
|
417
|
-
.bullet_item {
|
|
418
|
-
color: white;
|
|
419
|
-
background-color: white;
|
|
420
|
-
border: 1.5px solid #AAAAAA !important;
|
|
421
|
-
border-radius: 0.2rem;
|
|
422
|
-
width: 3px;
|
|
423
|
-
height: 3px;
|
|
424
|
-
margin: 0 2px;
|
|
425
|
-
}
|
|
426
|
-
}*/
|
|
427
404
|
//机器人中样式
|
|
428
405
|
.isPcClass{
|
|
429
406
|
.bullet_item {
|
|
430
407
|
color: white;
|
|
431
|
-
|
|
432
|
-
border: 1.5px solid #
|
|
408
|
+
/* background-color: white;*/
|
|
409
|
+
border: 1.5px solid #EAEDF3 !important;
|
|
433
410
|
border-radius: 0.2rem;
|
|
434
411
|
width: 4px;
|
|
435
412
|
height: 4px;
|
|
436
413
|
margin: 0 3px;
|
|
414
|
+
background-color: #EAEDF3;
|
|
437
415
|
}
|
|
438
416
|
}
|
|
439
417
|
/*.typeClassRem{
|
|
@@ -451,8 +429,8 @@ export default {
|
|
|
451
429
|
.isAndroidClass{
|
|
452
430
|
.bullet_item {
|
|
453
431
|
color: white;
|
|
454
|
-
background-color:
|
|
455
|
-
border: 1.5px solid #
|
|
432
|
+
background-color: #EAEDF3;
|
|
433
|
+
border: 1.5px solid #EAEDF3 !important;
|
|
456
434
|
border-radius: 0.2rem;
|
|
457
435
|
width: 4px;
|
|
458
436
|
height: 4px;
|
|
@@ -462,21 +440,17 @@ export default {
|
|
|
462
440
|
.isIosClass{
|
|
463
441
|
.bullet_item {
|
|
464
442
|
color: white;
|
|
465
|
-
background-color:
|
|
466
|
-
border: 1.5px solid #
|
|
443
|
+
background-color: #EAEDF3;
|
|
444
|
+
border: 1.5px solid #EAEDF3 !important;
|
|
467
445
|
border-radius: 0.2rem;
|
|
468
446
|
width: 4px;
|
|
469
447
|
height: 4px;
|
|
470
448
|
margin: 0 3px;
|
|
471
449
|
}
|
|
472
450
|
}
|
|
473
|
-
/*.bullet_item {
|
|
474
|
-
color: white;
|
|
475
|
-
border: 1px solid #AAAAAA !important;
|
|
476
|
-
border-radius: 0.2rem;
|
|
477
|
-
}*/
|
|
478
451
|
.bullet_item.active {
|
|
479
|
-
background-color: #
|
|
452
|
+
background-color: #366AFF;
|
|
453
|
+
border: 1.5px solid #366AFF !important;
|
|
480
454
|
}
|
|
481
455
|
|
|
482
456
|
.preBtn{
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="media-body-loading">
|
|
3
|
+
<svg viewBox="0 0 120 120" width="30px" height="30px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
4
|
+
<g id="circle" class="g-circles g-circles--v1">
|
|
5
|
+
<circle id="12" transform="translate(35, 16.698730) rotate(-30) translate(-35, -16.698730) " cx="35" cy="16.6987298" r="10"></circle>
|
|
6
|
+
<circle id="11" transform="translate(16.698730, 35) rotate(-60) translate(-16.698730, -35) " cx="16.6987298" cy="35" r="10"></circle>
|
|
7
|
+
<circle id="10" transform="translate(10, 60) rotate(-90) translate(-10, -60) " cx="10" cy="60" r="10"></circle>
|
|
8
|
+
<circle id="9" transform="translate(16.698730, 85) rotate(-120) translate(-16.698730, -85) " cx="16.6987298" cy="85" r="10"></circle>
|
|
9
|
+
<circle id="8" transform="translate(35, 103.301270) rotate(-150) translate(-35, -103.301270) " cx="35" cy="103.30127" r="10"></circle>
|
|
10
|
+
<circle id="7" cx="60" cy="110" r="10"></circle>
|
|
11
|
+
<circle id="6" transform="translate(85, 103.301270) rotate(-30) translate(-85, -103.301270) " cx="85" cy="103.30127" r="10"></circle>
|
|
12
|
+
<circle id="5" transform="translate(103.301270, 85) rotate(-60) translate(-103.301270, -85) " cx="103.30127" cy="85" r="10"></circle>
|
|
13
|
+
<circle id="4" transform="translate(110, 60) rotate(-90) translate(-110, -60) " cx="110" cy="60" r="10"></circle>
|
|
14
|
+
<circle id="3" transform="translate(103.301270, 35) rotate(-120) translate(-103.301270, -35) " cx="103.30127" cy="35" r="10"></circle>
|
|
15
|
+
<circle id="2" transform="translate(85, 16.698730) rotate(-150) translate(-85, -16.698730) " cx="85" cy="16.6987298" r="10"></circle>
|
|
16
|
+
<circle id="1" cx="60" cy="10" r="10"></circle>
|
|
17
|
+
</g>
|
|
18
|
+
|
|
19
|
+
<use xlink:href="#circle" class="use"/>
|
|
20
|
+
</svg>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
export default {
|
|
26
|
+
name: "msgLoading",
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
name: "",
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
methods:{
|
|
33
|
+
},
|
|
34
|
+
mounted() {
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<style lang="less">
|
|
40
|
+
@import "../assets/less/converSationContainer/common";
|
|
41
|
+
|
|
42
|
+
.label {
|
|
43
|
+
font-family: 'Raleway', serif;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
text-transform: uppercase;
|
|
46
|
+
margin-top: 15px;
|
|
47
|
+
}
|
|
48
|
+
.circle__progress--fill {
|
|
49
|
+
--initialStroke: 0;
|
|
50
|
+
--transitionDuration: 0;
|
|
51
|
+
stroke-opacity: 1;
|
|
52
|
+
stroke-dasharray: var(--initialStroke);
|
|
53
|
+
stroke-dashoffset: var(--initialStroke);
|
|
54
|
+
transition: stroke-dashoffset var(--transitionDuration) ease;
|
|
55
|
+
}
|
|
56
|
+
.circle__svg {
|
|
57
|
+
transform: rotate(-90deg);
|
|
58
|
+
}
|
|
59
|
+
.media-body-loading {
|
|
60
|
+
background-color: #DEE3F0;
|
|
61
|
+
/* background-color: #f4f8fc;*/
|
|
62
|
+
/* border: 1px solid #f4f8fc;*/
|
|
63
|
+
word-break: break-word;
|
|
64
|
+
/* box-shadow: 0px 0px 5px 0px rgba(76, 97, 255, 0.38);*/
|
|
65
|
+
flex: 1;
|
|
66
|
+
text-align: left;
|
|
67
|
+
.bot_loading {
|
|
68
|
+
height: 4px;
|
|
69
|
+
line-height: 1px;
|
|
70
|
+
margin: 7px auto;
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
.bot_loading span {
|
|
74
|
+
// margin-top: 7px;
|
|
75
|
+
display: inline-block;
|
|
76
|
+
width: 4px;
|
|
77
|
+
border-radius: 3px;
|
|
78
|
+
height: 100%;
|
|
79
|
+
margin-right: 3px;
|
|
80
|
+
margin-bottom: 2px;
|
|
81
|
+
background: #333333;
|
|
82
|
+
-webkit-animation:bot_load 1.04s ease infinite;
|
|
83
|
+
}
|
|
84
|
+
// .bot_loading span:last-child {
|
|
85
|
+
// margin-right: 0px;
|
|
86
|
+
// }
|
|
87
|
+
@-webkit-keyframes bot_load {
|
|
88
|
+
0% {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
-webkit-transform: scale(1);
|
|
91
|
+
}
|
|
92
|
+
100% {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
-webkit-transform: scale(0);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.bot_loading span:nth-child(1) {
|
|
99
|
+
-webkit-animation-delay: 0.13s;
|
|
100
|
+
}
|
|
101
|
+
.bot_loading span:nth-child(2) {
|
|
102
|
+
-webkit-animation-delay: 0.39s;
|
|
103
|
+
}
|
|
104
|
+
.bot_loading span:nth-child(3) {
|
|
105
|
+
-webkit-animation-delay: 0.52s;
|
|
106
|
+
}
|
|
107
|
+
.bot_loading span:nth-child(4) {
|
|
108
|
+
-webkit-animation-delay: 0.65s;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
@keyframes dash {
|
|
112
|
+
0% {
|
|
113
|
+
stroke-dasharray: 1, 200;
|
|
114
|
+
stroke-dashoffset: 0;
|
|
115
|
+
stroke-opacity: 0;
|
|
116
|
+
}
|
|
117
|
+
50% {
|
|
118
|
+
stroke-dasharray: 130, 200;
|
|
119
|
+
stroke-dashoffset: -50;
|
|
120
|
+
stroke-opacity: 0.5;
|
|
121
|
+
}
|
|
122
|
+
100% {
|
|
123
|
+
stroke-dasharray: 130, 200;
|
|
124
|
+
stroke-dashoffset: -188;
|
|
125
|
+
stroke-opacity: 1;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
.loading {
|
|
129
|
+
stroke: #FFFFFF;
|
|
130
|
+
stroke-width: 4;
|
|
131
|
+
fill: none;
|
|
132
|
+
animation: dash 2.5s linear infinite;
|
|
133
|
+
border-radius: 20px;
|
|
134
|
+
/* stroke-opacity: 0.6;*/
|
|
135
|
+
}
|
|
136
|
+
.left{fill:url(#left);}
|
|
137
|
+
.right{fill:url(#right);}
|
|
138
|
+
.top{fill:#9DBFE4;}
|
|
139
|
+
@keyframes load{
|
|
140
|
+
0%{
|
|
141
|
+
transform:rotate(0)
|
|
142
|
+
}
|
|
143
|
+
50%{
|
|
144
|
+
transform:rotate(180deg)
|
|
145
|
+
}
|
|
146
|
+
100%{
|
|
147
|
+
transform:rotate(360deg)
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
#load{animation:load 2s linear infinite; transform-origin:center center; }
|
|
151
|
+
.g-circles {
|
|
152
|
+
-webkit-transform: scale(0.9) translate(7px, 7px);
|
|
153
|
+
-ms-transform: scale(0.9) translate(7px, 7px);
|
|
154
|
+
transform: scale(0.9) translate(7px, 7px);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
circle {
|
|
158
|
+
fill: #FFFFFF;
|
|
159
|
+
fill-opacity: 0;
|
|
160
|
+
-webkit-animation: opacity 1.2s linear infinite;
|
|
161
|
+
animation: opacity 1.2s linear infinite;
|
|
162
|
+
}
|
|
163
|
+
circle:nth-child(12n + 1) {
|
|
164
|
+
-webkit-animation-delay: -0.1s;
|
|
165
|
+
animation-delay: -0.1s;
|
|
166
|
+
}
|
|
167
|
+
circle:nth-child(12n + 2) {
|
|
168
|
+
-webkit-animation-delay: -0.2s;
|
|
169
|
+
animation-delay: -0.2s;
|
|
170
|
+
}
|
|
171
|
+
circle:nth-child(12n + 3) {
|
|
172
|
+
-webkit-animation-delay: -0.3s;
|
|
173
|
+
animation-delay: -0.3s;
|
|
174
|
+
}
|
|
175
|
+
circle:nth-child(12n + 4) {
|
|
176
|
+
-webkit-animation-delay: -0.4s;
|
|
177
|
+
animation-delay: -0.4s;
|
|
178
|
+
}
|
|
179
|
+
circle:nth-child(12n + 5) {
|
|
180
|
+
-webkit-animation-delay: -0.5s;
|
|
181
|
+
animation-delay: -0.5s;
|
|
182
|
+
}
|
|
183
|
+
circle:nth-child(12n + 6) {
|
|
184
|
+
-webkit-animation-delay: -0.6s;
|
|
185
|
+
animation-delay: -0.6s;
|
|
186
|
+
}
|
|
187
|
+
circle:nth-child(12n + 7) {
|
|
188
|
+
-webkit-animation-delay: -0.7s;
|
|
189
|
+
animation-delay: -0.7s;
|
|
190
|
+
}
|
|
191
|
+
circle:nth-child(12n + 8) {
|
|
192
|
+
-webkit-animation-delay: -0.8s;
|
|
193
|
+
animation-delay: -0.8s;
|
|
194
|
+
}
|
|
195
|
+
circle:nth-child(12n + 9) {
|
|
196
|
+
-webkit-animation-delay: -0.9s;
|
|
197
|
+
animation-delay: -0.9s;
|
|
198
|
+
}
|
|
199
|
+
circle:nth-child(12n + 10) {
|
|
200
|
+
-webkit-animation-delay: -1s;
|
|
201
|
+
animation-delay: -1s;
|
|
202
|
+
}
|
|
203
|
+
circle:nth-child(12n + 11) {
|
|
204
|
+
-webkit-animation-delay: -1.1s;
|
|
205
|
+
animation-delay: -1.1s;
|
|
206
|
+
}
|
|
207
|
+
circle:nth-child(12n + 12) {
|
|
208
|
+
-webkit-animation-delay: -1.2s;
|
|
209
|
+
animation-delay: -1.2s;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@-webkit-keyframes opacity {
|
|
213
|
+
3% {
|
|
214
|
+
fill-opacity: 1;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
75% {
|
|
218
|
+
fill-opacity: 0;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@keyframes opacity {
|
|
223
|
+
3% {
|
|
224
|
+
fill-opacity: 1;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
75% {
|
|
228
|
+
fill-opacity: 0;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
</style>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="text-recommed-intent">
|
|
3
|
+
<p class="other" v-if="msg.recommend&&msg.recommend.description" v-html="msg.recommend.description"></p>
|
|
4
|
+
<div v-if="msg.recommend.list" class="options-list">
|
|
5
|
+
<p
|
|
6
|
+
v-for="(option, index) in msg.recommend.list"
|
|
7
|
+
v-bind:class="[
|
|
8
|
+
index == msg.recommend.list.length - 1 ? 'end' : '',
|
|
9
|
+
'options-item',
|
|
10
|
+
]"
|
|
11
|
+
:key="msg.nodeId + '_' + index"
|
|
12
|
+
@click="
|
|
13
|
+
$emit(
|
|
14
|
+
'onRadioClickReco',
|
|
15
|
+
'recdNodeId' +
|
|
16
|
+
'_' +
|
|
17
|
+
index +
|
|
18
|
+
'_' +
|
|
19
|
+
option.id +
|
|
20
|
+
'_' +
|
|
21
|
+
option.text,
|
|
22
|
+
option.text,
|
|
23
|
+
msg.apiKey
|
|
24
|
+
)
|
|
25
|
+
"
|
|
26
|
+
>
|
|
27
|
+
{{ option.text
|
|
28
|
+
}}<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
|
|
37
|
+
export default {
|
|
38
|
+
name: "recommend",
|
|
39
|
+
props: ["msg"]
|
|
40
|
+
}
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style scoped lang="less">
|
|
44
|
+
.text-recommed-intent{
|
|
45
|
+
/* max-width: 300px;*/
|
|
46
|
+
.other{
|
|
47
|
+
word-wrap: break-word;
|
|
48
|
+
word-break: break-all;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
padding: 14px 0;
|
|
51
|
+
height: auto;
|
|
52
|
+
border-bottom: 1px solid #EEEEEE;
|
|
53
|
+
color: #A9B3C6;
|
|
54
|
+
font-size: 13px;
|
|
55
|
+
}
|
|
56
|
+
.options-list{
|
|
57
|
+
padding-top: 8px;
|
|
58
|
+
/*padding-right: 10px;*/
|
|
59
|
+
.options-item{
|
|
60
|
+
padding: 8px 0;
|
|
61
|
+
height: 25px;
|
|
62
|
+
line-height: 25px;
|
|
63
|
+
background-color: #ffffff;
|
|
64
|
+
color: #366aff;
|
|
65
|
+
cursor:pointer;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: space-between;
|
|
69
|
+
}
|
|
70
|
+
.end{
|
|
71
|
+
border-bottom-left-radius: 25px !important;
|
|
72
|
+
border-bottom-right-radius: 25px !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</style>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="voice-component">
|
|
3
|
+
<div id="voice-component-container">
|
|
4
|
+
<div id="voice-component-c">
|
|
5
|
+
<div class="voice-btn">
|
|
6
|
+
<i class="iconfont arsenalchess-pawn-solid"></i>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="close-voice" @click="closeVoice">
|
|
10
|
+
<div class="voice-style">
|
|
11
|
+
<i class="arsenal_icon arsenalcuo1"></i>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="voice-tip">
|
|
15
|
+
<slot name="voiceTip"></slot>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
export default {
|
|
24
|
+
name: "voice_component",
|
|
25
|
+
data(){
|
|
26
|
+
return{
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
methods:{
|
|
31
|
+
closeVoice(){
|
|
32
|
+
this.$emit('closeVoice')
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style scoped lang="less">
|
|
39
|
+
#voice-component{
|
|
40
|
+
position: fixed;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
width: 100%;
|
|
43
|
+
z-index: 9999;
|
|
44
|
+
#voice-component-container{
|
|
45
|
+
position: relative;
|
|
46
|
+
#voice-component-c{
|
|
47
|
+
height: 120px;
|
|
48
|
+
width: 130%;
|
|
49
|
+
position: relative;
|
|
50
|
+
left: -15%;
|
|
51
|
+
background: linear-gradient(180deg, #E7E7E7, #FFFFFF);
|
|
52
|
+
border: 2px solid white;
|
|
53
|
+
border-radius: 100% 100% 0 0;
|
|
54
|
+
border-bottom: none;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
.voice-btn{
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
i{
|
|
63
|
+
color: #366aff;
|
|
64
|
+
font-size: 30px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.voice-tip{
|
|
69
|
+
width: 100%;
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: -30px;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
color: #999999;
|
|
76
|
+
font-size: 13px;
|
|
77
|
+
}
|
|
78
|
+
.close-voice{
|
|
79
|
+
width: 100%;
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: -100px;
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
.voice-style{
|
|
86
|
+
width: 60px;
|
|
87
|
+
height: 60px;
|
|
88
|
+
background: #EEF1F7;
|
|
89
|
+
border-radius: 50%;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
i{
|
|
94
|
+
font-size: 24px;
|
|
95
|
+
color: #999999;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
</style>
|