38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
<navigation-bar title="预约日历" showBack="{{true}}" fallbackPath="/pages/artist-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">未来 7 �?/text>
|
|
<text class="hero-title">{{appointments.length}} 个预�?/text>
|
|
<text class="hero-desc">按时间查看即将服务的客户与项目��?/text>
|
|
<view class="hero-action-row">
|
|
<view class="hero-action secondary" bindtap="openArtistOrders">订单列表</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:if="{{loading}}" class="page-card empty-card">
|
|
<text class="empty-title">正在加载日历</text>
|
|
</view>
|
|
|
|
<view wx:elif="{{appointments.length}}">
|
|
<view wx:for="{{appointments}}" wx:key="orderItemId" class="page-card appointment-card">
|
|
<view class="day-box">
|
|
<text>{{item.dayText}}</text>
|
|
<text>{{item.timeText}}</text>
|
|
</view>
|
|
<view class="appointment-main">
|
|
<text class="appointment-title">{{item.customerNickname || '客户'}} · {{item.productTitle}}</text>
|
|
<text class="appointment-line">{{item.orderStatusText}} · {{item.shopName || '门店'}}</text>
|
|
<text class="appointment-line">{{item.amountText}}</text>
|
|
<view wx:if="{{item.orderStatus == 1}}" class="ghost-btn" data-order-id="{{item.orderId}}" bindtap="completeOrder">完成服务</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:else class="page-card empty-card">
|
|
<text class="empty-title">未来 7 天暂无预�?/text>
|
|
</view>
|
|
</view>
|
|
</view>
|