Commit da135584 by 梁建民

Merge branch 'ljm_home'

parents 0907c987 871807ca
...@@ -36,17 +36,29 @@ ...@@ -36,17 +36,29 @@
</div> </div>
</div> </div>
<div class="cert_data"> <div class="cert_data">
<div class="hq input_div "> <div class="cert_data_box">
<span class="input_title lineBlock">经营性质:</span> <div class="hq input_div ">
<div class="input_parent"> <span class="input_title lineBlock">经营性质:</span>
<input type="radio" name="company_type" value="5" title="个人" checked> <div class="input_parent">
</div> <input type="radio" name="company_type" value="5" title="个人" checked>
</div> </div>
<div class="xh input_div "> </div>
<span class="input_title lineBlock">个人名称:</span> <div class="xh input_div">
<div class="input_parent"> <span class="input_title lineBlock">个人名称:</span>
<input type="text" placeholder="请输入姓名或昵称" class="input boxsiz" <div class="input_parent">
name="company_name"> <input type="text" placeholder="请输入姓名或昵称" class="input boxsiz" name="company_name">
</div>
</div>
</div>
<div class="xh input_div" style="white-space: nowrap">
<span class="input_title lineBlock va-t">上传资料:</span>
<div class="pic-list lineBlock va-t">
<ul class="clr lineBlock va-t" id="pp"></ul>
<div class="lineBlock va-t default" id="uploadbox">
<i class="icon iconfont iconjuxing16"></i>
<p>上传资料</p>
</div>
<p class="txx">*请上传身份证、驾驶证、工牌、名片等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -55,11 +67,8 @@ ...@@ -55,11 +67,8 @@
<span class="lineBlock cz boxsiz">重置</span> <span class="lineBlock cz boxsiz">重置</span>
</div> </div>
</div> </div>
<div class="form_right fl "> <div class="form_right fl " style="display: none">
<div class="sc"> <div class="sc">
<!-- <input type="hidden" name="auth_img" value="1.jpg">
<div class="icon iconfont iconjuxing16"></div>
<p>上传资料</p> -->
<div class="sc_div" id="upload_section" style="display: none"> <div class="sc_div" id="upload_section" style="display: none">
<div class="icon iconfont iconjuxing16"></div> <div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p> <p>上传图片</p>
...@@ -79,8 +88,7 @@ ...@@ -79,8 +88,7 @@
<div class="icon iconfont iconjuxing16"></div> <div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p> <p>上传图片</p>
</div> </div>
<iframe name="test" id="test" style="display: none"> <iframe name="test" id="test" style="display: none"></iframe>
</iframe>
</form> </form>
<div class="upload_result"> <div class="upload_result">
<img alt="" src="" /> <img alt="" src="" />
...@@ -133,7 +141,7 @@ ...@@ -133,7 +141,7 @@
<div class="list clr" style="margin-bottom: 40px;"> <div class="list clr" style="margin-bottom: 40px;">
<div class="fl l"> <div class="fl l">
<div class="pic lineBlock va-m"> <div class="pic lineBlock va-m">
<img src="{{d.auth_img}}" alt="{{d.company_name}}" title="{{d.company_name}}"> <img src="{{d.auth_img[0]}}" alt="{{d.company_name}}" title="{{d.company_name}}">
</div> </div>
<div class="lineBlock va-m"> <div class="lineBlock va-m">
<p class="t1">{{d.company_name}}</p> <p class="t1">{{d.company_name}}</p>
...@@ -144,6 +152,8 @@ ...@@ -144,6 +152,8 @@
<div style="white-space: nowrap"> <div style="white-space: nowrap">
{{# if (d.status== 2) { }} {{# if (d.status== 2) { }}
<a href="javascript:;" class="btn lineBlock edit_info" data-id="{{d.id}}">重新提交信息</a> <a href="javascript:;" class="btn lineBlock edit_info" data-id="{{d.id}}">重新提交信息</a>
{{# } else if(d.status == 1){ }}
<a href="javascript:;" class="btn lineBlock" style="opacity: 0.5" data-id="{{d.id}}">审核中</a>
{{# } else { }} {{# } else { }}
<a href="javascript:;" class="btn lineBlock edit_info" data-id="{{d.id}}">更新认证信息</a> <a href="javascript:;" class="btn lineBlock edit_info" data-id="{{d.id}}">更新认证信息</a>
{{# } }} {{# } }}
...@@ -169,6 +179,16 @@ ...@@ -169,6 +179,16 @@
</div> </div>
</div> </div>
</script> </script>
<script type="text/html" id="piclist">
{{# layui.each(d, function(index, item){ }}
<li class="lineBlock pic" data-index="{{index}}">
<img src="{{item}}" alt="">
<div class="ic">
<i class="icon iconfont iconjuxing18 deleteicon"></i>
</div>
</li>
{{# }); }}
</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="person-bar lineBlock va-m"> <div class="person-bar lineBlock va-m">
<div class="person"> <div class="person">
<div class="wrap layui-form"> <div class="wrap layui-form">
<ul class="status"> <!--<ul class="status">
<li class="lineBlock curr"> <li class="lineBlock curr">
<em class="va-m lineBlock"></em> <em class="va-m lineBlock"></em>
<span class="va-m">验证手机号</span> <span class="va-m">验证手机号</span>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<em class="va-m lineBlock"></em> <em class="va-m lineBlock"></em>
<span class="va-m">设置成功</span> <span class="va-m">设置成功</span>
</li> </li>
</ul> </ul>-->
<div class="register" id="verify" style="display: block"> <div class="register" id="verify" style="display: block">
<p class="tit"> <p class="tit">
<em class="va-m lineBlock"></em> <em class="va-m lineBlock"></em>
...@@ -50,15 +50,6 @@ ...@@ -50,15 +50,6 @@
<input type="text" class="w w1 va-m" placeholder="请输入手机验证码" name="code"> <input type="text" class="w w1 va-m" placeholder="请输入手机验证码" name="code">
<input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码"/> <input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码"/>
</div> </div>
<div class="btn-wrap">
<a href="javascript:;" class="btn" id="resetPassword">下一步</a>
</div>
</div>
<div class="register" id="rebuild" style="display: none">
<p class="tit">
<em class="va-m lineBlock"></em>
<span class="va-m">忘记密码</span>
</p>
<div class="input-wrap"> <div class="input-wrap">
<i class="iconfont iconpassword va-m"></i> <i class="iconfont iconpassword va-m"></i>
<div class="pwd lineBlock"> <div class="pwd lineBlock">
...@@ -66,6 +57,17 @@ ...@@ -66,6 +57,17 @@
</div> </div>
<i class="iconfont iconiconxiantiaoshouji va-m lineBlock eyes"></i> <i class="iconfont iconiconxiantiaoshouji va-m lineBlock eyes"></i>
</div> </div>
<div class="input-wrap">
<i class="iconfont iconpassword va-m"></i>
<div class="pwdrehtml lineBlock">
<input type="password" class="w w1 va-m" placeholder="再次输入密码" name="repassword">
</div>
<i class="iconfont iconiconxiantiaoshouji va-m lineBlock eyesRe"></i>
</div>
<div class="error-text" style="display: none">
<i class="iconfont iconjuxing20 va-m"></i>
<span class="va-m"></span>
</div>
<div class="btn-wrap"> <div class="btn-wrap">
<a href="javascript:;" class="btn" lay-submit lay-filter="resetPassword">设置密码</a> <a href="javascript:;" class="btn" lay-submit lay-filter="resetPassword">设置密码</a>
</div> </div>
...@@ -92,6 +94,15 @@ ...@@ -92,6 +94,15 @@
{{# } }} {{# } }}
</script> </script>
<script type="text/html" id="pwdHtmlRe">
{{# if (d.flag== 1) { }}
<input type="text" class="w w1 va-m" placeholder="再次输入密码" name="repassword" value="{{d.value}}">
{{# } else { }}
<input type="password" class="w w1 va-m" placeholder="再次输入密码" name="repassword" value="{{d.value}}">
{{# } }}
</script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -16,36 +16,45 @@ ...@@ -16,36 +16,45 @@
<p class="t2">让元器件询报价更便捷</p> <p class="t2">让元器件询报价更便捷</p>
</div> </div>
<!--微信绑定--> <!--微信绑定-->
<div class="wechat" style="display: none"> <div class="wechat">
<a href="javascript:;" class="btn"> <a href="authapi/v1/weixin/web/login" class="btn">
<i class="iconfont iconjuxing22 va-m"></i> <i class="iconfont iconjuxing22 va-m"></i>
<span class="va-m">微信登录</span> <span class="va-m">微信登录</span>
</a> </a>
<p class="tab-sel"> <p class="tab-sel">
<a href="javascript:;">验证码登录</a> <a href="passporticsales?flag=verify">验证码登录</a>
<a href="javascript:;">密码登录</a> <a href="passporticsales?flag=password">密码登录</a>
</p> </p>
</div> </div>
<!--绑定手机号--> <!--绑定手机号-->
<div class="bind-mobile layui-form" style="display: none"> <form class="bind-mobile layui-form" style="display: none" onsubmit="return false">
<input type="hidden" name="code_type" value="1">
<div class="input-wrap"> <div class="input-wrap">
<i class="iconfont iconjuxing23 va-m"></i> <i class="iconfont iconjuxing23 va-m"></i>
<input type="text" class="w w1 va-m" placeholder="请输入手机号"> <input type="text" class="w w1 va-m" placeholder="请输入手机号" name="mobile">
<div class="sel lineBlock va-m"> <div class="sel lineBlock va-m">
<select name="interest"> <select>
<option value="0">大陆 +86</option> <option value="0">大陆 +86</option>
</select> </select>
</div> </div>
</div> </div>
<!--验证码-->
<div class="input-wrap" id="verifiCode" style="display: none">
<i class="iconfont iconjuxing26 va-m"></i>
<input type="text" class="w w1 va-m" name="captcha" placeholder="请输入图形验证码"/>
<input type="hidden" class="w w1 va-m" name="captchaUuid" value=""/>
<img src="" alt="" width="100" height="30" class="lineBlock va-m codepic"/>
</div>
<div class="input-wrap"> <div class="input-wrap">
<i class="iconfont iconjuxing26 va-m"></i> <i class="iconfont iconjuxing26 va-m"></i>
<input type="text" class="w w1 va-m" placeholder="请输入手机"> <input type="text" class="w w1 va-m" placeholder="请输入手机验证码" name="smsCode">
<span class="lineBlock text va-m">发送验证码</span> <input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码" style="background: none;"/>
</div> </div>
<div class="btn-wrap"> <div class="btn-wrap">
<a href="javascript:;" class="btn">绑定手机号</a> <a href="javascript:;" class="btn" lay-submit lay-filter="bindMobile">绑定手机号</a>
</div> </div>
</div> </form>
<!--验证码登录--> <!--验证码登录-->
<form class="verify-code layui-form" style="display: none" onsubmit="return false"> <form class="verify-code layui-form" style="display: none" onsubmit="return false">
<input type="hidden" name="code_type" value="2"> <input type="hidden" name="code_type" value="2">
...@@ -83,7 +92,7 @@ ...@@ -83,7 +92,7 @@
</div> </div>
</form> </form>
<!--密码登录--> <!--密码登录-->
<form class="login layui-form" onsubmit="return false"> <form class="login layui-form" style="display: none" onsubmit="return false">
<div class="input-wrap"> <div class="input-wrap">
<i class="iconfont iconjuxing23 va-m"></i> <i class="iconfont iconjuxing23 va-m"></i>
<input type="text" class="w w1 va-m" placeholder="请输入手机号" name="mobile"> <input type="text" class="w w1 va-m" placeholder="请输入手机号" name="mobile">
......
...@@ -35,12 +35,11 @@ ...@@ -35,12 +35,11 @@
margin: 10px 0 0 51px; margin: 10px 0 0 51px;
} }
.certification_content .inquiry_form .form_content .form_left { .certification_content .inquiry_form .form_content .form_left {
width: 50%; width: 57%;
} }
.certification_content .inquiry_form .form_content .form_left .input_div { .certification_content .inquiry_form .form_content .form_left .input_div {
margin-top: 20px; margin-top: 20px;
position: relative; position: relative;
height: 40px;
line-height: 40px; line-height: 40px;
} }
.certification_content .inquiry_form .form_content .form_left .input_div.textarea_div { .certification_content .inquiry_form .form_content .form_left .input_div.textarea_div {
...@@ -213,6 +212,64 @@ ...@@ -213,6 +212,64 @@
color: #ADB6BF; color: #ADB6BF;
margin-top: 17px; margin-top: 17px;
} }
.certification_content .inquiry_form .form_content .pic-list {
margin-left: 20px;
}
.certification_content .inquiry_form .form_content .pic-list ul {
white-space: nowrap;
}
.certification_content .inquiry_form .form_content .pic-list ul li {
position: relative;
width: 120px;
height: 120px;
cursor: pointer;
text-align: center;
margin-right: 30px;
}
.certification_content .inquiry_form .form_content .pic-list ul li.pic img {
width: 120px;
height: 120px;
}
.certification_content .inquiry_form .form_content .pic-list ul li .ic {
position: absolute;
right: -15px;
top: -12px;
color: #fff;
width: 40px;
height: 40px;
background: #EA1717;
border-radius: 50%;
text-align: center;
line-height: 44px;
z-index: 99;
}
.certification_content .inquiry_form .form_content .pic-list ul li .ic .deleteicon {
font-size: 30px;
color: #FFFFFF;
cursor: pointer;
}
.certification_content .inquiry_form .form_content .pic-list .txx {
color: #ADB6BF;
font-size: 14px;
}
.certification_content .inquiry_form .form_content .pic-list .default {
width: 120px;
height: 120px;
background: #f5f9fc;
cursor: pointer;
text-align: center;
}
.certification_content .inquiry_form .form_content .pic-list .default i {
color: #ADB6BF;
font-size: 40px;
text-align: center;
margin-top: 25px;
display: block;
}
.certification_content .inquiry_form .form_content .pic-list .default p {
color: #8A9299;
font-size: 14px;
}
.certification_content .inquiry_form .certification-show { .certification_content .inquiry_form .certification-show {
padding: 0 30px 0 30px; padding: 0 30px 0 30px;
margin-top: 40px; margin-top: 40px;
...@@ -263,3 +320,4 @@ ...@@ -263,3 +320,4 @@
font-size: 16px; font-size: 16px;
color: #ffffff; color: #ffffff;
} }
/*# sourceMappingURL=certification.css.map */
\ No newline at end of file
{"version":3,"sources":["certification.less"],"names":[],"mappings":"AAAA;EACE,eAAA;;AADF,sBAGE;EACE,eAAA;;AAJJ,sBAOE;EACE,sBAAA;EACA,oBAAA;;AATJ,sBAOE,cAIE;EACE,eAAA;EACA,cAAA;EACA,sBAAA;;AAdN,sBAOE,cAUE;EACE,eAAA;EACA,cAAA;EACA,mBAAA;;AApBN,sBAOE,cAgBE;EACE,YAAA;EACA,iBAAA;EACA,yBAAA;EACA,wBAAA;EACA,cAAA;EACA,eAAA;;AA7BN,sBAOE,cAgBE,IAQE;EACE,eAAA;EACA,oBAAA;;AAjCR,sBAOE,cA8BE;EACE,eAAA;EACA,qBAAA;;AAvCN,sBAOE,cA8BE,cAIE;EACE,UAAA;;AA1CR,sBAOE,cA8BE,cAIE,WAGE;EACE,gBAAA;EACA,kBAAA;EACA,YAAA;EACA,iBAAA;;AAEA,sBA3CR,cA8BE,cAIE,WAGE,WAMG;EACC,gBAAA;EACA,kBAAA;EACA,YAAA;EACA,cAAA;;AAtDZ,sBAOE,cA8BE,cAIE,WAGE,WAaE;EACE,cAAA;EACA,WAAA;EACA,iBAAA;;AA5DZ,sBAOE,cA8BE,cAIE,WAGE,WAmBE;EACE,iBAAA;;AAhEZ,sBAOE,cA8BE,cAIE,WAGE,WAmBE,mBAGE;EACE,gBAAA;EACA,kBAAA;EACA,yBAAA;;AArEd,sBAOE,cA8BE,cAIE,WAGE,WA8BE;EACE,kBAAA;EACA,UAAA;EACA,QAAA;EACA,MAAA;;AA9EZ,sBAOE,cA8BE,cAIE,WAGE,WA8BE,cAME;EACE,aAAA;;AAjFd,sBAOE,cA8BE,cAIE,WAGE,WA8BE,cAME,kBAGE,EAAC;EACC,cAAA;;AApFhB,sBAOE,cA8BE,cAIE,WAGE,WA8BE,cAcE,oBAC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cA8BE,cAsIE,YAIE,IAaE;EACE,cAAA;EACA,eAAA;EACA,gBAAA;;AA/LZ,sBAOE,cA8BE,cAsIE,YAwBE;EACE,eAAA;EACA,cAAA;EACA,gBAAA;;AAtMV,sBAOE,cAqME;EACE,sBAAA;EACA,gBAAA;;AA9MN,sBAOE,cAqME,oBAIE,GACE;EACE,YAAA;EACA,aAAA;EACA,kBAAA;;AApNV,sBAOE,cAqME,oBAIE,GACE,KAKE;EACE,YAAA;EACA,aAAA;;AAxNZ,sBAOE,cAqME,oBAIE,GAYE;EACE,eAAA;EACA,cAAA;EACA,mBAAA;;AA/NV,sBAOE,cAqME,oBAIE,GAkBE;EACE,mBAAA;;AAnOV,sBAOE,cAqME,oBAIE,GAkBE,IAGE;EACE,eAAA;EACA,cAAA;;AAvOZ,sBAOE,cAqME,oBAIE,GAkBE,IAQE;EACE,eAAA;EACA,cAAA;;AA5OZ,sBAOE,cAqME,oBAIE,GAgCE;EACE,iBAAA;;AAjPV,sBAOE,cAqME,oBAIE,GAgCE,IAEE;EACE,eAAA;EACA,cAAA;;AApPZ,sBAOE,cAqME,oBAIE,GAgCE,IAME;EACE,eAAA;EACA,cAAA;;AAxPZ,sBAOE,cAqME,oBAIE,GA4CE;EACE,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,eAAA;EACA,cAAA","file":"certification.css"} {"version":3,"sources":["certification.less"],"names":[],"mappings":"AAAA;EACE,eAAA;;AADF,sBAGE;EACE,eAAA;;AAJJ,sBAOE;EACE,sBAAA;EACA,oBAAA;;AATJ,sBAOE,cAIE;EACE,eAAA;EACA,cAAA;EACA,sBAAA;;AAdN,sBAOE,cAUE;EACE,eAAA;EACA,cAAA;EACA,mBAAA;;AApBN,sBAOE,cAgBE;EACE,YAAA;EACA,iBAAA;EACA,yBAAA;EACA,wBAAA;EACA,cAAA;EACA,eAAA;;AA7BN,sBAOE,cAgBE,IAQE;EACE,eAAA;EACA,oBAAA;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AAA;EACA,eAAA;;AAnUZ,sBAOE,cAkUE;EACE,sBAAA;EACA,gBAAA;;AA3UN,sBAOE,cAkUE,oBAIE,GACE;EACE,YAAA;EACA,aAAA;EACA,kBAAA;;AAjVV,sBAOE,cAkUE,oBAIE,GACE,KAKE;EACE,YAAA;EACA,aAAA;;AArVZ,sBAOE,cAkUE,oBAIE,GAYE;EACE,eAAA;EACA,cAAA;EACA,mBAAA;;AA5VV,sBAOE,cAkUE,oBAIE,GAkBE;EACE,mBAAA;;AAhWV,sBAOE,cAkUE,oBAIE,GAkBE,IAGE;EACE,eAAA;EACA,cAAA;;AApWZ,sBAOE,cAkUE,oBAIE,GAkBE,IAQE;EACE,eAAA;EACA,cAAA;;AAzWZ,sBAOE,cAkUE,oBAIE,GAgCE;EACE,iBAAA;;AA9WV,sBAOE,cAkUE,oBAIE,GAgCE,IAGE;EACE,eAAA;EACA,cAAA;;AAlXZ,sBAOE,cAkUE,oBAIE,GAgCE,IAQE;EACE,eAAA;EACA,cAAA;;AAvXZ,sBAOE,cAkUE,oBAIE,GA8CE;EACE,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,eAAA;EACA,cAAA","file":"certification.css"}
\ No newline at end of file \ No newline at end of file
...@@ -40,12 +40,11 @@ ...@@ -40,12 +40,11 @@
margin: 10px 0 0 51px; margin: 10px 0 0 51px;
.form_left { .form_left {
width: 50%; width: 57%;
.input_div { .input_div {
margin-top: 20px; margin-top: 20px;
position: relative; position: relative;
height: 40px;
line-height: 40px; line-height: 40px;
&.textarea_div { &.textarea_div {
...@@ -174,154 +173,223 @@ ...@@ -174,154 +173,223 @@
margin: 20px 0 0 6.67%; margin: 20px 0 0 6.67%;
.sc { .sc {
height: 220px; height: 220px;
width: 220px; width: 220px;
text-align: center; text-align: center;
position: relative; position: relative;
background-color: #F5F9FC; 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;
}
}
}
form {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
.sc_div { .imgfile {
height: 100%; position: absolute;
width: 100%; display: block;
cursor: pointer; font-size: 10000px;
height: 100%;
width: 100%;
filter: alpha(opacity=0);
} }
.icon { .form_div {
color: #ADB6BF; color: #ADB6BF;
font-size: 60px; font-size: 60px;
padding-top: 67px;
}
p { p {
color: #8A9299;
font-size: 16px; font-size: 16px;
margin-top: 23px; color: #8A9299;
margin-top: 35px;
}
}
}
.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%;
} }
.upload_result { .deleteicon {
position: absolute; position: absolute;
top: 0; top: -15px;
left: 0; right: -10px;
right: 0; padding: 0;
bottom: 0; font-size: 30px;
display: none; color: #EA1717;
cursor: pointer;
img {
height: 100%;
width: 100%;
}
.deleteicon{
position: absolute;
top: -15px;
right: -10px;
padding: 0;
font-size: 30px;
color: #EA1717;
cursor: pointer;
}
} }
}
} }
p { p {
font-size: 14px; font-size: 14px;
color: #ADB6BF; color: #ADB6BF;
margin-top: 17px; margin-top: 17px;
} }
} }
}
.certification-show {
padding: 0 30px 0 30px;
margin-top: 40px;
.l { .pic-list {
.pic { margin-left: 20px;
width: 220px;
height: 220px;
margin-right: 40px;
img { ul {
width: 220px; white-space: nowrap;
height: 220px; li {
position: relative;
width: 120px;
height: 120px;
cursor: pointer;
text-align: center;
margin-right: 30px;
&.pic {
img {
width: 120px;
height: 120px;
}
} }
.ic {
position: absolute;
right: -15px;
top: -12px;
color: #fff;
width: 40px;
height: 40px;
background: #EA1717;
border-radius: 50%;
text-align: center;
line-height: 44px;
z-index: 99;
.deleteicon {
font-size: 30px;
color: #FFFFFF;
cursor: pointer;
}
}
}
}
.txx{
color: #ADB6BF;
font-size:14px;
}
.default {
width: 120px;
height: 120px;
background: rgba(245, 249, 252, 1);
cursor: pointer;
text-align: center;
i {
color: #ADB6BF;
font-size: 40px;
text-align: center;
margin-top: 25px;
display: block;
} }
.t1 { p {
font-size: 24px; color: #8A9299;
color: #515559; font-size: 14px;
margin-bottom: 24px;
} }
}
}
}
.t2 { .certification-show {
margin-bottom: 70px; padding: 0 30px 0 30px;
margin-top: 40px;
span { .l {
font-size: 14px; .pic {
color: #adb6bf; width: 220px;
} height: 220px;
margin-right: 40px;
em { img {
font-size: 14px; width: 220px;
color: #515559; height: 220px;
} }
}
.t1 {
font-size: 24px;
color: #515559;
margin-bottom: 24px;
}
.t2 {
margin-bottom: 70px;
span {
font-size: 14px;
color: #adb6bf;
} }
.t3 { em {
margin-left: 40px; font-size: 14px;
color: #515559;
}
}
i { .t3 {
font-size: 20px; margin-left: 40px;
color: #adb6bf;
}
span { i {
font-size: 14px; font-size: 20px;
color: #ea1717; color: #adb6bf;
}
} }
.btn { span {
width: 140px; font-size: 14px;
height: 40px; color: #ea1717;
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
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
window.CertificationController = { window.CertificationController = {
isClick: false, isClick: false,
token: Util.getCookie('token') || '', token: Util.getCookie('token') || '',
imgUrl: "", imgUrl: [],
init: function () { init: function () {
this.created(this).isIe(this).mounted(this).handleBind(this); this.created(this).uploadFun(this).mounted(this).handleBind(this);
}, },
created: function (opt) { created: function (opt) {
...@@ -16,54 +16,44 @@ ...@@ -16,54 +16,44 @@
//更新时间 //更新时间
$('.time').html('更新时间:' + res.data.update_time); $('.time').html('更新时间:' + res.data.update_time);
//更新认证信息 //更新认证信息
if (id) { if (id) {
$(".certisno").show(); $(".certisno").show();
layui.form.val("editauth", { layui.form.val("editauth", {
"auth_type": res.data.auth_type, "auth_type": res.data.auth_type,
"company_type": res.data.company_type, "company_type": res.data.company_type,
"company_name": res.data.company_name "company_name": res.data.company_name
}); });
if (res.data.auth_img) { if (res.data.auth_img) {
opt.imgUrl = res.data.auth_img;
$('#fileLoad').hide(); CertificationController.imgUrl=res.data.auth_img;
$('.sc_div').hide(); var getTpl = piclist.innerHTML;
$('.upload_result').show(); layui.laytpl(getTpl).render(CertificationController.imgUrl, function (html) {
$('.upload_result img').attr('src', res.data.auth_img) if (CertificationController.imgUrl.length < 6) {
$("#uploadbox").show();
} else {
$("#uploadbox").hide();
}
$("#pp").empty().html(html);
});
} }
layui.form.render(); layui.form.render();
} else { } else {
if (res.data) { if (res.data) {
$(".certis").show(); $(".certis").show();
var getTpl = listHtml.innerHTML; var getTpl = listHtml.innerHTML;
layui.laytpl(getTpl).render(res.data, function (html) { layui.laytpl(getTpl).render(res.data, function (html) {
$(".certis").empty().html(html); $(".certis").empty().html(html);
}); });
} else { } else {
$(".certisno").show(); $(".certisno").show();
} }
} }
} else if (res.errcode === 107012) { } else if (res.errcode === 107012) {
$(".certisno").show(); $(".certisno").show();
} }
}); });
...@@ -78,39 +68,54 @@ ...@@ -78,39 +68,54 @@
uploadFun: function () { uploadFun: function () {
var self = this; var self = this;
layui.upload.render({ layui.upload.render({
elem: '#upload_section', elem: '#uploadbox',
url: apis.ossupload, url: apis.ossupload,
multiple: true,
number: 6,
data: { data: {
token: Util.getCookie('token'), token: Util.getCookie('token'),
source: 2, source: 2
}, },
field: "upload", field: "upload",
before: function () { before: function (obj) {
layer.load(1, { layer.load(1, {
offset: ['50%', "50%"], offset: ['50%', "50%"],
shade: false shade: false
}); });
}, },
done: function (res) { done: function (res, index, upload) {
layer.closeAll('loading'); layer.closeAll('loading');
if (CertificationController.imgUrl.length > 5) {
layer.msg('只允许上传6张图片');
return false;
}
if (res.errcode == 103200) { if (res.errcode == 103200) {
$('#upload_section').hide(); CertificationController.imgUrl.push(res.data[0]);
$('.upload_result').show(); var getTpl = piclist.innerHTML;
$('.upload_result img').attr('src', res.data[0]) layui.laytpl(getTpl).render(CertificationController.imgUrl, function (html) {
self.imgUrl = res.data[0] || ''; $("#pp").empty().html(html);
});
} else { } else {
layer.msg(res.errmsg) layer.msg(res.errmsg)
} }
}, },
allDone: function (obj) {
if (CertificationController.imgUrl.length < 6) {
$("#uploadbox").show();
} else {
$("#uploadbox").hide();
}
},
err: function () { err: function () {
layer.closeAll('loading'); layer.closeAll('loading');
layer.msg('上传失败'); layer.msg('上传失败');
} }
}); });
return this;
}, },
isIe: function (opt) { 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")) { if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
...@@ -123,7 +128,6 @@ ...@@ -123,7 +128,6 @@
} else { } else {
iframe.onload = opt.iframeOnload; iframe.onload = opt.iframeOnload;
} }
;
opt.formSubmit(); opt.formSubmit();
$('#mineFiles').on('change', function () { $('#mineFiles').on('change', function () {
layer.load(1, { layer.load(1, {
...@@ -163,7 +167,6 @@ ...@@ -163,7 +167,6 @@
console.log(e) console.log(e)
layer.closeAll('loading'); layer.closeAll('loading');
layer.msg('上传失败'); layer.msg('上传失败');
} }
if (json) { if (json) {
layer.closeAll('loading'); layer.closeAll('loading');
...@@ -186,16 +189,16 @@ ...@@ -186,16 +189,16 @@
var value = data.value; var value = data.value;
if (value == 1) { if (value == 1) {
$("#tsv").text('*请上传身份证、驾驶证、工牌、名片等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)'); $(".txx").text('*请上传身份证、驾驶证、工牌、名片等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)');
} else if (value == 2) { } else if (value == 2) {
$("#tsv").text('*请上传企业营业执照、商用租赁合同、相关证明资料等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)'); $(".txx").text('*请上传企业营业执照、商用租赁合同、相关证明资料等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)');
} }
var getTpl = certtHtml.innerHTML; var getTpl = certtHtml.innerHTML;
layui.laytpl(getTpl).render(data.value, function (html) { layui.laytpl(getTpl).render(data.value, function (html) {
$(".cert_data").empty().html(html); $(".cert_data_box").empty().html(html);
layui.form.render(); layui.form.render();
...@@ -212,13 +215,14 @@ ...@@ -212,13 +215,14 @@
opt.isClick = true; opt.isClick = true;
var params = $.extend({}, data.field, {token: opt.token, auth_img: opt.imgUrl}); //新增参数
var params = $.extend({}, data.field, {token: opt.token, auth_img: JSON.stringify(opt.imgUrl)}); //新增参数
IcController.getData(apis.addAuth, 'GET', params, function (res) { IcController.getData(apis.addAuth, 'GET', params, function (res) {
if (res.errcode === 0) { if (res.errcode === 0) {
layer.msg(res.errmsg, {time: 2000}, function () { layer.msg('更新成功', {time: 2000}, function () {
window.location.href = '/cert'; window.location.href = '/cert';
...@@ -237,7 +241,6 @@ ...@@ -237,7 +241,6 @@
} }
}); });
//更新认证信息按钮 //更新认证信息按钮
$(document).on('click', '.edit_info', function (e) { $(document).on('click', '.edit_info', function (e) {
...@@ -248,9 +251,9 @@ ...@@ -248,9 +251,9 @@
}); });
//删除图片
$('.certification_content').on('click', '.deleteicon', function () { $('.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")) {
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本 //ie版本
$('#fileLoad').show(); $('#fileLoad').show();
} else { } else {
...@@ -259,7 +262,23 @@ ...@@ -259,7 +262,23 @@
} }
$('.upload_result').hide(); $('.upload_result').hide();
$('.upload_result img').attr('src', ''); $('.upload_result img').attr('src', '');
opt.imgUrl = ""; opt.imgUrl = "";*/
var index = $(this).parent().parent().attr('data-index');
var getTpl = piclist.innerHTML;
CertificationController.imgUrl.splice(index, 1);
layui.laytpl(getTpl).render(CertificationController.imgUrl, function (html) {
$("#pp").empty().html(html);
});
if (CertificationController.imgUrl.length < 6) {
$("#uploadbox").show();
} else {
$("#uploadbox").hide();
}
}) })
......
...@@ -87,10 +87,14 @@ ...@@ -87,10 +87,14 @@
}, },
calcForm: function (opt, type) { calcForm: function (opt, type) {
var $mobile = $('input[name="mobile"]'), var $mobile = $('input[name="mobile"]'),
$code = $('input[name="code"]'),
$password = $('input[name="password"]'), $password = $('input[name="password"]'),
$code = $('input[name="code"]'); $repassword = $('input[name="repassword"]');
//密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (!$mobile.val() && type === 1) { if (!$mobile.val()) {
$mobile.parent('.input-wrap').addClass('error'); $mobile.parent('.input-wrap').addClass('error');
...@@ -98,7 +102,17 @@ ...@@ -98,7 +102,17 @@
} }
if (!$password.val() && type === 2) {
if (!$code.val()) {
$code.parent('.input-wrap').addClass('error');
return false;
}
if (!$password.val()) {
$password.parent().parent('.input-wrap').addClass('error'); $password.parent().parent('.input-wrap').addClass('error');
...@@ -106,10 +120,8 @@ ...@@ -106,10 +120,8 @@
} }
//密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (!reg.test($password.val()) && type === 2) { if (!reg.test($password.val())) {
$password.parent().parent('.input-wrap').addClass('error'); $password.parent().parent('.input-wrap').addClass('error');
...@@ -119,14 +131,26 @@ ...@@ -119,14 +131,26 @@
} }
if (!$code.val() && type === 1) { if (!$repassword.val()) {
$code.parent('.input-wrap').addClass('error'); $repassword.parent().parent('.input-wrap').addClass('error');
return false; return false;
} }
if ($password.val() != $repassword.val()) {
$repassword.parent().parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('输入密码不一致');
return false;
}
$('.error').removeClass('error'); $('.error').removeClass('error');
return true; return true;
...@@ -207,6 +231,20 @@ ...@@ -207,6 +231,20 @@
}); });
//第二次密码
$('input[name="repassword"]').on('input propertychange', function () {
var val = $(this).val();
var password = $('input[name="password"]').val();
if (val == password) {
$(".error-text").hide();
}
});
//手机验证码 //手机验证码
$('input[name="code"]').on('input propertychange', function () { $('input[name="code"]').on('input propertychange', function () {
...@@ -255,24 +293,46 @@ ...@@ -255,24 +293,46 @@
}); });
//验证手机号验证 //查看密码
$(document).on('click', '#resetPassword', function () { $(".eyesRe").on('click', function () {
if (opt.calcForm(opt, 1)) { //兼容ie
var flag;
var self = this;
if ($(this).hasClass('iconiconxiantiaoshouji')) {
$(".status").find('li').eq(1).addClass('curr').siblings('li').removeClass('curr'); $(this).removeClass('iconiconxiantiaoshouji').addClass('iconjuxing27');
$("#verify").hide(); } else {
$("#rebuild").show(); $(this).removeClass('iconjuxing27').addClass('iconiconxiantiaoshouji');
} }
flag = $(this).hasClass('iconjuxing27') ? '1' : '2';
var data = {
value: $("input[name='repassword']").val(),
flag: flag
};
var getTpl = pwdHtmlRe.innerHTML;
layui.laytpl(getTpl).render(data, function (html) {
$(".pwdrehtml").empty().html(html);
});
}); });
//重设密码 //重设密码
layui.form.on('submit(resetPassword)', function (data) { layui.form.on('submit(resetPassword)', function (data) {
if (opt.calcForm(opt, 2)) { if (opt.calcForm(opt)) {
$(data.elem).addClass("layui-btn-disabled"); $(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) { if (!opt.isClick) {
...@@ -308,7 +368,7 @@ ...@@ -308,7 +368,7 @@
$("#rebuild").hide(); $("#rebuild").hide();
opt.isClick = false; opt.isClick = false;
$("#verifiCode").show(); $("#verifiCode").show();
$(data.elem).removeClass("layui-btn-disabled"); $(data.elem).removeClass("layui-btn-disabled");
......
...@@ -14,8 +14,31 @@ ...@@ -14,8 +14,31 @@
$(".verify-code").show(); $(".verify-code").show();
$(".wechat").hide();
$(".login").hide(); $(".login").hide();
break;
case 'password':
$(".verify-code").hide();
$(".wechat").hide();
$(".login").show();
break;
case 'bindmobile':
$(".verify-code").hide();
$(".wechat").hide();
$(".login").hide();
$(".bind-mobile").show();
break;
} }
...@@ -26,12 +49,12 @@ ...@@ -26,12 +49,12 @@
return this; return this;
}, },
getCode: function (opt, type, params) { getCode: function (opt, type, params, element) {
var $verifiCode = $("#verifiCode"), var $verifiCode = element.parents('.layui-form').find("#verifiCode"),
$code = $('input[name="code"]'), $code = element.parents('.layui-form').find('input[name="code"]'),
$codetext = $('input[name="codetext"]'), $codetext = element.parents('.layui-form').find('input[name="codetext"]'),
$codepic = $('.codepic'); $codepic = element.parents('.layui-form').find('.codepic');
if (type == 'captchaInfo') { if (type == 'captchaInfo') {
...@@ -101,6 +124,7 @@ ...@@ -101,6 +124,7 @@
calcForm: function (ele, type) { calcForm: function (ele, type) {
var $mobile = $(ele).find('input[name="mobile"]'), var $mobile = $(ele).find('input[name="mobile"]'),
$password = $(ele).find('input[name="password"]'), $password = $(ele).find('input[name="password"]'),
$smsCode = $(ele).find('input[name="smsCode"]'),
$code = $(ele).find('input[name="code"]'); $code = $(ele).find('input[name="code"]');
...@@ -145,6 +169,13 @@ ...@@ -145,6 +169,13 @@
} }
if (!$smsCode.val() && type === 3) {
$smsCode.parent('.input-wrap').addClass('error');
return false;
}
$('.error').removeClass('error'); $('.error').removeClass('error');
...@@ -156,15 +187,15 @@ ...@@ -156,15 +187,15 @@
//发送验证码 //发送验证码
$(document).on('click', 'input[name="codetext"]', function () { $(document).on('click', 'input[name="codetext"]', function () {
var $verifiCode = $("#verifiCode"), var $verifiCode = $(this).parents('.layui-form').find("#verifiCode"),
captchaUuid = $verifiCode.find('input[name="captchaUuid"]').val(), captchaUuid = $verifiCode.find('input[name="captchaUuid"]').val(),
captcha = $verifiCode.find('input[name="captcha"]').val(), captcha = $verifiCode.find('input[name="captcha"]').val(),
mobile = $('input[name="mobile"]').val(); mobile = $(this).parents('.layui-form').find('input[name="mobile"]').val();
//判断是否有图形验证码id //判断是否有图形验证码id
if (!captchaUuid) { if (!captchaUuid) {
opt.getCode(opt, 'captchaInfo'); opt.getCode(opt, 'captchaInfo', null, $(this));
} else { } else {
...@@ -174,10 +205,10 @@ ...@@ -174,10 +205,10 @@
captchaUuid: captchaUuid, captchaUuid: captchaUuid,
captcha: captcha, captcha: captcha,
mobile: mobile, mobile: mobile,
code_type: 2 code_type: $(this).parents('.layui-form').find('input[name="code_type"]').val()
}; };
opt.getCode(opt, 'mobile', params); opt.getCode(opt, 'mobile', params, $(this));
} }
...@@ -368,6 +399,62 @@ ...@@ -368,6 +399,62 @@
} }
}); });
//微信提交
layui.form.on('submit(bindMobile)', function (data) {
if (opt.calcForm(data.form, 3)) {
$(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) {
opt.isClick = true;
var code = Util.getRequest('code');
var params = $.extend({}, data.field, {code: code});
IcController.getData(apis.mobileBind, 'GET', params, function (res) {
if (res.errcode === 0) {
//注入token
Util.setCookie('token', res.data.access_token, 1, cookieHostname);
Util.setCookie('user_id', res.data.user_id, 1, cookieHostname);
window.location.href = home_url;
} else if (res.errcode === 505) {
$(".error-text").hide();
layer.confirm('账户被禁用,请联系0755-23940717,进行解禁', {
btn: ['取消', '联系客服']
}, function () {
layer.closeAll();
}, function () {
layer.msg('0755-23940717', {
time: 8000
});
});
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
} else {
layer.msg(res.errmsg);
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
}
});
}
}
});
$("body").keydown(function () { $("body").keydown(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