From f2efe66ab5acd2059d298efbac1881fbf9953271 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 15 Jan 2026 17:54:41 +0800
Subject: [PATCH] feat:app更新

---
 uniapps/work-app/src/subPackages/userDetail/infos/index.vue    |   41 ++++++++++++++++----
 uniapps/work-app/src/subPackages/userDetail/password/index.vue |   45 +++++++++++++++++-----
 uniapps/work-app/src/pages.json                                |    6 ++-
 3 files changed, 70 insertions(+), 22 deletions(-)

diff --git a/uniapps/work-app/src/pages.json b/uniapps/work-app/src/pages.json
index 214fd79..a2e22fd 100644
--- a/uniapps/work-app/src/pages.json
+++ b/uniapps/work-app/src/pages.json
@@ -79,13 +79,15 @@
         {
           "path": "userDetail/infos/index",
           "style": {
-            "navigationBarTitleText": "个人资料"
+            "navigationBarTitleText": "个人资料",
+            "navigationStyle": "custom"
           }
         },
         {
           "path": "userDetail/password/index",
           "style": {
-            "navigationBarTitleText": "修改密码"
+            "navigationBarTitleText": "修改密码",
+            "navigationStyle": "custom"
           }
         },
         {
diff --git a/uniapps/work-app/src/subPackages/userDetail/infos/index.vue b/uniapps/work-app/src/subPackages/userDetail/infos/index.vue
index 91b5067..d7f2acb 100644
--- a/uniapps/work-app/src/subPackages/userDetail/infos/index.vue
+++ b/uniapps/work-app/src/subPackages/userDetail/infos/index.vue
@@ -1,5 +1,14 @@
 <template>
 	<view class="container">
+    <u-navbar
+      title="个人资料"
+      :is-back="true"
+      back-text=""
+      :back-icon-size="40"
+      @left-click="onBackClick"
+    >
+
+    </u-navbar>
 		<view class="pageBg"></view>
 		<div class="avatarBox">
 			<!-- @click="uploadAvatar" -->
@@ -219,20 +228,34 @@
 		});
 
 	};
+// 返回按钮点击事件
+const onBackClick = () => {
+  uni.navigateBack()
+}
 	onShow(async () => {
 		getUserInfoData()
 	});
 </script>
 
 <style lang="scss" scoped>
-	.container {
-		width: 100%;
-		height: 100%;
-		display: flex;
-		flex-direction: column;
-		align-items: center;
-			position: relative;
-		}
+.container {
+  width: 100%;
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  position: relative;
+  // 添加导航栏高度的padding-top,避免内容被遮挡
+  padding-top: 44px;
+
+}
+:deep(){
+  .u-navbar__content{
+    background: url("@/static/images/user/userbg.svg")  no-repeat !important;
+    background-size: 100%!important;
+    height: 44px !important;
+  }
+}
 		.pageBg {
 			position: fixed;
 			top: 0;
@@ -256,7 +279,7 @@
 		background: #FFFFFF;
 		border-radius: 12rpx;
 		box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
-
+    margin-top: 88rpx;
 		.detailCon {
 			padding: 0 24rpx;
 		}
diff --git a/uniapps/work-app/src/subPackages/userDetail/password/index.vue b/uniapps/work-app/src/subPackages/userDetail/password/index.vue
index f91fb24..9219aa3 100644
--- a/uniapps/work-app/src/subPackages/userDetail/password/index.vue
+++ b/uniapps/work-app/src/subPackages/userDetail/password/index.vue
@@ -1,6 +1,15 @@
 <!-- 修改密码 -->
 <template>
 	<view class="container">
+    <u-navbar
+      title="修改密码"
+      :is-back="true"
+      back-text=""
+      :back-icon-size="40"
+      @left-click="onBackClick"
+    >
+
+    </u-navbar>
 			<view class="pageBg"></view>
 		<view class="detailBox">
 			<div class="detailCon">
@@ -213,7 +222,7 @@
       password2: password2,
 			code
 		};
-  
+
 		resetPassword(resetData).then(res => {
 			if (res.data.code === 200) {
 				uni.showToast({
@@ -242,21 +251,35 @@
 			});
 		});
 	};
+  // 返回按钮点击事件
+  const onBackClick = () => {
+    uni.navigateBack()
+  }
 	onShow(async () => {
 		clearForm();
 	});
 </script>
 
 <style lang="scss" scoped>
-	.container {
-		width: 100%;
-		height: 100%;
-		display: flex;
-		flex-direction: column;
-		align-items: center;
-			position: relative;
-		}
-	
+.container {
+  width: 100%;
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  position: relative;
+  // 添加导航栏高度的padding-top,避免内容被遮挡
+  padding-top: 44px;
+
+}
+:deep(){
+  .u-navbar__content{
+    background: url("@/static/images/user/userbg.svg")  no-repeat !important;
+    background-size: 100%!important;
+    height: 44px !important;
+  }
+}
+
 		.pageBg {
 			position: fixed;
 			top: 0;
@@ -277,7 +300,7 @@
 		background: #FFFFFF;
 		border-radius: 12rpx;
 		box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
-
+    margin-top: 88rpx;
 		.detailCon {
 			padding: 0 24rpx;
 		}

--
Gitblit v1.9.3