wangxy vor 2 Wochen
Ursprung
Commit
afe0d98a53
2 geänderte Dateien mit 61 neuen und 0 gelöschten Zeilen
  1. 13 0
      api/hetong.js
  2. 48 0
      pages/admin/Hetong/HetongInfo.vue

+ 13 - 0
api/hetong.js

@@ -33,3 +33,16 @@ export function getHetongQianming(data = {}) {
   })
 }
 
+export function getHetongInfo(data = {}) {
+  return request({
+    url: '/app/guanliyuan/hetong/info',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+
+

+ 48 - 0
pages/admin/Hetong/HetongInfo.vue

@@ -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>