askbot-dragon 1.0.29 → 1.1.0

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,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.0.29",
3
+ "version": "1.1.0",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1,8 +1,6 @@
1
1
  <template>
2
2
  <div class="answer-docknowledge">
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>
3
+ <div class="ad-text">{{ msg.content.text }}</div>
6
4
  <div class="ad-list">
7
5
  <div v-for="(item, itemIndex) in msg.content.list" :key="itemIndex" class="ad-list-cell">
8
6
  <div class="alc-title">
@@ -10,14 +8,11 @@
10
8
  <img class="alc-title-icon" height="24px" width="24px" :src="item.src" alt="" srcset="">
11
9
  <span class="alc-title-from">出自《{{ item.from }}》</span>
12
10
  </div>
13
- <span v-if="isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
11
+ <span class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
14
12
  </div>
15
13
  <div class="alc-content">
16
- <div v-if="msg.content.type == 1" class="alc-content-text">{{ item.introduction }} <span
17
- @click="lookAttach(item.url)" class="aci-view">查看原文 ></span>
18
- </div>
19
- <span v-if="!isPC" class="alc-title-updateTime">最后更新时间: {{ item.updateTime }}</span>
20
- <div v-if="false" class="alc-content-info">
14
+ <div class="alc-content-text">{{ item.introduction }} <span class="aci-view">查看原文 ></span></div>
15
+ <div class="alc-content-info">
21
16
  <div class="alcc-box">
22
17
  <span class="aci-owner">所有者: {{ item.owner }}</span>
23
18
  <span class="aci-enterprise">所属企业: {{ item.enterprise }}</span>
@@ -27,19 +22,14 @@
27
22
  </div>
28
23
  </div>
29
24
  </div>
30
- <previewDoc ref="previewDoc" :url="previewHref"></previewDoc>
31
25
  </div>
32
26
  </template>
33
27
 
34
28
  <script>
35
- import previewDoc from "./previewDoc";
36
29
  export default {
37
30
  name: "answerDocknowledge",
38
- components: { previewDoc },
39
31
  data() {
40
32
  return {
41
- isPC: true,
42
- previewHref: "",
43
33
  imageObj: {
44
34
  PDF: 'pdf',
45
35
  pdf: 'pdf',
@@ -53,15 +43,6 @@ export default {
53
43
 
54
44
  },
55
45
  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
- }
65
46
  this.msg.content.list.forEach(element => {
66
47
  element.src = 'https://static.guoranbot.com/cdn-office-website/askbot_doc/' + this.imageObj[element.format] + '.png';
67
48
  });
@@ -70,11 +51,6 @@ export default {
70
51
 
71
52
  },
72
53
  methods: {
73
- //预览图片
74
- lookAttach(url) {
75
- this.previewHref = url
76
- this.$refs.previewDoc.previewShowPopup = true;
77
- },
78
54
  }
79
55
  }
80
56
  </script>
@@ -86,20 +62,12 @@ export default {
86
62
  .ad-text {
87
63
  line-height: 18px;
88
64
  padding: 0px 0px 12px 0px;
89
-
90
- .aci-view {
91
- font-size: 13px;
92
- display: inline-block;
93
- margin-left: 10px;
94
- color: #366aff;
95
- cursor: pointer;
96
- }
97
65
  }
98
66
 
99
67
  .ad-list {
100
68
  .ad-list-cell {
101
69
  border-top: solid 1px #E0E6F7;
102
- padding: 6px 0 6px;
70
+ padding: 10px 0;
103
71
 
104
72
  .alc-title {
105
73
  display: flex;
@@ -107,39 +75,26 @@ export default {
107
75
  align-items: center;
108
76
  justify-content: space-between;
109
77
  line-height: 16px;
78
+ margin-bottom: 8px;
110
79
 
111
80
  .alc-box {
112
81
  display: flex;
113
82
  align-items: center;
114
83
  justify-content: flex-start;
115
-
116
- .alc-title-from {
117
- flex: auto;
118
- display: flex;
119
- justify-content: flex-start;
120
- }
121
84
  }
122
85
 
123
86
  .alc-title-icon {
124
- margin-right: 6px;
87
+ margin-right: 12px;
125
88
  }
126
89
 
127
90
  .alc-title-updateTime {
128
91
  text-align: right;
129
92
  color: #999999;
130
- font-size: 13px;
93
+ // font-size: 13px;
131
94
  }
132
95
  }
133
96
 
134
97
  .alc-content {
135
- .alc-title-updateTime {
136
- margin-top: 6px;
137
- display: block;
138
- text-align: right;
139
- color: #999999;
140
- font-size: 13px;
141
- }
142
-
143
98
  .alc-content-text {
144
99
  margin-bottom: 6px;
145
100