|
@@ -0,0 +1,48 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <template>
|
|
|
|
|
+ <view class="phone-zjzgs-page">
|
|
|
|
|
+ <view class="icon-title-navBar-box">
|
|
|
|
|
+ <view @click="goUpPage" class="nav-bar-icon"></view>
|
|
|
|
|
+ <text class="nav-bar-title">合同</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <template v-if="tId">
|
|
|
|
|
+ <!-- <web-view class="dljt-pdf-view" :src="pdfUrl1" v-if="show"
|
|
|
|
|
+ webview-styles="height: 50vh;margin-top: 75px"></web-view> -->
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </template>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script setup>
|
|
|
|
|
+import {
|
|
|
|
|
+ ref
|
|
|
|
|
+} from "vue";
|
|
|
|
|
+import * as httpApi from "@/api/hetong.js"
|
|
|
|
|
+import {
|
|
|
|
|
+ onLoad
|
|
|
|
|
+} from "@dcloudio/uni-app"
|
|
|
|
|
+
|
|
|
|
|
+const tId = ref(null)
|
|
|
|
|
+const pdfUrl1 = ref(null)
|
|
|
|
|
+
|
|
|
|
|
+onLoad((options) => {
|
|
|
|
|
+ tId.value = options.id;
|
|
|
|
|
+ init();
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+function init() {
|
|
|
|
|
+ httpApi.getHetongInfo({id: tId.value}).then(res => {
|
|
|
|
|
+ pdfUrl1.value = res.pdfUrl
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function goUpPage() {
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
|
+}
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+
|
|
|
|
|
+</style>
|