pages/home/home.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
sub-pages/mine/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
pages/home/home.vue
@@ -86,14 +86,18 @@ // 分页后的数组,每页3条 const pagedTripCards = computed(() => { const pages: FilmWorks[][] = [] for (let i = 0; i < tripCardList.value.length; i += pageSize) { pages.push(tripCardList.value.slice(i, i + pageSize)) const list = tripCardList.value || [] // 安全兜底 for (let i = 0; i < list.length; i += pageSize) { pages.push(list.slice(i, i + pageSize)) } return pages }) // 总页数 const totalPages = computed(() => Math.ceil(tripCardList.value.length / pageSize)) const totalPages = computed(() => { const list = tripCardList.value || [] // 安全兜底 return Math.ceil(list.length / pageSize) }) // 场景博物馆卡片数据 const cardList = ref([ sub-pages/mine/index.vue
@@ -12,8 +12,8 @@ <view class="profile-content"> <view class="profile-header"> <view class="avatar-container"> <image v-if="userStore.userInfo.customerDTO.cover" class="avatar" :src="userStore.userInfo.customerDTO.cover" mode="aspectFill" /> <image v-if="userStore?.userInfo?.customerDTO?.cover" class="avatar" :src="userStore?.userInfo?.customerDTO?.cover" mode="aspectFill" /> <image v-else class="avatar" src="https://ai-public.mastergo.com/ai/img_res/e8ae645c666c247b895b488e60b048f5.jpg" mode="aspectFill" /> <view class="add-icon">