移动端日历页
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user