Commit c1edea95 by 施宇

1

parent 90903c17
......@@ -31,13 +31,15 @@
<div class="xh input_div ">
<span class="input_title lineBlock">*型号:</span>
<div class="input_parent">
<input type="text" name="goods_name" placeholder="请输入商品型号" class="input boxsiz" lay-verify="required">
<input type="text" name="goods_name" placeholder="请输入商品型号" class="input boxsiz"
lay-verify="required">
</div>
</div>
<div class="brand input_div ">
<span class="input_title lineBlock">*品牌:</span>
<div class="input_parent">
<input type="text" name="brand_name" placeholder="请输入品牌" class="input boxsiz" lay-verify="required">
<input type="text" name="brand_name" placeholder="请输入品牌" class="input boxsiz"
lay-verify="required">
</div>
</div>
<div class="fz input_div ">
......@@ -49,13 +51,15 @@
<div class="num input_div ">
<span class="input_title lineBlock">*库存:</span>
<div class="input_parent">
<input type="text" name="stock" placeholder="请输入需求数量" class="input boxsiz" lay-verify="required|number">
<input type="text" name="stock" placeholder="请输入需求数量" class="input boxsiz"
lay-verify="required|number">
</div>
</div>
<div class="price input_div ">
<span class="input_title lineBlock">*单价:</span>
<div class="input_parent">
<input type="text" name="price" placeholder="请输入接受价格" class="input boxsiz price_input" lay-verify="required|number">
<input type="text" name="price" placeholder="请输入接受价格"
class="input boxsiz price_input" lay-verify="required|number">
<div class="rmb layui-form">
<select name="currency" lay-verify="required">
<option value="1">CNY</option>
......@@ -67,10 +71,13 @@
<div class="hq input_div">
<span class="input_title lineBlock">*货期:</span>
<div class="input_parent" id="delivery">
<input type="radio" name="delivery_time" lay-filter="delivery" value="现货" title="现货">
<input type="radio" name="delivery_time" lay-filter="delivery" value="期货" title="期货" checked id="daytext">
<input type="radio" name="delivery_time" lay-filter="delivery" value="现货"
title="现货">
<input type="radio" name="delivery_time" lay-filter="delivery" value="期货"
title="期货" checked id="daytext">
<div class="lineBlock" id="day">
<input type="text" placeholder="输入时间" class="boxsiz day_input input" lay-verify="required|number" name="day">
<input type="text" placeholder="输入时间" class="boxsiz day_input input"
lay-verify="required|number" name="day">
<i class="day"></i>
</div>
</div>
......@@ -82,8 +89,33 @@
</div>
<div class="form_right fl ">
<div class="sc">
<div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p>
<!-- 正常浏览器使用layui的上传插件上传 -->
<div class="sc_div" id="upload_section" style="display: none">
<div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p>
</div>
<!-- 低版本ie使用form+iframe上传 -->
<form enctype="multipart/form-data" id="fileLoad" method="post" target="test"
style="display: none">
<!-- token -->
<input type="text" name="token" value="" style="display: none" id="token" />
<!-- source -->
<input type="text" name="source" value="2" style="display: none" id="source" />
<!-- 是否是ie8 -->
<input type="text" name="ie8" value="" style="display:none" id="ie" />
<input type="file" id="mineFiles" name="upload" class="imgfile"
accept="image/jpg,image/png" />
<div class="form_div">
<div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p>
</div>
<iframe name="test" id="test" style="display: none">
</iframe>
</form>
<div class="upload_result">
<img alt="" src="" />
<i class="icon iconfont iconjuxing18 deleteicon"></i>
</div>
</div>
<p>* 支持png、jpg等图片格式</p>
</div>
......@@ -92,15 +124,15 @@
</div>
</div>
</div>
</div>
<include file="public/foot" />
<script src="__PUBLIC__/js/goodmanage/uploadsingle.js"></script>
<script type="text/html" id="deliveryHtml">
{{# if (d=='期货') { }}
<input type="text" placeholder="输入时间" class="boxsiz day_input input" lay-verify="required|number" name="day">
<include file="public/foot" />
<script src="__PUBLIC__/js/goodmanage/uploadsingle.js"></script>
<script type="text/html" id="deliveryHtml">
{{# if (d=='期货') { }}
<input type="text" placeholder="输入时间" class="boxsiz day_input input" lay-verify="required|number"
name="day">
<i class="day"></i>
{{# } }}
</script>
{{# } }}
</script>
</body>
</html>
\ No newline at end of file
......@@ -100,12 +100,12 @@
<div class="fl num ellipsis">{{item.goods_name}}</div>
</div>
<div class="item_middle clr">
{{# if(item.offer_num !== 0){ }}
{{# if(item.offer_num){ }}
<div class="fl xjNum">{{item.offer_num}}个报价</div>
{{# } else { }}
<div class="fl xj0">等待报价</div>
{{# } }}
<div class="fr time">{{layui.util.toDateString(item.update_time * 1000)}}</div>
<div class="fr time">{{layui.util.toDateString(item.add_time * 1000)}}</div>
</div>
<div class="item_bottom">
<div class="brand">品牌:<span>{{item.brand_name}}</span></div>
......@@ -126,25 +126,26 @@
<!-- 报价模板 -->
<div class="my_xj_list clr">
{{# layui.each(d, function(index, item){ }}
<div class="my_xj_item fl boxsiz bj_item" style="cursor:pointer" userid="{{item.inquiry_items_id}}" offerid="{{item.offer_id}}">
<div class="my_xj_item fl boxsiz bj_item" style="cursor:pointer" userid="{{item.inquiry_items_id}}"
offerid="{{item.offer_id}}">
<div class="item_top clr">
<span class="fl type btype lineBlock"></span>
<div class="fl num ellipsis">{{item.goods_name}}</div>
</div>
<div class="item_middle clr">
<div class="fl price">
{{# if(item.items.length){ }}
{{# if(!item.price||item.price=='0.00'||item.price=='0'){ }}
未回复
{{# } else { }}
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
{{# } else { }}
未回复
{{# } }}
</div>
<div class="fr time">{{layui.util.toDateString(item.update_time * 1000)}}</div>
<div class="fr time">{{layui.util.toDateString(item.add_time * 1000)}}</div>
</div>
<div class="item_bottom">
<div class="brand">品牌:<span>{{item.brand_name}}</span></div>
......@@ -169,34 +170,34 @@
<a class="icon iconfont iconjuxing2 newXjIcon"></a>
</div>
<div class="new_xj_list">
{{# layui.each(d, function(index, item){ }}
<div class="new_xj_item clr" userid="{{item.inquiry_items_id}}" offerid="{{item.offer_id}}" style="cursor:pointer">
{{# layui.each(d, function(index, item){ }}
<div class="new_xj_item clr" userid="{{item.inquiry_items_id}}" offerid="{{item.offer_id}}"
style="cursor:pointer">
<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="company fl ellipsis boxsiz"><span class="mark">
{{# if(item.company_type!==""){ }}
{{# if(item.company_type==1){ }}
贸易商
{{# } }}
{{# if(item.company_type==2){ }}
代理商
{{# } }}
{{# if(item.company_type==3){ }}
原厂
{{# } }}
{{# if(item.company_type==4){ }}
制造商
{{# } }}
{{# if(item.company_type==5){ }}
个人用户
{{# } }}
{{# } else { }}
--
{{# } }}
</span><span
class="name">{{item.company_name||'--'}}</span></div>
<div class="time fl ellipsis boxsiz">{{layui.util.toDateString(item.update_time * 1000)}}</div>
{{# if(item.company_type!==""){ }}
{{# if(item.company_type==1){ }}
贸易商
{{# } }}
{{# if(item.company_type==2){ }}
代理商
{{# } }}
{{# if(item.company_type==3){ }}
原厂
{{# } }}
{{# if(item.company_type==4){ }}
制造商
{{# } }}
{{# if(item.company_type==5){ }}
个人用户
{{# } }}
{{# } else { }}
--
{{# } }}
</span><span class="name">{{item.company_name||'--'}}</span></div>
<div class="time fl ellipsis boxsiz">{{layui.util.toDateString(item.add_time * 1000)}}</div>
<div class="now_price fr">立即报价</div>
</div>
{{# }); }}
......
......@@ -123,7 +123,7 @@
{{# } else { }}
<div class="fl xj0">等待报价</div>
{{# } }}
<div class="fr time">{{layui.util.toDateString(item.update_time * 1000,'yyyy-MM-dd HH:mm')}}</div>
<div class="fr time">{{layui.util.toDateString(item.add_time * 1000,'yyyy-MM-dd HH:mm')}}</div>
</div>
<div class="item_bottom">
<div class="brand">品牌:<span>{{item.brand_name}}</span></div>
......
......@@ -78,7 +78,7 @@
<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>
{{# if(item.offer_num !== 0){ }}
{{# if(item.offer_num){ }}
<div class="bj_status fl ellipsis boxsiz numbj bold">{{item.offer_num}}个报价</div>
{{# } else { }}
<div class="bj_status fl ellipsis boxsiz dd bold">等待报价</div>
......@@ -98,7 +98,7 @@
<span class="mark lineBlock"></span><span class="text">禁用中</span>
</div>
{{# } }}
<div class="time fr ellipsis boxsiz">{{layui.util.toDateString(item.update_time * 1000)}}</div>
<div class="time fr ellipsis boxsiz">{{layui.util.toDateString(item.add_time * 1000)}}</div>
</div>
<a class="icon iconfont iconjuxing2 fr"></a>
{{# if(item['status'] == 1){ }}
......
......@@ -37,11 +37,16 @@
>
询价详情
{{d.goods_name}}
<span class="fr">{{layui.util.toDateString(d.update_time * 1000)}}</span>
<span class="fr">{{layui.util.toDateString(d.add_time * 1000)}}</span>
</script>
<script type="text/html" id="detailTpl">
<!-- 商品详情 -->
<img src="__PUBLIC__/images/test.jpg" alt="" class="fr">
{{# if(d['goods_images']){ }}
<img src="{{d.goods_images}}" alt="" class="fr">
{{# } else { }}
<img src="__PUBLIC__/images/defaultgood.png" alt="" class="fr">
{{# } }}
<div class=" goods_desc boxsiz">
<div class="title">
<h3 class="bold fl">{{d.goods_name}}</h3>
......@@ -156,7 +161,7 @@
</div> -->
</div>
<div class="time">
报价时间:<span>{{layui.util.toDateString(d.update_time * 1000)}}</span>
报价时间:<span>{{layui.util.toDateString(d.add_time * 1000)}}</span>
</div>
</div>
<div class="item_left boxsiz" style="padding-right:474px;">
......
......@@ -68,70 +68,97 @@
<script src="__PUBLIC__/js/quoteprice/quote.js"></script>
<script type="text/html" id="myBj">
<!-- 我的报价列表 -->
<div class="data_list">
{{# layui.each(d, function(index, item){ }}
<div class="data_item" userid="{{item.inquiry_items_id}}" offerid="{{item.offer_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.items.length){ }}
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
{{# } else { }}
未回复
{{# } }}
</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 class="data_list">
{{# layui.each(d, function(index, item){ }}
<div class="data_item" userid="{{item.inquiry_items_id}}" offerid="{{item.offer_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>
<a class="icon iconfont iconjuxing2 fr"></a>
<a class="is_bj_status fr">继续报价</a>
<div class="show_more" style="display:none"></div>
</div>
{{# }); }}
</div>
{{# if(d.length === 0){ }}
<div class="no_data">
<img src="__PUBLIC__/images/nosearchdata.png" alt="">
<p class="bold">未搜索到报价信息</p>
<div class="fb_command">您可以去抢单专区回复报价。</div>
</div>
{{# } }}
</script>
<!-- 我的报价详情 -->
<script type="text/html" id="bjXq">
{{# layui.each(d, function(index, item){ }}
<div class="more_item clr">
<div class="fl sort">{{index+1}}.</div>
<div class="fl num bold ellipsis boxsiz">{{item.goods_name}}</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">{{item.encap}}</span></div>
<div class="fl price bold ellipsis boxsiz">
<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.price||item.price=='0.00'||item.price=='0'){ }}
未回复
{{# } else { }}
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
{{# } }}
</div>
<div class="company fl ellipsis boxsiz"><span class="mark">贸易商</span><span
class="name">{{item.company_name||'--'}}</span></div>
<!-- <div class="fr wx">
{{# if(item.add_time){ }}
<div class="time fr ellipsis boxsiz ">{{layui.util.toDateString(item.add_time * 1000)}}</div>
{{# } else { }}
<div class="time fr ellipsis boxsiz "></div>
{{# } }}
</div>
<a class="icon iconfont iconjuxing2 fr"></a>
<a class="is_bj_status fr">
{{# if(!item.price||item.price=='0.00'||item.price=='0'){ }}
回复报价
{{# } else { }}
继续报价
{{# } }}
</a>
<div class="show_more" style="display:none"></div>
</div>
{{# }); }}
</div>
{{# if(d.length === 0){ }}
<div class="no_data">
<img src="__PUBLIC__/images/nosearchdata.png" alt="">
<p class="bold">未搜索到报价信息</p>
<div class="fb_command">您可以去抢单专区回复报价。</div>
</div>
{{# } }}
</script>
<!-- 我的报价详情 -->
<script type="text/html" id="bjXq">
{{# layui.each(d, function(index, item){ }}
<div class="more_item clr">
<div class="fl sort">{{index+1}}.</div>
<div class="fl num bold ellipsis boxsiz">{{item.goods_name}}</div>
<div class="fl fz ellipsis boxsiz">封装:<span class="text">{{item.encap}}</span></div>
<div class="fl price bold ellipsis boxsiz">
{{# if(item.currency == 1){ }}
{{# } else { }}
$
{{# } }}
{{item.price}}
</div>
<div class="company fl ellipsis boxsiz">
<span class="mark">
{{# if(item.company_type){ }}
{{# if(item.company_type==1){ }}
贸易商
{{# } }}
{{# if(item.company_type==2){ }}
代理商
{{# } }}
{{# if(item.company_type==3){ }}
原厂
{{# } }}
{{# if(item.company_type==4){ }}
制造商
{{# } }}
{{# if(item.company_type==5){ }}
个人用户
{{# } }}
{{# } else { }}
--
{{# } }}
</span>
<span class="name">{{item.company_name||'--'}}</span></div>
<!-- <div class="fr wx">
<span class="icon iconfont iconjuxing7"></span>
</div> -->
</div>
{{# }); }}
</script>
</div>
{{# }); }}
</script>
</body>
</html>
\ No newline at end of file
......@@ -66,7 +66,7 @@
</div>
</div>
<div class="price input_div ">
<span class="input_title lineBlock">接受价:</span>
<span class="input_title lineBlock">价:</span>
<div class="input_parent">
<input type="text" name="price" placeholder="请输入接受价格" class="input boxsiz price_input"
lay-verify="required|number">
......@@ -115,11 +115,15 @@
>
报价详情
{{d.goods_name}}
<span class="fr">{{layui.util.toDateString(d.update_time * 1000)}}</span>
<span class="fr">{{layui.util.toDateString(d.add_time * 1000)}}</span>
</script>
<script type="text/html" id="detailTpl">
<!-- 商品详情 -->
<img src="__PUBLIC__/images/test.jpg" alt="" class="fr">
{{# if(d['goods_images']){ }}
<img src="{{d.goods_images}}" alt="" class="fr">
{{# } else { }}
<img src="__PUBLIC__/images/defaultgood.png" alt="" class="fr">
{{# } }}
<div class=" goods_desc boxsiz">
<div class="title">
<h3 class="bold fl xjtype ellipsis">{{d.goods_name}}</h3>
......@@ -166,7 +170,7 @@
</div>
<div class="bj_lists">
{{# layui.each(d, function(index, item){ }}
<div class="bj_item clr">
<div class="bj_item clr" offerid="{{item.offer_id}}">
<div class=" boxsiz my_bj_item_left">
<div class="item_left_top quote_item_left_top">
<h3 class="bold fl ellipsis boxsiz">{{item.goods_name}}</h3>
......@@ -178,7 +182,7 @@
{{# } }}
{{item.price}}
</div>
<div class="fr time">报价时间:<span>{{layui.util.toDateString(d.update_time * 1000)}}</span></div>
<div class="fr time">报价时间:<span>{{layui.util.toDateString(d.add_time * 1000)}}</span></div>
</div>
<div class="desc quote_desc">
<div class="brand fl boxsiz ellipsis">
......@@ -206,11 +210,11 @@
{{# } }}
{{# if(d.length == 3){ }}
<div class="bj_btn btn btn_60 btn_fz_18 disabled">
剩余<span>0</span>
剩余<span>0</span>
</div>
{{# } else { }}
<div class="bj_btn btn btn_60 btn_fz_18 btn_blue">
{{# if(d.length === 0){ }}
我要报价,剩余
<span>3</span>
......
......@@ -117,7 +117,8 @@
</iframe>
</form>
<div class="upload_result">
<img src="__PUBLIC__/images/test.jpg" alt="">
<img alt="" src=""/>
<i class="icon iconfont iconjuxing18 deleteicon"></i>
</div>
</div>
......
......@@ -53,7 +53,7 @@
{{# } }}
{{item.price}}
</div>
<div class="fr time">{{layui.util.toDateString(item.update_time * 1000)}}</div>
<div class="fr time">{{layui.util.toDateString(item.add_time * 1000)}}</div>
</div>
<div class="item_bottom">
<div class="brand">品牌:<span>{{item.brand_name}}</span></div>
......
......@@ -128,7 +128,7 @@
{{# } else { }}
<div class="fl xj0">等待报价</div>
{{# } }}
<div class="fr time">{{layui.util.toDateString(item.update_time * 1000,'yyyy-MM-dd HH:mm')}}</div>
<div class="fr time">{{layui.util.toDateString(item.add_time * 1000,'yyyy-MM-dd HH:mm')}}</div>
</div>
<div class="item_bottom">
<div class="brand">品牌:<span>{{item.brand_name}}</span></div>
......
......@@ -146,22 +146,31 @@
margin: 20px 0 0 6.67%;
}
.release_inquiry_content .inquiry_form .form_content .form_right .sc {
position: relative;
}
.release_inquiry_content .inquiry_form .form_content .form_right .img_div {
height: 180px;
width: 180px;
background-color: #F5F9FC;
text-align: center;
cursor: pointer;
border-radius: 50%;
border-radius: 50% 50%;
}
.release_inquiry_content .inquiry_form .form_content .form_right .sc div {
color: #ADB6BF;
font-size: 60px;
padding-top: 67px;
.release_inquiry_content .inquiry_form .form_content .form_right .img_div img {
height: 100%;
width: 100%;
border-radius: 50% 50%;
}
.release_inquiry_content .inquiry_form .form_content .form_right .sc p {
color: #8A9299;
font-size: 16px;
margin-top: 23px;
.release_inquiry_content .inquiry_form .form_content .form_right .imgfile {
position: absolute;
display: block;
font-size: 50px;
filter: alpha(opacity=0);
bottom: 0;
width: 120px;
height: 40px;
left: 50%;
margin-left: -60px;
}
.release_inquiry_content .inquiry_form .form_content .form_right a.change {
width: 120px;
......@@ -234,4 +243,3 @@
width: 130px !important;
}
}
/*# sourceMappingURL=account.css.map */
\ No newline at end of file
......@@ -181,24 +181,34 @@
margin: 20px 0 0 6.67%;
.sc {
position: relative;
}
.img_div {
height: 180px;
width: 180px;
background-color: #F5F9FC;
text-align: center;
cursor: pointer;
border-radius: 50%;
border-radius: 50% 50%;
div {
color: #ADB6BF;
font-size: 60px;
padding-top: 67px;
img {
height: 100%;
width: 100%;
border-radius: 50% 50%;
}
}
p {
color: #8A9299;
font-size: 16px;
margin-top: 23px;
}
.imgfile {
position: absolute;
display: block;
font-size: 50px;
filter: alpha(opacity=0);
bottom: 0;
width: 120px;
height: 40px;
left: 50%;
margin-left: -60px;
}
a.change {
......@@ -241,7 +251,9 @@
color: #52cca8;
}
.iconjuxing1, .iconjuxing7, .iconjuxing19 {
.iconjuxing1,
.iconjuxing7,
.iconjuxing19 {
font-size: 47px;
color: #d8dfe6;
}
......
......@@ -144,11 +144,40 @@
.certification_content .inquiry_form .form_content .form_right .sc {
height: 220px;
width: 220px;
background-color: #F5F9FC;
text-align: center;
position: relative;
background-color: #F5F9FC;
}
.certification_content .inquiry_form .form_content .form_right .sc form {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.certification_content .inquiry_form .form_content .form_right .sc form .imgfile {
position: absolute;
display: block;
font-size: 10000px;
height: 100%;
width: 100%;
filter: alpha(opacity=0);
}
.certification_content .inquiry_form .form_content .form_right .sc form .form_div {
color: #ADB6BF;
font-size: 60px;
}
.certification_content .inquiry_form .form_content .form_right .sc form .form_div p {
font-size: 16px;
color: #8A9299;
margin-top: 35px;
}
.certification_content .inquiry_form .form_content .form_right .sc .sc_div {
height: 100%;
width: 100%;
cursor: pointer;
}
.certification_content .inquiry_form .form_content .form_right .sc div {
.certification_content .inquiry_form .form_content .form_right .sc .icon {
color: #ADB6BF;
font-size: 60px;
padding-top: 67px;
......@@ -158,6 +187,27 @@
font-size: 16px;
margin-top: 23px;
}
.certification_content .inquiry_form .form_content .form_right .sc .upload_result {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
}
.certification_content .inquiry_form .form_content .form_right .sc .upload_result img {
height: 100%;
width: 100%;
}
.certification_content .inquiry_form .form_content .form_right .sc .upload_result .deleteicon {
position: absolute;
top: -15px;
right: -10px;
padding: 0;
font-size: 30px;
color: #EA1717;
cursor: pointer;
}
.certification_content .inquiry_form .form_content .form_right p {
font-size: 14px;
color: #ADB6BF;
......@@ -213,4 +263,3 @@
font-size: 16px;
color: #ffffff;
}
/*# sourceMappingURL=certification.css.map */
\ No newline at end of file
......@@ -15,7 +15,7 @@
padding: 26px 0 0 30px;
}
.time{
.time {
font-size: 14px;
color: #adb6bf;
padding-right: 30px;
......@@ -174,95 +174,154 @@
margin: 20px 0 0 6.67%;
.sc {
height: 220px;
width: 220px;
background-color: #F5F9FC;
text-align: center;
cursor: pointer;
height: 220px;
width: 220px;
text-align: center;
position: relative;
background-color: #F5F9FC;
form {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.imgfile {
position: absolute;
display: block;
font-size: 10000px;
height: 100%;
width: 100%;
filter: alpha(opacity=0);
}
.form_div {
color: #ADB6BF;
font-size: 60px;
p {
font-size: 16px;
color: #8A9299;
margin-top: 35px;
}
}
}
div {
color: #ADB6BF;
font-size: 60px;
padding-top: 67px;
}
p {
color: #8A9299;
font-size: 16px;
margin-top: 23px;
}
.sc_div {
height: 100%;
width: 100%;
cursor: pointer;
}
.icon {
color: #ADB6BF;
font-size: 60px;
padding-top: 67px;
}
p {
color: #8A9299;
font-size: 16px;
margin-top: 23px;
}
.upload_result {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: none;
img {
height: 100%;
width: 100%;
}
.deleteicon{
position: absolute;
top: -15px;
right: -10px;
padding: 0;
font-size: 30px;
color: #EA1717;
cursor: pointer;
}
}
}
p {
font-size: 14px;
color: #ADB6BF;
margin-top: 17px;
font-size: 14px;
color: #ADB6BF;
margin-top: 17px;
}
}
}
}
.certification-show {
padding: 0 30px 0 30px;
margin-top: 40px;
.certification-show {
padding: 0 30px 0 30px;
margin-top: 40px;
.l {
.pic {
width: 220px;
height: 220px;
margin-right: 40px;
img {
.l {
.pic {
width: 220px;
height: 220px;
}
}
.t1 {
font-size: 24px;
color: #515559;
margin-bottom: 24px;
}
.t2 {
margin-bottom: 70px;
margin-right: 40px;
span {
font-size: 14px;
color: #adb6bf;
img {
width: 220px;
height: 220px;
}
}
em {
font-size: 14px;
.t1 {
font-size: 24px;
color: #515559;
margin-bottom: 24px;
}
}
.t3{
margin-left: 40px;
i{
font-size: 20px;
color: #adb6bf;
.t2 {
margin-bottom: 70px;
span {
font-size: 14px;
color: #adb6bf;
}
em {
font-size: 14px;
color: #515559;
}
}
span{
font-size: 14px;
color: #ea1717;
.t3 {
margin-left: 40px;
i {
font-size: 20px;
color: #adb6bf;
}
span {
font-size: 14px;
color: #ea1717;
}
}
}
.btn {
width: 140px;
height: 40px;
background: rgba(13, 132, 209, 1);
border-radius: 3px;
text-align: center;
line-height: 40px;
font-size: 16px;
color: #ffffff;
.btn {
width: 140px;
height: 40px;
background: rgba(13, 132, 209, 1);
border-radius: 3px;
text-align: center;
line-height: 40px;
font-size: 16px;
color: #ffffff;
}
}
}
}
}
}
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -350,6 +350,7 @@
.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;
opacity: 0.5;
}
.inquiry_content .inquiry_data .data_list .data_item .xj_status.fb,
.quote_content .inquiry_data .data_list .data_item .xj_status.fb {
......@@ -362,4 +363,3 @@
color: #ADB6BF;
margin-left: 29px;
}
/*# sourceMappingURL=inquiry.css.map */
\ No newline at end of file
......@@ -369,6 +369,7 @@
cursor: pointer;
&.disabled{
cursor: not-allowed;
opacity: 0.5;
}
&.fb {
color: #0D84D1;
......
......@@ -239,10 +239,19 @@
height: 100%;
width: 100%;
}
.release_inquiry_content .inquiry_form .form_content .form_right .sc .upload_result .deleteicon,
.upload_single_content .inquiry_form .form_content .form_right .sc .upload_result .deleteicon {
position: absolute;
top: -15px;
right: -10px;
padding: 0;
font-size: 30px;
color: #EA1717;
cursor: pointer;
}
.release_inquiry_content .inquiry_form .form_content .form_right p,
.upload_single_content .inquiry_form .form_content .form_right p {
font-size: 14px;
color: #ADB6BF;
margin-top: 17px;
}
/*# sourceMappingURL=releaseinquiry.css.map */
\ No newline at end of file
......@@ -244,6 +244,16 @@
height: 100%;
width: 100%;
}
.deleteicon{
position: absolute;
top: -15px;
right: -10px;
padding: 0;
font-size: 30px;
color: #EA1717;
cursor: pointer;
}
}
}
......
......@@ -2,8 +2,9 @@
window.CertificationController = {
isClick: false,
token: Util.getCookie('token') || '',
imgUrl: "",
init: function () {
this.created(this).mounted(this).handleBind(this);
this.created(this).isIe(this).mounted(this).handleBind(this);
},
created: function (opt) {
......@@ -26,7 +27,13 @@
"company_type": res.data.company_type,
"company_name": res.data.company_name
});
if (res.data.auth_img) {
opt.imgUrl = res.data.auth_img;
$('#fileLoad').hide();
$('.sc_div').hide();
$('.upload_result').show();
$('.upload_result img').attr('src',res.data.auth_img)
}
layui.form.render();
......@@ -69,6 +76,108 @@
return this;
},
uploadFun: function () {
var self = this;
layui.upload.render({
elem: '#upload_section',
url: apis.ossupload,
data: {
token: Util.getCookie('token'),
source: 2,
},
field: "upload",
before: function () {
layer.load(1, {
offset: ['50%', "50%"],
shade: false
});
},
done: function (res) {
layer.closeAll('loading');
if (res.errcode == 103200) {
$('#upload_section').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', res.data[0])
self.imgUrl = res.data[0] || '';
} else {
layer.msg(res.errmsg)
}
},
err: function () {
layer.closeAll('loading');
layer.msg('上传失败');
}
});
},
isIe: function (opt) {
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本
$('#fileLoad').show();
document.domain = cookieHostname; //设置domian跨域拿到iframe的内容
var iframe = document.getElementById("test");
if (iframe.attachEvent) {
iframe.attachEvent("onload", opt.iframeOnload);
} else {
iframe.onload = opt.iframeOnload;
};
opt.formSubmit();
$('#mineFiles').on('change', function () {
layer.load(1, {
offset: ['50%', "50%"],
shade: false
});
$('#fileLoad').submit();
})
} else {
//非ie低版本
$('.sc_div').show();
opt.uploadFun();
}
return this;
},
formSubmit: function () {
$('#fileLoad').submit(function () {
var uploadFileForm = document.getElementById("fileLoad");
uploadFileForm.action = apis.ossupload;
$('#token').val(Util.getCookie('token'));
$('#ie').val(cookieHostname);
})
},
iframeOnload: function () {
//表单上传完成后进入iframe获取返回的值
var iframe = document.getElementById("test");
var html = "",
json = null;
try {
var el = (iframe.contentWindow || iframe.contentDocument.parentWindow).document.body;
while (el && el.nodeType !== 3) {
el = el.firstChild;
}
html = el.nodeValue;
json = html ? eval("(" + html + ")") : false;
} catch (e) {
console.log(e)
layer.closeAll('loading');
layer.msg('上传失败');
}
if (json) {
layer.closeAll('loading');
if (json.errcode == 103200) {
$('#fileLoad').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', json.data[0])
CertificationController.imgUrl = json.data[0] || '';
} else {
layer.msg(json.errmsg)
}
}
},
handleBind: function (opt) {
//认证类型
......@@ -95,7 +204,7 @@
opt.isClick = true;
var params = $.extend({}, data.field, {token: opt.token}); //新增参数
var params = $.extend({}, data.field, {token: opt.token,auth_img:opt.imgUrl}); //新增参数
IcController.getData(apis.addAuth, 'GET', params, function (res) {
......@@ -129,6 +238,20 @@
});
$('.certification_content').on('click', '.deleteicon', function () {
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本
$('#fileLoad').show();
} else {
//非ie低版本
$('#upload_section').show();
}
$('.upload_result').hide();
$('.upload_result img').attr('src', '');
opt.imgUrl = "";
})
return this;
......
$(function () {
var gooddetailObj = {
type: Util.getCookie('type') || '',
id: Util.getCookie('id') || '',
init: function () {
this.getDetail();
},
getDetail: function () {
//获取商品详情
var url = "";
if(this.type == 1){
url = apis.goodsInfo;
}else if(this.type==2){
url = apis.goodsSearch;
}else{
return;
}
IcController.getData(url, 'GET', params, function (res) {
var getTpl = listHtml.innerHTML;
if (res.errcode === 0) {
// layui.laytpl(getTpl).render(res.goods_list, function (html) {
// $("#listData").empty().html(html);
// layui.laypage.render({
// elem: 'pagination',
// theme: '#1080d0',
// count: res.total,
// limit: 10,
// curr: curr,
// layout: ['prev', 'page', 'next', 'refresh'],
// jump: function (obj, first) {
// if (!first) {
// //分页回调调用
// var json = {
// p: obj.curr
// }
// var param = $.extend({}, params, json);
// GoodManageController.render(opt, param, obj.curr);
// }
// }
// });
// });
} else {
layui.laytpl(getTpl).render([], function (html) {
$("#listData").empty().html(html);
});
}
});
}
};
gooddetailObj.init()
})
\ No newline at end of file
......@@ -164,7 +164,7 @@
})
$('#listData').on('click', '.data_item', function (e) {
var goodId = $(this).attr('goodid');
window.location.href="/gooddetail?id="+goodId
window.location.href="/gooddetail?type=1&id="+goodId
});
......
!function () {
! function () {
window.UploadSingleController = {
isClick: false,
token: Util.getCookie('token') || '',
imgUrl: "",
init: function () {
this.created(this).mounted(this).handleBind(this);
this.created(this).isIe(this).mounted(this).handleBind(this);
},
created: function (opt) {
//判断编辑 新增状态
var id = Util.getRequest('id'), text = '';
var id = Util.getRequest('id'),
text = '';
id ? text = '编辑商品' : text = '上传商品';
$("#title").text(text);
return this;
},
mounted: function (opt) {
var id = Util.getRequest('id'), text = '';
var id = Util.getRequest('id'),
text = '';
//编辑
if (id) {
IcController.getData(apis.goodsInfo, 'GET', {token: opt.token, 'goods_id/eq': id}, function (res) {
if(res.errcode === 0){
IcController.getData(apis.goodsInfo, 'GET', {
token: opt.token,
'goods_id/eq': id
}, function (res) {
if (res.errcode === 0) {
layui.form.val("goodsave", {
"goods_name": res['goods_list'][id].goods_name,
"brand_name": res['goods_list'][id].brand_name,
......@@ -38,90 +44,218 @@
"currency": res['goods_list'][id].currency,
"delivery_time": res['goods_list'][id].delivery_time
});
if (res['goods_list'][id].goods_images) {
opt.imgUrl = res['goods_list'][id].goods_images;
$('#fileLoad').hide();
$('.sc_div').hide();
$('.upload_result').show();
$('.upload_result img').attr('src',res['goods_list'][id].goods_images)
}
setTimeout(function () {
$('.hq').find('.layui-form-radioed').trigger('click');
},500)
}, 500)
}
});
}
return this;
},
uploadFun: function () {
var self = this;
layui.upload.render({
elem: '#upload_section',
url: apis.ossupload,
data: {
token: Util.getCookie('token'),
source: 2,
},
field: "upload",
before: function () {
layer.load(1, {
offset: ['50%', "50%"],
shade: false
});
},
done: function (res) {
layer.closeAll('loading');
if (res.errcode == 103200) {
$('#upload_section').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', res.data[0])
self.imgUrl = res.data[0] || '';
} else {
layer.msg(res.errmsg)
}
},
err: function () {
layer.closeAll('loading');
layer.msg('上传失败');
}
});
},
isIe: function (opt) {
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本
$('#fileLoad').show();
document.domain = cookieHostname; //设置domian跨域拿到iframe的内容
var iframe = document.getElementById("test");
if (iframe.attachEvent) {
iframe.attachEvent("onload", opt.iframeOnload);
} else {
iframe.onload = opt.iframeOnload;
};
opt.formSubmit();
$('#mineFiles').on('change', function () {
layer.load(1, {
offset: ['50%', "50%"],
shade: false
});
$('#fileLoad').submit();
})
} else {
//非ie低版本
$('.sc_div').show();
opt.uploadFun();
}
return this;
},
formSubmit: function () {
$('#fileLoad').submit(function () {
var uploadFileForm = document.getElementById("fileLoad");
uploadFileForm.action = apis.ossupload;
$('#token').val(Util.getCookie('token'));
$('#ie').val(cookieHostname);
})
},
iframeOnload: function () {
//表单上传完成后进入iframe获取返回的值
var iframe = document.getElementById("test");
var html = "",
json = null;
try {
var el = (iframe.contentWindow || iframe.contentDocument.parentWindow).document.body;
while (el && el.nodeType !== 3) {
el = el.firstChild;
}
html = el.nodeValue;
json = html ? eval("(" + html + ")") : false;
} catch (e) {
console.log(e)
layer.closeAll('loading');
layer.msg('上传失败');
}
if (json) {
layer.closeAll('loading');
if (json.errcode == 103200) {
$('#fileLoad').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', json.data[0])
UploadSingleController.imgUrl = json.data[0] || '';
} else {
layer.msg(json.errmsg)
}
}
},
handleBind: function (opt) {
//货期选择
layui.form.on('radio(delivery)', function (data) {
var str = '期货';
data.value == '现货' ? str = '现货' : str = '期货';
var getTpl = deliveryHtml.innerHTML;
layui.laytpl(getTpl).render(str, function (html) {
$("#day").empty().html(html);
});
});
//天数同步期货
$(document).on('input propertychange', 'input[name="day"]', function () {
var val = $(this).val();
$("#daytext").val(val + '天');
});
//上传商品发布
layui.form.on('submit(add)', function (data) {
$(data.elem).addClass("layui-btn-disabled");
var id = Util.getRequest('id'), params = {}, url = '';
var id = Util.getRequest('id'),
params = {},
url = '';
if (!opt.isClick) {
opt.isClick = true;
id ? params = $.extend({}, data.field, {token: opt.token, 'goods_id': id}) : params = $.extend({}, data.field, {token: opt.token});
id ? params = $.extend({}, data.field, {
goods_images: opt.imgUrl,
token: opt.token,
'goods_id': id
}) : params = $.extend({}, data.field, {
goods_images: opt.imgUrl,
token: opt.token
});
id ? url = apis.goodsSave : url = apis.goodsAdd;
IcController.getData(url, 'GET', params, function (res) {
if (res.errcode === 0) {
layer.msg('上传商品成功', {time: 2000}, function () {
layer.msg('上传商品成功', {
time: 2000
}, function () {
window.location.href = '/goodmanage';
});
} else {
layer.msg(res.errmsg);
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
}
});
}
});
$('.form_content').on('click', '.deleteicon', function () {
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本
$('#fileLoad').show();
} else {
//非ie低版本
$('#upload_section').show();
}
$('.upload_result').hide();
$('.upload_result img').attr('src', '');
opt.imgUrl = "";
})
return this;
},
}, $(function () {
......
......@@ -186,6 +186,11 @@ $(function () {
var userid = $(this).parents('.data_item').attr('userid');
window.location.href = "/inquirydetail?id=" + userid
});
$('.inquiry_data').on('click', '.wx', function () {
var userid = $(this).parents('.data_item').attr('userid');
window.location.href = "/inquirydetail?id=" + userid
});
}
};
inquiry.init()
......
......@@ -71,7 +71,7 @@ $(function () {
layer.msg('提交成功', {
time: 600,
}, function () {
window.location.reload()
window.location.reload()
});
} else {
......@@ -141,7 +141,7 @@ $(function () {
url = apis.offercontinue;
params = $.extend({}, data.field, {
token: Util.getCookie('token') || "",
offer_id: Util.getRequest('offerid') || ""
offer_id:$('.bj_item')[0].getAttribute('offerid')
})
}
......
! function () {
window.ReleaseInquiry = {
isClick: false,
imgUrl: "",
init: function () {
this.created(this).mounted(this).isIe(this).handleBind(this);
},
......@@ -14,16 +15,17 @@
return this;
},
uploadFun: function () {
var self = this;
layui.upload.render({
elem: '#upload_section',
url: apis.ossupload,
data: {
token: Util.getCookie('token'),
source:2,
source: 2,
},
field:"upload",
field: "upload",
before: function () {
layer.load(1, {
offset: ['50%', "50%"],
......@@ -32,9 +34,11 @@
},
done: function (res) {
layer.closeAll('loading');
if (res.errcode == 0) {
if (res.errcode == 103200) {
$('#upload_section').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', res.data[0])
self.imgUrl = res.data[0] || '';
} else {
layer.msg(res.errmsg)
}
......@@ -101,8 +105,10 @@
if (json) {
layer.closeAll('loading');
if (json.errcode == 103200) {
console.log(json)
$('#fileLoad').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', json.data[0])
ReleaseInquiry.imgUrl = json.data[0] || '';
} else {
layer.msg(json.errmsg)
......@@ -145,12 +151,14 @@
layui.form.on('submit(add)', function (data) {
$(data.elem).addClass("layui-btn-disabled");
var parmas = $.extend({}, data.field, {
goods_images: opt.imgUrl
})
if (!opt.isClick) {
opt.isClick = true;
IcController.getData(apis.inquiryadd + '?token=' + Util.getCookie('token'), 'get', data.field, function (res) {
IcController.getData(apis.inquiryadd + '?token=' + Util.getCookie('token'), 'get', parmas, function (res) {
if (res.errcode == 0) {
......@@ -174,6 +182,20 @@
});
}
});
$('.form_content').on('click', '.deleteicon', function () {
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本
$('#fileLoad').show();
} else {
//非ie低版本
$('#upload_section').show();
}
$('.upload_result').hide();
$('.upload_result img').attr('src', '');
opt.imgUrl = "";
})
return this;
},
}, $(function () {
......
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