This commit is contained in:
zzy
2023-04-17 14:33:48 +08:00
parent bee8aa0db9
commit 7da913090d
4 changed files with 37 additions and 21 deletions
+21 -13
View File
@@ -200,10 +200,10 @@ const getHomeIpoList = async () => {
// const res = await getDataFromId('home');
// const data = (res as any).map((item: any) => {
const data = (res as any).data.map((item: any) => {
let { stkCode, dateTime, status, ipoID, companyEngShort, companyChiShort, priceFinal, logoLink, priceMin, priceMax, listingDate, pricingDate } = item;
let { stkCode, dateTime, status, ipoID, companyEngFull, companyChiFull, priceFinal, logoLink, priceMin, priceMax, listingDate, pricingDate } = item;
return {
logolinks: logoLink,
title: companyEngShort + ";" + companyChiShort,
title: companyEngFull + ";" + companyChiFull,
status: status,
number: stkCode,
HKD: priceFinal ? priceFinal : priceMinMax(),
@@ -214,9 +214,9 @@ const getHomeIpoList = async () => {
}
function priceMinMax() {
if (priceMin && priceMax) {
return `${priceMin}-${priceMax}`
return `${priceMin} - ${priceMax}`
} else if (priceMin) {
return `${priceMin}-`
return `${priceMin} - `
} else if (priceMax) {
return ` -${priceMax}`
} else {
@@ -256,13 +256,13 @@ const getSearchIpoList = async (keyword: string) => {
throw ("222")
}
const data = (res as any).data.map((item: any) => {
let { stkCode, dateTime, status, ipoID, companyEngShort, companyChiShort, priceFinal, logoLink, priceMin, priceMax, listingDate, pricingDate } = item;
let { stkCode, dateTime, status, ipoID, companyEngFull, companyChiFull, priceFinal, logoLink, priceMin, priceMax, listingDate, pricingDate } = item;
return {
logolinks: logoLink,
title: companyEngShort + ";" + companyChiShort,
title: companyEngFull + ";" + companyChiFull,
status: status,
number: stkCode,
HKD: priceFinal ? priceFinal : priceMinMax(),
HKD: priceFinal ? priceFinal.toFixed(3) : priceMinMax(),
time: listingDate ? listingDate : pricingDate,
ipoID: ipoID,
price: priceFinal,
@@ -270,11 +270,11 @@ const getSearchIpoList = async (keyword: string) => {
}
function priceMinMax() {
if (priceMin && priceMax) {
return `${priceMin}-${priceMax}`
return `${priceMin.toFixed(3)} - ${priceMax.toFixed(3)}`
} else if (priceMin) {
return `${priceMin}-`
return `${priceMin.toFixed(3)} - `
} else if (priceMax) {
return ` -${priceMax}`
return ` -${priceMax.toFixed(3)}`
} else {
return " - "
}
@@ -753,14 +753,18 @@ const showMounth = (date: any) => {
}
}
:deep(.el-calendar-table){
width: 420px;
transform: translateX(-20px);
margin-top: 20px;
}
:deep(.el-button--small) {
border: none
}
:deep(.el-calendar__body) {
background-color: #e8ebee;
height: 385px;
}
:deep(.el-calendar) {
@@ -795,8 +799,12 @@ const showMounth = (date: any) => {
:deep(.el-calendar-table td) {
border: none;
text-align: center;
font-weight: 800;
}
:deep(.el-calendar-table thead th ){
padding:2px;
font-weight: 550px;
}
:deep(.el-calendar .el-calendar-table .el-calendar-day) {
padding: 0px;
text-align: center;