Commit f606157e by 施宇

Merge branch 'master' of http://119.23.72.7/shiyu/icsales

# Conflicts:
#	dist/js/global/api.js
parents c0cd89d7 e3e21668
......@@ -9,7 +9,7 @@
<body>
<div class="person-bar lineBlock va-m">
<div class="person">
<div class="wrap">
<div class="wrap layui-form">
<ul class="status">
<li class="lineBlock curr">
<em class="va-m lineBlock"></em>
......@@ -24,14 +24,14 @@
<span class="va-m">设置成功</span>
</li>
</ul>
<div class="register layui-form" style="display: none">
<div class="register" id="verify" style="display: block">
<p class="tit">
<em class="va-m lineBlock"></em>
<span class="va-m">忘记密码</span>
</p>
<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">
<option value="0">中国 +86</option>
......@@ -39,34 +39,43 @@
</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="code">
<input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码"/>
</div>
<div class="btn-wrap">
<a href="javascript:;" class="btn">下一步</a>
<a href="javascript:;" class="btn" id="resetPassword">下一步</a>
</div>
</div>
<div class="register layui-form" style="display: block">
<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>
<input type="password" class="w w1 va-m" placeholder="请输入密码">
<i class="iconfont iconjuxing27 va-m lineBlock"></i>
<div class="pwd lineBlock">
<input type="password" class="w w1 va-m" placeholder="请输入密码" name="password">
</div>
<i class="iconfont iconiconxiantiaoshouji va-m lineBlock eyes"></i>
</div>
<div class="btn-wrap">
<a href="javascript:;" class="btn">设置密码</a>
<a href="javascript:;" class="btn" lay-submit lay-filter="resetPassword">设置密码</a>
</div>
</div>
<div class="success" style="display: none">
<i class="ico"></i>
<p class="t1" style="margin-bottom: 10px;">恭喜您,密码设置成功</p>
<p class="t2" style="margin: 0 auto 60px;">为请保管好您的账户信息。</p>
<a href="javascript:;" class="btn">返回首页</a>
<a href="homeicsales/homes" class="btn">返回首页</a>
</div>
</div>
</div>
......@@ -74,6 +83,16 @@
<b class="lineBlock emptys"></b>
<include file="public/foot"/>
<script src="__PUBLIC__/js/person/forget.js"></script>
<script type="text/html" id="pwdHtml">
{{# if (d.flag== 1) { }}
<input type="text" class="w w1 va-m" placeholder="请输入密码" name="password" value="{{d.value}}">
{{# } else { }}
<input type="password" class="w w1 va-m" placeholder="请输入密码" name="password" value="{{d.value}}">
{{# } }}
</script>
</body>
</html>
\ No newline at end of file
......@@ -200,7 +200,7 @@
</div>
</div>
<div class="btn_div">
<div class="btn">登录,查看更多结果</div>
<a class="btn" href="passporticsales/login">登录,查看更多结果</a>
</div>
<div class="no_data" style="display: none">
......@@ -213,11 +213,6 @@
<include file="public/indexfoot" />
</div>
<include file="public/foot" />
<script>
$('.btn_div .btn').click(function () {
window.location.href = '/login'
})
</script>
</body>
......
......@@ -15,6 +15,7 @@
<p class="t1">IC业务助手</p>
<p class="t2">让询报价更轻松、便捷</p>
</div>
<!--微信绑定-->
<div class="wechat" style="display: none">
<a href="javascript:;" class="btn">
<i class="iconfont iconjuxing22 va-m"></i>
......@@ -25,6 +26,7 @@
<a href="javascript:;">密码登录</a>
</p>
</div>
<!--绑定手机号-->
<div class="bind-mobile layui-form" style="display: none">
<div class="input-wrap">
<i class="iconfont iconjuxing23 va-m"></i>
......@@ -45,73 +47,96 @@
<a href="javascript:;" class="btn">绑定手机号</a>
</div>
</div>
<div class="verify-code layui-form" style="display: none">
<!--验证码登录-->
<form class="verify-code layui-form" style="display: none" onsubmit="return false">
<input type="hidden" name="code_type" value="2">
<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>
<option value="1">香港 +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="code">
<input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码"/>
</div>
<div class="btn-wrap">
<a href="javascript:;" class="btn">登录</a>
<a href="javascript:;" class="btn" lay-submit lay-filter="verifyCode">登录</a>
</div>
<div class="operate clr">
<a href="javascript:;" class="fl l">密码登录</a>
<a href="passporticsales/login?flag=password" class="fl l">密码登录</a>
<p class="fr r">
<span>还没账户?</span>
<a href="javascript:;">免费注册</a>
<a href="passporticsales/register">免费注册</a>
</p>
</div>
</div>
<div class="login layui-form">
</form>
<!--密码登录-->
<form class="login layui-form" onsubmit="return false">
<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>
<option value="1">香港 +86</option>
</select>
</div>
</div>
<div class="input-wrap error">
<div class="input-wrap">
<i class="iconfont iconpassword va-m"></i>
<input type="text" class="w w1 va-m" placeholder="请输入密码">
<i class="iconfont iconjuxing27 va-m lineBlock"></i>
<div class="pwd lineBlock">
<input type="password" class="w w1 va-m" placeholder="请输入密码" name="password">
</div>
<i class="iconfont iconiconxiantiaoshouji va-m lineBlock eyes"></i>
</div>
<div class="error-text">
<div class="error-text" style="display: none">
<i class="iconfont iconjuxing20 va-m"></i>
<span class="va-m">验证码错误,请重新输入</span>
</div>
<div class="pwd">
<a href="javascript:;" class="fr">忘记密码?</a>
<a href="passporticsales/forget" class="fr">忘记密码?</a>
</div>
<div class="btn-wrap">
<a href="javascript:;" class="btn">登录</a>
<a href="javascript:;" class="btn" lay-submit lay-filter="login">登录</a>
</div>
<div class="operate clr">
<a href="javascript:;" class="fl l">码登录</a>
<a href="passporticsales/login?flag=verify" class="fl l">验证码登录</a>
<p class="fr r">
<span>还没账户?</span>
<a href="javascript:;">免费注册</a>
<a href="passporticsales/register">免费注册</a>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
<b class="lineBlock emptys"></b>
<include file="public/foot"/>
<script src="__PUBLIC__/js/person/login.js"></script>
<script type="text/html" id="pwdHtml">
{{# if (d.flag== 1) { }}
<input type="text" class="w w1 va-m" placeholder="请输入密码" name="password" value="{{d.value}}">
{{# } else { }}
<input type="password" class="w w1 va-m" placeholder="请输入密码" name="password" value="{{d.value}}">
{{# } }}
</script>
</body>
</html>
\ No newline at end of file
......@@ -10,14 +10,15 @@
<div class="person-bar lineBlock va-m">
<div class="person">
<div class="wrap">
<div class="register layui-form" style="display: none">
<div class="register layui-form">
<input type="hidden" name="code_type" value="1">
<p class="tit">
<em class="va-m lineBlock"></em>
<span class="va-m">注册账户</span>
</p>
<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">
<option value="0">中国 +86</option>
......@@ -27,20 +28,34 @@
</div>
<div class="input-wrap">
<i class="iconfont iconpassword va-m"></i>
<input type="text" class="w w1 va-m" placeholder="请输入密码">
<i class="iconfont iconjuxing27 va-m lineBlock"></i>
<div class="pwd lineBlock">
<input type="password" class="w w1 va-m" placeholder="请输入密码" name="password">
</div>
<i class="iconfont iconiconxiantiaoshouji va-m lineBlock eyes"></i>
</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" name="code" class="w w1 va-m" placeholder="请输入手机验证码">
<input type="button" name="codetext" class="lineBlock text va-m" value="发送验证码"/>
</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">注册</a>
<a href="javascript:;" class="btn" lay-submit lay-filter="register">注册</a>
</div>
<p class="agree">点击注册即默认同意<a>《IC业务助手协议》</a></p>
</div>
<div class="success">
<div class="success" style="display: none">
<a href="javascript:;" class="text">暂不认证,跳过</a>
<i class="ico"></i>
<p class="t1">恭喜您,注册成功</p>
......@@ -53,6 +68,17 @@
<b class="lineBlock emptys"></b>
<include file="public/foot"/>
<script src="__PUBLIC__/js/person/register.js"></script>
<script type="text/html" id="pwdHtml">
{{# if (d.flag== 1) { }}
<input type="text" class="w w1 va-m" placeholder="请输入密码" name="password" value="{{d.value}}">
{{# } else { }}
<input type="password" class="w w1 va-m" placeholder="请输入密码" name="password" value="{{d.value}}">
{{# } }}
</script>
</body>
</html>
\ No newline at end of file
......@@ -11,12 +11,19 @@
<![endif]-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/layui/css/layui.css">
<script>
var auth = 'authapi',
so = 'soapi',
user = 'userapi',
goods = 'goodsapi',
inquiry = 'inquiryapi',
dist = '__PUBLIC__';
var cookieHostname = window.location.hostname.split(".")[1] + "." + window.location.hostname.split(".")[2];
var auth_url = 'authapi',
so_url = 'soapi',
user_url = 'userapi',
goods_url = 'goodsapi',
inquiry_url = 'inquiryapi',
index_url = 'indexicsales',
passport_url = 'passporticsales',
search_url = 'searchicsales',
home_url = 'homeicsales',
item_url = 'itemicsales',
dist = '__PUBLIC__';
</script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/layui/css/layui.css">
\ No newline at end of file
......@@ -111,6 +111,12 @@
margin: 0 auto;
padding: 40px 0;
}
.search_wrapper .content .width_1190 .search_data_list .btn_div .btn {
display: block;
}
.search_wrapper .content .width_1190 .search_data_list .btn_div .btn:hover {
color: #fff;
}
.search_wrapper .content .width_1190 .no_data {
padding: 60px 0 203px;
}
......
{"version":3,"sources":["indexsearch.less"],"names":[],"mappings":"AAAA;EACI,yBAAA;;AADJ,eAGI,SACI,YACI;EACI,YAAA;EACA,cAAA;EACA,iBAAA;;AARhB,eAGI,SACI,YACI,gBAKI;EACI,YAAA;EACA,sBAAA;EACA,qDAAA;EACA,YAAA;;AAdpB,eAGI,SACI,YACI,gBAKI,YAMI;EACI,YAAA;EACA,YAAA;EACA,8BAAA;EACA,kBAAA;EACA,sBAAA;;AArBxB,eAGI,SACI,YACI,gBAKI,YAMI,WAOI;EACI,eAAA;EACA,kBAAA;EACA,QAAA;EACA,cAAA;EACA,UAAA;;AA5B5B,eAGI,SACI,YACI,gBAKI,YAMI,WAeI;EACI,YAAA;EACA,WAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;;AApC5B,eAGI,SACI,YACI,gBAKI,YA+BI;EACI,YAAA;EACA,8BAAA;;AA3CxB,eAGI,SACI,YA4CI;EACI,eAAA;;AAjDhB,eAGI,SACI,YA4CI,WAGI;EACI,cAAA;;AApDpB,eAGI,SACI,YAoDI;EACI,kBAAA;EACA,sBAAA;;AA1DhB,eAGI,SACI,YAoDI,kBAII;EACI,gCAAA;EACA,mBAAA;;AA9DpB,eAGI,SACI,YAoDI,kBAII,YAII;EACI,gBAAA;EACA,eAAA;EACA,cAAA;EACA,eAAA;;AAEA,eAnEpB,SACI,YAoDI,kBAII,YAII,GAMK;EACG,cAAA;EACA,gBAAA;;AAGJ,eAxEpB,SACI,YAoDI,kBAII,YAII,GAWK;EACG,iBAAA;;AA5E5B,eAGI,SACI,YAoDI,kBAyBI;EACI,eAAA;EACA,cAAA;EACA,kBAAA;EACA,gBAAA;;AArFpB,eAGI,SACI,YAoDI,kBAyBI,mBAMI;EACI,cAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,SAAA;;AA5FxB,eAGI,SACI,YAoDI,kBAyBI,mBAeI;EACI,iBAAA;;AAjGxB,eAGI,SACI,YAoDI,kBAyBI,mBAeI,yBAGI;EACI,gBAAA;EACA,kBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,eAtGxB,SACI,YAoDI,kBAyBI,mBAeI,yBAGI,IAMK;EACG,yBAAA;EACA,WAAA;EACA,kBAAA;;AAGJ,eA5GxB,SACI,YAoDI,kBAyBI,mBAeI,yBAGI,IAYK;EACG,cAAA;;AAhHhC,eAGI,SACI,YAmHI;EACI,aAAA;EACA,cAAA;;AAzHhB,eAGI,SACI,YAmHI,kBAGI;EACI,UAAA;;AA3HpB,eAGI,SACI,YAmHI,kBAGI,YAEI;EACI,yBAAA;EACA,6BAAA;EACA,cAAA;;AA/HxB,eAGI,SACI,YAmHI,kBAYI;EACI,YAAA;EACA,cAAA;EACA,eAAA;;AAtIpB,eAGI,SACI,YAuII;EACI,qBAAA","file":"indexsearch.css"}
\ No newline at end of file
{"version":3,"sources":["indexsearch.less"],"names":[],"mappings":"AAAA;EACI,yBAAA;;AADJ,eAGI,SACI,YACI;EACI,YAAA;EACA,cAAA;EACA,iBAAA;;AARhB,eAGI,SACI,YACI,gBAKI;EACI,YAAA;EACA,sBAAA;EACA,qDAAA;EACA,YAAA;;AAdpB,eAGI,SACI,YACI,gBAKI,YAMI;EACI,YAAA;EACA,YAAA;EACA,8BAAA;EACA,kBAAA;EACA,sBAAA;;AArBxB,eAGI,SACI,YACI,gBAKI,YAMI,WAOI;EACI,eAAA;EACA,kBAAA;EACA,QAAA;EACA,cAAA;EACA,UAAA;;AA5B5B,eAGI,SACI,YACI,gBAKI,YAMI,WAeI;EACI,YAAA;EACA,WAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;;AApC5B,eAGI,SACI,YACI,gBAKI,YA+BI;EACI,YAAA;EACA,8BAAA;;AA3CxB,eAGI,SACI,YA4CI;EACI,eAAA;;AAjDhB,eAGI,SACI,YA4CI,WAGI;EACI,cAAA;;AApDpB,eAGI,SACI,YAoDI;EACI,kBAAA;EACA,sBAAA;;AA1DhB,eAGI,SACI,YAoDI,kBAII;EACI,gCAAA;EACA,mBAAA;;AA9DpB,eAGI,SACI,YAoDI,kBAII,YAII;EACI,gBAAA;EACA,eAAA;EACA,cAAA;EACA,eAAA;;AAEA,eAnEpB,SACI,YAoDI,kBAII,YAII,GAMK;EACG,cAAA;EACA,gBAAA;;AAGJ,eAxEpB,SACI,YAoDI,kBAII,YAII,GAWK;EACG,iBAAA;;AA5E5B,eAGI,SACI,YAoDI,kBAyBI;EACI,eAAA;EACA,cAAA;EACA,kBAAA;EACA,gBAAA;;AArFpB,eAGI,SACI,YAoDI,kBAyBI,mBAMI;EACI,cAAA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,SAAA;;AA5FxB,eAGI,SACI,YAoDI,kBAyBI,mBAeI;EACI,iBAAA;;AAjGxB,eAGI,SACI,YAoDI,kBAyBI,mBAeI,yBAGI;EACI,gBAAA;EACA,kBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,eAtGxB,SACI,YAoDI,kBAyBI,mBAeI,yBAGI,IAMK;EACG,yBAAA;EACA,WAAA;EACA,kBAAA;;AAGJ,eA5GxB,SACI,YAoDI,kBAyBI,mBAeI,yBAGI,IAYK;EACG,cAAA;;AAhHhC,eAGI,SACI,YAmHI;EACI,aAAA;EACA,cAAA;;AAzHhB,eAGI,SACI,YAmHI,kBAGI;EACI,UAAA;;AA3HpB,eAGI,SACI,YAmHI,kBAGI,YAEI;EACI,yBAAA;EACA,6BAAA;EACA,cAAA;;AA/HxB,eAGI,SACI,YAmHI,kBAYI;EACI,YAAA;EACA,cAAA;EACA,eAAA;;AAtIpB,eAGI,SACI,YAmHI,kBAYI,SAII;EACI,cAAA;;AACA,eAtIpB,SACI,YAmHI,kBAYI,SAII,KAEK;EACG,WAAA;;AA1I5B,eAGI,SACI,YA6II;EACI,qBAAA","file":"indexsearch.css"}
\ No newline at end of file
......@@ -133,6 +133,12 @@
width: 220px;
margin: 0 auto;
padding: 40px 0;
.btn{
display: block;
&:hover{
color: #fff;
}
}
}
}
......
......@@ -202,6 +202,7 @@ body {
font-size: 16px;
color: #0d84d1;
text-align: center;
background: none;
}
.person .wrap .verify-code .btn-wrap {
margin-top: 30px;
......@@ -237,12 +238,14 @@ body {
font-size: 14px;
color: #0d84d1;
}
.person .wrap .login .iconiconxiantiaoshouji,
.person .wrap .login .iconjuxing27 {
font-size: 20px;
color: #adb6bf;
width: 112px;
text-align: left;
padding-left: 55px;
cursor: pointer;
}
.person .wrap .login .pwd {
margin-bottom: 60px;
......@@ -331,12 +334,14 @@ body {
color: #2e3033;
margin-left: 5px;
}
.person .wrap .register .iconjuxing27 {
.person .wrap .register .iconjuxing27,
.person .wrap .register .iconiconxiantiaoshouji {
font-size: 20px;
color: #adb6bf;
width: 112px;
text-align: left;
padding-left: 55px;
cursor: pointer;
}
.person .wrap .register .input-wrap {
height: 48px;
......@@ -377,11 +382,15 @@ body {
color: #515559 !important;
border: none !important;
}
.person .wrap .register .input-wrap .codepic {
cursor: pointer;
}
.person .wrap .register .input-wrap .text {
width: 100px;
font-size: 16px;
color: #0d84d1;
text-align: center;
background: none;
}
.person .wrap .register .btn-wrap {
margin-top: 30px;
......
......@@ -240,6 +240,7 @@ body {
font-size: 16px;
color: #0d84d1;
text-align: center;
background: none;
}
}
......@@ -286,12 +287,13 @@ body {
}
}
.iconjuxing27 {
.iconiconxiantiaoshouji,.iconjuxing27 {
font-size: 20px;
color: #adb6bf;
width: 112px;
text-align: left;
padding-left: 55px;
cursor: pointer;
}
.pwd {
......@@ -395,12 +397,13 @@ body {
}
}
.iconjuxing27 {
.iconjuxing27,.iconiconxiantiaoshouji{
font-size: 20px;
color: #adb6bf;
width: 112px;
text-align: left;
padding-left: 55px;
cursor: pointer;
}
.input-wrap {
......@@ -446,11 +449,16 @@ body {
}
}
.codepic{
cursor: pointer;
}
.text {
width: 100px;
font-size: 16px;
color: #0d84d1;
text-align: center;
background: none;
}
}
......
No preview for this file type
......@@ -116,6 +116,9 @@ Created by iconfont
<glyph glyph-name="password" unicode="&#58912;" d="M283.830857 501.430857V596.662857a238.153143 238.153143 0 0 0 237.860572 237.897143 238.153143 238.153143 0 0 0 237.897142-237.897143v-95.232a194.889143 194.889143 0 0 0 160.914286-191.634286v-164.352a194.779429 194.779429 0 0 0-194.56-194.56H317.44a194.779429 194.779429 0 0 0-194.56 194.56V309.76a194.889143 194.889143 0 0 0 160.950857 191.634286z m61.44 2.925714h352.877714V596.662857a176.64 176.64 0 0 1-176.457142 176.457143 176.64 176.64 0 0 1-176.420572-176.457143v-92.306286z m-27.830857-61.44a133.266286 133.266286 0 0 1-133.12-133.12v-164.352a133.266286 133.266286 0 0 1 133.12-133.12h408.502857a133.266286 133.266286 0 0 1 133.12 133.12V309.76a133.266286 133.266286 0 0 1-133.12 133.12H317.44z m204.251429-144.091428a71.314286 71.314286 0 0 1-71.241143-71.241143 71.314286 71.314286 0 0 1 71.241143-71.204571 71.314286 71.314286 0 0 1 71.241142 71.204571 71.314286 71.314286 0 0 1-71.241142 71.241143z m0-203.885714c-73.142857 0-132.681143 59.501714-132.681143 132.644571 0 73.179429 59.538286 132.681143 132.681143 132.681143s132.681143-59.501714 132.681142-132.681143c0-73.142857-59.501714-132.644571-132.681142-132.644571z" horiz-adv-x="1024" />
<glyph glyph-name="iconxiantiaoshouji" unicode="&#58913;" d="M800.9472 324.8128c-58.88-34.56-122.112-56.32-186.624-64.128l6.912-148.2752a30.6944 30.6944 0 1 0-61.3632-2.816l-6.8864 147.9424a442.5984 442.5984 0 0 0-153.2928 30.4128l-62.8736-134.1184a30.72 30.72 0 0 0-55.6032 26.112l62.976 134.3488c-56.6528 31.8208-106.752 76.1088-147.968 130.5344l-79.7184-103.68a30.592 30.592 0 0 0-43.0592-5.632 30.72 30.72 0 0 0-5.632 43.0336l92.416 120.2688a609.3312 609.3312 0 0 0-57.216 132.352 30.72 30.72 0 1 0 58.8288 17.7152c51.712-171.9552 173.2864-292.608 325.12-322.7136 151.8848-30.1568 310.1952 34.9696 423.68 174.1312a30.72 30.72 0 1 0 47.5904-38.8352 609.0752 609.0752 0 0 0-103.424-100.5056l39.5008-146.3808a30.72 30.72 0 0 0-59.3152-16.0256l-34.048 126.2592z" horiz-adv-x="1024" />
</font>
......
No preview for this file type
No preview for this file type
......@@ -18,27 +18,51 @@
(function (window) {
apis = {
/**
* 用户注册
*/
authRegister: auth_url + '/auth/register',
/**
* 账号密码登录
*/
authlogin: auth_url + '/auth/login',
/**
* 重置密码
*/
resetPassword: auth_url + '/auth/resetPassword',
/**
* 手机验证码快捷登录
*/
authMobilelogin: auth_url + '/auth/mobile/login',
/**
* 获取图形验证码接口
*/
captchaInfo: auth_url + '/captchaInfo',
/**
* 注册获取短信验证码接口
*/
getRegistCode: auth_url + '/v1/getRegistCode',
/**
* 商品列表
*/
goodsInfo: goods + '/goods/info',
goodsInfo: goods_url + '/goods/info',
/**
* 商品搜索
*/
goodsSearch: goods + '/goods/search',
goodsSearch: goods_url + '/goods/search',
/**
* 商品数量
*/
goodsCount: goods + '/goods/count',
goodsCount: goods_url + '/goods/count',
/**
* 商品新增
*/
goodsAdd: goods + '/goods/add',
goodsAdd: goods_url + '/goods/add',
/**
* 商品修改
*/
goodsSave: goods + '/goods/save',
bulkupload:goods+'/goods/upload',
bulkupload:goods_url+'/goods/upload',
goodsSave: goods_url + '/goods/save'
};
if (typeof define === "function" && define.amd) {
return apis;
......
......@@ -23,13 +23,18 @@
//商品数量获取
IcController.getData(apis.goodsCount, 'POST', null, function (res) {
var getTpl = countHtml.innerHTML;
layui.laytpl(getTpl).render(res.count, function (html) {
if (res.errcode == 0) {
$(".good_total").empty().html(html);
var getTpl = countHtml.innerHTML;
});
layui.laytpl(getTpl).render(res.count, function (html) {
$(".good_total").empty().html(html);
});
}
});
......
!function () {
window.ForgetController = {
isClick: false,
init: function () {
this.created(this).mounted(this).handleBind(this);
},
created: function (opt) {
return this;
},
mounted: function (opt) {
return this;
},
getCode: function (opt, type, params) {
var $verifiCode = $("#verifiCode"),
$code = $('input[name="code"]'),
$codetext = $('input[name="codetext"]'),
$codepic = $('.codepic');
if (type == 'captchaInfo') {
//获取验证码
IcController.getData(apis.captchaInfo, 'GET', null, function (res) {
if (res.captchaUrl) {
$verifiCode.find('img').attr('src', res.captchaUrl);
$verifiCode.find('input[name="captchaUuid"]').val(res.captchaUuid);
$verifiCode.show();
$verifiCode.find('input[name="captcha"]').focus();
}
});
} else if (type == 'mobile') {
//获取短信验证码
IcController.getData(apis.getRegistCode, 'POST', params, function (res) {
if (res.err_code == 0) {
$verifiCode.hide();
$code.focus();
//开始倒计时
var second = 60, timer = null;
timer = setInterval(function () {
second -= 1;
if (second > 0) {
$codetext.val(second + '秒');
$codetext.attr('disabled', "true");
} else {
clearInterval(timer);
$codetext.removeAttr('disabled');
$codetext.val('重新获取');
$codepic.trigger('click');
}
}, 1000);
} else {
layer.msg(res.err_msg);
}
});
}
},
calcForm: function (opt, type) {
var $mobile = $('input[name="mobile"]'),
$password = $('input[name="password"]'),
$code = $('input[name="code"]');
if (!$mobile.val() && type === 1) {
$mobile.parent('.input-wrap').addClass('error');
return false;
}
if (!$password.val() && type === 2) {
$password.parent().parent('.input-wrap').addClass('error');
return false;
}
//密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (!reg.test($password.val()) && type === 2) {
$password.parent().parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('密码长度要大于6位,由数字和字母组成');
return false;
}
if (!$code.val() && type === 1) {
$code.parent('.input-wrap').addClass('error');
return false;
}
$('.error').removeClass('error');
return true;
},
handleBind: function (opt) {
//发送验证码
$(document).on('click', 'input[name="codetext"]', function () {
var $verifiCode = $("#verifiCode"),
captchaUuid = $verifiCode.find('input[name="captchaUuid"]').val(),
captcha = $verifiCode.find('input[name="captcha"]').val(),
mobile = $('input[name="mobile"]').val();
//判断是否有图形验证码id
if (!captchaUuid) {
opt.getCode(opt, 'captchaInfo');
} else {
//获取短信验证码
var params = {
captchaUuid: captchaUuid,
captcha: captcha,
mobile: mobile,
code_type: 3
}
opt.getCode(opt, 'mobile', params);
}
});
//更新验证码
$(document).on('click', '.codepic', function () {
opt.getCode(opt, 'captchaInfo');
});
//手机号
$('input[name="mobile"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent('.input-wrap').removeClass('error');
}
});
//密码
$('input[name="password"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent().parent('.input-wrap').removeClass('error');
//符合密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (reg.test(val)) {
$(".error-text").hide();
}
}
});
//手机验证码
$('input[name="code"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent('.input-wrap').removeClass('error');
}
});
//查看密码
$(".eyes").on('click', function () {
//兼容ie
var flag;
var self = this;
if ($(this).hasClass('iconiconxiantiaoshouji')) {
$(this).removeClass('iconiconxiantiaoshouji').addClass('iconjuxing27');
} else {
$(this).removeClass('iconjuxing27').addClass('iconiconxiantiaoshouji');
}
flag = $(this).hasClass('iconjuxing27') ? '1' : '2';
var data = {
value: $("input[name='password']").val(),
flag: flag
};
var getTpl = pwdHtml.innerHTML;
layui.laytpl(getTpl).render(data, function (html) {
$(".pwd").empty().html(html);
});
});
//验证手机号验证
$(document).on('click', '#resetPassword', function () {
if (opt.calcForm(opt, 1)) {
$(".status").find('li').eq(1).addClass('curr').siblings('li').removeClass('curr');
$("#verify").hide();
$("#rebuild").show();
}
});
//重设密码
layui.form.on('submit(resetPassword)', function (data) {
if (opt.calcForm(opt, 2)) {
$(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) {
opt.isClick = true;
var params = {
mobile: data.field.mobile,
code: data.field.code,
password: data.field.password
};
IcController.getData(apis.resetPassword, 'POST', params, function (res) {
if (res.err_msg == 0) {
$(".status").find('li').eq(2).addClass('curr').siblings('li').removeClass('curr');
$("#verify").hide();
$("#rebuild").hide();
$(".success").show();
} else if (res.err_code == 501) {
layer.msg(res.err_msg);
$(".status").find('li').eq(0).addClass('curr').siblings('li').removeClass('curr');
$("#verify").show();
$("#rebuild").hide();
opt.isClick = false;
$("#verifiCode").show();
$(data.elem).removeClass("layui-btn-disabled");
} else {
layer.msg(res.err_msg);
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
}
});
}
}
});
return this;
},
}, $(function () {
ForgetController.init();
})
}();
\ No newline at end of file
!function () {
window.LoginController = {
isClick: false,
init: function () {
this.created(this).mounted(this).handleBind(this);
},
created: function (opt) {
var params = Util.getRequest('flag');
switch (params) {
case 'verify':
$(".verify-code").show();
$(".login").hide();
}
return this;
},
mounted: function (opt) {
return this;
},
getCode: function (opt, type, params) {
var $verifiCode = $("#verifiCode"),
$code = $('input[name="code"]'),
$codetext = $('input[name="codetext"]'),
$codepic = $('.codepic');
if (type == 'captchaInfo') {
//获取验证码
IcController.getData(apis.captchaInfo, 'GET', null, function (res) {
if (res.captchaUrl) {
$verifiCode.find('img').attr('src', res.captchaUrl);
$verifiCode.find('input[name="captchaUuid"]').val(res.captchaUuid);
$verifiCode.show();
$verifiCode.find('input[name="captcha"]').focus();
}
});
} else if (type == 'mobile') {
//获取短信验证码
IcController.getData(apis.getRegistCode, 'POST', params, function (res) {
if (res.err_code == 0) {
$verifiCode.hide();
$code.focus();
//开始倒计时
var second = 60, timer = null;
timer = setInterval(function () {
second -= 1;
if (second > 0) {
$codetext.val(second + '秒');
$codetext.attr('disabled', "true");
} else {
clearInterval(timer);
$codetext.removeAttr('disabled');
$codetext.val('重新获取');
$codepic.trigger('click');
}
}, 1000);
} else {
layer.msg(res.err_msg);
}
});
}
},
calcForm: function (ele, type) {
var $mobile = $(ele).find('input[name="mobile"]'),
$password = $(ele).find('input[name="password"]'),
$code = $(ele).find('input[name="code"]');
if (!$mobile.val()) {
$mobile.parent('.input-wrap').addClass('error');
return false;
}
if (!$password.val() && type === 1) {
$password.parent().parent('.input-wrap').addClass('error');
return false;
}
//密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (!reg.test($password.val()) && type === 1) {
$password.parent().parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('密码长度要大于6位,由数字和字母组成');
return false;
}
if (!$code.val() && type ===2) {
$code.parent('.input-wrap').addClass('error');
return false;
}
$('.error').removeClass('error');
return true;
},
handleBind: function (opt) {
//发送验证码
$(document).on('click', 'input[name="codetext"]', function () {
var $verifiCode = $("#verifiCode"),
captchaUuid = $verifiCode.find('input[name="captchaUuid"]').val(),
captcha = $verifiCode.find('input[name="captcha"]').val(),
mobile = $('input[name="mobile"]').val();
//判断是否有图形验证码id
if (!captchaUuid) {
opt.getCode(opt, 'captchaInfo');
} else {
//获取短信验证码
var params = {
captchaUuid: captchaUuid,
captcha: captcha,
mobile: mobile,
code_type: 2
};
opt.getCode(opt, 'mobile', params);
}
});
//更新验证码
$(document).on('click', '.codepic', function () {
opt.getCode(opt, 'captchaInfo');
});
//手机号
$('input[name="mobile"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent('.input-wrap').removeClass('error');
}
});
//密码
$('input[name="password"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent().parent('.input-wrap').removeClass('error');
//符合密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (reg.test(val)) {
$(".error-text").hide();
}
}
});
//查看密码
$(".eyes").on('click', function () {
//兼容ie
var flag;
var self = this;
if ($(this).hasClass('iconiconxiantiaoshouji')) {
$(this).removeClass('iconiconxiantiaoshouji').addClass('iconjuxing27');
} else {
$(this).removeClass('iconjuxing27').addClass('iconiconxiantiaoshouji');
}
flag = $(this).hasClass('iconjuxing27') ? '1' : '2';
var data = {
value: $("input[name='password']").val(),
flag: flag
};
var getTpl = pwdHtml.innerHTML;
layui.laytpl(getTpl).render(data, function (html) {
$(self).prev('.pwd').empty().html(html);
});
});
//密码提交
layui.form.on('submit(login)', function (data) {
if (opt.calcForm(data.form, 1)) {
$(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) {
opt.isClick = true;
IcController.getData(apis.authlogin, 'POST', data.field, function (res) {
if (res.err_msg == 0) {
//注入token
Util.setCookie('token', res.data.access_token, 1, cookieHostname);
window.location.href = home_url + '/homes';
} else {
layer.msg(res.err_msg);
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
}
});
}
} else {
}
});
//验证码提交
layui.form.on('submit(verifyCode)', function (data) {
if (opt.calcForm(data.form, 2)) {
$(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) {
opt.isClick = true;
IcController.getData(apis.authMobilelogin, 'POST', data.field, function (res) {
if (res.err_msg == 0) {
//注入token
Util.setCookie('token', res.data.access_token, 1, cookieHostname);
window.location.href = home_url + '/homes';
} else {
layer.msg(res.err_msg);
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
}
});
}
} else {
}
});
return this;
},
}, $(function () {
LoginController.init();
})
}();
\ No newline at end of file
!function () {
window.RegisterController = {
isClick: false,
init: function () {
this.created(this).mounted(this).handleBind(this);
},
created: function (opt) {
return this;
},
mounted: function (opt) {
return this;
},
getCode: function (opt, type, params) {
var $verifiCode = $("#verifiCode"),
$code = $('input[name="code"]'),
$codetext = $('input[name="codetext"]'),
$codepic = $('.codepic');
if (type == 'captchaInfo') {
//获取验证码
IcController.getData(apis.captchaInfo, 'GET', null, function (res) {
if (res.captchaUrl) {
$verifiCode.find('img').attr('src', res.captchaUrl);
$verifiCode.find('input[name="captchaUuid"]').val(res.captchaUuid);
$verifiCode.show();
$verifiCode.find('input[name="captcha"]').focus();
}
});
} else if (type == 'mobile') {
//获取短信验证码
IcController.getData(apis.getRegistCode, 'POST', params, function (res) {
if (res.err_code == 0) {
$verifiCode.hide();
$code.focus();
//开始倒计时
var second = 60, timer = null;
timer = setInterval(function () {
second -= 1;
if (second > 0) {
$codetext.val(second + '秒');
$codetext.attr('disabled', "true");
} else {
clearInterval(timer);
$codetext.removeAttr('disabled');
$codetext.val('重新获取');
$codepic.trigger('click');
}
}, 1000);
} else {
layer.msg(res.err_msg);
}
});
}
},
calcForm: function (opt) {
var $mobile = $('input[name="mobile"]'),
$password = $('input[name="password"]'),
$code = $('input[name="code"]');
if (!$mobile.val()) {
$mobile.parent('.input-wrap').addClass('error');
return false;
}
if (!$password.val()) {
$password.parent().parent('.input-wrap').addClass('error');
return false;
}
//密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (!reg.test($password.val())) {
$password.parent().parent('.input-wrap').addClass('error');
$(".error-text").show().find("span").text('密码长度要大于6位,由数字和字母组成');
return false;
}
if (!$code.val()) {
$code.parent('.input-wrap').addClass('error');
return false;
}
$('.error').removeClass('error');
return true;
},
handleBind: function (opt) {
//发送验证码
$(document).on('click', 'input[name="codetext"]', function () {
var $verifiCode = $("#verifiCode"),
captchaUuid = $verifiCode.find('input[name="captchaUuid"]').val(),
captcha = $verifiCode.find('input[name="captcha"]').val(),
mobile = $('input[name="mobile"]').val();
//判断是否有图形验证码id
if (!captchaUuid) {
opt.getCode(opt, 'captchaInfo');
} else {
//获取短信验证码
var params = {
captchaUuid: captchaUuid,
captcha: captcha,
mobile: mobile,
code_type: 1
}
opt.getCode(opt, 'mobile', params);
}
});
//更新验证码
$(document).on('click', '.codepic', function () {
opt.getCode(opt, 'captchaInfo');
});
//手机号
$('input[name="mobile"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent('.input-wrap').removeClass('error');
}
});
//密码
$('input[name="password"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent().parent('.input-wrap').removeClass('error');
//符合密码长度要大于6位,由数字和字母组成
var reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
if (reg.test(val)) {
$(".error-text").hide();
}
}
});
//手机验证码
$('input[name="code"]').on('input propertychange', function () {
var val = $(this).val();
if (val) {
$(this).parent('.input-wrap').removeClass('error');
}
});
//查看密码
$(".eyes").on('click', function () {
//兼容ie
var flag;
var self = this;
if ($(this).hasClass('iconiconxiantiaoshouji')) {
$(this).removeClass('iconiconxiantiaoshouji').addClass('iconjuxing27');
} else {
$(this).removeClass('iconjuxing27').addClass('iconiconxiantiaoshouji');
}
flag = $(this).hasClass('iconjuxing27') ? '1' : '2';
var data = {
value: $("input[name='password']").val(),
flag: flag
};
var getTpl = pwdHtml.innerHTML;
layui.laytpl(getTpl).render(data, function (html) {
$(".pwd").empty().html(html);
});
});
//注册提交
layui.form.on('submit(register)', function (data) {
if (opt.calcForm()) {
$(data.elem).addClass("layui-btn-disabled");
if (!opt.isClick) {
opt.isClick = true;
IcController.getData(apis.authRegister, 'POST', data.field, function (res) {
if (res.err_msg == 0) {
//注入token
Util.setCookie('token', res.access_token, 1, cookieHostname);
window.location.href = home_url + '/homes';
} else {
layer.msg(res.err_msg);
opt.isClick = false;
$(data.elem).removeClass("layui-btn-disabled");
//处理验证码不正确的时候
if (res.err_code == 501) {
$("#verifiCode").show();
}
}
});
}
}
});
return this;
},
}, $(function () {
RegisterController.init();
})
}();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment