diff --git a/README.md b/README.md
index 39a2a19..47e8d68 100644
--- a/README.md
+++ b/README.md
@@ -5,3 +5,4 @@
fini项目
+test
\ No newline at end of file
diff --git a/dist.zip b/dist.zip
deleted file mode 100644
index 8ce2a27..0000000
Binary files a/dist.zip and /dev/null differ
diff --git a/src/App.vue b/src/App.vue
index fd03273..e9b332c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -11,6 +11,8 @@ import { defineComponent, ref, onBeforeMount, onMounted, watch ,provide} from 'v
import { ElConfigProvider } from 'element-plus'
import { ipoStore } from "@/stores/ipo"
import router from './router'
+import { getCurrentInstance} from 'vue'
+const { proxy } = (getCurrentInstance() as any)
const showRouter=ref(true)
const reflashRouter=()=>{
showRouter.value=false;
@@ -22,10 +24,28 @@ provide('reflashRouter',reflashRouter);
function isMobileFn() {
return 768 >= document.documentElement.clientWidth;//判断当前浏览器窗口的宽度是否小于等于768像素,如果是返回true
}
+
const isMobile = ref(isMobileFn() ? true : false);
const store = ipoStore();
onBeforeMount(() => {
setFontSize()
+})
+onMounted(()=>{
+ const langHref = window.location.href.split("home")[1]
+ if (langHref == '?lang=en') {
+ proxy.$i18n.locale = 'en'
+ store.setLocale(1)
+ } else if (langHref == '?lang=tc') {
+ proxy.$i18n.locale = 'zhCt'
+ store.setLocale(2)
+ } else if (langHref == '?lang=sc') {
+ proxy.$i18n.locale = 'zhCn'
+
+ store.setLocale(3)
+ }
+ reflashRouter()
+
+
})
const setFontSize = () => {
// 以ipone6手机为例,1rem=1px; 以后就在ipone6手机模拟器开发,把rem当作px用就行了
diff --git a/src/api/reqIpo/ipo.ts b/src/api/reqIpo/ipo.ts
index c59723c..5fc79b5 100644
--- a/src/api/reqIpo/ipo.ts
+++ b/src/api/reqIpo/ipo.ts
@@ -11,7 +11,8 @@ enum Api {
EventData="/api/ipos/listingData",
TypeofList="/api/ipo/refdata/typeOfListing",
searchUrl="/api/ipo/refdata/search",
- selectUrl="/api/ipo/refdata/filter"
+ selectUrl="/api/ipo/refdata/filter",
+ findAllListingDate="/api/ipo/refdata/findAllListingDate"
}
//获取ipo详情页的数据
export const getIpo = (ipoID:string) => {
@@ -37,6 +38,9 @@ export const getTypeofListing = (ipoID:string) => {
export const getSearchListing = (keyword:string) => {
return request.get(Api.searchUrl+`?keyword=${keyword}`);
};
+export const getDate = () => {
+ return request.get(Api.findAllListingDate);
+};
type selectObj={
status?:string|string[]
tradeCurrency?:string|string[]
@@ -78,4 +82,4 @@ export const getSelectList = (body:selectObj) => {
const status=body.status;
// var obj=JSON.stringify({status})
return request.post(Api.selectUrl,body);
-};
\ No newline at end of file
+};
diff --git a/src/assets/1x/1x/source9.png b/src/assets/1x/1x/source9.png
index 1dc606f..1d2e7e8 100644
Binary files a/src/assets/1x/1x/source9.png and b/src/assets/1x/1x/source9.png differ
diff --git a/src/assets/1x/source11.png b/src/assets/1x/source11.png
index 7b97e92..caba410 100644
Binary files a/src/assets/1x/source11.png and b/src/assets/1x/source11.png differ
diff --git a/src/assets/1x/source12.png b/src/assets/1x/source12.png
index 38cd2c3..b31110d 100644
Binary files a/src/assets/1x/source12.png and b/src/assets/1x/source12.png differ
diff --git a/src/assets/1x/source14.png b/src/assets/1x/source14.png
new file mode 100644
index 0000000..d1cff71
Binary files /dev/null and b/src/assets/1x/source14.png differ
diff --git a/src/assets/1x/source15.png b/src/assets/1x/source15.png
new file mode 100644
index 0000000..38cd2c3
Binary files /dev/null and b/src/assets/1x/source15.png differ
diff --git a/src/locales/en.ts b/src/locales/en.ts
index 8dbbee4..c2eb3f7 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -1,6 +1,10 @@
export default {
home:{
IPOcalendar:'IPO Calendar',
+ Languages:'Languages',
+ English:'English',
+ ChineseTraditional:'Chinese Traditional',
+ ChineseSimplified:'Chinese Simplified',
offerpricerange:'Offer Price Range',
finalofferprice:'Final Offer Price',
CommencementofTradeDate:'Commencement of Trade Date',
@@ -33,7 +37,9 @@ export default {
},
HongKongDollar:'Hong Kong Dollar',
ChineseYuan:'Chinese Yuan',
- UnitedStatesDollar:'United States Dollar'
+ UnitedStatesDollar:'United States Dollar',
+ noevent:'No event',
+ Norelevantselectdata:'No relevant select data'
},
dashboard:{
Home:'Home',
diff --git a/src/locales/zh-cn.ts b/src/locales/zh-cn.ts
index a164b61..da6c8ba 100644
--- a/src/locales/zh-cn.ts
+++ b/src/locales/zh-cn.ts
@@ -1,6 +1,7 @@
export default {
home:{
IPOcalendar:'首次公开招股日历',
+ Languages:'语言',
offerpricerange:'发售价范围',
finalofferprice:'最终发售价',
CommencementofTradeDate:'交易开始日期',
@@ -33,7 +34,9 @@ export default {
},
HongKongDollar:'港元',
ChineseYuan:'人民币',
- UnitedStatesDollar:'美元'
+ UnitedStatesDollar:'美元',
+ noevent:'无事件',
+ Norelevantselectdata:'无相关选择数据'
},
dashboard:{
Home:'主页',
diff --git a/src/locales/zh-ct.ts b/src/locales/zh-ct.ts
index 67b5a71..5f23133 100644
--- a/src/locales/zh-ct.ts
+++ b/src/locales/zh-ct.ts
@@ -1,6 +1,7 @@
export default {
home:{
IPOcalendar:'首次公開招股日曆',
+ Languages:'語言',
offerpricerange:'發售價範圍',
finalofferprice:'最終發售價',
CommencementofTradeDate:'交易開始日期',
@@ -33,7 +34,9 @@ export default {
},
HongKongDollar:'港元',
ChineseYuan:'人民幣',
- UnitedStatesDollar:'美元'
+ UnitedStatesDollar:'美元',
+ noevent:'無事件',
+ Norelevantselectdata:'無相關選擇數據'
},
dashboard:{
Home:'主頁',
diff --git a/src/router/routes.ts b/src/router/routes.ts
index 12ba7f7..464d8f3 100644
--- a/src/router/routes.ts
+++ b/src/router/routes.ts
@@ -30,7 +30,7 @@ export const staticRoutes: Array = [
},
{
- path: "/home/en",
+ path: "/home?lang=en",
name: "XLogin1",
component: () => import("@/views/login/index.vue"),
meta: {
@@ -38,7 +38,7 @@ export const staticRoutes: Array = [
},
},
{
- path: "/home/tc",
+ path: "/home?lang=tc",
name: "XLogin2",
component: () => import("@/views/login/index.vue"),
meta: {
@@ -46,7 +46,7 @@ export const staticRoutes: Array = [
},
},
{
- path: "/home/sc",
+ path: "/home?lang=sc",
name: "XLogin3",
component: () => import("@/views/login/index.vue"),
meta: {
diff --git a/src/views/IPO/components/IpoHeader.vue b/src/views/IPO/components/IpoHeader.vue
index c224e28..6b212a0 100644
--- a/src/views/IPO/components/IpoHeader.vue
+++ b/src/views/IPO/components/IpoHeader.vue
@@ -9,14 +9,16 @@
{{ $t(i18n.global.t('dashboard.IPOReferenceData')) }}
-
-
+
+
+
+ {{ data.day.split('-').slice(2).join() }}
+
+
+
+
@@ -46,7 +53,7 @@ import moment from "moment"
import i18n from '@/locales'
import { getCurrentInstance } from 'vue'
import Event from '@/views/login/components/Event.vue';
-import { getEventData, getSearchListing } from "@/api/reqIpo/ipo";
+import { getEventData, getSearchListing,getDate } from "@/api/reqIpo/ipo";
import { getDataFromId } from "@/api/mock/home"
const { proxy } = (getCurrentInstance() as any)
const dayValue = ref(new Date())
@@ -60,6 +67,12 @@ watch(dayValue, async (ne, ol) => {
const result = await getEventData(day);
setEventdata((result as any).data)
})
+const dayTime = ref()
+const getcalendar = async ()=>{
+ const res = await getDate()
+ dayTime.value = (res as any).data
+ console.log(dayTime.value);
+}
const showMounth = (date: any) => {
const arr = date.split(" ")
if (arr.length == 3) {
@@ -72,6 +85,7 @@ onMounted(async () => {
var day = moment(Date.now()).format("YYYY-MM-DD")
const result = await getEventData(day);
setEventdata((result as any).data)
+ getcalendar()
})
const setEventdata = (EventD: any) => {
Eventdata.value = EventD.map((item: any) => {
@@ -92,6 +106,18 @@ const backRouter = () => {