完善退款

This commit is contained in:
TOP糯米 2023-03-18 23:23:03 +08:00
parent 1f02e2722b
commit 89582d28a4
2 changed files with 23 additions and 9 deletions

View File

@ -8,17 +8,17 @@
</view>
</block>
<block v-if="order.state == 1">
<view class="btn" @click.stop="cancelOrder">
<!-- <view class="btn" @click.stop="cancelOrder">
<text>取消订单</text>
</view>
</view> -->
</block>
</block>
<!-- /议价 -->
<block v-if="order.listType == 't2'">
<block v-if="order.state == 0">
<view class="btn" @click.stop="cancelOrder">
<!-- <view class="btn" @click.stop="cancelOrder">
<text>取消订单</text>
</view>
</view> -->
</block>
<block v-if="order.state == 1">
<view class="btn" @click.stop="payOrder">
@ -49,8 +49,13 @@
</view>
</block>
<block v-if="order.state == 7">
<view class="btn" @click.stop="cancelRefund">
<!-- <view class="btn" @click.stop="cancelRefund">
<text>取消申请</text>
</view> -->
</block>
<block v-if="order.state == 8">
<view class="btn normal">
<text>已退款</text>
</view>
</block>
<block v-if="order.state == 9">
@ -67,9 +72,9 @@
</view>
</block>
<block v-if="order.state == 1">
<view class="btn" @click.stop="cancelOrder">
<!-- <view class="btn" @click.stop="cancelOrder">
<text>取消订单</text>
</view>
</view> -->
</block>
<block v-if="order.state == 2 || order.state == 3">
<view class="btn" @click.stop="finishOrder">
@ -160,7 +165,7 @@ export default {
* 评价
*/
appraiseOrder() {
this.$utils.toPage("/pages/worker/appraise?id=" + this.order.worker.id);
this.$utils.toast("敬请期待");
},
/**
* 退款
@ -185,7 +190,12 @@ export default {
* 查看未通过原因
*/
showReason() {
this.$utils.toPage("/pages/order/refund?type=reason&id=" + this.order.worker.id);
uni.showModal({
title: "驳回原因",
content: this.order.rejectDesc,
showCancel: false,
});
// this.$utils.toPage("/pages/order/refund?type=reason&id=" + this.order.worker.id);
},
},
};
@ -212,6 +222,9 @@ export default {
color: #666666;
line-height: 26rpx;
}
.btn.normal {
border: 0;
}
.btn.active {
color: #666666;
}

View File

@ -105,6 +105,7 @@ export default {
orderType: item.types,
price: item.money,
state: item.status,
rejectDesc: item.backdesc,
workerList: [],
};
// 尾款