From 27d64dbd72827998139017fde110a282a24a2841 Mon Sep 17 00:00:00 2001 From: xuli3099 Date: Wed, 20 Aug 2025 11:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customShowModal.vue | 163 +++++++++++++++++++++++++++++ src/main.js | 8 +- src/pages/login/login.vue | 2 +- src/pages/userinfo/userinfo.vue | 35 ++++++- src/pages/userinfo/version.vue | 9 +- 5 files changed, 208 insertions(+), 9 deletions(-) create mode 100644 src/components/customShowModal.vue diff --git a/src/components/customShowModal.vue b/src/components/customShowModal.vue new file mode 100644 index 0000000..3bce085 --- /dev/null +++ b/src/components/customShowModal.vue @@ -0,0 +1,163 @@ + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index cfb180d..5b95c9d 100644 --- a/src/main.js +++ b/src/main.js @@ -3,18 +3,24 @@ import App from "./App.vue"; import { CLIENT_ID,NETWORK_ENV } from '@/enums/cacheEnums'; import '@/static/font/iconfont.css' +// 注册自定义组件 +import customShowModal from '@/components/customShowModal.vue' + // pinia import { createPinia } from 'pinia' const pinia = createPinia() - export function createApp() { const app = createSSRApp(App); + // 全局变量 app.config.globalProperties.$CLIENT_ID = CLIENT_ID; app.config.globalProperties.$NETWORK_ENV = NETWORK_ENV; + + // 全局自定义组件 + app.component('customShowModal', customShowModal) app.use(pinia) diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index 9cd0390..c28b951 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -257,7 +257,7 @@ const submitForm = () => { param.runEnv = networkEnv.value; // #ifdef H5 - param.uniqCode = 'e5687e80-526f-4522-ba7d-41d5db197a15';//h5测试用 内网-sn123456 外网-e5687e80-526f-4522-ba7d-41d5db197a15 + param.uniqCode = '7666ac20-827a-4c23-8e2e-fbbf24564fc0';//h5测试用 内网-sn123456 外网-7666ac20-827a-4c23-8e2e-fbbf24564fc0 let res = await login(param); userStore.login(res); uni.switchTab({ url: '/pages/home/home' }) diff --git a/src/pages/userinfo/userinfo.vue b/src/pages/userinfo/userinfo.vue index 9972ce7..02aa6ff 100644 --- a/src/pages/userinfo/userinfo.vue +++ b/src/pages/userinfo/userinfo.vue @@ -87,17 +87,27 @@ - + + + +