Commit 19982fe2 by 施宇

123123

parent dd0ce8e1
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
<div class="nav_title">询报价 > 我的询价</div> <div class="nav_title">询报价 > 我的询价</div>
<div class="xj_total clr"> <div class="xj_total clr">
<div class="fl xj"> <div class="fl xj">
<h3>85</h3> <h3>--</h3>
<p>发布的询价</p> <p>发布的询价</p>
</div> </div>
<div class="fl wxj"> <div class="fl wxj">
<h3>85</h3> <h3>--</h3>
<p>无回复询价</p> <p>无回复询价</p>
</div> </div>
<div class="center_line"></div> <div class="center_line"></div>
...@@ -103,11 +103,16 @@ ...@@ -103,11 +103,16 @@
<a class="icon iconfont iconjuxing2 fr"></a> <a class="icon iconfont iconjuxing2 fr"></a>
{{# if(item['status/eq'] !== 1){ }} {{# if(item['status/eq'] !== 1){ }}
{{# if(item['audit_status'] == 1){ }} {{# if(item['audit_status'] == 1){ }}
<a class="xj xj_status fr">下架</a>
{{# } else { }} {{# } else { }}
<a class="xj xj_status fr disabled">下架</a>
{{# } }} {{# } }}
<a class="xj xj_status fr">下架</a>
{{# } else { }} {{# } else { }}
{{# if(item['audit_status'] == 1){ }}
<a class="fb xj_status fr">发布</a> <a class="fb xj_status fr">发布</a>
{{# } else { }}
<a class="fb xj_status fr disabled">发布</a>
{{# } }}
{{# } }} {{# } }}
<div class="show_more" style="display:none"></div> <div class="show_more" style="display:none"></div>
</div> </div>
...@@ -137,7 +142,7 @@ ...@@ -137,7 +142,7 @@
{{item.price}} {{item.price}}
</div> </div>
<div class="company fl ellipsis boxsiz"><span class="mark">贸易商</span><span <div class="company fl ellipsis boxsiz"><span class="mark">贸易商</span><span
class="name">{{item.company_name}}</span></div> class="name">{{item.company_name||'--'}}</span></div>
<div class="fr wx"> <div class="fr wx">
<span class="icon iconfont iconjuxing7"></span> <span class="icon iconfont iconjuxing7"></span>
</div> </div>
......
...@@ -14,46 +14,109 @@ ...@@ -14,46 +14,109 @@
<div class="right_content inquiry_detail_content"> <div class="right_content inquiry_detail_content">
<div class="content"> <div class="content">
<div class="nav_title"> <div class="nav_title">
询报价 > 我的询价 > 询价详情 STM32F103ZET6
<span class="fr">2019-05-22 15:35</span>
</div> </div>
<div class="goods_detail clr"> <div class="goods_detail clr">
</div>
<div class="bj_detail">
</div>
<div class="pagination-with" id="pagination"
style="text-align: right;margin-top: 25px;display:none"></div>
</div>
</div>
</div>
</div>
<include file="public/foot" />
<script>
$('.gt_div ').on('click', function () {
var obj = {
userId: '18589050841',
type: "STM32F103ZET6",
price: "67.9800",
brand: "Texas Instruments",
fz: "LQFP-144",
num: "100,000",
hq: "现货",
}
Util.setCookie('template', JSON.stringify(obj), 1, cookieHostname)
window.location.href = '/chat'
})
</script>
<script src="__PUBLIC__/js/quoteprice/inquirydetail.js"></script>
<script type="text/html" id="navTpl">
<!-- 导航的详情 -->
询报价
>
我的询价
>
询价详情
{{d.goods_name}}
<span class="fr">{{layui.util.toDateString(d.update_time * 1000)}}</span>
</script>
<script type="text/html" id="detailTpl">
<!-- 商品详情 -->
<img src="__PUBLIC__/images/test.jpg" alt="" class="fr"> <img src="__PUBLIC__/images/test.jpg" alt="" class="fr">
<div class=" goods_desc boxsiz"> <div class=" goods_desc boxsiz">
<div class="title"> <div class="title">
<h3 class="bold fl">STM32F103ZET6</h3> <h3 class="bold fl">{{d.goods_name}}</h3>
<div class="fr"> <div class="fr">
<span class="mark lineBlock"></span><span class="text">展示中</span> {{# if(d['audit_status'] == 1){ }}
{{# if(d['status/eq'] !== 1){ }}
<span class="mark lineBlock zs"></span><span class="text">展示中</span>
{{# } else { }}
<span class="mark lineBlock xj"></span><span class="text">已下架</span>
{{# } }}
{{# } else { }}
<span class="mark lineBlock jy"></span><span class="text">禁用中</span>
{{# } }}
</div> </div>
</div> </div>
<div class="desc inquiry_desc"> <div class="desc inquiry_desc">
<div class="brand fl boxsiz ellipsis"> <div class="brand fl boxsiz ellipsis">
品牌:<span>Texas InstrumentsTexas</span> 品牌:<span> {{d.brand_name}}</span>
</div> </div>
<div class="fz fl boxsiz ellipsis"> <div class="fz fl boxsiz ellipsis">
封装:<span>LQFP-144</span> 封装:<span> {{d.encap}}</span>
</div> </div>
<div class="price fl boxsiz ellipsis "> 接受价:<span></span></div> <div class="price fl boxsiz"> 接受价:
<div class="num fl boxsiz ellipsis"> 数量:<span class="bold">100,000 PCS</span></div> {{# if(!d.price){ }}
<div class="hq fl boxsiz ellipsis"> 货期:<span>现货</span></div> <span></span>
<div class="bz fl boxsiz ellipsis"> 备注:<span>有货的商家请尽快联系,谢谢!</span></div> {{# } else { }}
<span class="red">
{{# if(d.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{d.price}}
</span>
{{# } }}
</div> </div>
<div class="num fl boxsiz ellipsis"> 数量:<span class="bold"> {{d.number}} PCS</span></div>
<div class="hq fl boxsiz ellipsis"> 货期:<span>{{d.delivery_time}}</span></div>
<div class="bz fl boxsiz ellipsis"> 备注:<span> {{d.remark}}</span></div>
</div> </div>
</div> </div>
<div class="bj_detail"> </script>
<script type="text/html" id="bjTpl">
<div class="bj_title"> <div class="bj_title">
<span class="lineBlock"></span> <span class="lineBlock"></span>
<b>收到的报价</b> <b>收到的报价</b>
<b class="bj_num">2</b> <b class="bj_num">{{d.length}}</b>
</div> </div>
<div class="bj_lists"> <div class="bj_lists">
{{# layui.each(d, function(index, item){ }}
<div class="bj_item clr"> <div class="bj_item clr">
<div class="item_right fr boxsiz"> <div class="item_right fr boxsiz">
<div class="top"> <div class="top">
<div class="top_right icon iconfont iconjuxing2 fr"></div> <div class="top_right icon iconfont iconjuxing2 fr"></div>
<div class="top_left boxsiz ellipsis"> <div class="top_left boxsiz ellipsis">
<span class="lineBlock mark">报价</span> <span class="lineBlock mark">报价</span>
<span class="name bold">深圳邦马特科技有限公司深圳邦马特科技有限公司</span> <span class="name bold">{{item.company_name||'--'}}</span>
</div> </div>
</div> </div>
<div class="center"> <div class="center">
...@@ -70,14 +133,6 @@ ...@@ -70,14 +133,6 @@
<span class="icon iconfont iconjuxing10"></span> <span class="icon iconfont iconjuxing10"></span>
贸易商 贸易商
</div> </div>
<div class="fl">
<span class="icon iconfont iconjuxing10"></span>
贸易商
</div>
<div class="fl">
<span class="icon iconfont iconjuxing10"></span>
贸易商
</div>
</div> </div>
<div class="center_right ellipsis"> <div class="center_right ellipsis">
...@@ -95,59 +150,46 @@ ...@@ -95,59 +150,46 @@
</div> </div>
</div> </div>
<div class="time"> <div class="time">
报价时间:<span>2019-05-23 15:57</span> 报价时间:<span>{{layui.util.toDateString(d.update_time * 1000)}}</span>
</div> </div>
</div> </div>
<div class="item_left boxsiz"> <div class="item_left boxsiz">
<div class="item_left_top"> <div class="item_left_top">
<h3 class="bold fl ellipsis boxsiz">STM32F103ZET6</h3> <h3 class="bold fl ellipsis boxsiz">{{item.goods_name}}</h3>
<div class="price fl bold ellipsis boxsiz">¥67.9800</div> <div class="price fl bold ellipsis boxsiz">
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
</div>
</div> </div>
<div class="desc"> <div class="desc">
<div class="brand fl boxsiz ellipsis"> <div class="brand fl boxsiz ellipsis">
品牌:<span>Texas Instruments 品牌:<span>{{item.brand_name}}
</span> </span>
</div> </div>
<div class="fz fl boxsiz ellipsis"> <div class="fz fl boxsiz ellipsis">
封装:<span>LQFP-144</span> 封装:<span>{{item.encap}}</span>
</div> </div>
<div class="num fl boxsiz ellipsis"> 数量:<span class="bold">100,000 PCS</span> <div class="num fl boxsiz ellipsis"> 数量:<span class="bold">{{item.number}} PCS</span>
</div> </div>
<div class="hq fl boxsiz ellipsis"> 货期:<span>现货</span></div> <div class="hq fl boxsiz ellipsis"> 货期:<span>{{item.delivery_time}}</span></div>
<div class="bz fl boxsiz ellipsis"> <div class="bz fl boxsiz ellipsis">
备注:<span>我们有大量的现货,随时都可以出库。我们有大量的现货,随时都可以出库。</span></div> 备注:<span>{{item.remark}}</span></div>
</div> </div>
</div> </div>
</div> </div>
{{# }); }}
</div> </div>
<div class="no_data" style="display: none"> {{# if(d.length === 0){ }}
<div class="no_data">
<img src="__PUBLIC__/images/nodata.png" alt=""> <img src="__PUBLIC__/images/nodata.png" alt="">
<p>暂无报价信息</p> <p>暂无报价信息</p>
</div> </div>
</div> {{# } }}
</div>
</div>
</div>
</div>
<include file="public/foot" />
<script>
$('.gt_div ').on('click', function () {
var obj = {
userId: '18589050841',
type: "STM32F103ZET6",
price: "67.9800",
brand: "Texas Instruments",
fz: "LQFP-144",
num: "100,000",
hq: "现货",
}
Util.setCookie('template', JSON.stringify(obj), 1,cookieHostname)
window.location.href = '/chat'
})
</script> </script>
<script src="__PUBLIC__/js/quoteprice/inquirydetail.js"></script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<div class="nav_title">询报价 > 我的报价</div> <div class="nav_title">询报价 > 我的报价</div>
<div class="xj_total clr"> <div class="xj_total clr">
<div class="fl xj"> <div class="fl xj">
<h3>85</h3> <h3>--</h3>
<p>发布的询</p> <p>回复的报</p>
</div> </div>
<div class="fl wxj"> <div class="fl wxj">
<h3>85</h3> <h3>--</h3>
<p>无回复询</p> <p>未回复报</p>
</div> </div>
<div class="center_line"></div> <div class="center_line"></div>
</div> </div>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div class="input_div fl"> <div class="input_div fl">
<span class="lineBlock">询价型号:</span> <span class="lineBlock">询价型号:</span>
<div> <div>
<input type="text" placeholder="请输入型号" class="boxsiz"> <input type="text" placeholder="请输入型号" class="boxsiz" id="goodName">
</div> </div>
</div> </div>
...@@ -56,118 +56,52 @@ ...@@ -56,118 +56,52 @@
</div> </div>
<div class="inquiry_data"> <div class="inquiry_data">
<div class="data_list"> </div>
<div class="pagination-with" id="pagination"
style="text-align: right;margin-top: 25px;display:none"></div>
</div>
</div>
</div>
<div class="data_item">
<div class="data_detail bj_data_detail">
<div class="type fl bold ellipsis boxsiz ">STM32F103ZET6</div>
<div class="brand fl ellipsis boxsiz ">品牌:<span>Texas Instrument</span>
</div> </div>
<div class="num fl ellipsis boxsiz ">数量:<span>PCS10,000</span></div> <include file="public/foot" />
<div class="hq fl ellipsis boxsiz">货期:<span>20天</span></div> <script src="__PUBLIC__/js/quoteprice/quote.js"></script>
<div class="price fl ellipsis boxsiz bold">¥0.7425</div> <script type="text/html" id="myBj">
<div class="time fr ellipsis boxsiz ">2019-05-22 15:35</div> <div class="data_list">
{{# layui.each(d, function(index, item){ }}
<div class="data_item" userid="{{item.inquiry_items_id}}">
<div class="data_detail bj_data_detail">
<div class="type fl bold ellipsis boxsiz ">{{item.goods_name}}</div>
<div class="brand fl ellipsis boxsiz ">品牌:<span>{{item.brand_name}}</span>
</div>
<div class="num fl ellipsis boxsiz ">数量:<span>PCS{{item.number}}</span></div>
<div class="hq fl ellipsis boxsiz">货期:<span>{{item.delivery_time}}</span></div>
<div class="price fl ellipsis boxsiz bold">
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
</div>
{{# if(item.update_time){ }}
<div class="time fr ellipsis boxsiz ">{{layui.util.toDateString(item.update_time * 1000)}}</div>
{{# } else { }}
<div class="time fr ellipsis boxsiz "></div>
{{# } }}
</div> </div>
<a class="icon iconfont iconjuxing2 fr"></a> <a class="icon iconfont iconjuxing2 fr"></a>
<a class="is_bj_status fr">继续报价</a> <a class="is_bj_status fr">继续报价</a>
<!-- <div class="show_more"> </div>
<div class="more_item clr"> {{# }); }}
<div class="fl sort">1.</div> </div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div> {{# if(d.length === 0){ }}
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div> <div class="no_data">
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark">贸易商</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_item clr">
<div class="fl sort">1.</div>
<div class="fl num bold ellipsis boxsiz">STM32F407ZGT6</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">LQFP-144</span></div>
<div class="fl price bold ellipsis boxsiz">$10.9800</div>
<div class="company fl ellipsis boxsiz"><span class="mark gr">个人</span><span
class="name">蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生蔡先生</span></div>
<div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div>
</div>
<div class="more_btn">
查看更多
<img src="__PUBLIC__/icons/right.png" alt="" class="va-m">
</div>
</div> -->
</div>
</div>
<div class="no_data" style="display: none">
<img src="__PUBLIC__/images/nosearchdata.png" alt=""> <img src="__PUBLIC__/images/nosearchdata.png" alt="">
<p class="bold">未搜索到报价信息</p> <p class="bold">未搜索到报价信息</p>
<div class="fb_command">您可以去抢单专区回复报价。</div> <div class="fb_command">您可以去抢单专区回复报价。</div>
</div> </div>
</div> {{# } }}
</div>
</div>
</div>
</div>
<include file="public/foot" />
<script>
layui.use('laydate', function () {
var laydate = layui.laydate;
//执行一个laydate实例
laydate.render({
elem: '#start_date', //指定元素
theme: '#0D84D1'
});
laydate.render({
elem: '#end_date', //指定元素
theme: '#0D84D1'
});
});
$('.edit_div').click(function () {
window.location.href = "/releaseinquiry"
})
$('.iconjuxing2').click(function () {
$('.show_more').slideDown()
})
$('.data_item').click(function () {
window.location.href = "/quotedetail"
})
</script> </script>
</body> </body>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="right_content quote_detail_content"> <div class="right_content quote_detail_content">
<div class="content"> <div class="content">
<div class="nav_title"> <div class="nav_title">
询报价 > 我的询价 > 询价详情 STM32F103ZET6 询报价 > 我的报价 > 报价详情 STM32F103ZET6
<span class="fr">2019-05-22 15:35</span> <span class="fr">2019-05-22 15:35</span>
</div> </div>
<div class="goods_detail clr"> <div class="goods_detail clr">
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
.quote_content .inquiry_data .data_list .data_item .show_more { .quote_content .inquiry_data .data_list .data_item .show_more {
position: absolute; position: absolute;
right: 0; right: 0;
width: 67%; width: 68%;
top: 100%; top: 100%;
box-shadow: 0px 5px 10px 0px rgba(216, 223, 230, 0.5); box-shadow: 0px 5px 10px 0px rgba(216, 223, 230, 0.5);
background-color: #fff; background-color: #fff;
...@@ -347,6 +347,10 @@ ...@@ -347,6 +347,10 @@
color: #686E73; color: #686E73;
cursor: pointer; cursor: pointer;
} }
.inquiry_content .inquiry_data .data_list .data_item .xj_status.disabled,
.quote_content .inquiry_data .data_list .data_item .xj_status.disabled {
cursor: not-allowed;
}
.inquiry_content .inquiry_data .data_list .data_item .xj_status.fb, .inquiry_content .inquiry_data .data_list .data_item .xj_status.fb,
.quote_content .inquiry_data .data_list .data_item .xj_status.fb { .quote_content .inquiry_data .data_list .data_item .xj_status.fb {
color: #0D84D1; color: #0D84D1;
......
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
.show_more { .show_more {
position: absolute; position: absolute;
right: 0; right: 0;
width: 67%; width: 68%;
top: 100%; top: 100%;
box-shadow: 0px 5px 10px 0px rgba(216, 223, 230, 0.5); box-shadow: 0px 5px 10px 0px rgba(216, 223, 230, 0.5);
background-color: #fff; background-color: #fff;
...@@ -367,7 +367,9 @@ ...@@ -367,7 +367,9 @@
.xj_status { .xj_status {
color: #686E73; color: #686E73;
cursor: pointer; cursor: pointer;
&.disabled{
cursor: not-allowed;
}
&.fb { &.fb {
color: #0D84D1; color: #0D84D1;
} }
......
...@@ -5,11 +5,13 @@ ...@@ -5,11 +5,13 @@
.inquiry_detail_content .nav_title, .inquiry_detail_content .nav_title,
.quote_detail_content .nav_title { .quote_detail_content .nav_title {
padding: 20px 0; padding: 20px 0;
min-height: 19px;
} }
.inquiry_detail_content .goods_detail, .inquiry_detail_content .goods_detail,
.quote_detail_content .goods_detail { .quote_detail_content .goods_detail {
background-color: #fff; background-color: #fff;
padding: 20px 30px; padding: 20px 30px;
min-height: 220px;
} }
.inquiry_detail_content .goods_detail img, .inquiry_detail_content .goods_detail img,
.quote_detail_content .goods_detail img { .quote_detail_content .goods_detail img {
...@@ -40,11 +42,22 @@ ...@@ -40,11 +42,22 @@
.quote_detail_content .goods_detail .goods_desc .title div .mark { .quote_detail_content .goods_detail .goods_desc .title div .mark {
height: 20px; height: 20px;
width: 20px; width: 20px;
background-color: #52CCA8;
border-radius: 50% 50%; border-radius: 50% 50%;
vertical-align: sub; vertical-align: sub;
margin-right: 9px; margin-right: 9px;
} }
.inquiry_detail_content .goods_detail .goods_desc .title div .mark.zs,
.quote_detail_content .goods_detail .goods_desc .title div .mark.zs {
background-color: #52CCA8;
}
.inquiry_detail_content .goods_detail .goods_desc .title div .mark.xj,
.quote_detail_content .goods_detail .goods_desc .title div .mark.xj {
background-color: #D8DFE6;
}
.inquiry_detail_content .goods_detail .goods_desc .title div .mark.jy,
.quote_detail_content .goods_detail .goods_desc .title div .mark.jy {
background-color: #EA1717;
}
.inquiry_detail_content .goods_detail .goods_desc .title div .text, .inquiry_detail_content .goods_detail .goods_desc .title div .text,
.quote_detail_content .goods_detail .goods_desc .title div .text { .quote_detail_content .goods_detail .goods_desc .title div .text {
font-size: 16px; font-size: 16px;
...@@ -101,6 +114,12 @@ ...@@ -101,6 +114,12 @@
.inquiry_detail_content .goods_detail .goods_desc .desc div.price, .inquiry_detail_content .goods_detail .goods_desc .desc div.price,
.quote_detail_content .goods_detail .goods_desc .desc div.price { .quote_detail_content .goods_detail .goods_desc .desc div.price {
width: 20%; width: 20%;
white-space: nowrap;
}
.inquiry_detail_content .goods_detail .goods_desc .desc div.price .red,
.quote_detail_content .goods_detail .goods_desc .desc div.price .red {
color: #EA1717;
font-weight: 600;
} }
.inquiry_detail_content .goods_detail .goods_desc .desc div.fz, .inquiry_detail_content .goods_detail .goods_desc .desc div.fz,
.quote_detail_content .goods_detail .goods_desc .desc div.fz { .quote_detail_content .goods_detail .goods_desc .desc div.fz {
...@@ -462,4 +481,3 @@ ...@@ -462,4 +481,3 @@
.from_mask .form .form_content .btn_div span.cz { .from_mask .form .form_content .btn_div span.cz {
margin-left: 40px; margin-left: 40px;
} }
/*# sourceMappingURL=inquirydetail.css.map */
\ No newline at end of file
...@@ -4,11 +4,13 @@ ...@@ -4,11 +4,13 @@
.nav_title { .nav_title {
padding: 20px 0; padding: 20px 0;
min-height: 19px;
} }
.goods_detail { .goods_detail {
background-color: #fff; background-color: #fff;
padding: 20px 30px; padding: 20px 30px;
min-height: 220px;
img { img {
height: 220px; height: 220px;
...@@ -37,10 +39,22 @@ ...@@ -37,10 +39,22 @@
.mark { .mark {
height: 20px; height: 20px;
width: 20px; width: 20px;
background-color: #52CCA8;
border-radius: 50% 50%; border-radius: 50% 50%;
vertical-align: sub; vertical-align: sub;
margin-right: 9px; margin-right: 9px;
&.zs {
background-color: #52CCA8;
}
&.xj {
background-color: #D8DFE6;
}
&.jy {
background-color: #EA1717;
}
} }
.text { .text {
...@@ -99,6 +113,12 @@ ...@@ -99,6 +113,12 @@
&.price { &.price {
width: 20%; width: 20%;
white-space: nowrap;
.red {
color: #EA1717;
font-weight: 600;
}
} }
&.fz { &.fz {
...@@ -293,7 +313,8 @@ ...@@ -293,7 +313,8 @@
font-size: 20px; font-size: 20px;
margin-right: 5px; margin-right: 5px;
} }
.iconjuxing23{
.iconjuxing23 {
color: #adb6bf; color: #adb6bf;
} }
} }
...@@ -306,7 +327,8 @@ ...@@ -306,7 +327,8 @@
width: 140px; width: 140px;
margin-left: 15px; margin-left: 15px;
color: #8a9299; color: #8a9299;
&:hover{
&:hover {
background: none !important; background: none !important;
} }
} }
......
...@@ -44,11 +44,11 @@ ...@@ -44,11 +44,11 @@
/*** /***
* 获取用户基本信息 * 获取用户基本信息
*/ */
authme:auth_url+'/auth/me', authme: auth_url + '/auth/me',
/*** /***
* 上传文件的接口 * 上传文件的接口
*/ */
ossupload:goods_url+'/oss/upload', ossupload: goods_url + '/oss/upload',
/** /**
* 商品列表 * 商品列表
*/ */
...@@ -68,24 +68,49 @@ ...@@ -68,24 +68,49 @@
/** /**
* 商品修改 * 商品修改
*/ */
bulkupload:goods_url+'/goods/upload', bulkupload: goods_url + '/goods/upload',
goodsSave: goods_url + '/goods/save', goodsSave: goods_url + '/goods/save',
/**** /****
* 询价搜索 不需要token * 询价搜索 不需要token
*/ */
inquirySearch:offer_url+'/inquiry/search', inquirySearch: offer_url + '/inquiry/search',
/*** /***
* 会员中心询价列表 需要token * 会员中心询价列表 需要token
*/ */
inquiryInfo:offer_url+"/inquiry/info", inquiryInfo: offer_url + "/inquiry/info",
/*** /***
* 我的询价回复 * 我的询价回复
*/ */
inquiryMyOffer:offer_url+"/inquiry/my/offer", inquiryMyOffer: offer_url + "/inquiry/my/offer",
/*** /***
* 询价添加 需要token * 询价添加 需要token
*/ */
inquiryadd:offer_url+"/inquiry/add" inquiryadd: offer_url + "/inquiry/add",
/***
* 询价统计
*/
inquirycount: offer_url + "/inquiry/count",
/***
* 报价统计
*/
offercount: offer_url + "/offer/count",
/***
* 继续报价 and 回复报价
*/
offercontinue: offer_url + "/offer/continue",
/***
* 新增报价
*/
offeradd: offer_url + "/offer/add",
/***
* 价单列表(搜索)
*/
offersearch: offer_url + "/offer/search",
/***
* 我的报价单列表
*/
offerinfo: offer_url + "/offer/info",
}; };
if (typeof define === "function" && define.amd) { if (typeof define === "function" && define.amd) {
return apis; return apis;
......
$(function () { $(function () {
var inquiry = { var inquiry = {
params: {
"offset": 7,
"p": 1,
"token": Util.getCookie('token') || ""
},
init: function () { init: function () {
layui.laydate.render({ layui.laydate.render({
elem: '#start_date', //指定元素 elem: '#start_date', //指定元素
...@@ -9,19 +14,27 @@ $(function () { ...@@ -9,19 +14,27 @@ $(function () {
elem: '#end_date', //指定元素 elem: '#end_date', //指定元素
theme: '#0D84D1' theme: '#0D84D1'
}); });
this.getCount();
this.bindFun(); this.bindFun();
this.getData(1);
this.getData(this.params, 1);
}, },
getData: function (page) { getCount: function () {
var self = this; IcController.getData(apis.inquirycount, 'GET', {
IcController.getData(apis.inquiryInfo, 'GET', {
'goods_name/like': $('#goodName').val() || "",
"start_time": $('#start_date').val() || "",
"end_time": $('#end_date').val() || "",
"offset": 7,
"p": page,
"token": Util.getCookie('token') || "" "token": Util.getCookie('token') || ""
}, function (res) { }, function (res) {
if (res.errcode == 0) {
$('.xj h3').text(res.count.all || '0');
$('.wxj h3').text(res.count.reply || '0')
}
}, false)
},
getData: function (params, page) {
var self = this;
IcController.getData(apis.inquiryInfo, 'GET',
params,
function (res) {
var getTpl = htmlTp.innerHTML; var getTpl = htmlTp.innerHTML;
if (res.errcode == 0) { if (res.errcode == 0) {
$('#pagination').show(); $('#pagination').show();
...@@ -36,9 +49,11 @@ $(function () { ...@@ -36,9 +49,11 @@ $(function () {
jump: function (obj, first) { jump: function (obj, first) {
if (!first) { if (!first) {
//分页回调调用 //分页回调调用
var json = {
p: obj.curr
self.getData(obj.curr) }
var param = $.extend({}, params, json);
self.getData(param, obj.curr)
} }
} }
}); });
...@@ -55,7 +70,6 @@ $(function () { ...@@ -55,7 +70,6 @@ $(function () {
}, },
geMyXj: function (id, ele) { geMyXj: function (id, ele) {
//获取回复的询价 //获取回复的询价
var self = this;
IcController.getData(apis.inquiryMyOffer, 'GET', { IcController.getData(apis.inquiryMyOffer, 'GET', {
"inquiry_items_id/eq": id, "inquiry_items_id/eq": id,
"token": Util.getCookie('token') || "", "token": Util.getCookie('token') || "",
...@@ -104,12 +118,19 @@ $(function () { ...@@ -104,12 +118,19 @@ $(function () {
e.stopPropagation(); e.stopPropagation();
}); });
$('.cx').on('click', function () { $('.cx').on('click', function () {
self.getData(1); var formData = {
'goods_name/like': $('#goodName').val() || "",
"start_time": $('#start_date').val() || "",
"end_time": $('#end_date').val() || "",
},
param = $.extend({}, inquiry.params, formData);
inquiry.getData(param, 1);
}); });
$('.cz').on('click', function () { $('.cz').on('click', function () {
$('#goodName').val(''); $('#goodName').val('');
$('#start_date').val(''); $('#start_date').val('');
$('#end_date').val(''); $('#end_date').val('');
inquiry.getData(inquiry.params, 1);
}) })
} }
}; };
......
$(function(){ $(function () {
var inquiryDetail = { var inquiryDetail = {
init:function(){ init: function () {
this.getUserData() this.getUserData();
this.getBjData(1);
}, },
getUserData:function(){ getUserData: function () {
let self = this;
IcController.getData(apis.inquiryInfo, 'GET', { IcController.getData(apis.inquiryInfo, 'GET', {
"inquiry_items_id/eq":Util.getRequest('id')||"", "inquiry_items_id/eq": Util.getRequest('id') || "",
"token": Util.getCookie('token') || "" "token": Util.getCookie('token') || ""
}, function (res) { }, function (res) {
// var getTpl = htmlTp.innerHTML; var getNav = navTpl.innerHTML,
getDetail = detailTpl.innerHTML;
if (res.errcode == 0) { if (res.errcode == 0) {
// $('#pagination').show(); layui.laytpl(getNav).render(res.inquiry_list[Util.getRequest('id') || ''], function (html) {
// layui.laytpl(getTpl).render(res.inquiry_list, function (html) { $(".inquiry_detail_content .nav_title").empty().html(html);
// $(".inquiry_data").empty().html(html); });
// layui.laypage.render({ layui.laytpl(getDetail).render(res.inquiry_list[Util.getRequest('id') || ''], function (html) {
// elem: 'pagination', $(".inquiry_detail_content .goods_detail").empty().html(html);
// theme: '#1080d0', });
// count: res.total,
// limit: 7,
// curr: page,
// jump: function (obj, first) {
// if (!first) {
// //分页回调调用
// self.getData(obj.curr)
// }
// }
// });
// });
} else if (res.errcode == 105001) { } else if (res.errcode == 105001) {
// layui.laytpl(getTpl).render([], function (html) { layui.laytpl(getNav).render([], function (html) {
// $(".inquiry_data").empty().html(html); $(".inquiry_detail_content .nav_title").empty().html(html);
// $('#pagination').hide(); });
layui.laytpl(getDetail).render([], function (html) {
$(".inquiry_detail_content .goods_detail").empty().html(html);
});
// }); }
})
},
getBjData: function (page) {
//获取回复的询价
var self = this;
IcController.getData(apis.inquiryMyOffer, 'GET', {
"inquiry_items_id/eq": Util.getRequest('id') || '',
"token": Util.getCookie('token') || "",
"p": page,
"offset":"5",
}, function (res) {
var getBj = bjTpl.innerHTML;
if (res.errcode == 0) {
if (res.total == 0) {
$('#pagination').hide();
layui.laytpl(getBj).render([], function (html) {
$(".inquiry_detail_content .bj_detail").empty().html(html);
});
} else {
$('#pagination').show();
layui.laytpl(getBj).render(res.data, function (html) {
$(".inquiry_detail_content .bj_detail").empty().html(html);
layui.laypage.render({
elem: 'pagination',
theme: '#1080d0',
count: res.total,
limit: 5,
curr: page,
jump: function (obj, first) {
if (!first) {
//分页回调调用
self.getBjData(obj.curr)
}
}
});
});
}
} else {
$('#pagination').hide();
layui.laytpl(getBj).render([], function (html) {
$(".inquiry_detail_content .bj_detail").empty().html(html);
});
} }
}) })
} }
......
$(function () {
var quote = {
params: {
"offset": 7,
"p": 1,
"token": Util.getCookie('token') || ""
},
init: function () {
layui.laydate.render({
elem: '#start_date', //指定元素
theme: '#0D84D1'
});
layui.laydate.render({
elem: '#end_date', //指定元素
theme: '#0D84D1'
});
this.getCount();
this.bindFun();
this.getData(this.params, 1);
},
getCount: function () {
IcController.getData(apis.offercount, 'GET', {
"token": Util.getCookie('token') || ""
}, function (res) {
if (res.errcode == 0) {
$('.xj h3').text(res.count.reply || '0');
$('.wxj h3').text(res.count.notreply || '0')
}
}, false)
},
getData: function (params, page) {
var self = this;
IcController.getData(apis.offerinfo, 'GET',
params,
function (res) {
var getTpl = myBj.innerHTML;
if (res.errcode == 0) {
$('#pagination').show();
layui.laytpl(getTpl).render(res.data, function (html) {
$(".quote_content .inquiry_data").empty().html(html);
layui.laypage.render({
elem: 'pagination',
theme: '#1080d0',
count: res.total,
limit: 7,
curr: page,
jump: function (obj, first) {
if (!first) {
//分页回调调用
var json = {
p: obj.curr
}
var param = $.extend({}, params, json);
self.getData(param, obj.curr)
}
}
});
});
} else if (res.errcode == 105001) {
layui.laytpl(getTpl).render([], function (html) {
$(".quote_content .inquiry_data").empty().html(html);
$('#pagination').hide();
});
}
})
},
geMyXj: function (id, ele) {
//获取回复的询价
IcController.getData(apis.inquiryMyOffer, 'GET', {
"inquiry_items_id/eq": id,
"token": Util.getCookie('token') || "",
"limit": "5"
}, function (res) {
$(ele).parent('.data_item').find('.show_more').slideUp();
var getTpl = myxjTp.innerHTML;
if (res.errcode == 0) {
if (res.total == 0) {
layer.msg('暂无数据')
} else {
layui.laytpl(getTpl).render(res.data, function (html) {
$(ele).siblings('.show_more').empty().html(html).slideDown();
});
}
} else {
layer.msg('暂无数据')
}
})
},
bindFun: function () {
var self = this;
$('.edit_div').click(function () {
window.location.href = "/releaseinquiry"
});
$('.inquiry_data').on('click', '.iconjuxing2', function (e) {
e.stopPropagation();
var userid = $(this).parent('.data_item').attr('userid')
if ($(this).siblings('.show_more').css('display') == 'none') {
self.geMyXj(userid, this);
} else {
$(this).siblings('.show_more').slideUp();
}
})
$('.inquiry_data').on('click', '.data_item', function () {
var userid = $(this).attr('userid');
window.location.href = "/quotedetail?id=" + userid
});
$('.inquiry_data').on('click', '.show_more', function () {
e.stopPropagation();
});
$('.cx').on('click', function () {
var formData = {
'goods_name/like': $('#goodName').val() || "",
"start_time": $('#start_date').val() || "",
"end_time": $('#end_date').val() || "",
},
param = $.extend({}, quote.params, formData);
quote.getData(param, 1);
});
$('.cz').on('click', function () {
$('#goodName').val('');
$('#start_date').val('');
$('#end_date').val('');
quote.getData(quote.params, 1);
})
}
};
quote.init()
})
\ 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