HetongInfo.vue 897 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <template>
  3. <view class="phone-zjzgs-page">
  4. <view class="icon-title-navBar-box">
  5. <view @click="goUpPage" class="nav-bar-icon"></view>
  6. <text class="nav-bar-title">合同</text>
  7. </view>
  8. <template v-if="tId">
  9. <!-- <web-view class="dljt-pdf-view" :src="pdfUrl1" v-if="show"
  10. webview-styles="height: 50vh;margin-top: 75px"></web-view> -->
  11. </template>
  12. </view>
  13. </template>
  14. </template>
  15. <script setup>
  16. import {
  17. ref
  18. } from "vue";
  19. import * as httpApi from "@/api/hetong.js"
  20. import {
  21. onLoad
  22. } from "@dcloudio/uni-app"
  23. const tId = ref(null)
  24. const pdfUrl1 = ref(null)
  25. onLoad((options) => {
  26. tId.value = options.id;
  27. init();
  28. })
  29. function init() {
  30. httpApi.getHetongInfo({id: tId.value}).then(res => {
  31. pdfUrl1.value = res.pdfUrl
  32. })
  33. }
  34. function goUpPage() {
  35. uni.navigateBack()
  36. }
  37. </script>
  38. <style scoped>
  39. </style>