This commit is contained in:
若拙_233 2025-10-31 18:10:23 +08:00
parent 696920a4b8
commit 5545b6a8b5
4 changed files with 44 additions and 33 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -61,11 +61,14 @@ const loginInfo = ref({
initLoginInfo() initLoginInfo()
function initLoginInfo() { function initLoginInfo() {
const localLoginInfo = lStorage.get('loginInfo') if(localStorage.getItem('phone')){
if (localLoginInfo) { loginInfo.value.phone = localStorage.getItem('phone')
loginInfo.value.phone = localLoginInfo.phone || ''
loginInfo.value.password = localLoginInfo.password || ''
} }
// const localLoginInfo = lStorage.get('loginInfo')
// if (localLoginInfo) {
// loginInfo.value.phone = localLoginInfo.phone || ''
// loginInfo.value.password = localLoginInfo.password || ''
// }
} }
const loading = ref(false) const loading = ref(false)
@ -93,7 +96,7 @@ async function handleLogin() {
setToken(res.error.access_token) setToken(res.error.access_token)
if (query.redirect) { if (query.redirect) {
const path = query.redirect const path = query.redirect
console.log('path', { path, query }) localStorage.setItem('phone', phone)
Reflect.deleteProperty(query, 'redirect') Reflect.deleteProperty(query, 'redirect')
router.push({ path, query }) router.push({ path, query })
} else { } else {

View File

@ -511,8 +511,11 @@
<img style="width: 18px; height: 18px; transform: translate(0,2px);" src="@/assets/images/cost2.png" alt=""> <img style="width: 18px; height: 18px; transform: translate(0,2px);" src="@/assets/images/cost2.png" alt="">
文化价值评估 文化价值评估
</div> </div>
<div style="text-align: center; font-size: 30px; font-weight: bold; margin-top: 10px;">90</div> <div
<div style="text-align: center; color: #909399">综合评估</div> ref="culture"
style="text-align: center; font-size: 30px; font-weight: bold; margin-top: 10px; height: 95px;"
:style="{backgroundImage:`url(${backgroundImg5})`,backgroundSize: '167px 95px',backgroundPosition: 'center 2px',backgroundRepeat:'no-repeat'}"
></div>
<div style="margin-top: 20px;">活态传承系数评估<span style="font-weight: bold;">优秀</span></div> <div style="margin-top: 20px;">活态传承系数评估<span style="font-weight: bold;">优秀</span></div>
<div>纹样基因熵值评估<span style="font-weight: bold;">优秀</span></div> <div>纹样基因熵值评估<span style="font-weight: bold;">优秀</span></div>
</div> </div>
@ -521,7 +524,11 @@
<img style="width: 18px; height: 18px; transform: translate(0,2px);" src="@/assets/images/cost1.png" alt=""> <img style="width: 18px; height: 18px; transform: translate(0,2px);" src="@/assets/images/cost1.png" alt="">
文化价值风险控制 文化价值风险控制
</div> </div>
<div style="text-align: center; font-size: 30px; font-weight: bold; margin-top: 10px;">5</div> <div
ref="risk"
style="text-align: center; font-size: 30px; font-weight: bold; margin-top: 10px; height: 95px;"
:style="{backgroundImage:`url(${backgroundImg6})`,backgroundSize: '167px 95px',backgroundPosition: 'center 2px',backgroundRepeat:'no-repeat'}"
></div>
<div style="text-align: center; color: #909399">综合评估</div> <div style="text-align: center; color: #909399">综合评估</div>
<div style="margin-top: 20px;">风险调整系数<span style="font-weight: bold; color: #2EAE44; "></span></div> <div style="margin-top: 20px;">风险调整系数<span style="font-weight: bold; color: #2EAE44; "></span></div>
</div> </div>
@ -559,6 +566,8 @@ import backgroundImg1 from '@/assets/images/bgc.png';
import backgroundImg2 from '@/assets/images/bgy.png'; import backgroundImg2 from '@/assets/images/bgy.png';
import backgroundImg3 from '@/assets/images/bgg.png'; import backgroundImg3 from '@/assets/images/bgg.png';
import backgroundImg4 from '@/assets/images/circleg.png'; import backgroundImg4 from '@/assets/images/circleg.png';
import backgroundImg5 from '@/assets/images/circley.png';
import backgroundImg6 from '@/assets/images/circlec.png';
const status = ref('create') const status = ref('create')
const message = useMessage() const message = useMessage()
const modalFormRef = ref<FormInst | null>(null) const modalFormRef = ref<FormInst | null>(null)
@ -572,7 +581,7 @@ const steps = [
]; ];
const loading = ref(false) const loading = ref(false)
const actionUrl = 'https://value.cdcee.net/api/v1/upload/image' const actionUrl = 'https://value.cdcee.net/api/v1/upload/image'
const currentStep = ref(0) const currentStep = ref(4)
const historyList = ref([]) const historyList = ref([])
const modalForm = reactive({ const modalForm = reactive({
asset_name: '', asset_name: '',
@ -879,16 +888,16 @@ const fundingOptions2 = [
const circulationOptions = [ const circulationOptions = [
{ {
label:'孤品:全球唯一,不可复制(如特定版权、唯一实物)', label:'孤品:全球唯一,不可复制(如特定版权、唯一实物)',
value: '0', value: '孤品:全球唯一,不可复制(如特定版权、唯一实物)',
},{ },{
label:'限量:总发行份数 ≤100份', label:'限量:总发行份数 ≤100份',
value: '1', value: '限量:总发行份数 ≤100份',
},{ },{
label:'稀有:总发行份数∈[100, 1000]份,或二级市场流通率 < 5%', label:'稀有:总发行份数∈[100, 1000]份,或二级市场流通率 < 5%',
value: '2', value: '稀有:总发行份数∈[100, 1000]份,或二级市场流通率 < 5%',
},{ },{
label:'流通:总发行份数 >1000份或二级市场流通率 ≥ 5%', label:'流通:总发行份数 >1000份或二级市场流通率 ≥ 5%',
value: '3', value: '流通:总发行份数 >1000份或二级市场流通率 ≥ 5%',
}, },
] ]
const activityOptions = [ const activityOptions = [
@ -1031,14 +1040,7 @@ import { unref } from 'vue'
const router = useRouter() const router = useRouter()
const navToLogin = () => { const navToLogin = () => {
console.log(221) userStore.logout()
const currentRoute = unref(router.currentRoute)
const needRedirect =
!currentRoute.meta.requireAuth && !['/404', '/login'].includes(router.currentRoute.value.path)
router.replace({
path: '/login',
query: needRedirect ? { ...currentRoute.query, redirect: currentRoute.path } : {},
})
} }
const nextStep = () => { const nextStep = () => {
console.log(modalForm) console.log(modalForm)
@ -1072,8 +1074,8 @@ const submit = () => {
historical_evidence: { historical_evidence: {
artifacts: modalForm.historical_evidence[0], artifacts: modalForm.historical_evidence[0],
ancient_literature: modalForm.historical_evidence[1], ancient_literature: modalForm.historical_evidence[1],
inheritor_testimony: modalForm.historical_evidence[3], inheritor_testimony: modalForm.historical_evidence[2],
modern_research: modalForm.historical_evidence[4] modern_research: modalForm.historical_evidence[3]
}, },
patent_certificates: modalForm.patent_certificates.map(item => item.url), patent_certificates: modalForm.patent_certificates.map(item => item.url),
pattern_images: modalForm.pattern_images.map(item => item.url), pattern_images: modalForm.pattern_images.map(item => item.url),
@ -1151,8 +1153,10 @@ const selectTimeBox = (item) => {
selectedObj.value = item selectedObj.value = item
if(item.status == 'success'){ if(item.status == 'success'){
setTimeout(() => { setTimeout(() => {
getEcharts() getEcharts(economy.value, 75, '#16CEB9', '#6648FF')
}, 500); getEcharts(culture.value, 50, '#ffdd00', '#ffbb05')
getEcharts(risk.value, 5, '#5ad775', '#2fab43')
}, 0);
} }
} }
@ -1178,15 +1182,19 @@ const deleteValuations = (item) => {
} }
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import type { ECharts, EChartsOption } from 'echarts'; import type { ECharts, EChartsOption } from 'echarts';
import { useUserStore } from '@/store'
const userStore = useUserStore()
const economy = ref<HTMLDivElement | null>(null); const economy = ref<HTMLDivElement | null>(null);
const culture = ref<HTMLDivElement | null>(null);
const risk = ref<HTMLDivElement | null>(null);
// ECharts // ECharts
const chartInstance = ref<ECharts | null>(null); const chartInstance = ref<ECharts | null>(null);
const getEcharts= ()=>{ const getEcharts= (item, value, color1, color2)=>{
console.log(economy.value) console.log(item)
if (!economy.value) return; if (!item) return;
// //
chartInstance.value = echarts.init(economy.value); chartInstance.value = echarts.init(item);
// //
const chartOptions = ref<EChartsOption>({ const chartOptions = ref<EChartsOption>({
title: [{ title: [{
@ -1198,7 +1206,7 @@ const getEcharts= ()=>{
fontWeight: 100, fontWeight: 100,
} }
}, { }, {
text: '75', text: value,
top: '45%', top: '45%',
textStyle: { textStyle: {
fontSize: '26', fontSize: '26',
@ -1230,14 +1238,14 @@ const getEcharts= ()=>{
roundCap: true, roundCap: true,
barWidth: 90, barWidth: 90,
data: [{ data: [{
value: 75, value: value,
itemStyle: { itemStyle: {
color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{ color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
offset: 1, offset: 1,
color: '#16CEB9', color: color1,
},{ },{
offset: 0, offset: 0,
color: '#6648FF', color: color2,
}, },
]), ]),
} }