askbot-dragon 1.3.44 → 1.3.46
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
|
@@ -63,14 +63,15 @@
|
|
|
63
63
|
</div>
|
|
64
64
|
<Recommend v-if="msg.recommend && msg.recommend.list && msg.recommend.list.length > 0" :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
|
|
65
65
|
</div>
|
|
66
|
-
<van-popup v-model="previewShowPopup" position="bottom" :style="{ height: '90%', background:'#FFFFFF'}">
|
|
66
|
+
<van-popup v-model="previewShowPopup" position="bottom" v-if="previewShowPopup" :style="{ height: '90%', background:'#FFFFFF'}">
|
|
67
67
|
<previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="previewShowPopup"></previewDoc>
|
|
68
68
|
</van-popup>
|
|
69
69
|
<el-drawer
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
title="我是标题"
|
|
71
|
+
:visible.sync="drawer"
|
|
72
|
+
:with-header="false"
|
|
73
|
+
size="65%"
|
|
74
|
+
v-if="drawer"
|
|
74
75
|
>
|
|
75
76
|
<previewDoc ref="previewDoc" :url="previewHref" @close="close" v-if="drawer"></previewDoc>
|
|
76
77
|
</el-drawer>
|
|
@@ -252,8 +253,10 @@
|
|
|
252
253
|
} else {
|
|
253
254
|
if (isMobile()){
|
|
254
255
|
this.previewShowPopup = true
|
|
256
|
+
e.returnValue = false
|
|
255
257
|
} else {
|
|
256
258
|
this.drawer = true;
|
|
259
|
+
e.returnValue = false
|
|
257
260
|
}
|
|
258
261
|
}
|
|
259
262
|
// let url = ''
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<i class="iconfont guoran-shanchu"></i>
|
|
7
7
|
</section>
|
|
8
8
|
</div>
|
|
9
|
-
|
|
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,11 +20,11 @@
|
|
|
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)">
|
|
23
|
+
</template>
|
|
24
|
+
<!-- <div v-show="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
|
|
25
25
|
<video :src="url" controls width="100%;" height="98%"></video>
|
|
26
26
|
</div>
|
|
27
|
-
<
|
|
27
|
+
<div style="width: 100%;height: calc(100% - 70px)" v-show="fileType !== 'VIDEO' && fileType !== 'OTHER' && (url.includes('https://www') || url.includes('http://www'))">
|
|
28
28
|
<iframe class="preview_iframe"
|
|
29
29
|
:src="url"
|
|
30
30
|
width="100%"
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
scrolling="100%"
|
|
33
33
|
frameborder="no"
|
|
34
34
|
border="0"></iframe>
|
|
35
|
-
</
|
|
36
|
-
<
|
|
35
|
+
</div>
|
|
36
|
+
<div style="width: 100%;height: calc(100% - 70px)" v-show="fileType == 'OTHER' && !url.includes('https://www') && !url.includes('http://www')">
|
|
37
37
|
<iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
|
|
38
|
-
</
|
|
38
|
+
</div> -->
|
|
39
39
|
<div class="onload_btn" @click="downLoad">
|
|
40
40
|
下载
|
|
41
41
|
</div>
|