功能(小程序):同步用户体验流程到小程序
This commit is contained in:
@@ -9,10 +9,24 @@
|
||||
</view>
|
||||
|
||||
<block wx:elif="{{cartItems.length}}">
|
||||
<view wx:if="{{recoveryState.visible}}" class="page-card recovery-card">
|
||||
<text class="recovery-title">{{recoveryState.title}}</text>
|
||||
<text class="recovery-desc">{{recoveryState.message}}</text>
|
||||
<view class="recovery-actions">
|
||||
<view
|
||||
wx:for="{{recoveryState.actions}}"
|
||||
wx:key="key"
|
||||
class="recovery-btn {{item.primary ? 'primary' : ''}}"
|
||||
data-key="{{item.key}}"
|
||||
bindtap="handleRecoveryAction"
|
||||
>{{item.text}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="page-hero cart-hero">
|
||||
<text class="hero-kicker">结算准备</text>
|
||||
<text class="hero-title">已选 {{selectedCount}} 个预约项目</text>
|
||||
<text class="hero-desc">确认美甲师和时间后再下单。</text>
|
||||
<text class="hero-kicker">{{heroKicker}}</text>
|
||||
<text class="hero-title">{{heroTitle}}</text>
|
||||
<text class="hero-desc">{{heroDesc}}</text>
|
||||
|
||||
<view class="summary-strip">
|
||||
<view class="summary-metric">
|
||||
@@ -93,7 +107,7 @@
|
||||
|
||||
<view wx:if="{{selectedCount}}" class="page-card coupon-card">
|
||||
<view class="section-title">优惠方式</view>
|
||||
<view class="section-subtitle">系统会优先匹配 VIP 优惠。</view>
|
||||
<view class="section-subtitle">{{vipTip || '系统会优先匹配 VIP 优惠。'}}</view>
|
||||
|
||||
<radio-group bindchange="handleCouponChange">
|
||||
<label class="coupon-option">
|
||||
@@ -107,14 +121,24 @@
|
||||
<radio value="{{coupon.key}}" checked="{{selectedCouponKey === coupon.key}}" color="{{navThemeColor || '#C6597D'}}"></radio>
|
||||
<view class="coupon-texts">
|
||||
<view class="coupon-name">{{coupon.displayText}}</view>
|
||||
<view class="coupon-desc">{{coupon.sourceType === 'SYSTEM_VIP' ? 'VIP 自动折扣' : '用户优惠券'}}</view>
|
||||
<view class="coupon-desc">{{coupon.savingText || (coupon.sourceType === 'SYSTEM_VIP' ? 'VIP 自动折扣' : '用户优惠券')}}</view>
|
||||
</view>
|
||||
<view class="coupon-tag">{{coupon.sourceType === 'SYSTEM_VIP' ? '推荐' : '手动选择'}}</view>
|
||||
</label>
|
||||
</radio-group>
|
||||
|
||||
<view wx:if="{{unavailableCoupons.length}}" class="unavailable-coupon-list">
|
||||
<view class="unavailable-title">本单暂不可用</view>
|
||||
<view wx:for="{{unavailableCoupons}}" wx:key="key" wx:for-item="coupon" class="unavailable-coupon">
|
||||
<text>{{coupon.displayText}}</text>
|
||||
<text>{{coupon.unavailableReason || '本单暂不可用'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="page-card summary-card">
|
||||
<view wx:if="{{checkoutPreview && checkoutPreview.summaryText}}" class="summary-preview">{{checkoutPreview.summaryText}}</view>
|
||||
<view wx:if="{{vipTip}}" class="summary-vip">{{vipTip}}</view>
|
||||
<view class="summary-row">
|
||||
<text>选中项目</text>
|
||||
<text>{{selectedCount}} 项</text>
|
||||
@@ -124,11 +148,11 @@
|
||||
<text>{{totalQuantity}} 件</text>
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
<text>小计</text>
|
||||
<text>商品小计</text>
|
||||
<text>{{subtotalText}}</text>
|
||||
</view>
|
||||
<view class="summary-row">
|
||||
<text>优惠</text>
|
||||
<text>已省</text>
|
||||
<text>-{{discountAmountText}}</text>
|
||||
</view>
|
||||
<view class="summary-row total">
|
||||
@@ -142,6 +166,20 @@
|
||||
<text class="empty-title">正在加载购物车</text>
|
||||
</view>
|
||||
|
||||
<view wx:elif="{{recoveryState.visible}}" class="page-card recovery-card">
|
||||
<text class="recovery-title">{{recoveryState.title}}</text>
|
||||
<text class="recovery-desc">{{recoveryState.message}}</text>
|
||||
<view class="recovery-actions">
|
||||
<view
|
||||
wx:for="{{recoveryState.actions}}"
|
||||
wx:key="key"
|
||||
class="recovery-btn {{item.primary ? 'primary' : ''}}"
|
||||
data-key="{{item.key}}"
|
||||
bindtap="handleRecoveryAction"
|
||||
>{{item.text}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view wx:else class="page-card empty-card">
|
||||
<text class="empty-title">购物车还是空的</text>
|
||||
<text class="empty-desc">先加购,再预约。</text>
|
||||
|
||||
Reference in New Issue
Block a user