diff --git a/package.json b/package.json index 591cf5c..a13bc48 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@unocss/reset": "^0.61.9", "axios": "^1.7.3", "cnjm-postcss-px-to-viewport": "^1.0.1", + "echarts": "^5.6.0", "gsap": "^3.12.5", "jsdom": "^24.0.0", "lodash": "^4.17.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a469e2e..4d99557 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: cnjm-postcss-px-to-viewport: specifier: ^1.0.1 version: 1.0.1(postcss@8.4.40) + echarts: + specifier: ^5.6.0 + version: 5.6.0 gsap: specifier: ^3.12.5 version: 3.12.7 @@ -1962,6 +1965,9 @@ packages: duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} + echarts@5.6.0: + resolution: {integrity: sha512-oTbVTsXfKuEhxftHqL5xprgLoc0k7uScAwtryCgWF6hPYFLRwOUHiFmHGCBKP5NPFNkDVopOieyUqYGH8Fa3kA==} + electron-to-chromium@1.5.4: resolution: {integrity: sha512-orzA81VqLyIGUEA77YkVA1D+N+nNfl2isJVjjmOyrlxuooZ19ynb+dOlaDTqd/idKRS9lDCSBmtzM+kyCsMnkA==} @@ -3529,6 +3535,9 @@ packages: resolution: {integrity: sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==} engines: {node: '>=0.10.0'} + tslib@2.3.0: + resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} + tslib@2.6.3: resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} @@ -3820,6 +3829,9 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + zrender@5.6.1: + resolution: {integrity: sha512-OFXkDJKcrlx5su2XbzJvj/34Q3m6PvyCZkVPHGYpcCJ52ek4U/ymZyfuV1nKE23AyBJ51E/6Yr0mhZ7xGTO4ag==} + snapshots: '@ampproject/remapping@2.3.0': @@ -5944,6 +5956,11 @@ snapshots: duplexer@0.1.2: {} + echarts@5.6.0: + dependencies: + tslib: 2.3.0 + zrender: 5.6.1 + electron-to-chromium@1.5.4: {} end-of-stream@1.4.4: @@ -7579,6 +7596,8 @@ snapshots: dependencies: escape-string-regexp: 1.0.5 + tslib@2.3.0: {} + tslib@2.6.3: {} tsx@4.16.5: @@ -7896,3 +7915,7 @@ snapshots: fd-slicer: 1.1.0 yocto-queue@0.1.0: {} + + zrender@5.6.1: + dependencies: + tslib: 2.3.0 diff --git a/src/router/index.js b/src/router/index.js index 314277d..dc0b6b4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -17,36 +17,26 @@ const routes = [ // next() // } }, + { + path: '/stock-quote', + name: 'stock-quote', + component: () => import('@/views/stock-quote/index.vue'), + }, + { + path: '/historic-stock', + name: 'historic-stock', + component: () => import('@/views/historic-stock/index.vue'), + }, { path: '/contacts', name: 'contacts', component: () => import('@/views/contacts/index.vue'), }, - // { - // path: '/companyprofil', - // name: 'Companyprofil', - // component: () => import('@/views/companyprofil/index.vue'), - // }, - // { - // path: '/companyprofildetail', - // name: 'Companyprofildetail', - // component: () => import('@/views/companyprofildetail/index.vue'), - // }, - // { - // path: '/businessintroduction', - // name: 'Businessintroduction', - // component: () => import('@/views/businessintroduction/index.vue'), - // }, - // { - // path: '/investor', - // name: 'Investor', - // component: () => import('@/views/investor/index.vue'), - // }, - // { - // path: '/investorhandbook', - // name: 'Investorhandbook', - // component: () => import('@/views/investorhandbook/index.vue'), - // }, + { + path: '/email-alerts', + name: 'email-alerts', + component: () => import('@/views/email-alerts/index.vue'), + }, ]; const router = createRouter({ diff --git a/src/store/stock-quote/index.js b/src/store/stock-quote/index.js new file mode 100644 index 0000000..d4d514d --- /dev/null +++ b/src/store/stock-quote/index.js @@ -0,0 +1,20 @@ +import { ref } from 'vue' +import { createGlobalState, useLocalStorage } from '@vueuse/core' +import axios from 'axios' +export const useStockQuote = createGlobalState(() => { + const stockQuote = useLocalStorage('stockQuote', {}) +const getStockQuate= async()=>{ + const res = await axios.post('http://saas-test.szjixun.cn/api/chart/forward/test') + console.log('res',res); + stockQuote.value.Open=res.data.nodes?.[2]?.data?.[10] + stockQuote.value.Volume=res.data.nodes?.[1]?.data?.[21] + stockQuote.value.DayRange=[res.data.nodes?.[2]?.data?.[10],res.data.nodes?.[2]?.data?.[11]] + stockQuote.value.WeekRange=[res.data.nodes?.[2]?.data?.[31],res.data.nodes?.[1]?.data?.[30]] + + console.log('stockQuote.value',stockQuote.value); +} + return { + getStockQuate, + stockQuote + } +}) diff --git a/src/views/contacts/size1920/index.vue b/src/views/contacts/size1920/index.vue index 445717d..78c28b5 100644 --- a/src/views/contacts/size1920/index.vue +++ b/src/views/contacts/size1920/index.vue @@ -11,7 +11,7 @@ function copyEmail() {
-
+

Investor Contacts

FiEE Inc.
diff --git a/src/views/contacts/size375/index.vue b/src/views/contacts/size375/index.vue index 1bd47bc..d2e64bf 100644 --- a/src/views/contacts/size375/index.vue +++ b/src/views/contacts/size375/index.vue @@ -9,7 +9,7 @@ function copyEmail() {
-
+

Investor Contacts

FiEE Inc.
diff --git a/src/views/email-alerts/index.vue b/src/views/email-alerts/index.vue new file mode 100644 index 0000000..fd8f1ff --- /dev/null +++ b/src/views/email-alerts/index.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/src/views/email-alerts/size1440/index.vue b/src/views/email-alerts/size1440/index.vue new file mode 100644 index 0000000..427f3d2 --- /dev/null +++ b/src/views/email-alerts/size1440/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/email-alerts/size1920/index.vue b/src/views/email-alerts/size1920/index.vue new file mode 100644 index 0000000..8920fad --- /dev/null +++ b/src/views/email-alerts/size1920/index.vue @@ -0,0 +1,80 @@ + + + + + \ No newline at end of file diff --git a/src/views/email-alerts/size375/index.vue b/src/views/email-alerts/size375/index.vue new file mode 100644 index 0000000..f3e7467 --- /dev/null +++ b/src/views/email-alerts/size375/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/email-alerts/size768/index.vue b/src/views/email-alerts/size768/index.vue new file mode 100644 index 0000000..e7c4364 --- /dev/null +++ b/src/views/email-alerts/size768/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/historic-stock/index.vue b/src/views/historic-stock/index.vue new file mode 100644 index 0000000..cfc4094 --- /dev/null +++ b/src/views/historic-stock/index.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/src/views/historic-stock/size1440/index.vue b/src/views/historic-stock/size1440/index.vue new file mode 100644 index 0000000..427f3d2 --- /dev/null +++ b/src/views/historic-stock/size1440/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/historic-stock/size1920/index.vue b/src/views/historic-stock/size1920/index.vue new file mode 100644 index 0000000..a1c48ed --- /dev/null +++ b/src/views/historic-stock/size1920/index.vue @@ -0,0 +1,96 @@ + + + + + + diff --git a/src/views/historic-stock/size375/index.vue b/src/views/historic-stock/size375/index.vue new file mode 100644 index 0000000..f3e7467 --- /dev/null +++ b/src/views/historic-stock/size375/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/historic-stock/size768/index.vue b/src/views/historic-stock/size768/index.vue new file mode 100644 index 0000000..e7c4364 --- /dev/null +++ b/src/views/historic-stock/size768/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/stock-quote/index.vue b/src/views/stock-quote/index.vue new file mode 100644 index 0000000..cfc4094 --- /dev/null +++ b/src/views/stock-quote/index.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/src/views/stock-quote/size1440/index.vue b/src/views/stock-quote/size1440/index.vue new file mode 100644 index 0000000..427f3d2 --- /dev/null +++ b/src/views/stock-quote/size1440/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/stock-quote/size1920/index.vue b/src/views/stock-quote/size1920/index.vue new file mode 100644 index 0000000..0a8cc29 --- /dev/null +++ b/src/views/stock-quote/size1920/index.vue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/src/views/stock-quote/size375/index.vue b/src/views/stock-quote/size375/index.vue new file mode 100644 index 0000000..f3e7467 --- /dev/null +++ b/src/views/stock-quote/size375/index.vue @@ -0,0 +1,22 @@ + + + + + + diff --git a/src/views/stock-quote/size768/index.vue b/src/views/stock-quote/size768/index.vue new file mode 100644 index 0000000..e7c4364 --- /dev/null +++ b/src/views/stock-quote/size768/index.vue @@ -0,0 +1,22 @@ + + + + + +