|
@@ -51,14 +51,21 @@
|
|
|
|
|
|
|
|
function goUpPage() {
|
|
function goUpPage() {
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- onLoad(() => {
|
|
|
|
|
- init()
|
|
|
|
|
|
|
+ onLoad(({id}) => {
|
|
|
|
|
+ init(id)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- function init() {
|
|
|
|
|
- httpApi.getHetongLast().then(res => {
|
|
|
|
|
|
|
+ function init(id) {
|
|
|
|
|
+
|
|
|
|
|
+ if (id) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '数据异常,请确认路径是否完整'
|
|
|
|
|
+ })
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ httpApi.getHetongLast({id}).then(res => {
|
|
|
info.value = res.data;
|
|
info.value = res.data;
|
|
|
pdfUrl1.value = `/hybrid/html/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`;
|
|
pdfUrl1.value = `/hybrid/html/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`;
|
|
|
// let pdfUrl2 = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`
|
|
// let pdfUrl2 = `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURIComponent(res.data.pdfUrl)}`
|