53 lines
2.4 KiB
Plaintext
53 lines
2.4 KiB
Plaintext
<navigation-bar title="服务进度" showBack="{{true}}" fallbackPath="/pages/orders/index" color="{{navThemeColor || '#4A443F'}}" background="{{navThemeBackground || '#FDFBF9'}}"></navigation-bar>
|
||
|
||
<view class="page-shell" style="{{themeVars}}">
|
||
<view class="page-content">
|
||
<view class="page-hero">
|
||
<text class="hero-kicker">进度追踪</text>
|
||
<text class="hero-title">{{order && order.orderNo || '订单进度'}}</text>
|
||
<text class="hero-desc">{{order && order.shopName || '查看预约、服务��评价与售后节点'}}</text>
|
||
</view>
|
||
|
||
<view wx:if="{{loading}}" class="page-card empty-card">
|
||
<text class="empty-title">正在加载进度</text>
|
||
</view>
|
||
|
||
<block wx:elif="{{order}}">
|
||
<view class="page-card progress-card">
|
||
<view wx:for="{{nodes}}" wx:key="key" class="progress-node {{item.done ? 'done' : ''}} {{item.active ? 'active' : ''}}">
|
||
<view class="node-dot"></view>
|
||
<view class="node-copy">
|
||
<text class="node-title">{{item.title}}</text>
|
||
<text class="node-text">{{item.text}}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view wx:if="{{items.length}}" class="page-card record-card">
|
||
<text class="section-title">项目进度</text>
|
||
<text wx:for="{{items}}" wx:key="id" class="record-line">{{item.productTitle}}:{{item.artistName || '待安�?}} · {{item.appointmentText || '待确�?}}</text>
|
||
</view>
|
||
|
||
<view wx:if="{{changes.length}}" class="page-card record-card">
|
||
<text class="section-title">改派记录</text>
|
||
<text wx:for="{{changes}}" wx:key="id" class="record-line">{{item.statusText || item.status || '已记�?}}:{{item.reason || item.timeImpactText || ''}}</text>
|
||
</view>
|
||
|
||
<view wx:if="{{afterSales.length}}" class="page-card record-card">
|
||
<text class="section-title">售后记录</text>
|
||
<text wx:for="{{afterSales}}" wx:key="id" class="record-line">{{item.afterSaleNo || item.id}}:{{item.status}}</text>
|
||
</view>
|
||
|
||
<view class="action-row">
|
||
<view class="secondary-btn" bindtap="openOrder">订单详情</view>
|
||
<view class="primary-btn" bindtap="openAfterSaleApply">申请售后</view>
|
||
</view>
|
||
</block>
|
||
|
||
<view wx:else class="page-card empty-card">
|
||
<text class="empty-title">未找到订单进�?/text>
|
||
<text class="empty-desc">请从订单中心重新进入�?/text>
|
||
</view>
|
||
</view>
|
||
</view>
|