fix location icon

This commit is contained in:
Timi
2025-12-10 17:17:57 +08:00
parent 920b3c87e8
commit 18c6a41549
7 changed files with 60 additions and 9 deletions

View File

@ -8,6 +8,8 @@ interface JournalInfo {
id: number;
date: string;
time: string;
lat?: number;
lng?: number;
location?: string;
idea?: string;
items: Array<{
@ -145,6 +147,8 @@ Page({
id: journal.id,
date: Time.toPassedDateTime(journal.createdAt),
time: `${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}`,
lat: journal.lat,
lng: journal.lng,
location: journal.location,
idea: journal.idea,
items: journal.items

View File

@ -34,7 +34,7 @@
font-size: 14px;
}
.text {
> .text {
color: var(--theme-text-primary);
width: calc(100% - 32px - 2rem);
padding: 8px 16px;
@ -64,8 +64,18 @@
}
.location {
color: var(--theme-text-secondary);
text-align: right;
gap: 6rpx;
display: flex;
align-items: center;
justify-content: flex-end;
.icon {
color: var(--theme-wx);
}
.text {
color: var(--theme-text-secondary);
}
}
}

View File

@ -27,7 +27,10 @@
class="location"
bind:tap="openLocation"
data-journal-index="{{journalIndex}}"
>📍 {{journal.location}}</view>
>
<t-icon class="icon" name="location-filled" />
<text class="text">{{journal.location}}</text>
</view>
</view>
<view wx:if="{{journal.items}}" class="items">
<block wx:for="{{journal.items}}" wx:for-item="item" wx:for-index="itemIndex" wx:key="date">