瀏覽代碼

编辑个人资料

常志远 2 年之前
父節點
當前提交
3bfbfb5995
共有 4 個文件被更改,包括 110 次插入0 次删除
  1. 二進制
      assets/img/editPhoto.png
  2. 二進制
      assets/img/md-camera_alt@1x(1).png
  3. 9 0
      pages.json
  4. 101 0
      pages/parents/mine/editProfile.vue

二進制
assets/img/editPhoto.png


二進制
assets/img/md-camera_alt@1x(1).png


+ 9 - 0
pages.json

@@ -356,6 +356,15 @@
             }
             
         }
+        ,{
+            "path" : "pages/parents/mine/editProfile",
+            "style" :                                                                                    
+            {
+                "navigationBarTitleText": "",
+                "enablePullDownRefresh": false
+            }
+            
+        }
     ],
 	"globalStyle": {
 		"navigationStyle": "custom", // 隐藏系统导航栏

+ 101 - 0
pages/parents/mine/editProfile.vue

@@ -0,0 +1,101 @@
+<template>
+	<view>
+		<u-navbar title="编辑个人信息" >
+			<slot name="right">保存</slot>
+		</u-navbar>
+		<view class="photo">
+			<img src="../../../assets/img/editPhoto.png" alt="">
+			<view class="edit-photo">
+				<img src="../../../assets/img/md-camera_alt@1x(1).png" alt="">
+			</view>
+		</view>
+		<view class="change">
+			点击更换头像
+		</view>
+		
+		<view class="pet-name">
+			<view class="title">
+				昵称
+			</view>
+			<view class="name">
+				用户191012
+			</view>
+			
+		</view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page{
+		background-color: #fff;
+	}
+	/deep/.u-slot-content{
+		   justify-content: end;
+		   margin-right: 32rpx;
+		   color: rgba(13, 186, 199, 1);
+	}
+	.photo{
+		margin: 20px auto 8px;
+		width: 160rpx;
+		height: 160rpx;
+		position: relative;
+		
+		img{
+			width: 100%;
+			height: 100%;
+			border-radius: 999px;
+		}
+		
+	}
+	.edit-photo{
+		width: 56rpx;
+		height: 56rpx;
+		background-color: rgba(78, 141, 246, 1);
+		border: 4rpx solid rgba(255, 255, 255, 1);
+		text-align: center;
+		border-radius: 999px;
+		z-index: 999;
+		position: absolute;
+		right: 0;
+		bottom: 0;
+		
+		img{
+			
+			width: 32rpx;
+			height: 32rpx;
+			margin-top: 8rpx;
+		}
+	}
+   .change{
+	   color: rgba(13, 186, 199, 1);
+	   text-align: center;
+   }
+   .pet-name{
+	   margin-top: 20px;
+	   padding: 15px;
+	   border-bottom: 1px solid rgba(244, 244, 244, 1);
+	   display: flex;
+	   justify-content: space-between;
+	   .title{
+		   color: rgba(16, 16, 16, 1);
+		   font-weight: bold;
+	   }
+	   .name{
+		   color: rgba(136, 136, 136, 1);
+	   }
+   }
+</style>