feat: 整体页面优化,删除无用svg
This commit is contained in:
@@ -13,14 +13,24 @@
|
||||
<view class="wd-counter" wx:if="{{swiperList.length > 0}}">
|
||||
<text>{{activeImageIndex + 1}} / {{swiperList.length}}</text>
|
||||
</view>
|
||||
<!-- Share Button -->
|
||||
<button class="header-share-btn" open-type="share">
|
||||
<t-icon name="share" size="40rpx" color="#FFF" />
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<!-- Plant Name Card -->
|
||||
<view class="wd-name-card">
|
||||
<view class="wd-name-row">
|
||||
<text class="wd-name">{{plant.name}}</text>
|
||||
<text class="wd-name" style="padding-right: 60rpx;">{{plant.name}}</text>
|
||||
<text class="wd-scientific" wx:if="{{plant.latinName}}">{{plant.latinName}}</text>
|
||||
</view>
|
||||
|
||||
<!-- Collect Button -->
|
||||
<view class="card-collect-btn" bindtap="toggleFavorite">
|
||||
<t-icon name="{{plant.isFavorited ? 'heart-filled' : 'heart'}}" size="52rpx" color="{{plant.isFavorited ? '#EF4444' : '#D1D5DB'}}" />
|
||||
</view>
|
||||
|
||||
<view class="wd-badges" wx:if="{{plant.genus || plant.classes.length > 0}}">
|
||||
<text class="wd-badge" wx:if="{{plant.genus}}">{{plant.genus}}</text>
|
||||
<text class="wd-badge" wx:for="{{plant.classes}}" wx:key="*this">{{item}}</text>
|
||||
@@ -37,6 +47,8 @@
|
||||
<text class="wd-text">{{plant.growthHabit}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
<!-- Basic Info -->
|
||||
<view class="wd-section">
|
||||
@@ -183,8 +195,10 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="height: 120rpx;"></view>
|
||||
<view style="height: 40rpx;"></view>
|
||||
</scroll-view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
<!-- Loading -->
|
||||
|
||||
Reference in New Issue
Block a user