35 lines
1.6 KiB
Plaintext
35 lines
1.6 KiB
Plaintext
<navigation-bar title="我的收藏" color="#2d2430" background="#fff7f8" bindback="handleBack"></navigation-bar>
|
|
|
|
<view class="page-shell wishlist-page">
|
|
<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>
|
|
|
|
<view wx:for="{{wishlist}}" wx:key="id" class="wishlist-item">
|
|
<product-card item="{{item.productCard}}" bindselect="handleProductSelect"></product-card>
|
|
<view class="wishlist-action" data-product-id="{{item.productId}}" bindtap="handleRemove">取消收藏</view>
|
|
</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>
|