update login
This commit is contained in:
@@ -175,32 +175,7 @@ em.down{color:#88D053;}
|
|||||||
.bar-tab:before{background-color:#DCDCDC;transform:scaleY(1);}
|
.bar-tab:before{background-color:#DCDCDC;transform:scaleY(1);}
|
||||||
.bar-tab .tab-item .icon ~ .tab-label{top:0.05rem;}
|
.bar-tab .tab-item .icon ~ .tab-label{top:0.05rem;}
|
||||||
|
|
||||||
/* 登录 */
|
|
||||||
.icon-login01{width:14px;height:20px;background:url(../images/icon-login01.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
|
||||||
.icon-login02{width:15px;height:19px;background:url(../images/icon-login02.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
|
||||||
.icon-login03{width:15px;height:18px;background:url(../images/icon-login03.png) no-repeat center center;background-size:100%;vertical-align:text-bottom;}
|
|
||||||
.icon-loginMode01{width:30px;height:24px;background:url(../images/icon-loginMode01.png) no-repeat center center;background-size:100%;}
|
|
||||||
.icon-loginMode02{width:30px;height:24px;background:url(../images/icon-loginMode02.png) no-repeat center center;background-size:100%;}
|
|
||||||
.icon-loginMode03{width:22px;height:24px;background:url(../images/icon-loginMode03.png) no-repeat center center;background-size:100%;}
|
|
||||||
#input_phoneNumber,#input_codeSms,#input_password{left:24px;width:80%;}
|
|
||||||
#input_phoneNumber{width:50%;}
|
|
||||||
#input_feedback{width:100%;height:100px;}
|
|
||||||
.list-block .item-after .icon-eye-grey{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;}
|
|
||||||
.list-block .item-after .icon-eye-orange{width:0.9rem;height:0.65rem;margin-right:0;margin-top:0.25rem;}
|
|
||||||
.sendCode{padding:0 8px;height:27px;background:#fff;border:solid 1px #2db0fc;border-radius:3px;color:#2db0fc;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;}
|
|
||||||
.waiting{padding:0 8px;height:27px;background:#0a8ddf;border:solid 1px #0a8ddf;border-radius:3px;color:#fff;text-align:center;line-height:26px;font-size:0.7rem;float:right;margin-top:-2px;}
|
|
||||||
.agreement{font-size:0.65rem;color:#666;margin-left:0.75rem;}
|
|
||||||
.agreement a{font-size:0.65rem;}
|
|
||||||
.check{width:18px;height:18px;border:solid 1px #D7D7D7;border-radius:0.05rem;display:inline-block;vertical-align:middle;margin-right:0.2rem;position:relative;}
|
|
||||||
.checkImg{width:10px;height:7px;position:absolute;top:5px;left:3px;}
|
|
||||||
.loginBox p{text-align:center;margin:0;}
|
|
||||||
.loginBox p .button{margin-top:2rem;margin-bottom:0.5rem;}
|
|
||||||
.loginBox p a{font-size:0.65rem;color:#AA907A;}
|
|
||||||
.loginMode{width:100%;position:absolute;bottom:4.5rem;}
|
|
||||||
.loginMode p{font-size:0.65rem;color:#999;text-align:center;}
|
|
||||||
.loginMode p a:nth-child(2){margin:0 2rem;}
|
|
||||||
.line{width:100%;height:1px;background:#e5e5e5;margin-bottom:1.5rem;position:relative;}
|
|
||||||
.line span{position:absolute;top:-10px;left:50%;margin-left:-57.5px;display:block;background:#fff;padding:0 25px;font-size:0.65rem;color:#999;}
|
|
||||||
/* 首页 */
|
/* 首页 */
|
||||||
.totalValue{padding:1rem 0;overflow:hidden;}
|
.totalValue{padding:1rem 0;overflow:hidden;}
|
||||||
.totalValue div:first-child{float:left;margin-left:0.75rem;}
|
.totalValue div:first-child{float:left;margin-left:0.75rem;}
|
||||||
|
|||||||
@@ -72,12 +72,15 @@ $("#login_btn").on("click", function () {
|
|||||||
}
|
}
|
||||||
axios.post("/rest/user/smsLogin", {mobile: phoneNum,smsCode:code})
|
axios.post("/rest/user/smsLogin", {mobile: phoneNum,smsCode:code})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
var data = response.data
|
var resData = response.data;
|
||||||
if(data.status){
|
if (resData.status) {
|
||||||
var token = data.data;
|
// 用户登录成功的TOKEN
|
||||||
}else{
|
var token = resData.data;
|
||||||
$.toast("data.message");
|
localStorage.setItem("user_token", token);
|
||||||
}
|
$.toast(resData.message);
|
||||||
|
} else {
|
||||||
|
$.toast(resData.message);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -9,10 +9,9 @@
|
|||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
|
|
||||||
<link rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.6.2/css/sm.css">
|
<link rel="stylesheet" href="../../css/sm.css">
|
||||||
<link rel="stylesheet" href="../../css/main.css">
|
<link rel="stylesheet" href="../../css/main.css">
|
||||||
<link rel="stylesheet" href="../../css/theme-orange.css">
|
<link rel="stylesheet" href="../../css/theme-orange.css">
|
||||||
<link rel="stylesheet" href="../../css/mui.min.css">
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -21,7 +20,7 @@
|
|||||||
<div class="page-group">
|
<div class="page-group">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<header class="bar bar-nav">
|
||||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">快捷登录</h1>
|
<h1 class="title">快捷登录</h1>
|
||||||
@@ -65,7 +64,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<div class="content-block loginBox">
|
<div class="content-block loginBox">
|
||||||
<p><a class="button button-big button-fill theme" id="login_btn">登录</a></p>
|
<p><a class="button button-big button-fill theme" id="login_btn">登录</a></p>
|
||||||
<p><a href="05_mine00_login02_password.html">账号密码登录</a></p>
|
<p><a onclick="clicked('passLogin.html', true)">账号密码登录</a></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block loginMode">
|
<div class="content-block loginMode">
|
||||||
<p class="line">
|
<p class="line">
|
||||||
@@ -99,6 +98,7 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||||
<script type="text/javascript" src="../../js/login/codeSms.js" ></script>
|
<script type="text/javascript" src="../../js/login/codeSms.js" ></script>
|
||||||
<script type="text/javascript" src="../../js/login/wxLogin.js" ></script>
|
<script type="text/javascript" src="../../js/login/wxLogin.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var auths = ''
|
var auths = ''
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<div class="page-group" id="app">
|
<div class="page-group" id="app">
|
||||||
<div class="page page-current">
|
<div class="page page-current">
|
||||||
<header class="bar bar-nav">
|
<header class="bar bar-nav">
|
||||||
<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">账号密码登录</h1>
|
<h1 class="title">账号密码登录</h1>
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="content-block loginBox">
|
<div class="content-block loginBox">
|
||||||
<p><a class="button button-big button-fill theme" id="login_btn" @click="passLogin">登录</a></p>
|
<p><a class="button button-big button-fill theme" id="login_btn" @click="passLogin">登录</a></p>
|
||||||
<p><a href="05_mine00_login01_codeSms.html">快捷登录</a></p>
|
<p><a @click="openSmsLoginPage">快捷登录</a></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block loginMode">
|
<div class="content-block loginMode">
|
||||||
<p class="line">
|
<p class="line">
|
||||||
@@ -93,6 +93,7 @@ $.config = {router: false}
|
|||||||
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
<script type="text/javascript" src="../../js/axios.min.js"></script>
|
||||||
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
<script type="text/javascript" src="../../js/axiosPlugin.js"></script>
|
||||||
<script type="text/javascript" src="../../js/plus.info.js" ></script>
|
<script type="text/javascript" src="../../js/plus.info.js" ></script>
|
||||||
|
<script type="text/javascript" src="../../js/common.js" ></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
@@ -150,6 +151,10 @@ new Vue({
|
|||||||
$(".list-block .item-after .icon-eye-orange").hide();
|
$(".list-block .item-after .icon-eye-orange").hide();
|
||||||
$(".list-block .item-after .icon-eye-grey").show();
|
$(".list-block .item-after .icon-eye-grey").show();
|
||||||
$("#input_password").attr("type","password");
|
$("#input_password").attr("type","password");
|
||||||
|
},
|
||||||
|
// 打开验证码登录页面
|
||||||
|
openSmsLoginPage: function() {
|
||||||
|
back(),plus.nativeUI.closeWaiting();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user