作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

代理人注册

... ... @@ -29,11 +29,11 @@
<div>
<if condition="$data['status'] eq 1">
托管中
<elseif condition="$data['status'] eq 3 && $data['order_about_time'] lt time()"/>
<elseif condition="$data['status'] eq 3 && ($data['order_about_time']-30*24*60*60) lt time() && $data['order_about_time'] gt time()"/>
即将到期
<elseif condition="$data['status'] eq 3 && $data['order_expire_time'] gt time()"/>
<elseif condition="$data['status'] eq 3 && $data['order_expire_time'] gt time() && $data['order_about_time'] gt time()"/>
托管中
<elseif condition="$data['status'] eq 2 || $data['status'] eq 3 && $data['order_expire_time'] lt time()"/>
<elseif condition="$data['status'] eq 2 || $data['status'] eq 3 && $data['order_expire_time'] lt time() || $data['status'] eq 3 && $data['order_about_time'] lt time()"/>
未托管
</if>
</div>
... ...
... ... @@ -63,11 +63,11 @@
<div>
<if condition="$c_d['status'] eq 1">
托管中
<elseif condition="$c_d['status'] eq 3 && $c_d['order_about_time'] lt time() && $c_d['order_expire_time'] gt time()"/>
<elseif condition="$c_d['status'] eq 3 && ($c_d['order_about_time']-30*24*60*60) lt time() && $c_d['order_about_time'] gt time()"/>
即将到期
<elseif condition="$c_d['status'] eq 3 && $c_d['order_expire_time'] gt time()"/>
<elseif condition="$c_d['status'] eq 3 && $c_d['order_expire_time'] gt time() && $c_d['order_about_time'] gt time()"/>
托管中
<elseif condition="$c_d['status'] eq 2 || ($c_d['status'] eq 3 && $c_d['order_expire_time'] lt time())"/>
<elseif condition="$c_d['status'] eq 2 || $c_d['status'] eq 3 && $c_d['order_expire_time'] lt time() || $c_d['status'] eq 3 && $c_d['order_about_time'] lt time()"/>
未托管
</if>
</div>
... ... @@ -143,11 +143,13 @@
}else if(status == 0){
if(n.status == 1){
type = "托管中";
}else if(n.status == 3 && n.order_about_time < {:time()} && n.order_expire_time > {:time()}){
}else if(n.status == 3 && n.order_about_time-30*24*60*60 < {:time()} && n.order_about_time > {:time()}){
type = "即将到期";
}else if(n.status == 3 && n.order_expire_time > {:time()}){
}else if(n.status == 3 && n.order_expire_time > {:time()} && n.order_about_time > {:time()}){
type = "托管中";
}else if(n.status != 3 || (n.status == 3 && n.order_expire_time < time())){
}else if(n.status == 2 || (n.status == 3 && n.order_expire_time < time()) || n.status == 3 && n.order_about_time < {:time()}){
type = "未托管";
}else{
type = "未托管";
}
}
... ...