mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 11:06:43 +08:00
用户使用手册
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<img :src="$assetsUrl + img" @click="prevImg" />
|
||||
<div class="detail">
|
||||
<img v-if="type === 'img'" :src="$assetsUrl + img" @click="prevImg" />
|
||||
<iframe v-if="type === 'pdf'" :src="$assetsUrl + img" frameborder="0" class="pdf"></iframe>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -17,6 +18,9 @@ export default {
|
||||
},
|
||||
title: {
|
||||
type: String
|
||||
},
|
||||
type: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -34,7 +38,15 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.detail {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.pdf {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user