|
@@ -1,13 +1,11 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <VuePdf @click="lookPdf" :src="src"></VuePdf>
|
|
|
|
|
|
|
+ <VuePdf @click="lookPdf" :src="src"></VuePdf>
|
|
|
<!-- <VuePdf @click="lookPdf" v-else :src="this_window.origin+item.url"></VuePdf> -->
|
|
<!-- <VuePdf @click="lookPdf" v-else :src="this_window.origin+item.url"></VuePdf> -->
|
|
|
<van-overlay :show="show" @click="onClickHide">
|
|
<van-overlay :show="show" @click="onClickHide">
|
|
|
<div class="imgsty">
|
|
<div class="imgsty">
|
|
|
-
|
|
|
|
|
- <VuePdf :src="src"></VuePdf>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <VuePdf :src="src"></VuePdf>
|
|
|
|
|
+ </div>
|
|
|
</van-overlay>
|
|
</van-overlay>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -16,27 +14,30 @@ import VuePdf from 'vue-pdf'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'SocAppIndex',
|
|
name: 'SocAppIndex',
|
|
|
- props:{
|
|
|
|
|
- src:{
|
|
|
|
|
- type:String,
|
|
|
|
|
- default:''
|
|
|
|
|
|
|
+ props: {
|
|
|
|
|
+ src: {
|
|
|
|
|
+ type: String,
|
|
|
|
|
+ default: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
VuePdf
|
|
VuePdf
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
- return {}
|
|
|
|
|
|
|
+ return {
|
|
|
|
|
+ show:false
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
mounted() {},
|
|
mounted() {},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
//查看pdf
|
|
//查看pdf
|
|
|
- lookPdf(){
|
|
|
|
|
- this.show = true
|
|
|
|
|
|
|
+ lookPdf() {
|
|
|
|
|
+
|
|
|
|
|
+ this.show = true
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
onClickHide() {
|
|
onClickHide() {
|
|
|
this.show = false
|
|
this.show = false
|
|
|
}
|
|
}
|
|
@@ -44,8 +45,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-.imgsty{
|
|
|
|
|
- position:absolute;
|
|
|
|
|
- top: 28%;
|
|
|
|
|
|
|
+.imgsty {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 28%;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|