askbot-dragon 1.8.16-beta → 1.8.18-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.
Files changed (101) 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 +60 -60
  5. package/public/index.html +73 -73
  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 +141 -141
  11. package/src/assets/js/Base64Util.js +22 -22
  12. package/src/assets/js/common.js +265 -261
  13. package/src/assets/js/hammer.js +100 -100
  14. package/src/assets/js/script.js +36 -36
  15. package/src/assets/less/common.css +6773 -6773
  16. package/src/assets/less/converSationContainer/common.less +199 -199
  17. package/src/assets/less/converSationContainer/converSatonContainer.less +486 -486
  18. package/src/assets/less/iconfont.css +37 -37
  19. package/src/assets/less/ticketMessage.less +294 -294
  20. package/src/assets/less/variables.less +122 -114
  21. package/src/components/ActionAlertIframe.vue +178 -178
  22. package/src/components/AiGuide.vue +435 -435
  23. package/src/components/AnswerDocknowledge.vue +1205 -1205
  24. package/src/components/AnswerVoice.vue +286 -286
  25. package/src/components/AskIFrame.vue +15 -15
  26. package/src/components/ConversationContainer.vue +10684 -10684
  27. package/src/components/FileType.vue +86 -86
  28. package/src/components/Message.vue +27 -27
  29. package/src/components/MyEditor.vue +344 -344
  30. package/src/components/QwFeedback.vue +303 -303
  31. package/src/components/actionSatisfaction.vue +109 -109
  32. package/src/components/actionSendToBot.vue +64 -64
  33. package/src/components/answerDissatisfaction.vue +64 -64
  34. package/src/components/answerRadio.vue +261 -261
  35. package/src/components/ask-components/DissatisfactionOptions.vue +58 -58
  36. package/src/components/ask-components/Msgloading.vue +38 -38
  37. package/src/components/ask-components/SatisfactionV2.vue +15 -15
  38. package/src/components/askVideo.vue +264 -264
  39. package/src/components/assetDetails.vue +379 -379
  40. package/src/components/assetMessage.vue +231 -231
  41. package/src/components/associationIntention.vue +418 -418
  42. package/src/components/attachmentPreview.vue +92 -92
  43. package/src/components/botActionSatisfactor.vue +70 -70
  44. package/src/components/chatContent.vue +514 -514
  45. package/src/components/feedBack.vue +138 -138
  46. package/src/components/fielListView.vue +352 -352
  47. package/src/components/file/AliyunOssComponents.vue +108 -108
  48. package/src/components/formTemplate.vue +3522 -3522
  49. package/src/components/imgView.vue +31 -31
  50. package/src/components/intelligentSummary.vue +236 -236
  51. package/src/components/interruptComponents/imageSelectionAnswer.vue +202 -202
  52. package/src/components/interruptComponents/multipleChoiceAnswer.vue +133 -133
  53. package/src/components/interruptComponents/singleChoiceAnswer.vue +81 -81
  54. package/src/components/kkview.vue +1130 -1130
  55. package/src/components/loadingProcess.vue +164 -164
  56. package/src/components/markDownText.vue +961 -961
  57. package/src/components/message/ActionAlertIframe.vue +112 -112
  58. package/src/components/message/ShopMessage.vue +164 -164
  59. package/src/components/message/TextMessage.vue +930 -930
  60. package/src/components/message/TicketMessage.vue +201 -201
  61. package/src/components/message/swiper/index.js +4 -4
  62. package/src/components/message/swiper/ticketSwiper.vue +503 -503
  63. package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
  64. package/src/components/msgLoading.vue +231 -231
  65. package/src/components/myPopup.vue +75 -75
  66. package/src/components/newPdfPosition.vue +877 -877
  67. package/src/components/outputComponents/outputCom.vue +148 -148
  68. package/src/components/pagination.vue +129 -129
  69. package/src/components/pdfPosition.vue +1514 -1514
  70. package/src/components/popup.vue +230 -230
  71. package/src/components/preview/docView.vue +132 -132
  72. package/src/components/preview/excelView.vue +213 -213
  73. package/src/components/preview/newPositionPreview.vue +392 -392
  74. package/src/components/preview/pdfView.vue +833 -833
  75. package/src/components/previewDoc.vue +257 -257
  76. package/src/components/previewPdf.vue +1123 -1123
  77. package/src/components/previewWisdom.vue +251 -251
  78. package/src/components/receiverMessagePlatform.vue +71 -71
  79. package/src/components/recommend.vue +82 -82
  80. package/src/components/selector/hOption.vue +20 -20
  81. package/src/components/selector/hSelector.vue +199 -199
  82. package/src/components/selector/hWrapper.vue +216 -216
  83. package/src/components/senderMessagePlatform.vue +60 -60
  84. package/src/components/source/BotMessage.vue +24 -24
  85. package/src/components/source/CustomMessage.vue +24 -24
  86. package/src/components/test.vue +260 -260
  87. package/src/components/tree.vue +309 -309
  88. package/src/components/utils/AliyunIssUtil.js +103 -103
  89. package/src/components/utils/ckeditor.js +185 -185
  90. package/src/components/utils/format_date.js +25 -25
  91. package/src/components/utils/index.js +6 -6
  92. package/src/components/utils/math_utils.js +29 -29
  93. package/src/components/voiceComponent.vue +122 -122
  94. package/src/components/welcomeKnowledgeFile.vue +350 -350
  95. package/src/components/welcomeLlmCard.vue +146 -146
  96. package/src/components/welcomeSuggest.vue +99 -99
  97. package/src/locales/cn.json +99 -99
  98. package/src/locales/en.json +98 -98
  99. package/src/locales/jp.json +72 -72
  100. package/src/main.js +76 -76
  101. package/vue.config.js +54 -54
@@ -1,380 +1,380 @@
1
- <template>
2
- <div class="asset">
3
- <div class="asset-details">
4
- <section class="details-title">
5
- <p>{{$t('dragonCommon.youareconsulting')}}</p>
6
- <span @click="rotateClick" class="rotate">
7
- <i class="arsenal_icon arsenalangle-up-solid"></i>
8
- </span>
9
- </section>
10
- <div class="details-content" v-if="!isThirdParty">
11
- <img
12
- class="backgroundImg"
13
- v-if="dataDetails.product.productImgPathes && dataDetails.product.productImgPathes.length != 0"
14
- :src="dataDetails.product.productImgPathes"
15
- alt=""
16
- />
17
- <div class="background-null" v-else>
18
- {{ dataDetails.productName | filterName }}
19
- </div>
20
- <div class="content-text">
21
- <p class="text-title">{{ dataDetails.productName }}</p>
22
- <section class="text-label">
23
- <p class="text-type">
24
- <i class="iconfont guoran-biaoqian"></i>
25
- <span>{{
26
- dataDetails.typeName ? dataDetails.typeName : "--"
27
- }}</span>
28
- </p>
29
- <p class="text-SN">
30
- <i class="iconfont guoran-xinghao"></i>
31
- <span>{{ dataDetails.snNo ? dataDetails.snNo : "--" }}</span>
32
- </p>
33
- </section>
34
- </div>
35
- </div>
36
- <div class="details-content" v-if="isThirdParty">
37
- <img
38
- class="backgroundImg"
39
- v-if="dataDetails.product.productImgPathes && dataDetails.product.productImgPathes.length != 0"
40
- :src="dataDetails.product.productImgPathes"
41
- alt=""
42
- />
43
- <div class="background-null" v-else>
44
- {{ dataDetails.name | filterName }}
45
- </div>
46
- <div class="content-text">
47
- <p class="text-title">{{ dataDetails.name }}</p>
48
- <section class="text-label">
49
- <p class="text-type">
50
- <i class="iconfont guoran-bumen"></i>
51
- <span
52
- v-if="
53
- dataDetails.depts &&
54
- dataDetails.depts.length != 0 &&
55
- dataDetails.depts[0].wechatBotDTO &&
56
- dataDetails.depts[0].wechatBotDTO.wechatType == 0 &&
57
- dataDetails.depts[0].wechatBotDTO.bindType == 0
58
- "
59
- >
60
- <ww-open-data
61
- type="departmentName"
62
- :openid="dataDetails.depts[0].name"
63
- ></ww-open-data>
64
- </span>
65
- <span v-else>
66
- {{ (dataDetails.depts && dataDetails.depts[0]) ? dataDetails.depts[0].name : "--" }}
67
- </span>
68
- </p>
69
- <p class="text-SN">
70
- <i class="iconfont guoran-tongyichicun-mingcheng"></i>
71
- <span>{{ dataDetails.thirdAssetsCode ? dataDetails.thirdAssetsCode : "--12312" }}</span>
72
- </p>
73
- </section>
74
- </div>
75
- </div>
76
- <div class="details-content-hide" v-if="false && !isThirdParty">
77
- <p>
78
- <i class="iconfont guoran-miaoshu"></i>
79
- <section class="description">
80
- <section class="img-view" v-if="imgList.length != 0">
81
- <template v-for="(item, index) in imgList">
82
- <img :src="item" alt="" :key="index" />
83
- </template>
84
- </section>
85
- <span>{{
86
- dataDetails.description ? dataDetails.description : "--"
87
- }}</span>
88
- </section>
89
- </p>
90
- <p>
91
- <i class="arsenal_icon arsenalweizhi"></i>
92
- <span> {{ dataDetails.officeAreaName }} </span>
93
- </p>
94
- <p>
95
- <i class="iconfont guoran-geren"></i>
96
- <span
97
- v-if="
98
- dataDetails.users &&
99
- dataDetails.users.length != 0 &&
100
- dataDetails.users.type == 0 &&
101
- dataDetails.users.bindType == 0
102
- "
103
- >
104
- <ww-open-data
105
- type="userName"
106
- :openid="dataDetails.users[0].name"
107
- ></ww-open-data>
108
- </span>
109
- <span v-else>
110
- {{ (dataDetails.users && dataDetails.users[0]) ? dataDetails.users[0].name : "--" }}
111
- </span>
112
- </p>
113
- <p>
114
- <i class="iconfont guoran-bumen"></i>
115
- <span
116
- v-if="
117
- dataDetails.depts &&
118
- dataDetails.depts.length != 0 &&
119
- dataDetails.depts[0].wechatBotDTO &&
120
- dataDetails.depts[0].wechatBotDTO.wechatType == 0 &&
121
- dataDetails.depts[0].wechatBotDTO.bindType == 0
122
- "
123
- >
124
- <ww-open-data
125
- type="departmentName"
126
- :openid="dataDetails.depts[0].name"
127
- ></ww-open-data>
128
- </span>
129
- <span v-else>
130
- {{ (dataDetails.depts && dataDetails.depts[0]) ? dataDetails.depts[0].name : "--" }}
131
- </span>
132
- </p>
133
- <p>
134
- <i class="iconfont guoran-guanlizhe"></i>
135
- <span
136
- v-if="
137
- dataDetails.managers &&
138
- dataDetails.managers.length != 0 &&
139
- dataDetails.managers.type == 0 &&
140
- dataDetails.managers.bindType == 0
141
- "
142
- >
143
- <ww-open-data
144
- type="userName"
145
- :openid="dataDetails.managers[0].name"
146
- ></ww-open-data>
147
- </span>
148
- <span>
149
- {{ (dataDetails.managers && dataDetails.managers[0]) ? dataDetails.managers[0].name : "--" }}
150
- </span>
151
- </p>
152
- </div>
153
- </div>
154
- </div>
155
- </template>
156
-
157
- <script>
158
- /*eslint-disable*/
159
- export default {
160
- props: {
161
- data: {
162
- type: Object,
163
- },
164
- },
165
- data() {
166
- return {
167
- detailVisable: false,
168
- rotateFlag: true,
169
- imgList: [],
170
- };
171
- },
172
- filters: {
173
- filterName(value) {
174
- let str = "";
175
- let reg =
176
- /^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/;
177
- if (reg.test(value[0])) {
178
- str = value[0];
179
- } else {
180
- str = value[0] + value[1];
181
- }
182
- return str;
183
- },
184
- },
185
- computed: {
186
- dataDetails() {
187
- let dataDetails = this.data.assets;
188
- if (dataDetails.description) {
189
- let reg = /<\/?.+?\/?>/g;
190
- let imgReg = /<img.*?(?:>|\/>)/gi;
191
- //匹配src属性
192
- let srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/i;
193
- let arr = dataDetails.description.match(imgReg);
194
- if (arr) {
195
- for (var i = 0; i < arr.length; i++) {
196
- var src = arr[i].match(srcReg);
197
- if (src[1]) {
198
- this.imgList.push(src[1]);
199
- }
200
- }
201
- }
202
- dataDetails.description =
203
- dataDetails.description &&
204
- dataDetails.description.replace(/&nbsp;/gi, "");
205
- dataDetails.description = dataDetails.description
206
- ? dataDetails.description.replace(reg, "")
207
- : "";
208
- }
209
- return dataDetails;
210
- },
211
- isThirdParty() {
212
- return this.data.assets.thirdAssetsCode
213
- }
214
- },
215
- methods: {
216
- rotateClick() {
217
- // this.rotateFlag = !this.rotateFlag;
218
- this.$emit('assetClick', this.data.assets)
219
- },
220
- },
221
- };
222
- </script>
223
-
224
- <style lang="less" scoped>
225
- @import "../assets/less/variables.less";
226
- @import url("../assets/less/iconfont.css");
227
- .asset {
228
- width: 100%;
229
- box-sizing: border-box;
230
- padding-right: 15px;
231
- }
232
- .asset-details {
233
- width: 100%;
234
- // height: 130px;
235
- box-sizing: border-box;
236
- background: @background-color-light;
237
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.03);
238
- border-radius: 13px;
239
- .details-title {
240
- display: flex;
241
- height: 45px;
242
- justify-content: space-between;
243
- align-items: center;
244
- border-bottom: 1px solid @border-color-r3;
245
- box-sizing: border-box;
246
- padding: 10px;
247
- p {
248
- font-size: 17px;
249
- font-weight: bold;
250
- color: @font-primary-color;
251
- }
252
- span {
253
- width: 25px;
254
- height: 25px;
255
- line-height: 25px;
256
- text-align: center;
257
- border-radius: 25px;
258
- border: 1px solid @border-color-primary;
259
- i {
260
- color: @font-primary-accent-color;
261
- }
262
- }
263
- .rotate {
264
- transform: rotate(90deg);
265
- }
266
- }
267
- .details-content {
268
- width: 100%;
269
- min-height: 85px;
270
- box-sizing: border-box;
271
- padding: 15px 15px;
272
- display: flex;
273
- align-items: center;
274
- .backgroundImg {
275
- width: 67px;
276
- height: 51px;
277
- margin-right: 15px;
278
- }
279
- .background-null {
280
- width: 51px;
281
- min-height: 51px;
282
- background: @primary-color;
283
- border-radius: 51px;
284
- line-height: 51px;
285
- text-align: center;
286
- font-size: 24px;
287
- color: @font-primary-light-color;
288
- margin-right: 15px;
289
- }
290
- .content-text {
291
- width: calc(100% - 90px);
292
- height: 100%;
293
- display: flex;
294
- flex-direction: column;
295
- justify-content: space-between;
296
- .text-title {
297
- width: 100%;
298
- font-weight: bold;
299
- color: @font-primary-color;
300
- font-size: 15px;
301
- text-overflow: hidden;
302
- margin-bottom: 5px;
303
- // overflow-wrap: each();
304
- }
305
- .text-label {
306
- width: 100%;
307
- display: flex;
308
- flex-wrap: wrap;
309
- p {
310
- margin-right: 10px;
311
- display: flex;
312
- align-items: center;
313
- i {
314
- margin-right: 3px;
315
- }
316
- }
317
- .text-type {
318
- background: @background-color-asset-text-r1;
319
- box-sizing: border-box;
320
- padding: 3px 5px;
321
- margin-bottom: 5px;
322
- border-radius: 5px;
323
- i {
324
- color: @font-alc-color;
325
- }
326
- span {
327
- color: @font-alc-color;
328
- }
329
- }
330
- .text-SN {
331
- background: @background-color-asset-text-r2;
332
- box-sizing: border-box;
333
- padding: 3px 5px;
334
- margin-bottom: 5px;
335
- border-radius: 5px;
336
- i {
337
- color: @font-primary-accent-color;
338
- }
339
- span {
340
- color: @font-primary-accent-color;
341
- margin-bottom: 0 !important;
342
- }
343
- }
344
- }
345
- }
346
- }
347
- .details-content-hide {
348
- width: 100%;
349
- min-height: 140px;
350
- box-sizing: border-box;
351
- padding: 10px 15px;
352
- border-top: 1px solid @border-color-r3;
353
- p {
354
- margin-bottom: 5px;
355
- display: flex;
356
- align-items: center;
357
- i {
358
- margin-right: 10px;
359
- color: @font-primary-accent-color;
360
- }
361
- }
362
- .description {
363
- max-width: 95%;
364
- .img-view {
365
- width: 100%;
366
- display: flex;
367
- flex-direction: row;
368
- flex-wrap: wrap;
369
- justify-content: space-between;
370
- align-items: center;
371
- img {
372
- width: 33%;
373
- height: 33%;
374
- margin-bottom: 5px;
375
- }
376
- }
377
- }
378
- }
379
- }
1
+ <template>
2
+ <div class="asset">
3
+ <div class="asset-details">
4
+ <section class="details-title">
5
+ <p>{{$t('dragonCommon.youareconsulting')}}</p>
6
+ <span @click="rotateClick" class="rotate">
7
+ <i class="arsenal_icon arsenalangle-up-solid"></i>
8
+ </span>
9
+ </section>
10
+ <div class="details-content" v-if="!isThirdParty">
11
+ <img
12
+ class="backgroundImg"
13
+ v-if="dataDetails.product.productImgPathes && dataDetails.product.productImgPathes.length != 0"
14
+ :src="dataDetails.product.productImgPathes"
15
+ alt=""
16
+ />
17
+ <div class="background-null" v-else>
18
+ {{ dataDetails.productName | filterName }}
19
+ </div>
20
+ <div class="content-text">
21
+ <p class="text-title">{{ dataDetails.productName }}</p>
22
+ <section class="text-label">
23
+ <p class="text-type">
24
+ <i class="iconfont guoran-biaoqian"></i>
25
+ <span>{{
26
+ dataDetails.typeName ? dataDetails.typeName : "--"
27
+ }}</span>
28
+ </p>
29
+ <p class="text-SN">
30
+ <i class="iconfont guoran-xinghao"></i>
31
+ <span>{{ dataDetails.snNo ? dataDetails.snNo : "--" }}</span>
32
+ </p>
33
+ </section>
34
+ </div>
35
+ </div>
36
+ <div class="details-content" v-if="isThirdParty">
37
+ <img
38
+ class="backgroundImg"
39
+ v-if="dataDetails.product.productImgPathes && dataDetails.product.productImgPathes.length != 0"
40
+ :src="dataDetails.product.productImgPathes"
41
+ alt=""
42
+ />
43
+ <div class="background-null" v-else>
44
+ {{ dataDetails.name | filterName }}
45
+ </div>
46
+ <div class="content-text">
47
+ <p class="text-title">{{ dataDetails.name }}</p>
48
+ <section class="text-label">
49
+ <p class="text-type">
50
+ <i class="iconfont guoran-bumen"></i>
51
+ <span
52
+ v-if="
53
+ dataDetails.depts &&
54
+ dataDetails.depts.length != 0 &&
55
+ dataDetails.depts[0].wechatBotDTO &&
56
+ dataDetails.depts[0].wechatBotDTO.wechatType == 0 &&
57
+ dataDetails.depts[0].wechatBotDTO.bindType == 0
58
+ "
59
+ >
60
+ <ww-open-data
61
+ type="departmentName"
62
+ :openid="dataDetails.depts[0].name"
63
+ ></ww-open-data>
64
+ </span>
65
+ <span v-else>
66
+ {{ (dataDetails.depts && dataDetails.depts[0]) ? dataDetails.depts[0].name : "--" }}
67
+ </span>
68
+ </p>
69
+ <p class="text-SN">
70
+ <i class="iconfont guoran-tongyichicun-mingcheng"></i>
71
+ <span>{{ dataDetails.thirdAssetsCode ? dataDetails.thirdAssetsCode : "--12312" }}</span>
72
+ </p>
73
+ </section>
74
+ </div>
75
+ </div>
76
+ <div class="details-content-hide" v-if="false && !isThirdParty">
77
+ <p>
78
+ <i class="iconfont guoran-miaoshu"></i>
79
+ <section class="description">
80
+ <section class="img-view" v-if="imgList.length != 0">
81
+ <template v-for="(item, index) in imgList">
82
+ <img :src="item" alt="" :key="index" />
83
+ </template>
84
+ </section>
85
+ <span>{{
86
+ dataDetails.description ? dataDetails.description : "--"
87
+ }}</span>
88
+ </section>
89
+ </p>
90
+ <p>
91
+ <i class="arsenal_icon arsenalweizhi"></i>
92
+ <span> {{ dataDetails.officeAreaName }} </span>
93
+ </p>
94
+ <p>
95
+ <i class="iconfont guoran-geren"></i>
96
+ <span
97
+ v-if="
98
+ dataDetails.users &&
99
+ dataDetails.users.length != 0 &&
100
+ dataDetails.users.type == 0 &&
101
+ dataDetails.users.bindType == 0
102
+ "
103
+ >
104
+ <ww-open-data
105
+ type="userName"
106
+ :openid="dataDetails.users[0].name"
107
+ ></ww-open-data>
108
+ </span>
109
+ <span v-else>
110
+ {{ (dataDetails.users && dataDetails.users[0]) ? dataDetails.users[0].name : "--" }}
111
+ </span>
112
+ </p>
113
+ <p>
114
+ <i class="iconfont guoran-bumen"></i>
115
+ <span
116
+ v-if="
117
+ dataDetails.depts &&
118
+ dataDetails.depts.length != 0 &&
119
+ dataDetails.depts[0].wechatBotDTO &&
120
+ dataDetails.depts[0].wechatBotDTO.wechatType == 0 &&
121
+ dataDetails.depts[0].wechatBotDTO.bindType == 0
122
+ "
123
+ >
124
+ <ww-open-data
125
+ type="departmentName"
126
+ :openid="dataDetails.depts[0].name"
127
+ ></ww-open-data>
128
+ </span>
129
+ <span v-else>
130
+ {{ (dataDetails.depts && dataDetails.depts[0]) ? dataDetails.depts[0].name : "--" }}
131
+ </span>
132
+ </p>
133
+ <p>
134
+ <i class="iconfont guoran-guanlizhe"></i>
135
+ <span
136
+ v-if="
137
+ dataDetails.managers &&
138
+ dataDetails.managers.length != 0 &&
139
+ dataDetails.managers.type == 0 &&
140
+ dataDetails.managers.bindType == 0
141
+ "
142
+ >
143
+ <ww-open-data
144
+ type="userName"
145
+ :openid="dataDetails.managers[0].name"
146
+ ></ww-open-data>
147
+ </span>
148
+ <span>
149
+ {{ (dataDetails.managers && dataDetails.managers[0]) ? dataDetails.managers[0].name : "--" }}
150
+ </span>
151
+ </p>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </template>
156
+
157
+ <script>
158
+ /*eslint-disable*/
159
+ export default {
160
+ props: {
161
+ data: {
162
+ type: Object,
163
+ },
164
+ },
165
+ data() {
166
+ return {
167
+ detailVisable: false,
168
+ rotateFlag: true,
169
+ imgList: [],
170
+ };
171
+ },
172
+ filters: {
173
+ filterName(value) {
174
+ let str = "";
175
+ let reg =
176
+ /^(?:[\u3400-\u4DB5\u4E00-\u9FEA\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0])+$/;
177
+ if (reg.test(value[0])) {
178
+ str = value[0];
179
+ } else {
180
+ str = value[0] + value[1];
181
+ }
182
+ return str;
183
+ },
184
+ },
185
+ computed: {
186
+ dataDetails() {
187
+ let dataDetails = this.data.assets;
188
+ if (dataDetails.description) {
189
+ let reg = /<\/?.+?\/?>/g;
190
+ let imgReg = /<img.*?(?:>|\/>)/gi;
191
+ //匹配src属性
192
+ let srcReg = /src=[\'\"]?([^\'\"]*)[\'\"]?/i;
193
+ let arr = dataDetails.description.match(imgReg);
194
+ if (arr) {
195
+ for (var i = 0; i < arr.length; i++) {
196
+ var src = arr[i].match(srcReg);
197
+ if (src[1]) {
198
+ this.imgList.push(src[1]);
199
+ }
200
+ }
201
+ }
202
+ dataDetails.description =
203
+ dataDetails.description &&
204
+ dataDetails.description.replace(/&nbsp;/gi, "");
205
+ dataDetails.description = dataDetails.description
206
+ ? dataDetails.description.replace(reg, "")
207
+ : "";
208
+ }
209
+ return dataDetails;
210
+ },
211
+ isThirdParty() {
212
+ return this.data.assets.thirdAssetsCode
213
+ }
214
+ },
215
+ methods: {
216
+ rotateClick() {
217
+ // this.rotateFlag = !this.rotateFlag;
218
+ this.$emit('assetClick', this.data.assets)
219
+ },
220
+ },
221
+ };
222
+ </script>
223
+
224
+ <style lang="less" scoped>
225
+ @import "../assets/less/variables.less";
226
+ @import url("../assets/less/iconfont.css");
227
+ .asset {
228
+ width: 100%;
229
+ box-sizing: border-box;
230
+ padding-right: 15px;
231
+ }
232
+ .asset-details {
233
+ width: 100%;
234
+ // height: 130px;
235
+ box-sizing: border-box;
236
+ background: @background-color-light;
237
+ box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.03);
238
+ border-radius: 13px;
239
+ .details-title {
240
+ display: flex;
241
+ height: 45px;
242
+ justify-content: space-between;
243
+ align-items: center;
244
+ border-bottom: 1px solid @border-color-r3;
245
+ box-sizing: border-box;
246
+ padding: 10px;
247
+ p {
248
+ font-size: 17px;
249
+ font-weight: bold;
250
+ color: @font-primary-color;
251
+ }
252
+ span {
253
+ width: 25px;
254
+ height: 25px;
255
+ line-height: 25px;
256
+ text-align: center;
257
+ border-radius: 25px;
258
+ border: 1px solid @border-color-primary;
259
+ i {
260
+ color: @font-primary-accent-color;
261
+ }
262
+ }
263
+ .rotate {
264
+ transform: rotate(90deg);
265
+ }
266
+ }
267
+ .details-content {
268
+ width: 100%;
269
+ min-height: 85px;
270
+ box-sizing: border-box;
271
+ padding: 15px 15px;
272
+ display: flex;
273
+ align-items: center;
274
+ .backgroundImg {
275
+ width: 67px;
276
+ height: 51px;
277
+ margin-right: 15px;
278
+ }
279
+ .background-null {
280
+ width: 51px;
281
+ min-height: 51px;
282
+ background: @primary-color;
283
+ border-radius: 51px;
284
+ line-height: 51px;
285
+ text-align: center;
286
+ font-size: 24px;
287
+ color: @font-primary-light-color;
288
+ margin-right: 15px;
289
+ }
290
+ .content-text {
291
+ width: calc(100% - 90px);
292
+ height: 100%;
293
+ display: flex;
294
+ flex-direction: column;
295
+ justify-content: space-between;
296
+ .text-title {
297
+ width: 100%;
298
+ font-weight: bold;
299
+ color: @font-primary-color;
300
+ font-size: 15px;
301
+ text-overflow: hidden;
302
+ margin-bottom: 5px;
303
+ // overflow-wrap: each();
304
+ }
305
+ .text-label {
306
+ width: 100%;
307
+ display: flex;
308
+ flex-wrap: wrap;
309
+ p {
310
+ margin-right: 10px;
311
+ display: flex;
312
+ align-items: center;
313
+ i {
314
+ margin-right: 3px;
315
+ }
316
+ }
317
+ .text-type {
318
+ background: @background-color-asset-text-r1;
319
+ box-sizing: border-box;
320
+ padding: 3px 5px;
321
+ margin-bottom: 5px;
322
+ border-radius: 5px;
323
+ i {
324
+ color: @font-alc-color;
325
+ }
326
+ span {
327
+ color: @font-alc-color;
328
+ }
329
+ }
330
+ .text-SN {
331
+ background: @background-color-asset-text-r2;
332
+ box-sizing: border-box;
333
+ padding: 3px 5px;
334
+ margin-bottom: 5px;
335
+ border-radius: 5px;
336
+ i {
337
+ color: @font-primary-accent-color;
338
+ }
339
+ span {
340
+ color: @font-primary-accent-color;
341
+ margin-bottom: 0 !important;
342
+ }
343
+ }
344
+ }
345
+ }
346
+ }
347
+ .details-content-hide {
348
+ width: 100%;
349
+ min-height: 140px;
350
+ box-sizing: border-box;
351
+ padding: 10px 15px;
352
+ border-top: 1px solid @border-color-r3;
353
+ p {
354
+ margin-bottom: 5px;
355
+ display: flex;
356
+ align-items: center;
357
+ i {
358
+ margin-right: 10px;
359
+ color: @font-primary-accent-color;
360
+ }
361
+ }
362
+ .description {
363
+ max-width: 95%;
364
+ .img-view {
365
+ width: 100%;
366
+ display: flex;
367
+ flex-direction: row;
368
+ flex-wrap: wrap;
369
+ justify-content: space-between;
370
+ align-items: center;
371
+ img {
372
+ width: 33%;
373
+ height: 33%;
374
+ margin-bottom: 5px;
375
+ }
376
+ }
377
+ }
378
+ }
379
+ }
380
380
  </style>