移动端日历页

This commit is contained in:
zzy
2023-04-14 18:15:01 +08:00
parent 62d03da068
commit a68f3c92b9
6 changed files with 282 additions and 15 deletions
+16 -13
View File
@@ -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)