From b87f40d077669eaceced44aadf7e02117f53671e Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期五, 06 六月 2025 15:25:50 +0800 Subject: [PATCH] 优化我的收藏,活动报名,我的活动页面,活动页面页面,新增加载更多 --- pages/video/home-page.vue | 26 +++++++++++--------------- 1 files changed, 11 insertions(+), 15 deletions(-) diff --git a/pages/video/home-page.vue b/pages/video/home-page.vue index 11cc980..10be23c 100644 --- a/pages/video/home-page.vue +++ b/pages/video/home-page.vue @@ -4,9 +4,6 @@ <view class="user-header"> <view class="user-avatar-container"> <image class="user-avatar" :src="userInfo.avatar" mode="aspectFill"></image> - <view class="edit-icon" @click="editProfile" v-if="isSelf"> - <uni-icons type="compose" size="20" color="#666"></uni-icons> - </view> </view> <view class="user-info"> <view class="user-name">{{userInfo.nickName}}</view> @@ -38,6 +35,10 @@ {{userInfo.hasSub ? '鍙栨秷鍏虫敞' : '鍏虫敞'}} </button> </view> + + <view class="edit-icon" @click="editInfo" v-if="userInfo.self"> + <uni-icons type="compose" size="20" color="#666"></uni-icons>缂栬緫涓婚〉淇℃伅 + </view> </view> <!-- 浣滃搧/鍠滄鍒囨崲 --> @@ -148,6 +149,9 @@ nomoreVideo: false, nomoreCollectVideo: false } + }, + onShow() { + this.getAuthorInfo(); }, onLoad(option) { this.authorId = option.authorId; @@ -294,9 +298,9 @@ }); }, // 缂栬緫涓汉璧勬枡 - editProfile() { + editInfo() { uni.navigateTo({ - url: '/pages/user/edit' + url: `/pages/video/home-page-edit?authorId=${this.authorId}&avatar=${this.userInfo.avatar}&motto=${this.userInfo.motto || ''}&nickName=${this.userInfo.nickName}` }); }, @@ -351,16 +355,13 @@ .edit-icon { position: absolute; - right: 0; - bottom: 0; + right: 30rpx; + top: 30rpx; background-color: #fff; - border-radius: 50%; - width: 40rpx; height: 40rpx; display: flex; justify-content: center; align-items: center; - box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1); } .user-info { @@ -539,11 +540,6 @@ background-color: #f5f5f5; color: #666; } -} - -/* 濡傛灉鏄嚜宸辩殑涓婚〉锛岄殣钘忓叧娉ㄦ寜閽� */ -.user-header { - position: relative; } .video-container { -- Gitblit v1.8.0