update:增加页面底部信息,删除多余的文件
This commit is contained in:
@@ -15,9 +15,13 @@
|
||||
class="baseImg"
|
||||
/>
|
||||
</div>
|
||||
<div class="bottomContent">
|
||||
<p>本服务由浙江政务服务网、宁波市住房保障和房屋征收管理中心提供</p>
|
||||
<p>服务咨询热线:<b>0574-88086606</b></p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
// import pdf from "vue-pdf";
|
||||
import { mgop } from "@aligov/jssdk-mgop";
|
||||
@@ -29,7 +33,7 @@ export default {
|
||||
apidata: {},
|
||||
pic_width: "100%",
|
||||
pic_height: "100%",
|
||||
isloading: true,
|
||||
isloading: true
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -45,13 +49,11 @@ export default {
|
||||
type: "POST",
|
||||
data: {
|
||||
ticket:
|
||||
this.$route.params.ticket ||
|
||||
window.sessionStorage.getItem("ticket"),
|
||||
id: "C655515B-FD91-48F2-BD79-EAABAFB7077C",
|
||||
this.$route.query.ticket || window.sessionStorage.getItem("ticket"),
|
||||
id: this.$route.params.id
|
||||
},
|
||||
appKey: "es4b8zmz+2001833218+dehllx",
|
||||
onSuccess: (result) => {
|
||||
console.log("pdf.vue页面请求pdf文件:", result);
|
||||
onSuccess: result => {
|
||||
if (result.data && result.data.success == true) {
|
||||
console.log("result.data.data:", result.data.data);
|
||||
this.apidata = result.data.data;
|
||||
@@ -60,21 +62,21 @@ export default {
|
||||
this.isloading = false;
|
||||
}
|
||||
},
|
||||
onFail: (err) => {
|
||||
onFail: err => {
|
||||
console.log("用户无数据,不展示");
|
||||
},
|
||||
}
|
||||
});
|
||||
},
|
||||
saveImages() {
|
||||
ZWJSBridge.onReady(() => {
|
||||
console.log("初始化完成后,执行bridge方法-saveImages");
|
||||
ZWJSBridge.saveImage({
|
||||
url: this.apidata.pdf,
|
||||
url: this.apidata.pdf
|
||||
})
|
||||
.then((result) => {
|
||||
.then(result => {
|
||||
console.log("saveImage()成功:" + JSON.stringify(result));
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch(error => {
|
||||
console.log("saveImage()失败:" + JSON.stringify(result));
|
||||
console.log(error);
|
||||
});
|
||||
@@ -84,17 +86,17 @@ export default {
|
||||
ZWJSBridge.onReady(() => {
|
||||
console.log("初始化完成后,执行bridge方法-testdownload4");
|
||||
ZWJSBridge.openLink({
|
||||
url: this.apidata.pdf,
|
||||
url: this.apidata.pdf
|
||||
})
|
||||
.then((result) => {
|
||||
.then(result => {
|
||||
console.log("测试新开窗口():" + result);
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
@@ -118,4 +120,17 @@ export default {
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
}
|
||||
.bottomContent {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
font-size: 10px;
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
b {
|
||||
color: #5d8cbc;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user