Commit 08f82585 by 施宇

添加询价有效期

parent a67a4816
...@@ -118,11 +118,15 @@ ...@@ -118,11 +118,15 @@
<div class="fl num ellipsis">{{item.goods_name}}</div> <div class="fl num ellipsis">{{item.goods_name}}</div>
</div> </div>
<div class="item_middle clr"> <div class="item_middle clr">
{{# if(item.end_time < item.current_time){ }}
<div class="fl gq">已过期</div>
{{# } else { }}
{{# if(item.offer_num){ }} {{# if(item.offer_num){ }}
<div class="fl xjNum">{{item.offer_num}}个报价</div> <div class="fl xjNum">{{item.offer_num}}个报价</div>
{{# } else { }} {{# } else { }}
<div class="fl xj0">等待报价</div> <div class="fl xj0">等待报价</div>
{{# } }} {{# } }}
{{# } }}
<div class="fr time">{{layui.util.toDateString(item.add_time * 1000)}}</div> <div class="fr time">{{layui.util.toDateString(item.add_time * 1000)}}</div>
</div> </div>
<div class="item_bottom"> <div class="item_bottom">
......
...@@ -327,6 +327,11 @@ body { ...@@ -327,6 +327,11 @@ body {
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
} }
.goods_data_list .my_xj_list .my_xj_item .item_middle .gq {
color: #686E73;
font-size: 14px;
font-weight: 600;
}
.goods_data_list .my_xj_list .my_xj_item .item_middle .xj0 { .goods_data_list .my_xj_list .my_xj_item .item_middle .xj0 {
color: #61A0F2; color: #61A0F2;
font-size: 14px; font-size: 14px;
......
...@@ -387,6 +387,11 @@ body { ...@@ -387,6 +387,11 @@ body {
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
} }
.gq {
color: #686E73;
font-size: 14px;
font-weight: 600;
}
.xj0 { .xj0 {
color: #61A0F2; color: #61A0F2;
......
...@@ -69,6 +69,11 @@ $(function () { ...@@ -69,6 +69,11 @@ $(function () {
if (type == 1) { if (type == 1) {
arr = res.data; arr = res.data;
} else { } else {
var currentTime = new Date().toLocaleDateString();
var currentTimeStap =new Date(currentTime+' 23:59:59').getTime()/1000;
for(var k in res.inquiry_list){
res.inquiry_list[k].current_time = currentTimeStap
}
arr = res.inquiry_list arr = res.inquiry_list
} }
layui.laytpl(getTpl).render(arr, function (html) { layui.laytpl(getTpl).render(arr, function (html) {
......
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