feat: 基本实现拆单收货

This commit is contained in:
2026-07-29 15:53:23 +08:00
parent c443109869
commit 1b45f9dac6
92 changed files with 3223 additions and 22968 deletions
@@ -1,5 +1,7 @@
<template>
<main class="profile-page">
<div>
<joyful-selection-profile-skeleton v-if="loading" />
<main v-else class="profile-page">
<section class="profile-hero">
<div class="profile-actions">
<van-icon name="setting-o" />
@@ -69,16 +71,22 @@
<p>敬请期待</p>
</div>
</section>
</main>
</main>
</div>
</template>
<script>
import { mapActions, mapState } from 'pinia'
import { useUserStore } from '@/store/user'
import JoyfulSelectionProfileSkeleton from '@/skeleton-view/joyful-selection/profile/index.vue'
export default {
name: 'JoyfulSelectionProfile',
components: {
JoyfulSelectionProfileSkeleton
},
data: () => ({
loading: true,
orderItems: [
{ icon: 'balance-pay', text: '待付款' },
{ icon: 'logistics', text: '待发货' },
@@ -96,9 +104,12 @@ export default {
}
},
created() {
this.loading = true
this.fetchUserPoints().catch(error => {
console.warn('查询用户积分失败', error)
this.$toast(error.message || '查询用户积分失败')
}).finally(() => {
this.loading = false
})
},
methods: {