修正多处问题,添加骨架屏

This commit is contained in:
2026-06-29 16:41:36 +08:00
parent e85f39ab83
commit 13b99428de
124 changed files with 929 additions and 147 deletions
@@ -11,8 +11,11 @@
<text class="pc-intro__desc">购买后立即生效享受专属会员权益</text>
</view>
<!-- 骨架屏 -->
<ListSkeleton v-if="loadingCards" :count="3" layout="simple" />
<!-- 卡列表 -->
<view class="pc-list">
<view v-else-if="cardTypes.length" class="pc-list">
<view
v-for="card in cardTypes"
:key="card.id"
@@ -268,6 +271,7 @@
<script setup>
import { ref, computed, onMounted, onUnmounted } from 'vue'
import { onShow } from '@dcloudio/uni-app'
import ListSkeleton from '@/components/Skeleton/ListSkeleton.vue'
import { purchaseMemberCard, createPayment, createQrCodePayment, getPaymentStatus, queryHuifuTradeByOrderId, getActiveMemberCards } from '@/api/main.js'
import { getMemberId } from '@/utils/request.js'