askbot-dragon 1.0.28 → 1.0.29
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
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="answer-docknowledge">
|
|
3
|
-
<div class="ad-text">{{ msg.content.text }}<span
|
|
3
|
+
<div v-if="msg.content.type == 0" class="ad-text">{{ msg.content.text }}<span
|
|
4
|
+
@click="lookAttach(msg.content.list[0].url)" class="aci-view">查看原文 ></span></div>
|
|
5
|
+
<div v-if="msg.content.type == 1" class="ad-text">{{ msg.content.text }}</div>
|
|
4
6
|
<div class="ad-list">
|
|
5
7
|
<div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
|
|
6
8
|
<div class="alc-title">
|
|
@@ -8,12 +10,13 @@
|
|
|
8
10
|
<img class="alc-title-icon" height="24px" width="24px" :src="item.src" alt="" srcset="">
|
|
9
11
|
<span class="alc-title-from">出自《{{ item.from }}》</span>
|
|
10
12
|
</div>
|
|
11
|
-
|
|
13
|
+
<span v-if="isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
12
14
|
</div>
|
|
13
15
|
<div class="alc-content">
|
|
14
|
-
<div v-if="
|
|
16
|
+
<div v-if="msg.content.type == 1" class="alc-content-text">{{ item.introduction }} <span
|
|
17
|
+
@click="lookAttach(item.url)" class="aci-view">查看原文 ></span>
|
|
15
18
|
</div>
|
|
16
|
-
<span class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
19
|
+
<span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
|
|
17
20
|
<div v-if="false" class="alc-content-info">
|
|
18
21
|
<div class="alcc-box">
|
|
19
22
|
<span class="aci-owner">所有者: {{ item.owner }}</span>
|
|
@@ -35,6 +38,7 @@ export default {
|
|
|
35
38
|
components: { previewDoc },
|
|
36
39
|
data() {
|
|
37
40
|
return {
|
|
41
|
+
isPC: true,
|
|
38
42
|
previewHref: "",
|
|
39
43
|
imageObj: {
|
|
40
44
|
PDF: 'pdf',
|
|
@@ -49,6 +53,15 @@ export default {
|
|
|
49
53
|
|
|
50
54
|
},
|
|
51
55
|
created() {
|
|
56
|
+
var system = {};
|
|
57
|
+
system.pingtai = /(Win32|Win16|WinCE|Mac68K|MacIntel|MacIntel|MacPPC|Linux mips64)/i.test(navigator.platform);
|
|
58
|
+
if (system.pingtai) {
|
|
59
|
+
//电脑
|
|
60
|
+
this.isPC = true;
|
|
61
|
+
} else {
|
|
62
|
+
//手机
|
|
63
|
+
this.isPC = false;
|
|
64
|
+
}
|
|
52
65
|
this.msg.content.list.forEach(element => {
|
|
53
66
|
element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
|
|
54
67
|
});
|
|
@@ -86,7 +99,7 @@ export default {
|
|
|
86
99
|
.ad-list {
|
|
87
100
|
.ad-list-cell {
|
|
88
101
|
border-top: solid 1px #E0E6F7;
|
|
89
|
-
padding:
|
|
102
|
+
padding: 6px 0 6px;
|
|
90
103
|
|
|
91
104
|
.alc-title {
|
|
92
105
|
display: flex;
|
|
@@ -94,13 +107,11 @@ export default {
|
|
|
94
107
|
align-items: center;
|
|
95
108
|
justify-content: space-between;
|
|
96
109
|
line-height: 16px;
|
|
97
|
-
margin-bottom: 8px;
|
|
98
110
|
|
|
99
111
|
.alc-box {
|
|
100
112
|
display: flex;
|
|
101
113
|
align-items: center;
|
|
102
114
|
justify-content: flex-start;
|
|
103
|
-
width: 100%;
|
|
104
115
|
|
|
105
116
|
.alc-title-from {
|
|
106
117
|
flex: auto;
|
|
@@ -116,7 +127,7 @@ export default {
|
|
|
116
127
|
.alc-title-updateTime {
|
|
117
128
|
text-align: right;
|
|
118
129
|
color: #999999;
|
|
119
|
-
|
|
130
|
+
font-size: 13px;
|
|
120
131
|
}
|
|
121
132
|
}
|
|
122
133
|
|