From 93e1557cb20ce85e9aaaf10c81cf33960f23a7a7 Mon Sep 17 00:00:00 2001 From: xuli3099 Date: Tue, 19 Aug 2025 13:27:26 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=8F=8A=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 18 +-- src/components/customHeader.vue | 8 +- src/pages/business/business.vue | 19 ++- src/pages/home/home.vue | 267 ++++++++++++++------------------ src/pages/loading/loading.vue | 6 +- src/pages/notice/notice.vue | 18 ++- src/pages/userinfo/userinfo.vue | 2 +- src/static/common.css | 23 +-- 8 files changed, 170 insertions(+), 191 deletions(-) diff --git a/src/App.vue b/src/App.vue index 7835074..a43bacc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,16 +4,16 @@ diff --git a/src/components/customHeader.vue b/src/components/customHeader.vue index cb40ed5..f07f1a2 100644 --- a/src/components/customHeader.vue +++ b/src/components/customHeader.vue @@ -58,15 +58,15 @@ const handleBack = () => { margin-left:-375rpx; z-index: 999; /* #ifdef APP-PLUS */ - background: url('@/static/images/bg-Blue-header.png') no-repeat; + /* background: url('@/static/images/bg-Blue-header.png') no-repeat; background-size:750rpx 160rpx; - height:160rpx; + height:160rpx; */ /* #endif */ /* #ifndef APP-PLUS */ - background: url('@/static/images/bg-Blue-header2.png') no-repeat; + /* background: url('@/static/images/bg-Blue-header2.png') no-repeat; background-size:750rpx 116rpx; - height:116rpx; + height:116rpx; */ /* #endif */ } diff --git a/src/pages/business/business.vue b/src/pages/business/business.vue index 2d2aede..86e105b 100644 --- a/src/pages/business/business.vue +++ b/src/pages/business/business.vue @@ -2,12 +2,11 @@ - - @@ -68,7 +67,7 @@ diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index 651a8dc..a8c85e8 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -73,7 +73,7 @@ + + \ 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 @@ - + + + +