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