This commit is contained in:
Felix
2025-11-27 16:30:58 +08:00
parent 8231c5f151
commit 953392ac2f
13 changed files with 12 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
Page({
data: {
imageUrl: '/static/sun.png',
imageUrl: '/static/sun-2.png',
// 用于驱动 CSS 变量的角度与边缘接近度0-100
pointerAngle: 110,
pointerD: 0

View File

@@ -7,7 +7,6 @@
"enablePullDownRefresh": false,
"onReachBottomDistance": 50,
"usingComponents": {
"t-slider": "tdesign-miniprogram/slider/slider",
"t-icon": "tdesign-miniprogram/icon/icon",
"t-tag": "tdesign-miniprogram/tag/tag",
"t-cell": "tdesign-miniprogram/cell/cell",

View File

@@ -1,8 +1,6 @@
{
"usingComponents": {
"t-icon": "tdesign-miniprogram/icon/icon",
"t-steps": "tdesign-miniprogram/steps/steps",
"t-step-item": "tdesign-miniprogram/step-item/step-item",
"t-action-sheet": "tdesign-miniprogram/action-sheet/action-sheet",
"t-grid": "tdesign-miniprogram/grid/grid",
"t-grid-item": "tdesign-miniprogram/grid-item/grid-item",

View File

@@ -388,7 +388,7 @@ Page({
} catch (error) {
console.error('获取缩略图URL失败:', error);
// 如果获取失败,使用默认的占位图
image.thumbnail_url = '/static/sun.png';
image.thumbnail_url = '/static/sun-2.png';
image.thumbnail_loading = false; // 设置加载完成状态
}
}
@@ -456,7 +456,7 @@ Page({
} catch (error) {
console.error('获取缩略图URL失败:', error);
// 如果获取失败,使用默认的占位图
image.thumbnail_url = '/static/sun.png';
image.thumbnail_url = '/static/sun-2.png';
image.thumbnail_loading = false; // 设置加载完成状态
}
}
@@ -556,7 +556,7 @@ Page({
const items = imageItems.images.map((item: any) => ({
image_id: item.image_id,
image: item.thumbnail_loading ? '' : (item.thumbnail_url || '/static/sun.png'), // 使用安全URL或占位图
image: item.thumbnail_loading ? '' : (item.thumbnail_url || '/static/sun-2.png'), // 使用安全URL或占位图
}));
ActionSheet.show({
theme: ActionSheetTheme.Grid,

View File

@@ -102,38 +102,8 @@
<t-action-sheet id="t-images-sheet" bind:selected="handleImageSelected" />
</view>
<!-- 历史记录区域 -->
<!-- <view>
<view wx:for="{{groupedHistory}}" wx:key="year" class="history-section"> -->
<!-- 只有不是当前年份才显示年份标题 -->
<!-- <view wx:if="{{!item.isCurrentYear}}" class="history-year">{{item.year}}</view>
<t-steps layout="vertical" readonly theme="dot" current="{{groupedHistory.length-1}}">
<t-step-item wx:for="{{item.items}}" wx:for-item="historyItem" wx:for-index="index" wx:key="index">
<view slot="title">{{historyItem.monthDay}}</view>
<view slot="content">
<t-grid class="block" column="{{5}}">
<t-grid-item wx:for="{{historyItem.images}}" wx:for-item="image" wx:key="image_id" t-class-image="image">
<block wx:if="{{image.thumbnail_loading}}">
<t-skeleton theme="image" animation="gradient" loading="{{true}}" />
</block>
<block wx:else>
<image src="{{image.thumbnail_url || '/static/sun.png'}}" mode="aspectFill" data-image-id="{{image.image_id}}" bindtap="onImageTap" />
</block>
</t-grid-item>
</t-grid>
</view>
</t-step-item>
</t-steps>
</view>
</view> -->
<!-- 仅在加载更多时显示骨架屏 -->
<t-skeleton wx:if="{{isLoading && page >= 1}}" theme="paragraph" animation="gradient" loading="{{true}}"></t-skeleton>
<!-- 加载状态显示 -->
<!-- <view wx:if="{{isProcessing}}" class="processing-section">
<view class="processing-card">
<view class="loading-spinner"></view>
<text class="processing-text">正在跳转到识别页面...</text>
</view>
</view> -->
<!-- 使用提示 -->
<!-- <view class="tips-section">
<view class="tips-card">

View File

@@ -907,7 +907,6 @@ position:relative;
.photo-wrapper {
position: relative;
box-shadow: 0 4rpx 6rpx rgba(0, 0, 0, 0.2);
bottom: 12rpx;
left: 0rpx;
width: 264rpx;
@@ -922,23 +921,20 @@ position:relative;
left: 0rpx;
width: 240rpx;
height: 240rpx;
background-color: white;
background-color: rgb(255, 255, 255);
border-style: solid;
border-color: white;
border-color: rgb(230, 230, 230);
border-width: 12rpx 12rpx 32rpx 12rpx;
/* box-shadow: 0 4rpx 6rpx rgba(0, 0, 0, 0.1); */
box-shadow: 0 4rpx 6rpx rgba(0, 0, 0, 0.2);
overflow: hidden;
z-index: 2;
transform: translateY(-100%);
transform: translateY(-105%);
animation: reveal 10s infinite ease-out;
}
@keyframes reveal {
0% {
transform: translateY(-100%);
}
20% {
transform: translateY(-100%);
0%, 20% {
transform: translateY(-105%);
}
30% {
transform: translateY(0%);
@@ -954,7 +950,7 @@ position:relative;
}
100% {
opacity: 0;
transform: translateY(-100%);
transform: translateY(-105%);
}
}

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -18,7 +18,7 @@
"checkInvalidKey": true,
"ignoreDevUnusedFiles": true
},
"libVersion": "3.11.2",
"libVersion": "2.33.0",
"condition": {
"miniprogram": {
"list": [