优化逻辑

This commit is contained in:
TOP糯米 2023-03-16 21:15:56 +08:00
parent 7c35075274
commit af6e4b67c8
3 changed files with 26 additions and 5 deletions

View File

@ -66,7 +66,12 @@
<text>立即支付</text>
</view>
</block>
<block v-if="order.state == 1 || order.state == 2">
<block v-if="order.state == 1">
<view class="btn" @click.stop="cancelOrder">
<text>取消订单</text>
</view>
</block>
<block v-if="order.state == 2 || order.state == 3">
<view class="btn" @click.stop="">
<text>确认完成</text>
</view>

View File

@ -31,6 +31,11 @@
>
<order-item :order="item" :index="index">
<view class="action-group">
<view class="price">
<block v-if="item.listType == 't1' || item.listType == 't3'">
<text>¥ {{ item.price }}</text>
</block>
</view>
<order-action :order="item" @afterPay="afterPay" />
</view>
</order-item>
@ -227,6 +232,17 @@ export default {
.action-group {
width: 100%;
padding: 30rpx 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.price {
width: 250rpx;
font-size: 42rpx;
font-weight: bold;
color: #ec7655;
line-height: 42rpx;
flex-shrink: 0;
}
}
</style>

View File

@ -22,10 +22,10 @@ S2 1 已选择师傅,用户待支付 【用户:取消订单|立即支付】
S3 2 ...同上
T3 货运订单:
S1 0 需要支付
S2 1 待师傅接单
S3 2 师傅已接单,进行中
S4 3 用户确认已完成
S1 0 需要支付 【用户:立即支付】
S2 1 待师傅接单 【用户:取消订单】
S3 2 师傅已接单,进行中 【用户:确认完成】
S4 3 用户确认已完成 【用户s已完成】【师傅s已完成】
S5 9 交易失败
T4 退款记录: