You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

175 lines
7.1 KiB
HTML

5 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>我的</title>
<script src="__JS__/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="__JS__/getRem.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
<link rel="stylesheet" type="text/css" href="__CSS__/foot_tabbar.css">
<link rel="stylesheet" type="text/css" href="__CSS__/my.css">
<link href="__CSS__/common-cz.css" rel="stylesheet" >
5 years ago
<script src="__STATIC__/bg4_4.js"></script>
5 years ago
</head>
<body>
<div class="my" style="padding-bottom: 1.6rem;min-height: 100vh;">
5 years ago
<div class="register">
<div class="logo"><img src="__IMG__/user/logo2.png" alt=""></div>
<div class="account">
<img class="img-one" src="__IMG__/user/people.png" alt="">
<input id="mobile" type="text" placeholder="请输入账号/手机号" value=''>
<img class="img-close empty" style="padding: 0px;" src="__IMG__/user/close.png" alt="">
</div>
<div class="passsword">
<img class="img-one" src="__IMG__/user/suo.png" alt="">
<input type="password" id="password" placeholder="请输入密码">
<img class="img-close create_img" src="__IMG__/user/show.png" alt="">
5 years ago
</div>
5 years ago
<div class="forget"><a href="{:U('User/forget')}">忘记密码?</a></div>
<button class="enter submit">登录</button>
<if condition="I('get.pid') gt 0">
5 years ago
<div class="promptly">还没有账号?<a style="margin-left: 10px;" href="<?='mobile.php?s=/User/step1/pid/'.I('get.pid').'/gid/'.I('get.gid').'.html'?>"> 账号注册 </a>|<a href="{:U('User/register',array('pid'=>I('get.pid',0),'gid'=>I('get.gid',0)))}"> 手机注册 </a></div>
5 years ago
<else/>
<div class="promptly">还没有账号?<a style="margin-left: 10px;" href="{:U('User/step1')}"> 账号注册 </a>|<a href="{:U('User/register')}"> 手机注册 </a></div>
5 years ago
</if>
</div>
</div>
5 years ago
<div class="pop pop-window">
<div class="pop-box pop-sign">
<div class="pop-wrap"></div>
</div>
</div>
5 years ago
<input type="hidden" id="from" name="from" value="{$from}">
5 years ago
<div class="popmsg pop-dialog" style="font-size: .28rem"></div>
<!-- 底部导航 -->
<div class="foot_tabbar">
<div class="foot_tabbar_box">
<div class="foot_info ">
<a href="{:U('Index/index')}" class="<if condition='CONTROLLER_NAME eq Index and ACTION_NAME eq index'>active</if>">
<img src="__IMG__/new/shouye<if condition='CONTROLLER_NAME eq Index and ACTION_NAME eq index'>1</if>.png" alt="">
<span>首页</span>
</a>
</div>
<div class="foot_info ">
<a href="{:U('Index/introduce')}" class="<if condition='ACTION_NAME eq introduce'>active</if>">
<img src="__IMG__/new/qiyechaxun<if condition='ACTION_NAME eq introduce'>1</if>.png" alt="">
<span>企业简介</span></a>
</div>
<div class="foot_info ">
<a href="{:U('Index/business')}" class="<if condition='ACTION_NAME eq business'>active</if>">
<img src="__IMG__/new/hezuo<if condition='ACTION_NAME eq business'>1</if>.png" alt="">
<span>商务合作</span>
</a>
</div>
<div class="foot_info ">
<a href="{:U('User/index')}" class="<if condition='CONTROLLER_NAME eq User'>active</if>">
<img src="__IMG__/new/geren<if condition='CONTROLLER_NAME eq User'>1</if>.png" alt="">
<span>我的</span>
</a>
</div>
</div>
</div>
5 years ago
</body>
5 years ago
<script src="__JS__/pop.lwx.min.js"></script>
5 years ago
<script src="__JS__/lwx.js"></script>
<script src="__JS__/common.js"></script>
5 years ago
<script>
5 years ago
$(document).keyup(function(event){
5 years ago
if(event.keyCode == 13){
$('.submit').click();
}
});
5 years ago
$('.empty').click(function(){
$('.account>input').val("");
});
$('.create_img').click(function(){
if($(this).attr('src')=='__IMG__/user/show.png'){
$(this).attr('src','__IMG__/user/hide.png');
$(this).siblings("input").attr('type','text');
}else{
$(this).attr('src','__IMG__/user/show.png');
$(this).siblings("input").attr('type','password');
}
});
5 years ago
var pmsg = $('.popmsg').pop();
5 years ago
$('.submit').click(function(event) {
var mobile = $.trim($('#mobile').val());
var password = $.trim($('#password').val());
5 years ago
var promoteId = parseInt("{:I('request.pid')}") ? parseInt("{:I('request.pid')}") : 0;
var gameId = parseInt("{:I('request.gid')}") ? parseInt("{:I('request.gid')}") : 0;
5 years ago
if (mobile) {
if (password) {
$.ajax({
type:'POST',
url:'{:U("login")}',
5 years ago
data:{'phone':mobile,'password':password,'promote_id':promoteId,'game_id':gameId},
5 years ago
dataType:"Json",
success:function(data){
5 years ago
if(data.status == 1 || data.status == 2){
5 years ago
var username = lwx.getItem('username');
if(username) {
var arr = username.split(',');
if(arr.length>=5) {arr = arr.splice(0,5);}
for(var i=0,len=arr.length;i<len;i++) {
if((!arr[i] && typeof(arr[i]) != 0) || arr[i] == mobile) {arr.splice(i,1);}
}
arr.unshift(mobile);
mobile = arr.join(',');
}
lwx.setItem('username',mobile);
pmsg.msg(data.msg);
5 years ago
var url = $.trim($('#login_form').attr('data-url'));
setTimeout(function(){
if (data.status == 2) {
5 years ago
window.location.href = 'http://' + "{$_SERVER['HTTP_HOST']}" + "/index.php?s=/Home/Home/promitionofregestion/gid/" + gameId + "/pid/" + promoteId + "/status/" + "1" + ".html";
5 years ago
return false;
5 years ago
} else {
if (url) {
window.location.href = url;
} else {
window.location.href = "{:U('index')}";
}
5 years ago
return false;
5 years ago
}
},1500);
5 years ago
}else{
pmsg.msg(data.msg);
return false;
}
}
});
} else{
pmsg.msg('请输入密码');event.preventDefault();
}
} else {
pmsg.msg('请输入手机号码');event.preventDefault();
}
});
$(".jsdel").click(function(){
var input = $(this).siblings('.jsinput');
input.val('').focus();
if($.trim(input.val())) {
$(this).show();
} else {
$(this).hide();
}
return false;
})
</script>
</block>