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