fix: metadata

This commit is contained in:
zzc
2026-02-03 05:14:31 +08:00
parent 7d0b79bd16
commit b2b59cb61a
3 changed files with 142 additions and 107 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="record-page">
<NavBar title="我的运势记录" />
<NavBar title="我的运势记录" />
<scroll-view
scroll-y
@@ -46,7 +46,7 @@
>
<view class="item-image-box">
<image
:src="item.imageUrl"
:src="getThumbUrl(item.imageUrl)"
mode="aspectFill"
class="item-image"
/>
@@ -115,6 +115,10 @@ const getTagClass = (tag) => {
return map[tag] || "tag-gold";
};
const getThumbUrl = (url) => {
return `${url}?imageView2/1/w/340/h/600/q/80`;
};
const loadData = async () => {
if (loading.value || !hasMore.value) return;
@@ -145,14 +149,9 @@ const loadData = async () => {
};
const loadMore = () => {
console.log(666666666);
loadData();
};
const goBack = () => {
uni.navigateBack();
};
const goDetail = (item) => {
// 传递数据到详情页
const data = encodeURIComponent(JSON.stringify(item));