From a395edbb555cbb94b1e752952e3f287b947efc47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Tue, 8 Jul 2025 17:22:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=B5=8B=E8=AF=95=E4=BF=A1=E6=81=AF=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +- src/api/request.js | 7 +- src/manifest.json | 4 +- src/pages/setting/index.vue | 12 ---- src/pages/test/index - 副本.vue | 46 +++++++++++++ src/pages/test/index.vue | 110 ++++++++++++++++++++++++-------- 6 files changed, 137 insertions(+), 46 deletions(-) create mode 100644 src/pages/test/index - 副本.vue diff --git a/package.json b/package.json index c4fb825c..8cd7fd6c 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "version": "0.0.1", "description": "", "scripts": { - "dev:h5": "uni -p h5 --mode development", + "dev:h5": "uni", "dev:h5:sit": "uni -p h5 --mode sit", - "dev:h5:uat": "uni -p h5 --mode uat", + "dev:h5:uat": "uni -p h5 --mode uat", "build:app-plus:sit": "uni build -p app-plus --mode sit", "build:app-plus:uat": "uni build -p app-plus --mode uat", "build:app-plus": "uni build -p app-plus", diff --git a/src/api/request.js b/src/api/request.js index b2cb201c..51116660 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -6,8 +6,7 @@ import common from '@/common/common.js' const ENV = import.meta.env export const get_base_url = url => { - console.log('process.env.NODE_ENV', process.env) - if (process.env.NODE_ENV === 'development') { // 开发环境 + if (ENV.MODE === 'development') { // 开发环境 // H5必须用非https,手机端必须用https // #ifdef H5 const baseUrl = ENV.VITE_APP_BASE_API_Url @@ -17,9 +16,9 @@ export const get_base_url = url => { return baseUrl // #endif // #ifdef APP-PLUS - return ENV.VITE_APP_BASE_API_Url + return ENV.VITE_APP_BASE_API_Url // #endif - } else if (process.env.NODE_ENV === 'production') { // 生产环境 + } else { // 其他环境,包括生产环境,sit环境,uat环境 return ENV.VITE_APP_BASE_API_Url } } diff --git a/src/manifest.json b/src/manifest.json index dd03f154..ba391198 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,8 +2,8 @@ "name" : "tra-app", "appid" : "__UNI__EDE0E52", "description" : "", - "versionName" : "0.0.3", - "versionCode" : 3, + "versionName" : "0.0.1", + "versionCode" : 1, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/src/pages/setting/index.vue b/src/pages/setting/index.vue index 2ff0b050..31ac17f7 100644 --- a/src/pages/setting/index.vue +++ b/src/pages/setting/index.vue @@ -169,18 +169,6 @@ background-color: #F6F8FF; } - // .detail-body { - // box-sizing: border-box; - // min-height: calc(100vh - (var(--status-bar-height)+50rpx)); - // // padding: 29rpx 37rpx; - // width: 100%; - // display: flex; - // flex-direction: column; - // padding-top: 0rpx; - - - // } - .title { color: #000000; font-size: 34rpx; diff --git a/src/pages/test/index - 副本.vue b/src/pages/test/index - 副本.vue new file mode 100644 index 00000000..df2af06d --- /dev/null +++ b/src/pages/test/index - 副本.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/pages/test/index.vue b/src/pages/test/index.vue index 5c40db1c..644f6292 100644 --- a/src/pages/test/index.vue +++ b/src/pages/test/index.vue @@ -1,45 +1,103 @@ + + .title { + color: #000000; + font-size: 34rpx; + height: 34rpx; + font-weight: 600; + // margin-bottom: 30rpx; + line-height: 34rpx; + } + + .fixed_search_div { + padding: calc(10rpx + var(--status-bar-height)) 15rpx 24rpx 30rpx; + display: flex; + align-items: center; + background-color: #f6f7f8; + + .back_div { + margin-right: 10rpx; + + .back-icon { + position: relative; + width: 40rpx; + height: 40rpx; + cursor: pointer; + display: flex; + align-items: center; + } + + .back-icon::before, + .back-icon::after { + content: ''; + position: absolute; + transition: all 0.3s ease; + } + + .back-icon::after { + top: 25%; + left: 25%; + width: 40%; + height: 40%; + border-top: 4rpx solid #2b2c2e; + border-left: 4rpx solid #2b2c2e; + transform: rotate(-45deg); + } + } + } + \ No newline at end of file