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

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
+44 -5
View File
@@ -25,7 +25,20 @@
</view>
<view wx:if="{{item.shopNameText}}" class="order-shop">{{item.shopNameText}}</view>
<view wx:for="{{item.items}}" wx:key="id" wx:for-item="orderItem" class="order-item">
<view wx:if="{{item.timeline && item.timeline.length}}" class="order-timeline">
<view
wx:for="{{item.timeline}}"
wx:key="key"
wx:for-item="node"
class="timeline-node {{node.done ? 'done' : ''}} {{node.active ? 'active' : ''}}"
>
<text class="timeline-title">{{node.title}}</text>
<text class="timeline-text">{{node.text}}</text>
<text wx:if="{{node.subText}}" class="timeline-sub">{{node.subText}}</text>
</view>
</view>
<view wx:for="{{item.items}}" wx:key="id" wx:for-item="orderItem" class="order-item {{orderItem.focusTarget ? 'focus-target' : ''}}">
<image class="order-thumb" src="{{orderItem.productImageUrl}}" mode="aspectFill" lazy-load="{{true}}"></image>
<view class="order-main">
<view class="order-title">{{orderItem.productTitle}}</view>
@@ -69,11 +82,20 @@
<view wx:if="{{orderItem.pendingArtistChangeRequest}}" class="change-panel">
<text class="assist-label">待确认改派</text>
<text class="assist-main">{{orderItem.pendingArtistChangeRequest.displayText}}</text>
<text class="assist-main">{{orderItem.pendingArtistChangeRequest.originalArtistText}}</text>
<text class="assist-main">{{orderItem.pendingArtistChangeRequest.requestedArtistText}}</text>
<text wx:if="{{orderItem.pendingArtistChangeRequest.reasonText}}" class="assist-desc">原因:{{orderItem.pendingArtistChangeRequest.reasonText}}</text>
<view class="impact-list">
<text
wx:for="{{orderItem.pendingArtistChangeRequest.impactLines}}"
wx:key="*this"
wx:for-item="impactLine"
class="impact-line"
>{{impactLine}}</text>
</view>
<view class="change-actions">
<view class="change-btn primary" data-request-id="{{orderItem.pendingArtistChangeRequest.id}}" bindtap="handleApproveArtistChange">同意改派</view>
<view class="change-btn" data-request-id="{{orderItem.pendingArtistChangeRequest.id}}" bindtap="handleRejectArtistChange">拒绝</view>
<view class="change-btn primary" data-request-id="{{orderItem.pendingArtistChangeRequest.id}}" data-confirm-text="{{orderItem.pendingArtistChangeRequest.confirmText}}" bindtap="handleApproveArtistChange">同意改派</view>
<view class="change-btn" data-request-id="{{orderItem.pendingArtistChangeRequest.id}}" data-confirm-text="{{orderItem.pendingArtistChangeRequest.confirmText}}" bindtap="handleRejectArtistChange">拒绝</view>
</view>
</view>
</view>
@@ -81,7 +103,10 @@
<view class="order-foot">
<text class="order-amount">总计:{{item.actualAmountText}}</text>
<view wx:if="{{item.status == 1}}" class="cancel-btn" data-order-id="{{item.id}}" bindtap="handleCancelOrder">取消订单</view>
<view class="order-actions">
<view wx:if="{{item.canRebook}}" class="rebook-btn" data-order-id="{{item.id}}" bindtap="handleRebookOrder">复刻同款</view>
<view wx:if="{{item.status == 1}}" class="cancel-btn" data-order-id="{{item.id}}" bindtap="handleCancelOrder">取消订单</view>
</view>
</view>
</view>
</block>
@@ -90,6 +115,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>