新增在线合同查看功能,更新协议页面以使用新接口

This commit is contained in:
Phoenix 2025-05-06 14:52:42 +08:00
parent 85a00eccc1
commit b8765918cd
2 changed files with 10 additions and 2 deletions

View File

@ -102,6 +102,14 @@ export async function contractView(data) {
data data
}) })
} }
export async function contractViewOnline(data) {
return await request( {
url:'/api/v1/contract/contract-view-online',
method: 'POST',
data
})
}
export async function createBuyOrderV3(data) { export async function createBuyOrderV3(data) {
return await request( { return await request( {

View File

@ -1,7 +1,7 @@
<script setup> <script setup>
import {showToast,showLoadingToast } from 'vant'; import {showToast,showLoadingToast } from 'vant';
import pdfView from './pdfView' import pdfView from './pdfView'
import { contractView } from "~/api/goods/index.js" import { contractViewOnline } from "~/api/goods/index.js"
import { signOnline } from "~/api/goods/index.js" import { signOnline } from "~/api/goods/index.js"
import { authStore } from "~/stores/auth/index.js" import { authStore } from "~/stores/auth/index.js"
import {useI18n} from "vue-i18n"; import {useI18n} from "vue-i18n";
@ -35,7 +35,7 @@ const toast=ref(false)
// PDF // PDF
const fetchPmblPdf = async () => { const fetchPmblPdf = async () => {
try { try {
const res = await contractView({ const res = await contractViewOnline({
auctionArtworkUuid: payment.value.auctionArtworkUuid, auctionArtworkUuid: payment.value.auctionArtworkUuid,
phone:userInfo.value.telNum, phone:userInfo.value.telNum,
registerType:1, registerType:1,