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

是否豁免问题

... ... @@ -67,13 +67,15 @@
<img src="{:cmf_get_image_url($c_d.thumbnail)}" alt="">
</div>
<div>
<if condition="$c_d['status'] eq 1">
托管中
<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()"/>
<if condition="$c_d['status'] eq 3 && $c_d['order_about_time'] lt time() && ($c_d['order_about_time']+30*24*60*60) gt time() || ($c_d['status'] eq 1 && $c_d['order_about_time'] lt time() && ($c_d['order_about_time']+30*24*60*60) 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 1 && $c_d['order_expire_time2'] gt time()"/>
托管中
<elseif condition="$c_d['status'] eq 3 && $c_d['order_expire_time2'] gt 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()"/>
<elseif condition="$c_d['status'] eq 2"/>
未托管
<else />
未托管
</if>
</div>
... ... @@ -147,13 +149,13 @@
}else if(status == 3){
type = "未托管";
}else if(status == 0){
if(n.status == 1 && n.order_about_time > {:time()}){
type = "托管中";
}else if(n.status == 3 && n.order_about_time < {:time()} && (n.order_about_time+30*24*60*60) > {:time()} || n.status == 1 && n.order_about_time < {:time()} && (n.order_about_time+30*24*60*60) > {:time()}){
if(n.status == 3 && n.order_about_time < {:time()} && (n.order_about_time+30*24*60*60) > {:time()} || n.status == 1 && n.order_about_time < {:time()} && (n.order_about_time+30*24*60*60) > {:time()}){
type = "即将到期";
}else if(n.status == 3 && n.order_expire_time > {:time()} && n.order_about_time > {:time()}){
}else if(n.status == 1 && n.order_expire_time2 > {:time()}){
type = "托管中";
}else if(n.status == 3 && n.order_expire_time2 > {:time()}){
type = "托管中";
}else if(n.status == 2 || n.order_expire_time < {:time()} || (n.order_about_time+30*24*60*60) < {:time()}){
}else if(n.status == 2){
type = "未托管";
}else{
type = "未托管";
... ...