From 18f3b76cf2cf600edfd87ca82d351fa26cae5c49 Mon Sep 17 00:00:00 2001 From: ctw Date: Fri, 21 Nov 2025 15:59:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=9B=B8=E5=86=8C=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=EF=BC=9B=E5=BC=80=E9=80=9AVIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 7 ++ src/pages/home/detail.vue | 18 ++-- src/pages/profile/apply-vip.vue | 150 +++++++++++++++++++++++++++++ src/pages/profile/profile.vue | 19 ++++ src/pages/profile/upload-album.vue | 98 +++++++++++++++---- src/sheep/api/member/recent.ts | 47 +++++++++ 6 files changed, 316 insertions(+), 23 deletions(-) create mode 100644 src/pages/profile/apply-vip.vue diff --git a/src/pages.json b/src/pages.json index 2d6145b9..4f14bd21 100644 --- a/src/pages.json +++ b/src/pages.json @@ -185,6 +185,13 @@ "navigationBarTitleText": "上传照片", "navigationStyle": "custom" } + }, + { + "path": "apply-vip", + "style": { + "navigationBarTitleText": "开通VIP", + "navigationStyle": "custom" + } } ] }, diff --git a/src/pages/home/detail.vue b/src/pages/home/detail.vue index c8f6e4dd..9cbcb242 100644 --- a/src/pages/home/detail.vue +++ b/src/pages/home/detail.vue @@ -29,7 +29,7 @@ @loadMore="listLoadMore" @scroll="onScroll" > - + {{ userDetail.member?.memberNickname }} - 真人认证 + + + 真人认证 + + - + {{ '未知性别 · ' + userDetail.member?.memberAge || '' + '岁' }} - + {{ userDetail.member?.memberHeight || '' + 'cm' }} - + {{ userDetail.member?.memberWeight || '' + 'kg' }} - + {{ userDetail.member?.memberOcc || '' + 'kg' }} diff --git a/src/pages/profile/apply-vip.vue b/src/pages/profile/apply-vip.vue new file mode 100644 index 00000000..b9567d1f --- /dev/null +++ b/src/pages/profile/apply-vip.vue @@ -0,0 +1,150 @@ + + + diff --git a/src/pages/profile/profile.vue b/src/pages/profile/profile.vue index b83277a0..b8468c4c 100644 --- a/src/pages/profile/profile.vue +++ b/src/pages/profile/profile.vue @@ -48,6 +48,25 @@ + + + VIP + + 尊享vip免费特权 + + + 立即开通 + + + + + diff --git a/src/pages/profile/upload-album.vue b/src/pages/profile/upload-album.vue index b29ad3bf..036ea280 100644 --- a/src/pages/profile/upload-album.vue +++ b/src/pages/profile/upload-album.vue @@ -9,50 +9,114 @@ - 相册 - {{ ablumUrlList?.length || 0 }}/10 + 图片 + {{ imageFileList?.length || 0 }}/10 - + + + 视频 + {{ videoFileList?.length || 0 }}/10 + + + + + + + - 保存 + + 保 存 + diff --git a/src/sheep/api/member/recent.ts b/src/sheep/api/member/recent.ts index 03dd9949..be68aef4 100644 --- a/src/sheep/api/member/recent.ts +++ b/src/sheep/api/member/recent.ts @@ -109,6 +109,53 @@ const RecentApi = { }, }); }, + // 保存用户相册 + saveUserAlbum: (data: any) => { + return request({ + url: '/member/photo/upload', + method: 'POST', + data, + custom: { + showLoading: true, + loadingMsg: '保存中', + }, + }); + }, + // 移除用户相册 + deleteUserAlbum: (id: any) => { + return request({ + url: '/member/photo/delete', + method: 'GET', + params: { id }, + custom: { + showLoading: true, + loadingMsg: '操作中', + }, + }); + }, + // 获取开通的会员类型列表 + getMemberOpenTypeList: () => { + return request({ + url: '/member/open-type/list', + method: 'GET', + custom: { + showLoading: true, + loadingMsg: '加载中', + }, + }); + }, + // 开通会员 + memberOpenTypePay: (data: any) => { + return request({ + url: '/member/open-type/pay', + method: 'POST', + data, + custom: { + showLoading: true, + loadingMsg: '加载中', + }, + }); + }, }; export default RecentApi;