|
@@ -51,7 +51,9 @@
|
|
|
<div :class="data.isPurchased || Ispreview ? 'buy' : 'NObuy'">
|
|
|
<!--fileUrl需要改成安全地址 file_url_https -->
|
|
|
<iframe
|
|
|
- v-if="attachment[0].fileType != 'pdf'"
|
|
|
+ v-if="
|
|
|
+ attachment[0].fileType != 'pdf' && attachment[0].fileType != 'PDF'
|
|
|
+ "
|
|
|
:src="
|
|
|
'https://view.officeapps.live.com/op/view.aspx?src=' +
|
|
|
`${attachment[0].fileUrlHttps}`
|
|
@@ -59,6 +61,7 @@
|
|
|
width="100%"
|
|
|
height="1000px"
|
|
|
scrolling="no"
|
|
|
+ id="if"
|
|
|
>
|
|
|
</iframe>
|
|
|
<pdf
|
|
@@ -143,7 +146,7 @@ export default {
|
|
|
PymentShow: false, //支付订单弹窗
|
|
|
orderNumber: null, //订单号
|
|
|
IsDownload: false, //是否可以下载
|
|
|
- allList:null,
|
|
|
+ allList: null,
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
@@ -221,6 +224,7 @@ export default {
|
|
|
let loadingTask = pdf.createLoadingTask(
|
|
|
_this.attachment[0].fileRelativePath
|
|
|
);
|
|
|
+
|
|
|
loadingTask.promise
|
|
|
.then((pdf) => {
|
|
|
if (_this.data.isPurchased) {
|
|
@@ -293,7 +297,6 @@ export default {
|
|
|
isSelectForUpdate: this.Ispreview ? true : false,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log("请求了函数getdetail");
|
|
|
if (res.data.result) {
|
|
|
let index = res.data.result.tag.indexOf("downloadable");
|
|
|
if (index != -1) {
|
|
@@ -310,16 +313,20 @@ export default {
|
|
|
});
|
|
|
this.data.fileType = this.data.tag[this.data.tag.length - 1];
|
|
|
this.attachment = JSON.parse(res.data.result.attachment);
|
|
|
- this.changePrice(this.data.price);
|
|
|
this.loading = false;
|
|
|
- if (this.attachment[0].fileType == "pdf") {
|
|
|
+ if (
|
|
|
+ this.attachment[0].fileType == "pdf" ||
|
|
|
+ this.attachment[0].fileType == "PDF"
|
|
|
+ ) {
|
|
|
// this.attachment[0].fileRelativePath =
|
|
|
// process.env.VUE_APP_BASE_API + this.attachment[0].fileRelativePath;
|
|
|
this.attachment[0].fileRelativePath =
|
|
|
process.env.VUE_APP_PDF_API +
|
|
|
this.attachment[0].fileRelativePath;
|
|
|
+ console.log(this.attachment[0].fileRelativePath);
|
|
|
this.getNumPages();
|
|
|
}
|
|
|
+ this.changePrice(this.data.price);
|
|
|
}
|
|
|
})
|
|
|
.catch((res) => {
|
|
@@ -331,7 +338,7 @@ export default {
|
|
|
mounted() {
|
|
|
this.materialId = this.$route.query.id;
|
|
|
this.Ispreview = this.$route.query.type;
|
|
|
- this.allList = this.$route.query.allList
|
|
|
+ this.allList = this.$route.query.allList;
|
|
|
if (this.materialId) {
|
|
|
this.getdetail();
|
|
|
if (!this.Ispreview) {
|
|
@@ -344,6 +351,8 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ let node = document.getElementsByClassName("cui-ribbonTopBars")[0];
|
|
|
+ console.log(node);
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -381,7 +390,7 @@ export default {
|
|
|
}
|
|
|
.main {
|
|
|
min-height: 543px;
|
|
|
- background: #e5e5e5;
|
|
|
+ background: #f6f6f6;
|
|
|
padding-bottom: 20px;
|
|
|
padding-top: 30px;
|
|
|
position: relative;
|
|
@@ -501,4 +510,7 @@ export default {
|
|
|
padding: 30px 32px;
|
|
|
}
|
|
|
}
|
|
|
+.cui-ribbonTopBars {
|
|
|
+ display: none !important;
|
|
|
+}
|
|
|
</style>
|