Commit d52bb5a0 by 朱继来

退款申请已处理或已拒绝,则隐藏退款按钮

parent 4385575f
Showing with 10 additions and 2 deletions
...@@ -662,7 +662,7 @@ ...@@ -662,7 +662,7 @@
@endif @endif
@if (in_array($order_info['status'], array(3, 4, 7))) @if (in_array($order_info['status'], array(3, 4, 7)))
<a href="{{URL('refund', ['order_id'=>$order_info['order_id']])}}" class="btn btn-info">退货退款</a> <a href="{{URL('refund', ['order_id'=>$order_info['order_id']])}}" class="btn btn-info order_refund">退货退款</a>
@endif @endif
<!-- 已发货之后的状态 --> <!-- 已发货之后的状态 -->
...@@ -818,7 +818,14 @@ ...@@ -818,7 +818,14 @@
</div> </div>
</div> </div>
<script> <script>
// 退款申请已处理或已拒绝,则隐藏退款按钮
var refund = "{{!empty($order_refund_info) && ($order_refund_info['status'] == -1 || $order_refund_info['status'] == 10) ? false : true}}";
if (refund) {
$('.order_refund').show();
} else {
$('.order_refund').hide();
}
$.lie.order.details(); $.lie.order.details();
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment