askbot-dragon 1.3.40 → 1.3.42

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.3.40",
3
+ "version": "1.3.42",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -6,7 +6,7 @@
6
6
  <i class="iconfont guoran-shanchu"></i>
7
7
  </section>
8
8
  </div>
9
- <div v-if="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
9
+ <!-- <div v-if="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
10
10
  <video :src="url" controls width="100%;" height="98%"></video>
11
11
  </div>
12
12
  <template v-else-if="url.includes('https://www') || url.includes('http://www')">
@@ -20,6 +20,21 @@
20
20
  </template>
21
21
  <template v-else>
22
22
  <iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
23
+ </template> -->
24
+ <div v-show="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
25
+ <video :src="url" controls width="100%;" height="98%"></video>
26
+ </div>
27
+ <template v-show="fileType !== 'VIDEO' && fileType !== 'OTHER' && url.includes('https://www') || url.includes('http://www')">
28
+ <iframe class="preview_iframe"
29
+ :src="url"
30
+ width="100%"
31
+ height="100%"
32
+ scrolling="100%"
33
+ frameborder="no"
34
+ border="0"></iframe>
35
+ </template>
36
+ <template v-show="fileType == 'OTHER' && !url.includes('https://www') && !url.includes('http://www')">
37
+ <iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
23
38
  </template>
24
39
  <div class="onload_btn" @click="downLoad">
25
40
  下载
@@ -142,8 +157,9 @@ export default {
142
157
  // a.download = (this.title) + fileType
143
158
  // a.dispatchEvent(new MouseEvent('click', { bubbles: true, cancelable: true, view: window }))
144
159
  this.close()
160
+ Toast('请稍后...');
145
161
  setTimeout(() =>{
146
- window.open(res.data)
162
+ window.open(res.data,'下载', 'noopener')
147
163
  }, 1000)
148
164
  }
149
165
  }