统一甲屿云命名体系
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<navigation-bar title="我的收藏" showBack="{{true}}" fallbackPath="/pages/profile/index" color="{{navThemeColor || '#4A443F'}}" background="{{navThemeBackground || '#FDFBF9'}}"></navigation-bar>
|
||||
|
||||
<view class="page-shell wishlist-page" style="{{themeVars}}">
|
||||
<view class="page-content">
|
||||
<view wx:if="{{!isLoggedIn}}" class="page-card empty-card">
|
||||
<text class="empty-title">登录后查看收藏</text>
|
||||
<text class="empty-desc">登录后查看收藏作品。</text>
|
||||
<view class="ghost-btn" bindtap="handleOpenAuth">去登录</view>
|
||||
</view>
|
||||
|
||||
<block wx:elif="{{wishlist.length}}">
|
||||
<view class="page-hero wishlist-hero">
|
||||
<text class="hero-kicker">收藏夹</text>
|
||||
<text class="hero-title">已收藏 {{wishlist.length}} 个作品</text>
|
||||
<text class="hero-desc">喜欢的款式先收藏。</text>
|
||||
</view>
|
||||
|
||||
<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}}"
|
||||
in-cart="{{item.productCard.inCart}}"
|
||||
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">
|
||||
<text class="empty-title">正在加载收藏内容</text>
|
||||
</view>
|
||||
|
||||
<view wx:else class="page-card empty-card">
|
||||
<text class="empty-title">你还没有收藏作品</text>
|
||||
<text class="empty-desc">先去逛逛作品。</text>
|
||||
<view class="ghost-btn" bindtap="handleBack">去逛作品</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user