diff --git a/components/login-prompt.vue b/components/login-prompt.vue
new file mode 100644
index 0000000..52d43b1
--- /dev/null
+++ b/components/login-prompt.vue
@@ -0,0 +1,134 @@
+
+
+
+
+ 登录以获得更好的体验
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/main.js b/main.js
index d1ffab4..a77da96 100644
--- a/main.js
+++ b/main.js
@@ -2,13 +2,15 @@
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
+import LoginPrompt from './components/login-prompt.vue'
+Vue.component('LoginPrompt', LoginPrompt)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
- ...App
+ ...App
})
app.$mount()
// #endif
@@ -17,6 +19,8 @@ app.$mount()
import { createSSRApp } from 'vue'
import App from './App.vue'
import { createI18n } from 'vue-i18n'
+import LoginPrompt from './components/login-prompt.vue'
+
// 导入语言文件
import en from './static/language/en.js'
@@ -47,7 +51,7 @@ function getCurrentLocale() {
})
console.log(language);
return language
- }else if (language.indexOf('zh') != -1) {
+ } else if (language.indexOf('zh') != -1) {
if (language.indexOf('CN') != -1) {
language = 'zh_CN'
uni.setStorageSync('languageData', {
@@ -89,23 +93,24 @@ function getCurrentLocale() {
}
// 创建 i18n 实例
const i18n = createI18n({
- locale: getCurrentLocale(),
- legacy: false, // 使用 Composition API 模式
- globalInjection: true, // 全局注入 $t 函数
- messages: {
- 'en': en,
- 'ms': ms,
- 'th': th,
- 'vi': vi,
- 'zh_CN': zh_CN,
- 'zh_HK': zh_HK
- }
+ locale: getCurrentLocale(),
+ legacy: false, // 使用 Composition API 模式
+ globalInjection: true, // 全局注入 $t 函数
+ messages: {
+ 'en': en,
+ 'ms': ms,
+ 'th': th,
+ 'vi': vi,
+ 'zh_CN': zh_CN,
+ 'zh_HK': zh_HK
+ }
})
export function createApp() {
- const app = createSSRApp(App)
- app.use(i18n)
- return {
- app
- }
+ const app = createSSRApp(App)
+ app.component('LoginPrompt', LoginPrompt)
+ app.use(i18n)
+ return {
+ app
+ }
}
// #endif
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..188963d
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "deepChartVueApp",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}
diff --git a/pages.json b/pages.json
index 7ef9ea2..bbaf73e 100644
--- a/pages.json
+++ b/pages.json
@@ -1,5 +1,90 @@
{
- "pages": [
+ "pages": [{
+ "path": "pages/start/startup/startup",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom",
+ "navigationBarBackgroundColor": "#000000",
+ "navigationBarTextStyle": "white",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+
+ }
+ },
+ {
+ "path": "pages/start/select/select",
+ "style": {
+ "navigationBarBackgroundColor": "#000000",
+ "navigationBarTitleText": "",
+ "animationType": "pop-in",
+ "navigationStyle": "custom",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+
+ }
+ },
+ {
+ "path": "pages/start/index/index",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+ }
+ },
+ {
+ "path": "pages/start/Registration/Registration",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+ }
+ },
+ {
+ "path": "pages/start/login/login",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+
+ }
+ },
+ {
+ "path": "pages/start/agreement/agreement",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+ }
+ },
+ {
+ "path": "pages/start/privacy/privacy",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+ }
+ },
+ {
+ "path": "pages/deepMate/deepMate",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom",
+ "disableSwipeBack": true,
+ "titleNView": false,
+ "bounce": false
+
+ }
+ },
{
"path": "pages/home/home",
"style": {
@@ -54,5 +139,11 @@
"app-plus": {
"background": "#efeff4"
}
+ },
+ "style": {
+ "app-plus": {
+ "animationType": "fade-in",
+ "animationDuration": 500
}
+}
}
\ No newline at end of file
diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue
new file mode 100644
index 0000000..37c174f
--- /dev/null
+++ b/pages/deepMate/deepMate.vue
@@ -0,0 +1,678 @@
+
+
+
+
+
+
+
+
+
+
+
+ Hi, 我是您的股市随身顾问~
+ 个股诊断、市场情绪解读,都可以找我。
+
+
+
+
+
+ 个股诊断
+ 市场情绪温度计
+ 买卖时机提示
+ 个股
+
+
+
+
+
+
+
+ 当前特斯拉该如何布局?
+ TSLA
+
+
+
+
+
+
+
+ - 您可能感兴趣 -
+
+
+
+ {{ topic.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ message.content }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 以上数据由AI生成,不作为最终投资建议,决策需独立!
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/start/Registration/Registration.vue b/pages/start/Registration/Registration.vue
new file mode 100644
index 0000000..85e5865
--- /dev/null
+++ b/pages/start/Registration/Registration.vue
@@ -0,0 +1,399 @@
+
+
+
+
+
+ <
+
+
+ 🎧
+
+
+
+
+
+
+
+ 欢迎来到 DeepChart
+
+
+
+ 邮箱
+ 手机号
+
+
+
+
+
+
+
+
+
+
+
+ 接受 用户协议 和
+ 隐私政策
+
+
+
+
+
+
+ 或者
+
+
+
+
+
+ 通过 Apple 继续
+
+
+
+
+ 通过 Google 继续
+
+
+
+
+
+ 已有账号?
+ 登录
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/start/agreement/agreement.vue b/pages/start/agreement/agreement.vue
new file mode 100644
index 0000000..ffc1640
--- /dev/null
+++ b/pages/start/agreement/agreement.vue
@@ -0,0 +1,13 @@
+
+
+ 用户协议
+
+
+
+
+
+
diff --git a/pages/start/components/login-prompt/login-prompt.vue b/pages/start/components/login-prompt/login-prompt.vue
new file mode 100644
index 0000000..52d43b1
--- /dev/null
+++ b/pages/start/components/login-prompt/login-prompt.vue
@@ -0,0 +1,134 @@
+
+
+
+
+ 登录以获得更好的体验
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/start/index/index.vue b/pages/start/index/index.vue
new file mode 100644
index 0000000..663a7d8
--- /dev/null
+++ b/pages/start/index/index.vue
@@ -0,0 +1,55 @@
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/start/login/login.vue b/pages/start/login/login.vue
new file mode 100644
index 0000000..0d8bd16
--- /dev/null
+++ b/pages/start/login/login.vue
@@ -0,0 +1,371 @@
+
+
+
+
+
+ <
+
+
+ 🎧
+
+
+
+
+
+
+
+ 登录
+
+
+
+ 邮箱/用户名
+ 手机号
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 或者
+
+
+
+
+
+ 通过 Apple 继续
+
+
+
+
+ 通过 Google 继续
+
+
+
+
+
+ 未注册账号?
+ 注册
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/start/privacy/privacy.vue b/pages/start/privacy/privacy.vue
new file mode 100644
index 0000000..2dd6442
--- /dev/null
+++ b/pages/start/privacy/privacy.vue
@@ -0,0 +1,13 @@
+
+
+ 隐私政策
+
+
+
+
+
+
diff --git a/pages/start/select/select.vue b/pages/start/select/select.vue
new file mode 100644
index 0000000..7b9a718
--- /dev/null
+++ b/pages/start/select/select.vue
@@ -0,0 +1,194 @@
+
+
+
+
+ DeepChart
+
+
+ 您的股市随身顾问
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/start/startup/startup.vue b/pages/start/startup/startup.vue
new file mode 100644
index 0000000..fb442c6
--- /dev/null
+++ b/pages/start/startup/startup.vue
@@ -0,0 +1,40 @@
+
+
+ DeepChart
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vue.config.js b/vue.config.js
new file mode 100644
index 0000000..6c65824
--- /dev/null
+++ b/vue.config.js
@@ -0,0 +1,18 @@
+// vue.config.js
+const webpack = require('webpack');
+
+module.exports = {
+ configureWebpack: {
+ plugins: [
+ new webpack.DefinePlugin({
+ '__VUE_I18N_FULL_INSTALL__': JSON.stringify(true),
+ '__VUE_I18N_LEGACY_API__': JSON.stringify(false),
+ '__INTLIFY_PROD_DEVTOOLS__': JSON.stringify(false)
+ })
+ ]
+ },
+ // 如果需要自定义其他 webpack 配置,可以在这里添加
+ chainWebpack: (config) => {
+ // 例如,你可以在这里添加其他配置
+ }
+}
\ No newline at end of file