|
@@ -1,124 +0,0 @@
|
|
|
-<!doctype html>
|
|
|
-<html>
|
|
|
-
|
|
|
-<head>
|
|
|
- <meta charset="UTF-8">
|
|
|
- <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
|
|
|
- <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
|
|
|
- <title></title>
|
|
|
- <link rel="stylesheet" type="text/css" href="./css/api.css" />
|
|
|
- <link rel="stylesheet" type="text/css" href="./css/style.css" />
|
|
|
- <style>
|
|
|
- body{
|
|
|
-
|
|
|
- }
|
|
|
- </style>
|
|
|
- <script>
|
|
|
- (function(w, d, m) {
|
|
|
- function r() {
|
|
|
- var t = 100,
|
|
|
- o = 750,
|
|
|
- e = d.documentElement.clientWidth || w.innerWidth,
|
|
|
- n = m.max(m.min(e, 480), 320),
|
|
|
- h = 50;
|
|
|
- 320 >= n && (h = m.floor(n / o * t * .99)),
|
|
|
- n > 320 && 362 >= n && (h = m.floor(n / o * t * 1)),
|
|
|
- n > 362 && 375 >= n && (h = m.floor(n / o * t * 1)),
|
|
|
- n > 375 && (h = m.floor(n / o * t * .97)),
|
|
|
- d.querySelector("html").style.fontSize = h + "px"
|
|
|
- };
|
|
|
- r();
|
|
|
- w.onresize = function() {
|
|
|
- r()
|
|
|
- }
|
|
|
- })(window, document, Math);
|
|
|
- </script>
|
|
|
-</head>
|
|
|
-
|
|
|
-<body>
|
|
|
- <div class="topbar"></div>
|
|
|
- <header class="back-header">
|
|
|
- <ul>
|
|
|
- <li class="padding-20 back-btn"><img class="back-header-ico" src="image/nav_button_back_default.png" /></li>
|
|
|
- <li class="back-header-title">设置密码</li>
|
|
|
- <li class="more-btn"></li>
|
|
|
- </ul>
|
|
|
- </header>
|
|
|
- <section class="new-list">
|
|
|
- <div class="login-logo"><img src="image/logo2.png" /></div>
|
|
|
- <div style="position: relative;">
|
|
|
- <input class="bot-input" id="password" type="password" placeholder="输入密码" />
|
|
|
- <div class="h5"></div>
|
|
|
- <input class="bot-input" id="repassword" type="password" placeholder="重复密码" />
|
|
|
- <div class="h20"></div>
|
|
|
- <div class="h20"></div>
|
|
|
- <div class="m-bottom">完 成</div>
|
|
|
- <div class="h20"></div>
|
|
|
- </div>
|
|
|
- </section>
|
|
|
-</body>
|
|
|
-<script type="text/javascript" src="script/api.js"></script>
|
|
|
-<script type="text/javascript" src="script/jquery.min.js"></script>
|
|
|
-<script type="text/javascript" src="script/jquery.tap.js"></script>
|
|
|
-<script type="text/javascript">
|
|
|
-var _mobile = '';
|
|
|
-var _types = '';
|
|
|
-var _openid = '';
|
|
|
-var _auth = '';
|
|
|
-apiready = function() {
|
|
|
- _openid = api.pageParam.openid;
|
|
|
- _mobile = api.pageParam.mobile;
|
|
|
- _types = api.pageParam.types;
|
|
|
- _auth = api.pageParam.auth;
|
|
|
- setFixStatusBar();
|
|
|
-};
|
|
|
-$(".m-bottom").on("tap", function() {
|
|
|
- getRouteData();
|
|
|
- return false;
|
|
|
-})
|
|
|
-
|
|
|
-function getRouteData() {
|
|
|
- if ($("#password").val() == "") {
|
|
|
- api.toast({ msg: '密码不能为空!' });
|
|
|
- return false;
|
|
|
- }
|
|
|
- if ($("#password").val() != $("#repassword").val()) {
|
|
|
- api.toast({ msg: '两次密码不一致!' });
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (_types == 'register') {
|
|
|
- var _do = 'userregister';
|
|
|
- } else if (_types == 'findpad') {
|
|
|
- var _do = 'usersetpad';
|
|
|
- }
|
|
|
- $.ajax({
|
|
|
- url: rooturl + '?do=' + _do,
|
|
|
- data: {
|
|
|
- username: _mobile,
|
|
|
- password: $("#password").val(),
|
|
|
- ismobile: 1,
|
|
|
- openid: _openid,
|
|
|
- auth: _auth
|
|
|
- },
|
|
|
- dataType: 'json',
|
|
|
- type: 'post',
|
|
|
- success: function(datas) {
|
|
|
- if (datas.result) {
|
|
|
- api.toast({ msg: '操作成功!' });;
|
|
|
- api.openWin({
|
|
|
- name: 'index',
|
|
|
- url: 'index.html',
|
|
|
- bounces: false
|
|
|
- });
|
|
|
- $api.setStorage("memberid", datas.memberid);
|
|
|
- setTimeCloseWin("setpad");
|
|
|
- } else {
|
|
|
- api.toast({ msg: datas.msg });;
|
|
|
- $api.setStorage("memberid", '');
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-</script>
|
|
|
-
|
|
|
-</html>
|