|
@@ -1,19 +1,38 @@
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
- <div class="pdf-container">
|
|
|
|
|
|
+ <div class="pdf-view-example j-contanter">
|
|
|
|
+ <div class="pdf-container j-main">
|
|
<iframe v-if="pdfUrl" :src="pdfUrl" />
|
|
<iframe v-if="pdfUrl" :src="pdfUrl" />
|
|
</div>
|
|
</div>
|
|
|
|
+ <div v-if="!getUserId" class="j-footer">
|
|
|
|
+ <a href="/jyapp/free/login?back=index&to=back&activity=bidCreditReportPreview" class="adsense-container">
|
|
|
|
+ <AdSingle
|
|
|
|
+ ad="app-credit-report-sample"
|
|
|
|
+ :show-tag="false"
|
|
|
|
+ :show-close-icon="false"
|
|
|
|
+ class="adsense-container"
|
|
|
|
+ />
|
|
|
|
+ </a>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
|
+import AdSingle from '@/components/ad/Ad'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'PdfViewExample',
|
|
name: 'PdfViewExample',
|
|
|
|
+ components: {
|
|
|
|
+ AdSingle
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- pdfUrl: 'https://jybx-webtest.jydev.jianyu360.com/shareFile/bidCreditReportFile/1e452a27575834907747949258e09893/%E4%B8%87%E8%BE%BE%E4%BF%A1%E6%81%AF%E8%82%A1%E4%BB%BD%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8.pdf'
|
|
|
|
|
|
+ pdfUrl: `${location.origin}/shareFile/bidCreditReportFile/1e452a27575834907747949258e09893/%E4%B8%87%E8%BE%BE%E4%BF%A1%E6%81%AF%E8%82%A1%E4%BB%BD%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8.pdf`
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters('user', ['getUserId'])
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
const { pdfUrl } = this.$route.query
|
|
const { pdfUrl } = this.$route.query
|
|
if (pdfUrl) {
|
|
if (pdfUrl) {
|