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

@ -10,7 +10,7 @@
<view class="header">
<view class="info">
<view wx:if="{{title}}" class="title">
<image wx:if="{{showLocationIcon}}" class="icon" src="../../assets/image/location.png" />
<t-icon wx:if="{{showLocationIcon}}" class="icon" name="location-filled" />
<text>{{title}}</text>
</view>
</view>
@ -26,7 +26,15 @@
<swiper-item class="swiper-item-wrapper">
<view class="journal-item">
<view class="journal-header">
<view wx:if="{{item.location && showJournalLocation}}" class="location">📍 {{item.location}}</view>
<view
wx:if="{{item.location && showJournalLocation}}"
class="location"
catchtap="openLocation"
data-journal-index="{{currentJournalIndex}}"
>
<t-icon class="icon" name="location-filled" />
<text class="text">{{item.location}}</text>
</view>
<view wx:if="{{showJournalDate}}" class="date">{{item.date}}</view>
</view>
<view wx:if="{{item.idea}}" class="idea">{{item.idea}}</view>