Commit da135584 by 梁建民

Merge branch 'ljm_home'

parents 0907c987 871807ca
......@@ -36,17 +36,29 @@
</div>
</div>
<div class="cert_data">
<div class="cert_data_box">
<div class="hq input_div ">
<span class="input_title lineBlock">经营性质:</span>
<div class="input_parent">
<input type="radio" name="company_type" value="5" title="个人" checked>
</div>
</div>
<div class="xh input_div ">
<div class="xh input_div">
<span class="input_title lineBlock">个人名称:</span>
<div class="input_parent">
<input type="text" placeholder="请输入姓名或昵称" class="input boxsiz"
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>
......@@ -55,11 +67,8 @@
<span class="lineBlock cz boxsiz">重置</span>
</div>
</div>
<div class="form_right fl ">
<div class="form_right fl " style="display: none">
<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="icon iconfont iconjuxing16"></div>
<p>上传图片</p>
......@@ -79,8 +88,7 @@
<div class="icon iconfont iconjuxing16"></div>
<p>上传图片</p>
</div>
<iframe name="test" id="test" style="display: none">
</iframe>
<iframe name="test" id="test" style="display: none"></iframe>
</form>
<div class="upload_result">
<img alt="" src="" />
......@@ -133,7 +141,7 @@
<div class="list clr" style="margin-bottom: 40px;">
<div class="fl l">
<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 class="lineBlock va-m">
<p class="t1">{{d.company_name}}</p>
......@@ -144,6 +152,8 @@
<div style="white-space: nowrap">
{{# if (d.status== 2) { }}
<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 { }}
<a href="javascript:;" class="btn lineBlock edit_info" data-id="{{d.id}}">更新认证信息</a>
{{# } }}
......@@ -169,6 +179,16 @@
</div>
</div>
</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>
</html>
\ No newline at end of file
......@@ -10,7 +10,7 @@
<div class="person-bar lineBlock va-m">
<div class="person">
<div class="wrap layui-form">
<ul class="status">
<!--<ul class="status">
<li class="lineBlock curr">
<em class="va-m lineBlock"></em>
<span class="va-m">验证手机号</span>
......@@ -23,7 +23,7 @@
<em class="va-m lineBlock"></em>
<span class="va-m">设置成功</span>
</li>
</ul>
</ul>-->
<div class="register" id="verify" style="display: block">
<p class="tit">
<em class="va-m lineBlock"></em>
......@@ -50,15 +50,6 @@
<input type="text" class="w w1 va-m" placeholder="请输入手机验证码" name="code">
<input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码"/>
</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">
<i class="iconfont iconpassword va-m"></i>
<div class="pwd lineBlock">
......@@ -66,6 +57,17 @@
</div>
<i class="iconfont iconiconxiantiaoshouji va-m lineBlock eyes"></i>
</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">
<a href="javascript:;" class="btn" lay-submit lay-filter="resetPassword">设置密码</a>
</div>
......@@ -92,6 +94,15 @@
{{# } }}
</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>
</html>
\ No newline at end of file
......@@ -16,36 +16,45 @@
<p class="t2">让元器件询报价更便捷</p>
</div>
<!--微信绑定-->
<div class="wechat" style="display: none">
<a href="javascript:;" class="btn">
<div class="wechat">
<a href="authapi/v1/weixin/web/login" class="btn">
<i class="iconfont iconjuxing22 va-m"></i>
<span class="va-m">微信登录</span>
</a>
<p class="tab-sel">
<a href="javascript:;">验证码登录</a>
<a href="javascript:;">密码登录</a>
<a href="passporticsales?flag=verify">验证码登录</a>
<a href="passporticsales?flag=password">密码登录</a>
</p>
</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">
<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">
<select name="interest">
<select>
<option value="0">大陆 +86</option>
</select>
</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">
<i class="iconfont iconjuxing26 va-m"></i>
<input type="text" class="w w1 va-m" placeholder="请输入手机">
<span class="lineBlock text va-m">发送验证码</span>
<input type="text" class="w w1 va-m" placeholder="请输入手机验证码" name="smsCode">
<input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码" style="background: none;"/>
</div>
<div class="btn-wrap">
<a href="javascript:;" class="btn">绑定手机号</a>
</div>
<a href="javascript:;" class="btn" lay-submit lay-filter="bindMobile">绑定手机号</a>
</div>
</form>
<!--验证码登录-->
<form class="verify-code layui-form" style="display: none" onsubmit="return false">
<input type="hidden" name="code_type" value="2">
......@@ -83,7 +92,7 @@
</div>
</form>
<!--密码登录-->
<form class="login layui-form" onsubmit="return false">
<form class="login layui-form" style="display: none" onsubmit="return false">
<div class="input-wrap">
<i class="iconfont iconjuxing23 va-m"></i>
<input type="text" class="w w1 va-m" placeholder="请输入手机号" name="mobile">
......
......@@ -35,12 +35,11 @@
margin: 10px 0 0 51px;
}
.certification_content .inquiry_form .form_content .form_left {
width: 50%;
width: 57%;
}
.certification_content .inquiry_form .form_content .form_left .input_div {
margin-top: 20px;
position: relative;
height: 40px;
line-height: 40px;
}
.certification_content .inquiry_form .form_content .form_left .input_div.textarea_div {
......@@ -213,6 +212,64 @@
color: #ADB6BF;
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 {
padding: 0 30px 0 30px;
margin-top: 40px;
......@@ -263,3 +320,4 @@
font-size: 16px;
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,W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certification.css"}
\ 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,iBAAA;;AAEA,sBA1CR,cA8BE,cAIE,WAGE,WAKG;EACC,gBAAA;EACA,kBAAA;EACA,YAAA;EACA,cAAA;;AArDZ,sBAOE,cA8BE,cAIE,WAGE,WAYE;EACE,cAAA;EACA,WAAA;EACA,iBAAA;;AA3DZ,sBAOE,cA8BE,cAIE,WAGE,WAkBE;EACE,iBAAA;;AA/DZ,sBAOE,cA8BE,cAIE,WAGE,WAkBE,mBAGE;EACE,gBAAA;EACA,kBAAA;EACA,yBAAA;;AApEd,sBAOE,cA8BE,cAIE,WAGE,WA6BE;EACE,kBAAA;EACA,UAAA;EACA,QAAA;EACA,MAAA;;AA7EZ,sBAOE,cA8BE,cAIE,WAGE,WA6BE,cAME;EACE,aAAA;;AAhFd,sBAOE,cA8BE,cAIE,WAGE,WA6BE,cAME,kBAGE,EAAC;EACC,cAAA;;AAnFhB,sBAOE,cA8BE,cAIE,WAGE,WA6BE,cAcE,oBACE;EACE,cAAA;;AAzFhB,sBAOE,cA8BE,cAIE,WAGE,WA6BE,cAoBE;EACE,YAAA;EACA,kBAAA;EACA,yBAAA;EACA,eAAA;EACA,WAAA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Sd,sBAOE,cA8BE,cAgOE,UAGE,GAEE,GAeE,IAaE;EACE,eAAA;EACA,cAAA;EACA,eAAA;;AAzShB,sBAOE,cA8BE,cAgOE,UAyCE;EACE,cAAA;EACA,eAAA;;AAhTV,sBAOE,cA8BE,cAgOE,UA6CE;EACE,YAAA;EACA,aAAA;EACA,mBAAA;EACA,eAAA;EACA,kBAAA;;AAvTV,sBAOE,cA8BE,cAgOE,UA6CE,SAOE;EACE,cAAA;EACA,eAAA;EACA,kBAAA;EACA,gBAAA;EACA,cAAA;;AA9TZ,sBAOE,cA8BE,cAgOE,UA6CE,SAeE;EACE,cAAA;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
......@@ -40,12 +40,11 @@
margin: 10px 0 0 51px;
.form_left {
width: 50%;
width: 57%;
.input_div {
margin-top: 20px;
position: relative;
height: 40px;
line-height: 40px;
&.textarea_div {
......@@ -239,7 +238,8 @@
height: 100%;
width: 100%;
}
.deleteicon{
.deleteicon {
position: absolute;
top: -15px;
right: -10px;
......@@ -258,7 +258,75 @@
margin-top: 17px;
}
}
.pic-list {
margin-left: 20px;
ul {
white-space: nowrap;
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;
}
p {
color: #8A9299;
font-size: 14px;
}
}
}
}
.certification-show {
padding: 0 30px 0 30px;
margin-top: 40px;
......@@ -324,4 +392,4 @@
}
}
\ No newline at end of file
}
\ No newline at end of file
......@@ -2,9 +2,9 @@
window.CertificationController = {
isClick: false,
token: Util.getCookie('token') || '',
imgUrl: "",
imgUrl: [],
init: function () {
this.created(this).isIe(this).mounted(this).handleBind(this);
this.created(this).uploadFun(this).mounted(this).handleBind(this);
},
created: function (opt) {
......@@ -16,54 +16,44 @@
//更新时间
$('.time').html('更新时间:' + res.data.update_time);
//更新认证信息
if (id) {
$(".certisno").show();
layui.form.val("editauth", {
"auth_type": res.data.auth_type,
"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)
CertificationController.imgUrl=res.data.auth_img;
var getTpl = piclist.innerHTML;
layui.laytpl(getTpl).render(CertificationController.imgUrl, function (html) {
if (CertificationController.imgUrl.length < 6) {
$("#uploadbox").show();
} else {
$("#uploadbox").hide();
}
layui.form.render();
$("#pp").empty().html(html);
});
}
layui.form.render();
} else {
if (res.data) {
$(".certis").show();
var getTpl = listHtml.innerHTML;
layui.laytpl(getTpl).render(res.data, function (html) {
$(".certis").empty().html(html);
});
} else {
$(".certisno").show();
}
}
} else if (res.errcode === 107012) {
$(".certisno").show();
}
});
......@@ -78,39 +68,54 @@
uploadFun: function () {
var self = this;
layui.upload.render({
elem: '#upload_section',
elem: '#uploadbox',
url: apis.ossupload,
multiple: true,
number: 6,
data: {
token: Util.getCookie('token'),
source: 2,
source: 2
},
field: "upload",
before: function () {
before: function (obj) {
layer.load(1, {
offset: ['50%', "50%"],
shade: false
});
},
done: function (res) {
done: function (res, index, upload) {
layer.closeAll('loading');
if (CertificationController.imgUrl.length > 5) {
layer.msg('只允许上传6张图片');
return false;
}
if (res.errcode == 103200) {
$('#upload_section').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', res.data[0])
self.imgUrl = res.data[0] || '';
CertificationController.imgUrl.push(res.data[0]);
var getTpl = piclist.innerHTML;
layui.laytpl(getTpl).render(CertificationController.imgUrl, function (html) {
$("#pp").empty().html(html);
});
} else {
layer.msg(res.errmsg)
}
},
allDone: function (obj) {
if (CertificationController.imgUrl.length < 6) {
$("#uploadbox").show();
} else {
$("#uploadbox").hide();
}
},
err: function () {
layer.closeAll('loading');
layer.msg('上传失败');
}
});
return this;
},
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")) {
......@@ -123,7 +128,6 @@
} else {
iframe.onload = opt.iframeOnload;
}
;
opt.formSubmit();
$('#mineFiles').on('change', function () {
layer.load(1, {
......@@ -163,7 +167,6 @@
console.log(e)
layer.closeAll('loading');
layer.msg('上传失败');
}
if (json) {
layer.closeAll('loading');
......@@ -186,16 +189,16 @@
var value = data.value;
if (value == 1) {
$("#tsv").text('*请上传身份证、驾驶证、工牌、名片等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)');
$(".txx").text('*请上传身份证、驾驶证、工牌、名片等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)');
} else if (value == 2) {
$("#tsv").text('*请上传企业营业执照、商用租赁合同、相关证明资料等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)');
$(".txx").text('*请上传企业营业执照、商用租赁合同、相关证明资料等扫描图片或照片,所提交资料越详尽,审核通过越快(单张图片大小不超过2M)');
}
var getTpl = certtHtml.innerHTML;
layui.laytpl(getTpl).render(data.value, function (html) {
$(".cert_data").empty().html(html);
$(".cert_data_box").empty().html(html);
layui.form.render();
......@@ -212,13 +215,14 @@
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) {
if (res.errcode === 0) {
layer.msg(res.errmsg, {time: 2000}, function () {
layer.msg('更新成功', {time: 2000}, function () {
window.location.href = '/cert';
......@@ -237,7 +241,6 @@
}
});
//更新认证信息按钮
$(document).on('click', '.edit_info', function (e) {
......@@ -248,9 +251,9 @@
});
//删除图片
$('.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版本
$('#fileLoad').show();
} else {
......@@ -259,7 +262,23 @@
}
$('.upload_result').hide();
$('.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 @@
},
calcForm: function (opt, type) {
var $mobile = $('input[name="mobile"]'),
$code = $('input[name="code"]'),
$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');
......@@ -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');
......@@ -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');
......@@ -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;
}
if ($password.val() != $repassword.val()) {
$repassword.parent().parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('输入密码不一致');
return false;
}
$('.error').removeClass('error');
return true;
......@@ -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 () {
......@@ -255,24 +293,46 @@
});
//验证手机号验证
$(document).on('click', '#resetPassword', function () {
//查看密码
$(".eyesRe").on('click', function () {
if (opt.calcForm(opt, 1)) {
//兼容ie
var flag;
var self = this;
$(".status").find('li').eq(1).addClass('curr').siblings('li').removeClass('curr');
if ($(this).hasClass('iconiconxiantiaoshouji')) {
$("#verify").hide();
$(this).removeClass('iconiconxiantiaoshouji').addClass('iconjuxing27');
$("#rebuild").show();
} else {
$(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) {
if (opt.calcForm(opt, 2)) {
if (opt.calcForm(opt)) {
$(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) {
......
......@@ -14,8 +14,31 @@
$(".verify-code").show();
$(".wechat").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 @@
return this;
},
getCode: function (opt, type, params) {
getCode: function (opt, type, params, element) {
var $verifiCode = $("#verifiCode"),
$code = $('input[name="code"]'),
$codetext = $('input[name="codetext"]'),
$codepic = $('.codepic');
var $verifiCode = element.parents('.layui-form').find("#verifiCode"),
$code = element.parents('.layui-form').find('input[name="code"]'),
$codetext = element.parents('.layui-form').find('input[name="codetext"]'),
$codepic = element.parents('.layui-form').find('.codepic');
if (type == 'captchaInfo') {
......@@ -101,6 +124,7 @@
calcForm: function (ele, type) {
var $mobile = $(ele).find('input[name="mobile"]'),
$password = $(ele).find('input[name="password"]'),
$smsCode = $(ele).find('input[name="smsCode"]'),
$code = $(ele).find('input[name="code"]');
......@@ -145,6 +169,13 @@
}
if (!$smsCode.val() && type === 3) {
$smsCode.parent('.input-wrap').addClass('error');
return false;
}
$('.error').removeClass('error');
......@@ -156,15 +187,15 @@
//发送验证码
$(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(),
captcha = $verifiCode.find('input[name="captcha"]').val(),
mobile = $('input[name="mobile"]').val();
mobile = $(this).parents('.layui-form').find('input[name="mobile"]').val();
//判断是否有图形验证码id
if (!captchaUuid) {
opt.getCode(opt, 'captchaInfo');
opt.getCode(opt, 'captchaInfo', null, $(this));
} else {
......@@ -174,10 +205,10 @@
captchaUuid: captchaUuid,
captcha: captcha,
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 @@
}
});
//微信提交
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 () {
......
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