askbot-dragon 0.6.19 → 0.6.23

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 (45) hide show
  1. package/README.md +27 -27
  2. package/babel.config.js +5 -5
  3. package/dragon.iml +7 -7
  4. package/package.json +54 -54
  5. package/public/index.html +27 -26
  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/less/common.css +6760 -6760
  11. package/src/assets/less/converSationContainer/common.less +4751 -4751
  12. package/src/assets/less/converSationContainer/converSatonContainer.less +492 -492
  13. package/src/assets/less/ticketMessage.less +319 -319
  14. package/src/components/ActionAlertIframe.vue +117 -117
  15. package/src/components/AskIFrame.vue +15 -15
  16. package/src/components/ConversationContainer.vue +1388 -1388
  17. package/src/components/FileType.vue +88 -88
  18. package/src/components/Message.vue +27 -27
  19. package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
  20. package/src/components/ask-components/Msgloading.vue +37 -37
  21. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  22. package/src/components/chatContent.vue +512 -512
  23. package/src/components/feedBack.vue +133 -133
  24. package/src/components/file/AliyunOssComponents.vue +109 -109
  25. package/src/components/formTemplate.vue +1901 -1889
  26. package/src/components/message/ActionAlertIframe.vue +116 -116
  27. package/src/components/message/ShopMessage.vue +168 -168
  28. package/src/components/message/TextMessage.vue +895 -895
  29. package/src/components/message/TicketMessage.vue +173 -173
  30. package/src/components/message/swiper/index.js +4 -4
  31. package/src/components/message/swiper/ticketSwiper.vue +530 -530
  32. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  33. package/src/components/selector/hOption.vue +20 -20
  34. package/src/components/selector/hSelector.vue +199 -199
  35. package/src/components/selector/hWrapper.vue +216 -216
  36. package/src/components/source/BotMessage.vue +24 -24
  37. package/src/components/source/CustomMessage.vue +24 -24
  38. package/src/components/test.vue +260 -260
  39. package/src/components/utils/AliyunIssUtil.js +72 -72
  40. package/src/components/utils/ckeditor.js +124 -124
  41. package/src/components/utils/format_date.js +18 -18
  42. package/src/components/utils/index.js +6 -6
  43. package/src/components/utils/math_utils.js +15 -15
  44. package/src/main.js +44 -44
  45. package/vue.config.js +34 -28
@@ -1,174 +1,174 @@
1
- <template>
2
- <div class="media-body">
3
- <div class="ticketMessage">
4
- <ticket-swiper ref="swiper" :content="content" :type="type" @touchEnd="touchEnd">
5
- <template>
6
- <ticket-swiper-item
7
- v-for="(item,_index) in content.cards"
8
- :key="_index"
9
- :content="content"
10
- >
11
- <template>
12
- <div class="ticketMessageContain">
13
- <div :class="{isPhoneClass:isPhone===true,isCompayClass:isCompany===true}">
14
- <div :class="{isIosClass:isIos===true,isAndroidClass:isAndroid===true}">
15
- <div class="htmlClass" >
16
- <div v-for="(items,ind) in item.content.htmlList" :key="ind" >
17
- <div v-if="items.type==='IMAGE'">
18
- <div class="img">
19
- <img :src="items.src">
20
- </div>
21
- </div>
22
- <div v-if="items.type==='SINGLE'">
23
- <div class="singleClass" v-for="(itemss,inde) in items.list" :key="inde">
24
- <div v-html="itemss" class="singleItem"></div>
25
- </div>
26
- </div>
27
- <div v-if="items.type==='DOUBLE'">
28
- <div class="doubleClass">
29
- <div class="doubleItem" v-for="(itemss,__index) in items.list" :key="__index" v-html="itemss">
30
- </div>
31
-
32
- </div>
33
- </div>
34
- <div v-if="items.type==='TRIPLE'">
35
- <div class="tripleClass">
36
- <div v-html="itemss" class="tripleItem" v-for="(itemss,___index) in items.list" :key="___index"></div>
37
- </div>
38
- </div>
39
- </div>
40
- </div>
41
- <div v-for="(items,____index) in item.content.buttonList" :key="____index" >
42
- <div class="buttonClass">
43
- <div @click="btnClick(items)" class="buttonClassItem">
44
- {{items.name}}
45
- </div>
46
- </div>
47
- </div>
48
- </div>
49
- </div>
50
- </div>
51
- </template>
52
- </ticket-swiper-item>
53
- </template>
54
- </ticket-swiper>
55
- </div>
56
- </div>
57
- </template>
58
- <script>
59
- import ticketSwiper from "./swiper/ticketSwiper";
60
- import ticketSwiperItem from "./swiper/ticketSwiperItem";
61
- export default {
62
- name: "TicketMessage",
63
- props:{
64
- content: {
65
- type: Object,
66
- default() {
67
- return {}
68
- }
69
- },
70
- type:{
71
- type:String,
72
- default:''
73
- }
74
- },
75
- components:{
76
- ticketSwiperItem,
77
- ticketSwiper
78
- },
79
- data(){
80
- return{
81
- contents:{
82
- multiple:true,
83
- cards:[
84
- {content:{
85
- htmlList:[{type:'IMAGE',src:'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-office-website/images/09-4.png'},{type:'SINGLE',list:['<p>aaaaaaaaaa</p>']},{type:'DOUBLE',list:['<p>北京首都国际机场</p>','<div>bbbbb</div>']},{type:'TRIPLE',list:['<p>北京首都国际机场啦啦啦啦</p>','<div>CA5689</div>','<p>上海虹桥国际机场</p>']},{type:'TRIPLE',list:['<p>7:00</p>','<div>SSS</div>','<p>12:00</p>']}],
86
- buttonList:[{name:'我是标签1',scope:'',test:''},{name:'我是标签2'}]
87
- }},
88
- {content:{
89
- htmlList:[{type:'SINGLE',list:['<p>aaaaa</p>','<a>我是链接</a>']},{type:'DOUBLE',list:['<p>aaaaa</p>','<div>bbbbb</div>']},{type:'TRIPLE',list:['<p>7:00</p>','<div></div>','<p>ccccc</p>']},{type:'TRIPLE',list:['<p>7:00</p>','<div>bbbbb</div>','<p>12:00</p>']}],
90
- buttonList:[{name:'我是标签1',scope:'',test:''}]
91
- }},
92
- {content:{
93
- htmlList:[{type:'SINGLE',list:['<p>邓伦李沁的背景图片</p>']},{type:'SINGLE',list:['<p>男生藏快递向求婚被他人错拆</p>']},{type:'SINGLE',list:['<p>aaaaa</p>']},{type:'SINGLE',list:['<p>aaaaa</p>']}],
94
- buttonList:[{name:'我是标签1'}]
95
- }}
96
-
97
- ]
98
- },
99
- device:'PC',
100
- slideWidth:'',
101
- swiperStyle: {},
102
- currIndex: 1,
103
- distance:0,
104
- isAndroid:false,
105
- isIos:false,
106
- isPhone:false,
107
- isCompany:false,
108
- swiper:false,
109
- text:[],
110
- textarea:[],
111
- }
112
- },
113
- created() {
114
- this.isIosOrIsAndroid()
115
- this.isMobile()
116
- },
117
- mounted() {
118
-
119
- },
120
- methods:{
121
- SwiperImgLoad() {
122
- if (!this.loadCheck) {
123
- this.$emit("SwiperImgLoadEvent");
124
- this.loadCheck = true;
125
- }
126
- },
127
- slideLoadOn() {
128
- this.$refs.swiper.slideOn();
129
- },
130
- btnClick(items){
131
- items.apiKey=this.content.apiKey
132
- console.log(items)
133
- this.$emit('btnClick',items,this.content.apiKey)
134
- },
135
-
136
- isIosOrIsAndroid(){
137
- var u = navigator.userAgent;
138
- var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
139
- var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
140
- if(isAndroid){
141
- this.isAndroid=true
142
- }
143
- if(isiOS){
144
- this.isIos=true
145
- }
146
- },
147
- isMobile() {
148
- let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
149
- if (flag) {
150
- this.isPhone=true
151
- }
152
- else
153
- {
154
- this.isCompany=true
155
- }
156
- },
157
- touchMove(){
158
-
159
- },
160
- touchEnd(index){
161
- console.log(index)
162
- this.$emit('touchEnd',index)
163
- }
164
-
165
- },
166
- }
167
- </script>
168
-
169
- <style lang="less">
170
- @import "../../assets/less/ticketMessage";
171
- a{
172
- text-decoration: none;
173
- }
1
+ <template>
2
+ <div class="media-body">
3
+ <div class="ticketMessage">
4
+ <ticket-swiper ref="swiper" :content="content" :type="type" @touchEnd="touchEnd">
5
+ <template>
6
+ <ticket-swiper-item
7
+ v-for="(item,_index) in content.cards"
8
+ :key="_index"
9
+ :content="content"
10
+ >
11
+ <template>
12
+ <div class="ticketMessageContain">
13
+ <div :class="{isPhoneClass:isPhone===true,isCompayClass:isCompany===true}">
14
+ <div :class="{isIosClass:isIos===true,isAndroidClass:isAndroid===true}">
15
+ <div class="htmlClass" >
16
+ <div v-for="(items,ind) in item.content.htmlList" :key="ind" >
17
+ <div v-if="items.type==='IMAGE'">
18
+ <div class="img">
19
+ <img :src="items.src">
20
+ </div>
21
+ </div>
22
+ <div v-if="items.type==='SINGLE'">
23
+ <div class="singleClass" v-for="(itemss,inde) in items.list" :key="inde">
24
+ <div v-html="itemss" class="singleItem"></div>
25
+ </div>
26
+ </div>
27
+ <div v-if="items.type==='DOUBLE'">
28
+ <div class="doubleClass">
29
+ <div class="doubleItem" v-for="(itemss,__index) in items.list" :key="__index" v-html="itemss">
30
+ </div>
31
+
32
+ </div>
33
+ </div>
34
+ <div v-if="items.type==='TRIPLE'">
35
+ <div class="tripleClass">
36
+ <div v-html="itemss" class="tripleItem" v-for="(itemss,___index) in items.list" :key="___index"></div>
37
+ </div>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ <div v-for="(items,____index) in item.content.buttonList" :key="____index" >
42
+ <div class="buttonClass">
43
+ <div @click="btnClick(items)" class="buttonClassItem">
44
+ {{items.name}}
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </template>
52
+ </ticket-swiper-item>
53
+ </template>
54
+ </ticket-swiper>
55
+ </div>
56
+ </div>
57
+ </template>
58
+ <script>
59
+ import ticketSwiper from "./swiper/ticketSwiper";
60
+ import ticketSwiperItem from "./swiper/ticketSwiperItem";
61
+ export default {
62
+ name: "TicketMessage",
63
+ props:{
64
+ content: {
65
+ type: Object,
66
+ default() {
67
+ return {}
68
+ }
69
+ },
70
+ type:{
71
+ type:String,
72
+ default:''
73
+ }
74
+ },
75
+ components:{
76
+ ticketSwiperItem,
77
+ ticketSwiper
78
+ },
79
+ data(){
80
+ return{
81
+ contents:{
82
+ multiple:true,
83
+ cards:[
84
+ {content:{
85
+ htmlList:[{type:'IMAGE',src:'https://guoranopen-zjk.oss-cn-zhangjiakou.aliyuncs.com/cdn-office-website/images/09-4.png'},{type:'SINGLE',list:['<p>aaaaaaaaaa</p>']},{type:'DOUBLE',list:['<p>北京首都国际机场</p>','<div>bbbbb</div>']},{type:'TRIPLE',list:['<p>北京首都国际机场啦啦啦啦</p>','<div>CA5689</div>','<p>上海虹桥国际机场</p>']},{type:'TRIPLE',list:['<p>7:00</p>','<div>SSS</div>','<p>12:00</p>']}],
86
+ buttonList:[{name:'我是标签1',scope:'',test:''},{name:'我是标签2'}]
87
+ }},
88
+ {content:{
89
+ htmlList:[{type:'SINGLE',list:['<p>aaaaa</p>','<a>我是链接</a>']},{type:'DOUBLE',list:['<p>aaaaa</p>','<div>bbbbb</div>']},{type:'TRIPLE',list:['<p>7:00</p>','<div></div>','<p>ccccc</p>']},{type:'TRIPLE',list:['<p>7:00</p>','<div>bbbbb</div>','<p>12:00</p>']}],
90
+ buttonList:[{name:'我是标签1',scope:'',test:''}]
91
+ }},
92
+ {content:{
93
+ htmlList:[{type:'SINGLE',list:['<p>邓伦李沁的背景图片</p>']},{type:'SINGLE',list:['<p>男生藏快递向求婚被他人错拆</p>']},{type:'SINGLE',list:['<p>aaaaa</p>']},{type:'SINGLE',list:['<p>aaaaa</p>']}],
94
+ buttonList:[{name:'我是标签1'}]
95
+ }}
96
+
97
+ ]
98
+ },
99
+ device:'PC',
100
+ slideWidth:'',
101
+ swiperStyle: {},
102
+ currIndex: 1,
103
+ distance:0,
104
+ isAndroid:false,
105
+ isIos:false,
106
+ isPhone:false,
107
+ isCompany:false,
108
+ swiper:false,
109
+ text:[],
110
+ textarea:[],
111
+ }
112
+ },
113
+ created() {
114
+ this.isIosOrIsAndroid()
115
+ this.isMobile()
116
+ },
117
+ mounted() {
118
+
119
+ },
120
+ methods:{
121
+ SwiperImgLoad() {
122
+ if (!this.loadCheck) {
123
+ this.$emit("SwiperImgLoadEvent");
124
+ this.loadCheck = true;
125
+ }
126
+ },
127
+ slideLoadOn() {
128
+ this.$refs.swiper.slideOn();
129
+ },
130
+ btnClick(items){
131
+ items.apiKey=this.content.apiKey
132
+ console.log(items)
133
+ this.$emit('btnClick',items,this.content.apiKey)
134
+ },
135
+
136
+ isIosOrIsAndroid(){
137
+ var u = navigator.userAgent;
138
+ var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
139
+ var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
140
+ if(isAndroid){
141
+ this.isAndroid=true
142
+ }
143
+ if(isiOS){
144
+ this.isIos=true
145
+ }
146
+ },
147
+ isMobile() {
148
+ let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
149
+ if (flag) {
150
+ this.isPhone=true
151
+ }
152
+ else
153
+ {
154
+ this.isCompany=true
155
+ }
156
+ },
157
+ touchMove(){
158
+
159
+ },
160
+ touchEnd(index){
161
+ console.log(index)
162
+ this.$emit('touchEnd',index)
163
+ }
164
+
165
+ },
166
+ }
167
+ </script>
168
+
169
+ <style lang="less">
170
+ @import "../../assets/less/ticketMessage";
171
+ a{
172
+ text-decoration: none;
173
+ }
174
174
  </style>
@@ -1,4 +1,4 @@
1
- import Swiper from "./ticketSwiper";
2
- import SwiperItem from "./ticketSwiperItem";
3
-
4
- export { Swiper, SwiperItem };
1
+ import Swiper from "./ticketSwiper";
2
+ import SwiperItem from "./ticketSwiperItem";
3
+
4
+ export { Swiper, SwiperItem };