Commit 5b2f023a by 朱继来

调整付款时间显示

parent 6bd0cfff
Showing with 11 additions and 3 deletions
...@@ -177,7 +177,11 @@ ...@@ -177,7 +177,11 @@
@if ($order_info['status'] == 2) @if ($order_info['status'] == 2)
<div class="checked_section"> <div class="checked_section">
<div class="checked_left"> <div class="checked_left">
<p>交易状态:&nbsp;审核通过,请联系客户及时付款!订单付款时间截止至:{{date('Y-m-d H:i:s', $order_info['pay_time'])}}</p> <p>交易状态:&nbsp;审核通过,请联系客户及时付款!
@if ($order_info['pay_time'])
<span>订单付款时间截止至:{{date('Y-m-d H:i:s', $order_info['pay_time'])}}</span>
@endif
</p>
@if ($order_info['adjust_count'] < 2) @if ($order_info['adjust_count'] < 2)
<a class="btn btn-default" href="{{URL('adjustPrice', ['order_id'=>$order_info['order_id']])}}">再次调价</a><span class="warn-tip">每笔订单仅有一次“再次调价”机会</span> <a class="btn btn-default" href="{{URL('adjustPrice', ['order_id'=>$order_info['order_id']])}}">再次调价</a><span class="warn-tip">每笔订单仅有一次“再次调价”机会</span>
...@@ -212,9 +216,13 @@ ...@@ -212,9 +216,13 @@
var currency = "{{$order_info['currency']}}"; var currency = "{{$order_info['currency']}}";
var order_pay_type = "{{$order_info['order_pay_type']}}"; var order_pay_type = "{{$order_info['order_pay_type']}}";
var rest_time = "{{$order_info['pay_time'] - time()}}"; var rest_time = "{{$order_info['pay_time'] ? $order_info['pay_time'] - time() : NULL}}";
countDown(rest_time); if (rest_time) {
countDown(rest_time);
} else {
$('.checked_right').hide();
}
// 倒计时 // 倒计时
function countDown(times){ function countDown(times){
......
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