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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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 @@ + + + + + \ 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