diff --git a/app/api/goods/index.js b/app/api/goods/index.js index d206a48..6863255 100644 --- a/app/api/goods/index.js +++ b/app/api/goods/index.js @@ -20,4 +20,11 @@ export async function artworkDetail(data) { method: 'POST', body: data, }) +} +export async function userArtworks(data) { + const http = getHttp() + return await http('/api/v1/m/user/artworks', { + method: 'POST', + body: data, + }) } \ No newline at end of file diff --git a/app/app.vue b/app/app.vue index 89b3244..7325d96 100644 --- a/app/app.vue +++ b/app/app.vue @@ -78,4 +78,7 @@ provide('slideDirection', slideDirection) .slide-right-leave-to { transform: translateX(100%); } +:root{ + --safe-area-inset-bottom: env(safe-area-inset-bottom); +} \ No newline at end of file diff --git a/app/components/AppFooter.vue b/app/components/AppFooter.vue index c96b38e..6d6e71d 100644 --- a/app/components/AppFooter.vue +++ b/app/components/AppFooter.vue @@ -11,13 +11,17 @@ const show = computed(() => { return false }) const initData=()=>{ - active.value=route.path==='/'?0:1 + active.value=route.path==='/profile'?1:0 } -initData() + +onMounted(()=>{ + initData() +}) @@ -122,7 +125,15 @@ const goPay = () => { }