功能:收口小程序前后台安全与防重复提交
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<view class="page-content">
|
||||
<view wx:if="{{!isLoggedIn}}" class="page-card empty-card">
|
||||
<text class="empty-title">登录后查看收藏</text>
|
||||
<text class="empty-desc">你收藏过的作品会保存在这里,方便之后快速回看。</text>
|
||||
<text class="empty-desc">登录后查看收藏作品。</text>
|
||||
<view class="ghost-btn" bindtap="handleOpenAuth">去登录</view>
|
||||
</view>
|
||||
|
||||
@@ -12,12 +12,20 @@
|
||||
<view class="page-hero wishlist-hero">
|
||||
<text class="hero-kicker">收藏夹</text>
|
||||
<text class="hero-title">已收藏 {{wishlist.length}} 个作品</text>
|
||||
<text class="hero-desc">遇到喜欢的款式先放进收藏,之后再决定是否预约会更从容。</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>
|
||||
<product-card
|
||||
item="{{item.productCard}}"
|
||||
show-quick-add="{{true}}"
|
||||
in-cart="{{item.productCard.inCart}}"
|
||||
bindselect="handleProductSelect"
|
||||
bindquickadd="handleQuickAdd"
|
||||
></product-card>
|
||||
<view class="wishlist-actions">
|
||||
<view class="wishlist-action wishlist-action--secondary" data-product-id="{{item.productId}}" bindtap="handleRemove">取消收藏</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
@@ -27,7 +35,7 @@
|
||||
|
||||
<view wx:else class="page-card empty-card">
|
||||
<text class="empty-title">你还没有收藏作品</text>
|
||||
<text class="empty-desc">遇到喜欢的款式先收藏,之后再决定要不要预约。</text>
|
||||
<text class="empty-desc">先去逛逛作品。</text>
|
||||
<view class="ghost-btn" bindtap="handleBack">去逛作品</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user