Files
JayuCloud/WeChatProgram/pages/artist-orders/index.wxml

48 lines
2.3 KiB
Plaintext

<navigation-bar title="美甲师订�? showBack="{{true}}" fallbackPath="/pages/profile/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">{{orders.length}} 笔相关订�?/text>
<text class="hero-desc">查看客户预约、项目和服务完成状����?/text>
<view class="hero-action-row">
<view class="hero-action secondary" bindtap="openCalendar">预约日历</view>
</view>
</view>
<view wx:if="{{loading}}" class="page-card empty-card">
<text class="empty-title">正在加载订单</text>
</view>
<view wx:elif="{{orders.length}}">
<view wx:for="{{orders}}" wx:key="id" class="page-card order-card {{item.id == focusOrderId ? 'focus-target' : ''}}">
<view class="order-head">
<view>
<text class="order-no">{{item.orderNo}}</text>
<text class="order-line">{{item.customerNickname || '客户'}} {{item.customerPhoneMasked || ''}}</text>
</view>
<text class="chip">{{item.statusText}}</text>
</view>
<view wx:for="{{item.items}}" wx:key="id" wx:for-item="orderItem" class="item-row">
<image class="item-thumb" src="{{orderItem.productImageUrl}}" mode="aspectFill"></image>
<view class="item-main">
<text class="item-title">{{orderItem.productTitle}}</text>
<text class="item-line">{{orderItem.priceText}} x {{orderItem.quantity}}</text>
<text wx:if="{{orderItem.appointmentText}}" class="item-line">预约:{{orderItem.appointmentText}}</text>
</view>
</view>
<view class="order-foot">
<text class="order-amount">{{item.amountText}}</text>
<view wx:if="{{item.status == 1}}" class="ghost-btn" data-order-id="{{item.id}}" bindtap="completeOrder">完成服务</view>
</view>
</view>
</view>
<view wx:else class="page-card empty-card">
<text class="empty-title">暂无相关订单</text>
<text class="empty-desc">有客户预约你服务的项目后会出现在这里�?/text>
</view>
</view>
</view>