This commit is contained in:
Phoenix 2025-04-11 09:16:21 +08:00
parent e003920201
commit 14d57febb0
3 changed files with 22 additions and 8 deletions

View File

@ -1 +1,2 @@
VITE_APP_API_BASE_URL=https://guozhan.szjixun.cn/api/ VITE_APP_API_BASE_URL=https://guozhan.szjixun.cn/api/
VITE_ERP_API_BASE_URL=https://erpapi.fontree.cn/

View File

@ -1 +1,2 @@
VITE_APP_API_BASE_URL=http://172.16.100.93:8004/api/ VITE_APP_API_BASE_URL=http://172.16.100.93:8004/api/
VITE_ERP_API_BASE_URL=http://114.218.158.24:9020/

View File

@ -2,22 +2,34 @@
import { ref,onMounted } from 'vue'; import { ref,onMounted } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { showImagePreview } from 'vant'; import { showImagePreview } from 'vant';
import axios from 'axios';
const info = ref({ const info = ref({
title: "家山树几棵", title: "",
image: "https://e-cdn.fontree.cn/exhibition/prod/default/国展报名/0737054f-b2c7-4c92-8e75-1100faca19da.png", image: "",
artist: "李甜甜02", artist: "",
size: "2400cmX54656cm", size: "",
year: "", year: "",
type: "中国画", type: "",
material: "宣纸", material: "",
appreciation: "" appreciation: ""
}); });
const route = useRoute(); const route = useRoute();
onMounted(() => { onMounted(() => {
if(route.query.info){ if(route.query.info){
info.value = JSON.parse(decodeURIComponent(route.query.info)); axios({
method: 'post',
url: `${import.meta.env.VITE_ERP_API_BASE_URL}exhibition/get-info-byUuid`,
data: {
uuid: decodeURIComponent(route.query.info)
} }
}).then(res => {
if(res.data.code === 0){
info.value = res.data.data;
}
});
}
}); });
</script> </script>
<template> <template>