From 8bd7ab8baaec7d22ae9b7fe5bf95957c405f9db1 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 13 Apr 2026 16:58:37 +0800
Subject: [PATCH] feat:静态文件移至吉安服务

---
 uniapps/work-wx/src/subPackages/userDetail/infos/index.vue     |    3 +
 uniapps/work-wx/src/subPackages/userDetail/password/index.vue  |    2 
 uniapps/work-wx/src/subPackages/deviceRegistration/add.vue     |    2 
 uniapps/work-wx/src/subPackages/deviceRegistration/details.vue |   42 ++++++++++----------
 uniapps/work-wx/src/pages/register/index.vue                   |    3 +
 uniapps/work-wx/src/pages/user/index.vue                       |    5 +-
 uniapps/work-wx/src/subPackages/flightApplication/index.vue    |    2 
 uniapps/work-wx/build/config/proxy.js                          |   11 +++++
 8 files changed, 42 insertions(+), 28 deletions(-)

diff --git a/uniapps/work-wx/build/config/proxy.js b/uniapps/work-wx/build/config/proxy.js
index 68c2c42..2ec5e61 100644
--- a/uniapps/work-wx/build/config/proxy.js
+++ b/uniapps/work-wx/build/config/proxy.js
@@ -20,6 +20,17 @@
       changeOrigin: true,
       rewrite: path => path.replace(new RegExp(`^${VITE_API_PREFIX}`), ''),
     },
+    '/work-wx-static': {
+      target: 'http://220.177.172.27:8100/',  // 替换为实际地址
+      changeOrigin: true,
+      secure: false,
+      // 如果需要查看代理日志,添加以下配置
+      configure: (proxy, options) => {
+        proxy.on('proxyReq', (proxyReq, req, res) => {
+          console.log('代理请求:', req.method, req.url, '->', proxyReq.path);
+        });
+      }
+    }
   }
   return proxy
 }
diff --git a/uniapps/work-wx/src/pages/register/index.vue b/uniapps/work-wx/src/pages/register/index.vue
index 14a2e30..12848a9 100644
--- a/uniapps/work-wx/src/pages/register/index.vue
+++ b/uniapps/work-wx/src/pages/register/index.vue
@@ -246,7 +246,8 @@
     .pageBg {
 		width: 100%;
 		height: 100%;
-        background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/user/userBg1.png")  no-repeat ;
+        //background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/user/userBg1.png")  no-repeat ;
+        background: url("/work-wx-static/images/user/userBg1.png")  no-repeat ;
         background-size: 100%;
 	}
     .detailBox {
diff --git a/uniapps/work-wx/src/pages/user/index.vue b/uniapps/work-wx/src/pages/user/index.vue
index d483564..b7feaf1 100644
--- a/uniapps/work-wx/src/pages/user/index.vue
+++ b/uniapps/work-wx/src/pages/user/index.vue
@@ -34,7 +34,7 @@
             </div>
           </div>
         </view>
-      
+
         <view class="goOutBtn">
           <div class="goOutStyle" @click="logOut">退出登录</div>
         </view>
@@ -97,7 +97,8 @@
   height: 100%;
 }
 .pageUser {
-  background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/user/userBg1.png")  no-repeat ;
+  //background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/user/userBg1.png")  no-repeat ;
+  background: url("/work-wx-static/images/user/userBg1.png")  no-repeat ;
   background-size: 100%;
 }
 .userBox {
diff --git a/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue b/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
index ad09c8a..850ae5d 100644
--- a/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
+++ b/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
@@ -662,7 +662,7 @@
     // const text = await response.text()
     // areaData.value = JSON.parse(text)
     const response = await uni.request({
-        url: 'https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/xzqh/index.json',
+        url: `/work-wx-static/xzqh/index.json`,
         method: 'GET',
         timeout: 10000, // 10秒超时
         dataType: 'json'
diff --git a/uniapps/work-wx/src/subPackages/deviceRegistration/details.vue b/uniapps/work-wx/src/subPackages/deviceRegistration/details.vue
index 13aec6a..3d5487e 100644
--- a/uniapps/work-wx/src/subPackages/deviceRegistration/details.vue
+++ b/uniapps/work-wx/src/subPackages/deviceRegistration/details.vue
@@ -76,7 +76,7 @@
                 ref="item1"
         >
             <u-input
-                    v-model="formParams.holder" 
+                    v-model="formParams.holder"
                     readonly
                     border="none"
             ></u-input>
@@ -124,7 +124,7 @@
                 ref="item1"
         >
             <u-input
-                    v-model="formParams.caacRegistrationCode" 
+                    v-model="formParams.caacRegistrationCode"
                     readonly
                     border="none"
             ></u-input>
@@ -137,7 +137,7 @@
                 ref="item1"
         >
             <u-input
-                    v-model="formParams.deviceImage" 
+                    v-model="formParams.deviceImage"
                     readonly
                     border="none"
             ></u-input>
@@ -150,7 +150,7 @@
                 ref="item1"
         >
             <u-input
-                    v-model="formParams.remarks" 
+                    v-model="formParams.remarks"
                     readonly
                     border="none"
             ></u-input>
@@ -221,21 +221,21 @@
 const findRegionNamesByCodes = (codes, areaData) => {
   const result = []
   let currentData = areaData
-  
+
   for (const code of codes) {
     // 转换为字符串比较(因为code可能是字符串类型)
     const codeStr = code.toString()
     const item = currentData.find(item => item.code === codeStr)
-    
+
     if (!item) {
       console.warn(`未找到code为 ${codeStr} 的行政区划`)
       break
     }
-    
+
     result.push(item.name)
     currentData = item.children || []
   }
-  
+
   return result
 }
 
@@ -247,7 +247,7 @@
     const regionNames = findRegionNamesByCodes(e, areaData.value)
     console.log(regionNames, '77777')
     formParams.value.regionText = regionNames.join('-') || '' // 用连字符连接的区域名称
-    isShowRegion.value = false  
+    isShowRegion.value = false
 }
 // 是否有保险
 const actionsHasInsurance = ref([
@@ -329,17 +329,17 @@
         formParams.value.region = findRegionNamesByCodes([res.data.data.region.slice(0,2),res.data.data.region.slice(0,4),res.data.data.region], areaData.value)
         getManufacturerInfoApi()
     })
-    
-    
+
+
 })
 onMounted(async () => {
     // getManufacturerInfoApi()
-    
+
     // 动态导入xzqhData,确保在使用前已初始化
     // const { xzqhData } = await import('@/static/xzqh/index')
     // areaData.value = xzqhData
     const response = await uni.request({
-        url: 'https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/xzqh/index.json',
+        url: `/work-wx-static/xzqh/index.json`,
         method: 'GET',
         timeout: 10000, // 10秒超时
         dataType: 'json'
@@ -347,7 +347,7 @@
 
     // 检查响应
     if (response.statusCode === 200) {
-        
+
         areaData.value = response.data
         // console.log('请求成功:', data)
         // 处理数据
@@ -364,11 +364,11 @@
     display: flex;
     flex-direction: column;
     // padding: 24rpx;
-    
+
     .select-wrapper {
         position: relative;
         width: 100%;
-        
+
         .select-icon {
             position: absolute;
             right: 20rpx;
@@ -402,7 +402,7 @@
         border-radius: 8rpx 8rpx 8rpx 8rpx;
         margin-bottom: 20rpx;
     }
-    
+
     :deep(.u-form-item) {
         margin-bottom: 20rpx;
         padding: 16rpx 24rpx 18rpx 24rpx;
@@ -417,7 +417,7 @@
             border-radius: 8rpx;
             padding: 0 20rpx;
             background-color: #f5f5f5;
-            
+
             &::placeholder {
                 font-family: Source Han Sans CN, Source Han Sans CN;
                 font-weight: 400;
@@ -425,12 +425,12 @@
                 color: #D2D2D2;
             }
         }
-        
+
         .clickable-input {
             width: 100%;
             cursor: pointer;
         }
-        
+
         :deep(.u-form-item__label) {
             margin-bottom: 20rpx;
             // font-weight: bold;
@@ -440,7 +440,7 @@
             font-size: 30rpx;
             color: #222324;
         }
-        
+
         :deep(.u-form-item__required) {
             color: #FF2600;
             margin-right: 8rpx;
diff --git a/uniapps/work-wx/src/subPackages/flightApplication/index.vue b/uniapps/work-wx/src/subPackages/flightApplication/index.vue
index d80c0be..d7d382a 100644
--- a/uniapps/work-wx/src/subPackages/flightApplication/index.vue
+++ b/uniapps/work-wx/src/subPackages/flightApplication/index.vue
@@ -198,7 +198,7 @@
     overflow-y: hidden;
     .header-top {
         height: 480rpx;
-        background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/fxsq-bg.png")  no-repeat ;
+        background: url("/work-wx-static/images/fxsq-bg.png")  no-repeat ;
   		background-size: 100%;
         position: relative;
         .ht-content {
diff --git a/uniapps/work-wx/src/subPackages/userDetail/infos/index.vue b/uniapps/work-wx/src/subPackages/userDetail/infos/index.vue
index 7e63a9e..e6db6ba 100644
--- a/uniapps/work-wx/src/subPackages/userDetail/infos/index.vue
+++ b/uniapps/work-wx/src/subPackages/userDetail/infos/index.vue
@@ -254,7 +254,8 @@
 	.pageBg {
 		width: 100%;
 		height: 100%;
-		background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/user/userBg1.png")  no-repeat ;
+		//background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/user/userBg1.png")  no-repeat ;
+		background: url("/work-wx-static/images/user/userBg1.png")  no-repeat ;
   		background-size: 100%;
 	}
 	.avatarBox {
diff --git a/uniapps/work-wx/src/subPackages/userDetail/password/index.vue b/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
index 1f09f1a..1d5ce38 100644
--- a/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
+++ b/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
@@ -260,7 +260,7 @@
 			// left: 0;
 			width: 100%;
 			height: 100%;
-			background: url("https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ja-app-wx/images/user/userBg1.png")  no-repeat ;
+			background: url("/work-wx-static/images/user/userBg1.png")  no-repeat ;
   			background-size: 100%;
 		}
 

--
Gitblit v1.9.3