功能(小程序):同步用户体验流程到小程序

This commit is contained in:
xiaowang
2026-05-23 21:56:52 +08:00
parent 861eea933b
commit b67dae502f
38 changed files with 2163 additions and 126 deletions
+24 -1
View File
@@ -15,7 +15,22 @@
<text class="hero-desc">喜欢的款式先收藏。</text>
</view>
<view wx:for="{{wishlist}}" wx:key="id" class="wishlist-item">
<scroll-view wx:if="{{groups.length}}" class="wishlist-groups" scroll-x enhanced show-scrollbar="{{false}}">
<view
class="wishlist-group-chip {{!activeGroupId ? 'wishlist-group-chip--active' : ''}}"
data-group-id=""
bindtap="handleGroupSelect"
>全部</view>
<view
wx:for="{{groups}}"
wx:key="id"
class="wishlist-group-chip {{item.active ? 'wishlist-group-chip--active' : ''}}"
data-group-id="{{item.id}}"
bindtap="handleGroupSelect"
>{{item.name}}</view>
</scroll-view>
<view wx:for="{{visibleWishlist}}" wx:key="id" class="wishlist-item">
<product-card
item="{{item.productCard}}"
show-quick-add="{{true}}"
@@ -23,10 +38,18 @@
bindselect="handleProductSelect"
bindquickadd="handleQuickAdd"
></product-card>
<view class="wishlist-meta">
<text class="wishlist-group-name">{{item.groupName || '最近想做'}}</text>
<text wx:if="{{item.note}}" class="wishlist-note">{{item.note}}</text>
</view>
<view class="wishlist-actions">
<view class="wishlist-action wishlist-action--secondary" data-product-id="{{item.productId}}" bindtap="handleRemove">取消收藏</view>
</view>
</view>
<view wx:if="{{!visibleWishlist.length}}" class="page-card empty-card">
<text class="empty-title">当前分组还没有作品</text>
</view>
</block>
<view wx:elif="{{loading}}" class="page-card empty-card">