From c0f4a14186b30523e7862973bb6879d878f660f3 Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Thu, 13 Feb 2025 13:51:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(profile):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 优化代码结构,提高可读性和维护性 - 重构数据获取和处理逻辑,使用 async/await -简化分组排序函数,提高性能 - 优化模板结构,提高渲染效率 - 添加注释,提高代码可理解性 --- app/pages/profile/index.vue | 201 +++++++++++++++++++----------------- 1 file changed, 106 insertions(+), 95 deletions(-) diff --git a/app/pages/profile/index.vue b/app/pages/profile/index.vue index becdfc5..645d803 100644 --- a/app/pages/profile/index.vue +++ b/app/pages/profile/index.vue @@ -1,133 +1,144 @@ - - - - - - {{userInfo.realName}} - {{userInfo.telNum}} - - - - - {{$t('home.my_lots')}} + + + + + {{ userInfo.realName }} + {{ userInfo.telNum }} - + + + + + + {{ $t('home.my_lots') }} + + + {{ $t('home.refresh_show') }} - - + + + 您暂无拍品 快去竞拍吧 - - {{item.userCreatedAt}} - - - - - - {{item1?.auctionArtworkInfo?.artworkTitle}} - - - {{$t('home.start_price')}}:RMB 1,000 - {{$t('home.close_price')}}:RMB 10,000 + + + + + {{ group.userCreatedAt }} + + + + + {{ item?.auctionArtworkInfo?.artworkTitle }} - - {{$t('art_detail_page.button')}} + + + + {{ $t('home.start_price') }}:RMB 1,000 + + + {{ $t('home.close_price') }}:RMB 10,000 + + + + {{ $t('art_detail_page.button') }} + - + + + \ No newline at end of file