Files
rlz/coupon/pages/order/order.wxml
renjianbo 97ad453e89 feat: implement serve-first-pay-later order flow
- Redesign order status: 0待接单→1已接单→2服务中→3待支付→4已完成
- Backend: startService now requires status=1, completeOrder sets status=3
- Backend: payment callback sets status=4, only status=3 can pay
- Backend: cancel only allowed at status 0/1 (not during service)
- Mini-program: update status labels and payment button to status=3
- Android: TobeSerFragment queries status=1, SerFragment queries status=2
- Update all status comments and UI mappings across three platforms

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-21 23:16:27 +08:00

51 lines
3.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<van-nav-bar title="我的订单" left-text="" right-text="" bind:click-left="onClickLeft" bind:click-right="onClickRight" style=" position: fixed;left: 0;top: 0;width: 100%;z-index: 2;" />
<view class="status-box" style="margin-top: {{height}}px;">
<view bindtap="statusTap" class="status-label {{index == currentType ? 'active' : ''}}" wx:for-items="{{statusType}}" wx:key="{{index}}" data-index="{{index}}">
{{item}}
<view class="{{tabClass[index]}}"></view>
</view>
</view>
<view class="no-order" style="margin-top: {{height}}px;" wx:if="{{!order_list.length}}">
<image style="width: 200rpx;height: 200rpx;" src="/pages/image/empty.png" class="no-order-img"></image>
<view class="text">暂无订单</view>
</view>
<!-- 全部 -->
<view wx:if="{{nav_type==1||all}}">
<view class="order-list" wx:if="{{order_list.length}}">
<view wx:for="{{order_list}}" data-index="{{index}}" data-status="{{item.status}}" data-item="{{item}}" wx:for-item="item" bindtap="itemclick" class="flex-item">
<view style=" padding: 0 24rpx;height:366rpx;position: relative;background: #ffffff;">
<view style="height:66rpx;">
<text class="time_msg">订单号:{{item.orderNumber}}</text>
<!-- 订单状态:-2已取消 -1拒绝接单 0待接单 1已接单 2服务中 3待支付 4已完成 5申请退款 6退款中 7已退款 8已结算 -->
<view wx:if="{{item.status==-2}}" class="status_msg">{{"已取消"}}</view>
<view wx:if="{{item.status==-1}}" class="status_msg">{{"拒绝接单"}}</view>
<view wx:if="{{item.status==0}}" class="status_msg">{{"待接单"}}</view>
<view wx:if="{{item.status==1}}" class="status_msg">{{"已接单"}}</view>
<view wx:if="{{item.status==2}}" class="status_msg">{{"服务中"}}</view>
<view wx:if="{{item.status==3}}" class="status_msg">{{"待支付"}}</view>
<view wx:if="{{item.status==4}}" class="status_msg">{{"已完成"}}</view>
<view wx:if="{{item.status==5}}" class="status_msg">{{"申请退款"}}</view>
<view wx:if="{{item.status==6}}" class="status_msg">{{"退款中"}}</view>
<view wx:if="{{item.status==7}}" class="status_msg">{{"已退款"}}</view>
<view wx:if="{{item.status==8}}" class="status_msg">{{"已结算"}}</view>
</view>
<view style="height: 1rpx;background: #ECECEC;"></view>
<view class="details_box">
<image src="{{item.userbAvatar}}" class="Group-image"></image>
<view style="margin-left: 31rpx;margin-top: 40rpx;">
<view class="title">{{item.userbName}}</view>
<view class="detail_number">{{item.serviceTime}}天</view>
<view class="money">实付款:<text style="font-size: 30rpx;color: #FF8F1F;font-family: PingFang SC;font-weight: bold;">¥{{item.yuguMoney}}元</text></view>
</view>
<view class="detail_btn" bindtap="go_pay" data-id="{{item.order_id}}" wx:if="{{item.status==3}}" data-item="{{item}}">去付款</view>
<!-- <view class="detail_btn" bindtap="go_Qcode" data-id="{{item.order_id}}" wx:if="{{item.status==1}}">查看二维码</view> -->
</view>
</view>
</view>
</view>
</view>