fix: metadata
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user