From 4baf81778b992b07459e0db7847a91cf48dfc7ad Mon Sep 17 00:00:00 2001 From: m0_74163447 <2656695551@qq.com> Date: Sat, 6 May 2023 22:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- teamwork/pages/my/main.vue | 102 +++++++++---------- teamwork/pages/my/my-modify.vue | 131 +++++++++++++++---------- teamwork/pages/my/my-resetpassword.vue | 31 ++++-- teamwork/pages/my/my-setting.vue | 6 +- 4 files changed, 154 insertions(+), 116 deletions(-) diff --git a/teamwork/pages/my/main.vue b/teamwork/pages/my/main.vue index a9da5fb..2ff7092 100644 --- a/teamwork/pages/my/main.vue +++ b/teamwork/pages/my/main.vue @@ -8,7 +8,7 @@ - + {{nickname}} @@ -20,10 +20,7 @@ 运动小队:{{teamName}} - - - 运动积分:{{point}} - + @@ -33,7 +30,7 @@ 我的帖子 - + 运动记录 @@ -55,11 +52,11 @@ export default { data () { return { - iStatusBarHeight:0, - nickname:'王二蛋', - schoolName:'福州大学', - teamName:'must go', - point:'1250' + headPortraitIcon:'', + nickname:'', + schoolName:'', + teamName:'', + point:'' } }, methods:{ @@ -77,10 +74,31 @@ uni.navigateTo({ url: '/pages/my/my-resetpassword' }) - } + }, + goToRunningRecord() { + uni.navigateTo({ + url: '/pages/my/my-running-record' + }) + }, + getData() { + uniCloud.callFunction({ + name: 'fe-my-information', + data: {userId:'6450da43e1a35c371b3699cc'} + }) + .then(res => { + this.headPortraitIcon=res.result.data.icon, + this.nickname=res.result.data.username, + this.schoolName=res.result.data.school, + this.teamName=res.result.data.team, + + //this.activityList=res.result.data.activityList, + console.log(res); + }); + }, }, onLoad() { plus.navigator.setStatusBarBackground('#EDEEF0'); + this.getData() } } @@ -120,8 +138,8 @@ height: 200rpx; border-radius: 50%; background-size:100% 100%; - background-image:url("/static/my/main/head-portrait.png") ; - background-repeat:no-repeat; + /* background-image:url("/static/my/main/head-portrait.png") ; + background-repeat:no-repeat; */ float: left; } .nickname{ @@ -139,21 +157,21 @@ border-radius: 20rpx; background-color: #FFFFFF; width:75%; - height: 60%; + height: 40%; margin-top: 50px; margin-left: auto; margin-right: auto; } .school{ - height: 30%; - margin-top: 20rpx; + height: 50%; + } .school-icon{ - width: 70rpx; - height: 70rpx; - margin-top: 50rpx; + width: 100rpx; + height: 100rpx; + margin-top: 30rpx; margin-left: 50rpx; background-size:100% 100%; background-image:url("/static/my/main/school-icon.png"); @@ -162,23 +180,23 @@ } .school-name{ - width: 320rpx; + width: 340rpx; height: 30rpx; margin-top: 60rpx; - margin-right: 55rpx; + margin-right: 45rpx; font-size: 35rpx; text-align: left; float: right; } .team{ - height: 30%; + height: 50%; } .team-icon{ - width: 70rpx; - height: 70rpx; - margin-top: 50rpx; + width: 100rpx; + height: 100rpx; + margin-top: 40rpx; margin-left: 50rpx; background-size:100% 100%; background-image:url("/static/my/main/team-icon.png"); @@ -187,43 +205,19 @@ } .team-name{ - width: 320rpx; - height: 30rpx; - margin-top: 60rpx; - margin-right: 55rpx; - font-size: 35rpx; - text-align: left; - float: right; - } - .point{ - - height: 30%; - } - .point-icon{ - - width: 70rpx; - height: 70rpx; - margin-top: 50rpx; - margin-left: 50rpx; - background-size:100% 100%; - background-image:url("/static/my/main/point-icon.png"); - background-repeat:no-repeat; - float: left; - } - .point-num{ - - width: 320rpx; + width: 340rpx; height: 30rpx; margin-top: 60rpx; - margin-right: 55rpx; + margin-right: 45rpx; font-size: 35rpx; text-align: left; float: right; } + .func{ width:75%; - margin-top: 30rpx; + /* margin-top: 10rpx; */ margin-left: auto; margin-right: auto; display: flex; diff --git a/teamwork/pages/my/my-modify.vue b/teamwork/pages/my/my-modify.vue index e11084e..67b8de2 100644 --- a/teamwork/pages/my/my-modify.vue +++ b/teamwork/pages/my/my-modify.vue @@ -6,15 +6,14 @@ - - + + - - - - 修改头像 - 设置头像 + + + + 修改头像 @@ -30,9 +29,9 @@ 性别 - + - {{sex[index1].name}} + {{selectSex[index1].name}} @@ -46,27 +45,25 @@ - +