|
@@ -77,7 +77,7 @@
|
|
|
:src="'./pdf/web/viewer.html?file=' + attachment[0].fileRelativePath"
|
|
|
style="width: 100%; height: 1000px"
|
|
|
></iframe>
|
|
|
- <!-- <pdf
|
|
|
+ <pdf
|
|
|
v-else
|
|
|
ref="pdf"
|
|
|
:src="attachment[0].fileRelativePath"
|
|
@@ -86,7 +86,7 @@
|
|
|
:page="i"
|
|
|
>
|
|
|
{{ i / numPages }}
|
|
|
- </pdf> -->
|
|
|
+ </pdf>
|
|
|
</div>
|
|
|
<div v-if="!data.isPurchased && !Ispreview" @click="buy" class="buyBtn">
|
|
|
<!-- 点击购买 -->{{ $t("Key574") }}
|
|
@@ -133,6 +133,8 @@ import Payment from "@/components/payment/Payment";
|
|
|
import { updateWordPack } from "@/utils/i18n";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
|
+const Base64 = require("js-base64").Base64;
|
|
|
+
|
|
|
import {
|
|
|
materialdetail,
|
|
|
materialvisit,
|
|
@@ -345,13 +347,23 @@ export default {
|
|
|
}
|
|
|
this.changePrice(this.data.price * 1, 24, 16);
|
|
|
this.goods_detail_type = this.getimgurl(this.data);
|
|
|
+ // 3000的
|
|
|
// let path = `http://dcsapi.com/?k=71630476088128307289910&url=${this.attachment[0].fileUrlHttps}`;
|
|
|
// this.attachment[0].newpath = path;
|
|
|
-
|
|
|
- let path =
|
|
|
- "http://view.xdocin.com/xdoc?_xdoc=" +
|
|
|
- this.attachment[0].fileUrlHttps+"&printable=false&saveable=false"
|
|
|
- this.attachment[0].newpath = path;
|
|
|
+ // 400的
|
|
|
+ // let path =
|
|
|
+ // "http://view.xdocin.com/xdoc?_xdoc=" +
|
|
|
+ // this.attachment[0].fileUrlHttps+"&printable=false&saveable=false"
|
|
|
+ // this.attachment[0].newpath = path;
|
|
|
+ // var originUrl = `${this.attachment[0].fileUrlHttps}?fileId=${this.attachment[0].fileId}`; //要预览文件的访问地址
|
|
|
+ // var previewUrl =
|
|
|
+ // originUrl + `&fullfilename=${this.attachment[0].name}`;
|
|
|
+ // GC 找的免费的 需要后台部署
|
|
|
+ // let path =
|
|
|
+ // `http://127.0.0.1:8012/onlinePreview?url=` +
|
|
|
+ // encodeURIComponent(this.attachment[0].fileUrlHttps);
|
|
|
+ // console.log(path);
|
|
|
+ // this.attachment[0].newpath = path;
|
|
|
}
|
|
|
})
|
|
|
.catch((res) => {
|