diff --git a/src/manifest.json b/src/manifest.json index e608c67b..c387765d 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -26,7 +26,9 @@ "Payment" : {}, "Share" : {}, "VideoPlayer" : {}, - "OAuth" : {} + "OAuth" : {}, + "Camera" : {}, + "Geolocation" : {} }, "distribute" : { "android" : { @@ -111,6 +113,12 @@ "appid" : "wxae7a0c156da9383b", "UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/" } + }, + "maps" : {}, + "geolocation" : { + "system" : { + "__platform__" : [ "ios", "android" ] + } } }, "orientation" : [ "portrait-primary" ], diff --git a/src/pages/profile/components/user-ablum.vue b/src/pages/profile/components/user-ablum.vue index 7015f40d..aa26b6fb 100644 --- a/src/pages/profile/components/user-ablum.vue +++ b/src/pages/profile/components/user-ablum.vue @@ -25,6 +25,7 @@ export interface AlbumData { resourceType: 'IMAGE' | 'VIDEO'; address: string; + id: string; } const props = defineProps<{ diff --git a/src/pages/profile/upload-album.vue b/src/pages/profile/upload-album.vue index 036ea280..db21c99d 100644 --- a/src/pages/profile/upload-album.vue +++ b/src/pages/profile/upload-album.vue @@ -14,7 +14,6 @@ - - - 保 存 - diff --git a/src/pages/profile/use-ablum.ts b/src/pages/profile/use-ablum.ts index 52bb21e8..5415d5c1 100644 --- a/src/pages/profile/use-ablum.ts +++ b/src/pages/profile/use-ablum.ts @@ -7,7 +7,7 @@ export default function useAblum() { // 获取用户相册 const getUserAlbum = async () => { - const { data = null } = await RecentApi.getUserAlbum({ pageNo: 1, pageSize: 10 }); + const { data = null } = await RecentApi.getUserAlbum({ pageNo: 1, pageSize: 20 }); ablumList.value = data.list ?? []; }; diff --git a/src/pages/profile/userinfo.vue b/src/pages/profile/userinfo.vue index ce4c8a66..c1d2c356 100644 --- a/src/pages/profile/userinfo.vue +++ b/src/pages/profile/userinfo.vue @@ -92,13 +92,13 @@ - + @@ -112,7 +112,7 @@ })).reverse(); // 体重选择器选项 const columnsWeight = Array.from({ length: 80 }, (_, i) => ({ - text: i + 20 + 'kg', + label: i + 20 + 'kg', value: i + 20, })); // 职业选择器选项 @@ -125,6 +125,15 @@ { text: '投资人', value: '投资人' }, { text: '学生', value: '学生' }, { text: '其他', value: '其他' }, + { text: '老师', value: '老师' }, + { text: '白领', value: '白领' }, + { text: '模特', value: '模特' }, + { text: '主播', value: '主播' }, + { text: '幼师', value: '幼师' }, + { text: 'coser', value: 'coser' }, + { text: '空乘', value: '空乘' }, + { text: '公关', value: '公关' }, + { text: '护士', value: '护士' }, ]; @@ -133,15 +142,15 @@ import { reactive } from 'vue'; // @ts-ignore import UserApi from '@/sheep/api/member/user'; - import SUploader from '@/sheep/components/s-uploader/s-uploader.vue'; // @ts-ignore import sheep from '@/sheep'; + import SUploader from '@/sheep/components/s-uploader/s-uploader.vue'; onLoad(async () => { // 获取用户信息 const { data } = await UserApi.getUserInfo(); Object.assign(userinfo, data, { - photo: data.photo?.map((item: { address: string }) => item.address), + // photo: data.photo?.map((item: { address: string }) => item.address), }); }); @@ -161,7 +170,7 @@ const saveUserInfo = async () => { const params = { ...userinfo, - photo: userinfo.photo?.map((url: string) => ({ resourceType: 'IMAGE', address: url })) || [], + // photo: userinfo.photo?.map((url: string) => ({ resourceType: 'IMAGE', address: url })) || [], }; await UserApi.updateUser(params); sheep.$store('user').getInfo();