diff --git a/dist.zip b/dist.zip index 2bc6020..cbf4d48 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/router/routes.ts b/src/router/routes.ts index 1836905..5e58af4 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -48,6 +48,11 @@ export const staticRoutes: Array = [ name: "Xsearchipo", component: () => import("@/views/searchipo/index.vue") }, + { + path: "/IPOcalendar", + name: "Xsearchipo", + component: () => import("@/views/IpoCalendar/index.vue") + }, { path: "/404", name: "404", diff --git a/src/views/IpoCalendar/index.vue b/src/views/IpoCalendar/index.vue new file mode 100644 index 0000000..b1340a7 --- /dev/null +++ b/src/views/IpoCalendar/index.vue @@ -0,0 +1,241 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/dashBoard/index.vue b/src/views/dashBoard/index.vue index cd8d0e6..25398ea 100644 --- a/src/views/dashBoard/index.vue +++ b/src/views/dashBoard/index.vue @@ -258,17 +258,20 @@ const setBarRight = async () => { const setBar = async () => { const ipoID = localStorage.getItem('ipoID') const result = await getIpo(ipoID as string) - PublicOfferX1.value = (result as any).data[0].graph.map((item: any) => { - return moment(item.dateTime).format('MM/DD') - }) - PublicOfferY1.value = (result as any).data[0].graph.map((item: any) => { - return item.poApplicationQuantity / 1000000; - }); - PublicOfferZ1.value = (result as any).data[0].graph.map((item: any) => { - return (item.poApplicationQuantity) / item.poSharesInitial; - }); - - + // console.log(ipoID,(result as any).data[0]); + console.log(ipoID,(result as any).data[0]); + + // if((result as any).data[0].graph!=null){ + // PublicOfferX1.value = (result as any).data[0].graph.map((item: any) => { + // return moment(item.dateTime).format('MM/DD') + // }) + // PublicOfferY1.value = (result as any).data[0].graph.map((item: any) => { + // return item.poApplicationQuantity / 1000000; + // }); + // PublicOfferZ1.value = (result as any).data[0].graph.map((item: any) => { + // return (item.poApplicationQuantity) / item.poSharesInitial; + // }); + // } const amount = Number(initialpublic.value) + Number(initialinstituational.value); InitialAllocationPublic.value = Math.round(Number(initialpublic.value) / amount * 10000) / 100 + "%"; @@ -276,8 +279,8 @@ const setBar = async () => { init(); } onMounted(() => { - // setBarRight();//假的bar接口 - setBar()//真的接口 + // setBarRight(); + setBar() }) const getdatatime = async () => { const res = await getHomeIpo(1) diff --git a/src/views/login/components/Main.vue b/src/views/login/components/Main.vue index fd2b3e9..0bcfe71 100644 --- a/src/views/login/components/Main.vue +++ b/src/views/login/components/Main.vue @@ -107,12 +107,14 @@ const props = defineProps({ trading: "", logolinks: "", status: 0, - listingDate: "" + listingDate: "", + ipoID:0 } } } }) + const code22 = ref('') onUpdated(() => { var obj = { @@ -161,7 +163,9 @@ const cardDetail = (e: any) => { } //路由传参 const handleclick = (item: any) => { - localStorage.setItem('ipoID', item.number) + localStorage.setItem('ipoID', item.ipoID) + console.log(item); + localStorage.setItem('itemData', JSON.stringify(item)) router.push({ name: 'Xdashboard', diff --git a/src/views/login/modelComponents/Drawer.vue b/src/views/login/modelComponents/Drawer.vue index 55cb4ef..f5bfb60 100644 --- a/src/views/login/modelComponents/Drawer.vue +++ b/src/views/login/modelComponents/Drawer.vue @@ -62,10 +62,24 @@ export default {