This commit is contained in:
zzy 2023-04-18 17:04:41 +08:00
parent f5a85c78bd
commit 23fca53196
14 changed files with 152 additions and 114 deletions

View File

@ -37,18 +37,24 @@ const setFontSize = () => {
// } // }
// }, // },
// })
// onMounted(() => {
// window.addEventListener('resize', function () {
// isMobile.value = isMobileFn();
// if (isMobile.value) {
// window.location.reload()
// }
// })
// })
// watch(isMobile, (newValue) => {
// window.location.reload()
// }) // })
onMounted(() => { onMounted(() => {
window.addEventListener('resize', function () { window.addEventListener('resize', function () {
isMobile.value = isMobileFn(); var font = document.documentElement.clientWidth / 375;
if (isMobile.value) { document.documentElement.style.fontSize = font + "px";
window.location.reload()
}
}) })
}) })
watch(isMobile, (newValue) => {
window.location.reload()
})
</script> </script>
<style lang="scss" > <style lang="scss" >

View File

@ -138,7 +138,7 @@ export default {
DealPublicOfferStartDate:'Deal / Public Offer Start Date', DealPublicOfferStartDate:'Deal / Public Offer Start Date',
PublicOfferEndDate:'Public Offer End Date', PublicOfferEndDate:'Public Offer End Date',
ExpectedPriceDeterminationDate:'Expected Price Determination Date', ExpectedPriceDeterminationDate:'Expected Price Determination Date',
AllotmentAnnouncementSharePostingCertificateDispatchDate:"Allotment Announcement / Share Posting / \n Certificate Dispatch Date", AllotmentAnnouncementSharePostingCertificateDispatchDate:"Allotment Announcement / Share Posting / Certificate Dispatch Date",
SettlementInstructionsInputDate:'Settlement Instructions Input Date', SettlementInstructionsInputDate:'Settlement Instructions Input Date',
PredepositPlacingSharesDeliveryDate:'Pre-deposit / Placing Shares Delivery Date', PredepositPlacingSharesDeliveryDate:'Pre-deposit / Placing Shares Delivery Date',

View File

@ -117,7 +117,7 @@ const data = defineProps<{ info: obj[], title: string }>()
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
display: block; display: block;
margin-top: 10rem; margin-top: 10px;
:deep(.el-table) { :deep(.el-table) {
color: #355D80; color: #355D80;
@ -136,7 +136,7 @@ const data = defineProps<{ info: obj[], title: string }>()
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
margin: 0 15rem 0 15rem; margin: 0 15px 0 15px;
// overflow: hidden; // overflow: hidden;
} }
@ -177,7 +177,7 @@ const data = defineProps<{ info: obj[], title: string }>()
width: 200px; width: 200px;
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
margin-top: 10rem; margin-top: 10px;
} }
} }

View File

@ -70,7 +70,7 @@ onUnmounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
@media screen and (max-width: 768px){ @media screen and (max-width: 768px){
.headerWrap{ .headerWrap{
margin-left: 18rem; margin-left: 18px;
} }
} }
.langWrap { .langWrap {
@ -128,7 +128,7 @@ onUnmounted(() => {
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
display: block; display: block;
margin-top: 3rem; margin-top: 3px;
} }
} }
@ -138,8 +138,8 @@ onUnmounted(() => {
font-weight: bolder; font-weight: bolder;
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
font-size: 26rem; font-size: 26px;
transform: translateX(-60rem); transform: translateX(-60px);
} }
} }

View File

@ -33,7 +33,7 @@ const list = ref([proxy.$t('ipo.CompanyInformation'), proxy.$t('ipo.TypeofListin
margin-top: 0px; margin-top: 0px;
width: 100vw; width: 100vw;
overflow-x: scroll; overflow-x: scroll;
margin-left: 15rem; margin-left: 15px;
} }
a { a {

View File

@ -41,6 +41,7 @@ import { getDataFromId } from "@/api/mock/home"
import i18n from '@/locales' import i18n from '@/locales'
import { getCurrentInstance } from 'vue' import { getCurrentInstance } from 'vue'
import moment from 'moment'; import moment from 'moment';
const store = ipoStore(); const store = ipoStore();
const { proxy } = (getCurrentInstance() as any) const { proxy } = (getCurrentInstance() as any)
const activeName = ref('first') const activeName = ref('first')
@ -273,10 +274,10 @@ const Timetable = ref([
info2: "09:00", info2: "09:00",
table: { table: {
title: [ title: [
{ header: " ", content: "des",width: isMobel()?49: 43, align: "left" }, { header: " ", content: "des",width: isMobel()?50: 43, align: "left" },
{ width: 12 }, // { width: 12 }, //
{ header: proxy.$t('ipo.Timetable.Date'), content: "number", width: isMobel()?49: 43, align: "left" }, { header: proxy.$t('ipo.Timetable.Date'), content: "number", width: isMobel()?30: 20, align: "left" },
{ header: proxy.$t('ipo.Timetable.Time'), content: "persent", width: isMobel()?49: 43, align: "left" }], { header: proxy.$t('ipo.Timetable.Time'), content: "persent", width: isMobel()?22: 20, align: "left" }],
lists: [ lists: [
{ {
des: proxy.$t('ipo.Timetable.DealPublicOfferStartDate'), des: proxy.$t('ipo.Timetable.DealPublicOfferStartDate'),
@ -319,8 +320,8 @@ const Documents = ref([
info: "ipo.pdf", info: "ipo.pdf",
name2: proxy.$t('ipo.Documents.ListingDocumentChinese'), name2: proxy.$t('ipo.Documents.ListingDocumentChinese'),
info2: "ipo.pdf", info2: "ipo.pdf",
href: setDownLoad()[0], href: "",
href2: setDownLoad()[1] href2: ""
}, },
]) ])
const Transaction = ref([ const Transaction = ref([
@ -342,6 +343,8 @@ onMounted(
() => { () => {
data.value = JSON.parse(localStorage.getItem('itemData') as string) data.value = JSON.parse(localStorage.getItem('itemData') as string)
getreferencedata() getreferencedata()
setDownLoad()
// text(); // text();
} }
) )
@ -418,7 +421,7 @@ function setOfferings(mockRes: any) {
var dataObj = [ var dataObj = [
{ info: has_data(tradeCurrency) }, { info: has_data(tradeCurrency) },
{ info: keepTwoDecimalStr(downwardPriceFlex) }, { info: keepTwoDecimalStr(downwardPriceFlex) },
{ info: has_data(priceMin) + "-" + has_data(priceMax), info2: has_data(priceFinal) }, { info: has_data(priceMin.toFixed(3)) + "-" + has_data(priceMax.toFixed(3)), info2: has_data(priceFinal.toFixed(3)) },
{ info: has_data(boardLot) }, { info: has_data(boardLot) },
{ info: keepTwoDecimalStr(poReallocationCap) }, { info: keepTwoDecimalStr(poReallocationCap) },
{ info: "-", info2s: [has_data(ipoShares?.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,')), has_data(poSharesFinal?.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,')), has_data(ioOfferSharesFinal?.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,'))], table: clawback }, { info: "-", info2s: [has_data(ipoShares?.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,')), has_data(poSharesFinal?.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,')), has_data(ioOfferSharesFinal?.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,'))], table: clawback },
@ -750,13 +753,30 @@ function scrollTo(stron: string) {
} }
} }
function setDownLoad() { async function setDownLoad (){
const ipoID = localStorage.getItem('ipoID'); const ipoID = localStorage.getItem('ipoID');
const enHref = `/api/file/download/EN?ipoID=${ipoID}`; const res = await getIpo(ipoID as string)
const chinaHref = `/api/file/download/TC?ipoID=${ipoID}`; console.log('@@1',(res as any).data[0].pdfLink.cLink);
const enHref = `${(res as any).data[0].pdfLink.eLink}`;
const chinaHref = `${(res as any).data[0].pdfLink.cLink}`;
console.log(enHref);
Documents.value= [
{
name: proxy.$t('ipo.Documents.ListingDocumentEnglish'),
info: "ipo.pdf",
name2: proxy.$t('ipo.Documents.ListingDocumentChinese'),
info2: "ipo.pdf",
href: enHref,
href2:chinaHref
},
]
// return store.$state.locale == 1 ? enHref : chinaHref // return store.$state.locale == 1 ? enHref : chinaHref
return [enHref, chinaHref]; // return [enHref, chinaHref] as any;
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// .login2 { // .login2 {
@ -779,7 +799,7 @@ function setDownLoad() {
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
padding-top: 10rem; padding-top: 10px;
width: 100vw; width: 100vw;
overflow: hidden; overflow: hidden;
} }

View File

@ -99,26 +99,26 @@ const backRouter = () => {
.right-top { .right-top {
display: flex; display: flex;
// margin-left: 40px; // margin-left: 40px;
margin-top: 20rem; margin-top: 20px;
transform: translateX(-10rem); transform: translateX(-10px);
.top-title { .top-title {
text-align: center; text-align: center;
display: inline-block; display: inline-block;
font-size: 25rem; font-size: 25px;
color: #ffffff; color: #ffffff;
margin-left: 10px; margin-left: 10px;
} }
.icon1 { .icon1 {
width: 25rem; width: 25px;
height: 25rem; height: 25px;
margin-left: 30rem; margin-left: 30px;
} }
.icon2 { .icon2 {
width: 25rem; width: 25px;
height: 25rem; height: 25px;
margin-left: 10rem; margin-left: 10px;
} }
} }
@ -129,9 +129,9 @@ const backRouter = () => {
margin-top: 25px; margin-top: 25px;
// margin-left: 20px; // margin-left: 20px;
// transform: translateX(-50rem); // transform: translateX(-50px);
.month { .month {
font-size: 25rem; font-size: 25px;
color: #000000; color: #000000;
font-weight: bold; font-weight: bold;
} }
@ -143,7 +143,7 @@ const backRouter = () => {
width: 90vw; width: 90vw;
background-color: #ffffff; background-color: #ffffff;
height: 40vh; height: 40vh;
margin-top: 12vh; margin-top: 20vh;
// margin-left: 20px; // margin-left: 20px;
// text-align: center; // text-align: center;
// line-height: 500px; // line-height: 500px;
@ -195,16 +195,16 @@ const backRouter = () => {
:deep(.el-calendar__body) { :deep(.el-calendar__body) {
background-color: #e8ebee; background-color: #e8ebee;
height: 40vh; height: 50vh;
} }
:deep(.el-calendar-table thead th){ :deep(.el-calendar-table thead th){
padding:2px 0; padding:2px 0;
font-weight: 550; font-weight: 550;
} }
:deep(.el-calendar-table){ :deep(.el-calendar-table){
margin-top: 20rem; margin-top: 20px;
width: 375rem; width: 375px;
transform: translateX(-19rem); transform: translateX(-19px);
} }
:deep(.el-calendar) { :deep(.el-calendar) {
width: 100vw; width: 100vw;

View File

@ -104,6 +104,12 @@ const drawShow = () => {
top:50px; top:50px;
left: -50px; left: -50px;
} }
.left-right{
display: flex;
justify-content: space-between;
width: 6vw;
margin-right: 10rem;
}
.headerWrap { .headerWrap {
display: flex; display: flex;
@ -117,13 +123,13 @@ const drawShow = () => {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 40vw; width: 40vw;
margin-left: 15rem; margin-left: 15px;
} }
.left-right{ .left-right{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 25vw; width: 25vw;
margin-right: 10rem; margin-right: 10px;
} }
} }
.left { .left {
@ -138,7 +144,7 @@ const drawShow = () => {
display: none; display: none;
@media screen and (max-width: 768px){ @media screen and (max-width: 768px){
display: block; display: block;
margin-top: 3rem; margin-top: 3px;
} }
} }
span { span {
@ -146,7 +152,7 @@ const drawShow = () => {
font-size: 45px; font-size: 45px;
font-weight: 900; font-weight: 900;
@media screen and (max-width: 768px){ @media screen and (max-width: 768px){
font-size: 26rem; font-size: 26px;
} }
} }
@ -172,14 +178,14 @@ const drawShow = () => {
font-size: 20px; font-size: 20px;
@media screen and (max-width: 768px){ @media screen and (max-width: 768px){
width: 100vw; width: 100vw;
margin-top: 10rem; margin-top: 10px;
transform: translateX(-10rem); transform: translateX(-10px);
} }
.time { .time {
color: #435F70; color: #435F70;
@media screen and (max-width: 768px){ @media screen and (max-width: 768px){
float: right; float: right;
font-size: 15rem; font-size: 15px;
} }
} }
@ -196,9 +202,9 @@ const drawShow = () => {
background-color: #E86666; background-color: #E86666;
} }
@media screen and (max-width: 768px){ @media screen and (max-width: 768px){
font-size: 15rem; font-size: 15px;
margin-top: 13rem; margin-top: 13px;
transform: translateX(200rem); transform: translateX(200px);
} }
} }
} }

View File

@ -262,10 +262,10 @@ const handleclick = (item: any) => {
.bigbox { .bigbox {
width: 76vw; width: 76vw;
min-height: 310rem; min-height: 310px;
height:fit-content; height:fit-content;
margin-top: 14rem !important; margin-top: 14px !important;
cursor: pointer; cursor: pointer;
} }

View File

@ -668,7 +668,7 @@ const showMounth = (date: any) => {
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
width: 100vw; width: 100vw;
transform: translateY(-30rem); transform: translateY(-30px);
} }
.content { .content {
@ -899,7 +899,7 @@ const showMounth = (date: any) => {
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
width: 80vw; width: 80vw;
transform: translateX(-6vw); transform: translateX(-6vw);
font-size: 15rem; font-size: 15px;
} }
} }
@ -911,7 +911,7 @@ const showMounth = (date: any) => {
font-size: 23px; font-size: 23px;
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
font-size: 20rem; font-size: 20px;
} }
// } // }
@ -929,7 +929,7 @@ const showMounth = (date: any) => {
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
width: 80vw; width: 80vw;
transform: translateX(-6vw); transform: translateX(-6vw);
font-size: 16rem; font-size: 16px;
} }
} }
@ -940,7 +940,7 @@ const showMounth = (date: any) => {
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
width: 80vw; width: 80vw;
transform: translateX(-6vw); transform: translateX(-6vw);
font-size: 15rem; font-size: 15px;
} }
} }
@ -952,9 +952,9 @@ const showMounth = (date: any) => {
font-size: 18px; font-size: 18px;
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
font-size: 14rem; font-size: 14px;
transform: translateY(-2rem); transform: translateY(-2px);
margin-right: 4rem; margin-right: 4px;
} }
} }
@ -980,7 +980,7 @@ const showMounth = (date: any) => {
font-family: 'Calibri'; font-family: 'Calibri';
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
font-size: 20rem; font-size: 20px;
} }
} }
@ -1006,7 +1006,7 @@ const showMounth = (date: any) => {
cursor: default; cursor: default;
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
font-size: 21rem; font-size: 21px;
} }
} }
} }
@ -1096,7 +1096,7 @@ const showMounth = (date: any) => {
font-weight: bold; font-weight: bold;
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
font-size: 20rem; font-size: 20px;
font-weight: 400; font-weight: 400;
} }
} }

View File

@ -293,7 +293,7 @@ const handleclick = (item: any) => {
// min-height: 310rem; // min-height: 310rem;
// height: fit-content; // height: fit-content;
margin-top: 14rem !important; margin-top: 14px !important;
cursor: pointer; cursor: pointer;
} }

View File

@ -20,7 +20,6 @@
<div class="dropdown"> <div class="dropdown">
<img src="@/assets/1x/source4.png" class="first " @click="handleShowCup"> <img src="@/assets/1x/source4.png" class="first " @click="handleShowCup">
</div> </div>
<div class="dropdown1"> <div class="dropdown1">
@ -206,7 +205,7 @@ const getHomeIpoList = async () => {
title: companyEngFull + ";" + companyChiFull, title: companyEngFull + ";" + companyChiFull,
status: status, status: status,
number: stkCode, number: stkCode,
HKD: priceFinal ? priceFinal : priceMinMax(), HKD: priceFinal.toFixed(3) ? priceFinal.toFixed(3) : priceMinMax(),
time: listingDate ? listingDate : pricingDate, time: listingDate ? listingDate : pricingDate,
ipoID: ipoID, ipoID: ipoID,
price: priceFinal, price: priceFinal,
@ -214,11 +213,11 @@ const getHomeIpoList = async () => {
} }
function priceMinMax() { function priceMinMax() {
if (priceMin && priceMax) { if (priceMin && priceMax) {
return `${priceMin} - ${priceMax}` return `${priceMin.toFixed(3)} - ${priceMax.toFixed(3)}`
} else if (priceMin) { } else if (priceMin) {
return `${priceMin} - ` return `${priceMin.toFixed(3)} - `
} else if (priceMax) { } else if (priceMax) {
return ` -${priceMax}` return ` -${priceMax.toFixed(3)}`
} else { } else {
return " - " return " - "
} }
@ -872,18 +871,18 @@ const showMounth = (date: any) => {
padding: 0; padding: 0;
} }
.header{ .header{
height: 60rem; height: 60px;
.menuicon{ .menuicon{
display: block ; display: block ;
margin-left: 5rem; margin-left: 5px;
width: 25rem; width: 25px;
height: 20rem; height: 20px;
} }
.menu{ .menu{
img { img {
width: 25rem; width: 25px;
height: 20rem; height: 20px;
} }
@ -893,14 +892,21 @@ const showMounth = (date: any) => {
display: none; display: none;
} }
.first{ .first{
width: 24rem; width: 24px;
height: 28rem; height: 28px;
margin-top: 6rem; margin-top: 6px;
margin-left: 10rem; margin-left: 10px;
} }
} }
} }
// :deep(.el-drawer__body){
// background-color: red;
// width: 80vw;
// }
// :deep(.el-overlay){
// background-color: green;
// }
} }
</style> </style>
@ -926,11 +932,11 @@ const showMounth = (date: any) => {
.header .el-input__wrapper { .header .el-input__wrapper {
margin-top: 0; margin-top: 0;
margin-left: 0; margin-left: 0;
padding-left: 50rem; padding-left: 50px;
width: 61vw; width: 61vw;
height: 30rem; height: 30px;
border-radius: 25rem; border-radius: 25px;
font-size: 16rem; font-size: 16px;
border: none; border: none;
outline: none; outline: none;
@ -938,14 +944,14 @@ const showMounth = (date: any) => {
.el-input__inner { .el-input__inner {
margin: -35rem; margin: -35px;
padding: 0; padding: 0;
} }
.imgSearch123 { .imgSearch123 {
width: 15rem; width: 15px;
height: 15rem; height: 15px;
transform: translateX(-7rem); transform: translateX(-7px);
} }
} }
</style> </style>

View File

@ -112,14 +112,14 @@ const handleLang3 = () => {
<style lang="scss" scoped> <style lang="scss" scoped>
.wrapddd { .wrapddd {
width: 80vw; width: 80vw;
transform: translateX(-20rem); transform: translateX(-20px);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.imgWrap22222 { .imgWrap22222 {
margin-top: 20rem; margin-top: 20px;
width: 25rem; width: 25px;
height: 20rem; height: 20px;
margin-left: 15rem; margin-left: 15px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -128,16 +128,16 @@ const handleLang3 = () => {
.nav { .nav {
height: fit-content; height: fit-content;
margin-top: 20rem; margin-top: 20px;
width: 100%; width: 100%;
>li { >li {
display: flex; display: flex;
align-items: center; align-items: center;
justify-self: center; justify-self: center;
min-height: 50rem; min-height: 50px;
padding-left: 15rem; padding-left: 15px;
margin-top: 10rem; margin-top: 10px;
background-color: #B4C0C7; background-color: #B4C0C7;
&.active { &.active {
@ -145,13 +145,13 @@ const handleLang3 = () => {
} }
img { img {
width: 22rem; width: 22px;
height: 22rem; height: 22px;
} }
span { span {
margin-left: 25rem; margin-left: 25px;
font-size: 20rem; font-size: 20px;
font-weight: 700; font-weight: 700;
color: #1C3F56; color: #1C3F56;
} }
@ -163,20 +163,20 @@ const handleLang3 = () => {
height: fit-content; height: fit-content;
.lang { .lang {
margin-left: -90rem; margin-left: -90px;
color: #1C3F56; color: #1C3F56;
font-size: 18rem; font-size: 18px;
>li { >li {
line-height: 24rem; line-height: 24px;
} }
} }
.report { .report {
margin-left: -120rem; margin-left: -120px;
span { span {
margin-right: 10rem; margin-right: 10px;
} }
} }
@ -187,9 +187,9 @@ const handleLang3 = () => {
width: 100%; width: 100%;
.arrow { .arrow {
width: 12rem; width: 12px;
height: 19rem; height: 19px;
margin-right: 14rem; margin-right: 14px;
img { img {
width: 100%; width: 100%;
@ -201,7 +201,7 @@ const handleLang3 = () => {
span { span {
display: inline-block; display: inline-block;
transform: translateY(-3rem); transform: translateY(-3px);
} }

View File

@ -60,7 +60,7 @@ export default defineConfig((mode: ConfigEnv) => {
// 配置代理服务器 // 配置代理服务器
proxy: { proxy: {
"/api": { "/api": {
target: "http://192.168.2.10:8080", target: "http://192.168.2.6:8080",
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""), rewrite: (path) => path.replace(/^\/api/, ""),
}, },