代码修改后的版本,全部提交
This commit is contained in:
263
Mtxfw.VipSite/mobile/set.html
Normal file
263
Mtxfw.VipSite/mobile/set.html
Normal file
@@ -0,0 +1,263 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
|
||||
<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/content.css" />
|
||||
<script type="text/javascript" src="/scripts/jquery-2.0.2.min.js"></script>
|
||||
<script type="text/javascript" src="/scripts/jquery.cookie.min.js"></script>
|
||||
<!--<script type="text/javascript" src="/scripts/iscroll.js"></script>-->
|
||||
<script type="text/javascript" src="/script/main.js?t=0"></script>
|
||||
<script type="text/javascript" src="/layer/layer.js"></script>
|
||||
<script type="text/javascript" src="/Scripts/long.js"></script>
|
||||
<script type="text/javascript" src="/script/moment.js"></script>
|
||||
<script type="text/javascript" src="/script/api.js"></script>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.pullDown {
|
||||
position: absolute;
|
||||
top: -1.25rem;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
text-align: center;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pullUp {
|
||||
position: absolute;
|
||||
bottom: -1.25rem;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
text-align: center;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pullDown.loading, .pullUp.loading, .pullDown.refresh, .pullUp.refresh {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var userId = null;
|
||||
var LoginId = null;
|
||||
var CartId = null;
|
||||
var opentimes = null;
|
||||
var sInterval0 = null;
|
||||
var t = 0, etype=0;
|
||||
var myScroll = null;
|
||||
var pullDown = 1; // 下拉刷新避免多次执行
|
||||
var pullUp = 1; // 上拉加载避免多次执行
|
||||
var downHeight = 0;
|
||||
var upHeight = 0;
|
||||
var isload = true;//设置是否终止滚动加载
|
||||
var curScrollHeight = 0;//当前滚动位置
|
||||
var curCount = 1;//计数器,防止滚动时重复执行加载下一页
|
||||
$(document).ready(function () {
|
||||
userId = getlocalStorage("userId");
|
||||
LoginId = getlocalStorage("LoginId");
|
||||
CartId = getlocalStorage("CartId");
|
||||
|
||||
});
|
||||
function onScroll() {
|
||||
if (myScroll != null) {
|
||||
myScroll.destroy();
|
||||
myScroll = null;
|
||||
}
|
||||
myScroll = new IScroll('#wrapper', {
|
||||
probeType: 2,
|
||||
fadeScrollbars: false
|
||||
});
|
||||
|
||||
|
||||
myScroll.on('scroll', function () {
|
||||
var y = myScroll.y;
|
||||
downHeight = $(".pullDown").height();
|
||||
upHeight = $(".pullUp").height();
|
||||
// 下拉加载
|
||||
if (y >= downHeight && pullDown) {
|
||||
$(".pullDown").addClass("refresh").html("松开刷新...");
|
||||
myScroll.minScrollY = downHeight;
|
||||
pullDown = 0;
|
||||
}
|
||||
if (y <= downHeight && y >= 0 && !pullDown) {
|
||||
$(".pullDown").removeClass("refresh").html("下拉刷新...");
|
||||
pullDown = 1;
|
||||
myScroll.minScrollY = 0;
|
||||
}
|
||||
|
||||
// 上拉刷新
|
||||
var maxHeight = myScroll.maxScrollY;
|
||||
if (y < (maxHeight - upHeight) && pullUp) {
|
||||
$(".pullUp").addClass("loading").html("松开加载...");
|
||||
myScroll.maxScrollY = maxHeight - upHeight;
|
||||
pullUp = 0;
|
||||
}
|
||||
if (y > maxHeight && y < (maxHeight + upHeight) && !pullUp) {
|
||||
$(".pullUp").removeClass("loading").html("上拉加载...");
|
||||
myScroll.maxScrollY = maxHeight + upHeight;
|
||||
pullUp = 1;
|
||||
}
|
||||
});
|
||||
|
||||
myScroll.on('scrollEnd', function () {
|
||||
if ($(".pullDown").hasClass("refresh")) {
|
||||
$(".pullDown").text("正在刷新...");
|
||||
opentimes = setTimeout(function () {
|
||||
clearInterval(opentimes);
|
||||
rdata();
|
||||
$(".pullDown").removeClass("refresh").html("下拉刷新...");
|
||||
pullDown = 1;
|
||||
myScroll.refresh();
|
||||
}, 2000);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
myScroll.on('refresh', function () {
|
||||
$(".pullUp").removeClass("loading").html("上拉加载...");
|
||||
pullUp = 1;
|
||||
});
|
||||
}
|
||||
function cancelaccount() {
|
||||
userId = getlocalStorage("userId");
|
||||
LoginId = getlocalStorage("LoginId");
|
||||
if (userId != null) {
|
||||
var index_ = layer.confirm((etype == 0 ? '注销账号后不能再登录,您确定要注销账号吗?' : 'Are you sure you want to log out?'), {
|
||||
title: (etype == 0 ? "注销账号提醒" : "Exit Reminder"),
|
||||
btn: [(etype == 0 ? '是' : 'Yes'), (etype == 0 ? '否' : 'No')] //按钮
|
||||
}, function () {
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: "/apiajax.ashx",
|
||||
data: { "action": "cancelaccount", "userId": (userId != null ? userId : ""), "LoginId": (LoginId != null ? LoginId : "") },
|
||||
|
||||
dataType: "JSON",
|
||||
error: function (jqXHR) {
|
||||
//tishi3("发生错误:" + jqXHR.status);
|
||||
},
|
||||
success: function (data) {
|
||||
|
||||
tishi3(data.msg);
|
||||
if (data.status == 1) {
|
||||
clearlocalStorage("userId");
|
||||
clearlocalStorage("LoginId");
|
||||
layer.close(index_);
|
||||
var closeInterval = setInterval(function () {
|
||||
clearInterval(closeInterval);
|
||||
api.closeWidget({
|
||||
silent: true // 静默退出
|
||||
});
|
||||
}, 600);
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
}, function () {
|
||||
}
|
||||
);
|
||||
} else {
|
||||
onlink("/");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="wrap">
|
||||
<header><div class="ub">
|
||||
<div class="nav-btn" id="nav-left" style=" margin:0; padding:0; padding-top:0.2em; min-width:3em" onclick="closeWin()">
|
||||
|
||||
<img src="../image/faifei.png" style="margin-left:0; margin-top:0em; height:1.2em;width:1.2em;" />
|
||||
|
||||
|
||||
</div>
|
||||
<h1 class="ub-f1">
|
||||
个人设置
|
||||
</h1>
|
||||
<div class="nav-btn blue" id="nav-right" style=" margin:0; padding:0; min-width:3em; padding-right:1em;">
|
||||
</div>
|
||||
</div></header>
|
||||
|
||||
<section class="ub-f1" id="wrapper">
|
||||
|
||||
<div id="wrapper_content">
|
||||
|
||||
<p class="pullDown">下拉刷新...</p>
|
||||
<div class="clear"></div>
|
||||
<div class="ub ub-f1 ub-ver setcontent">
|
||||
|
||||
<div class="ub li" onclick="onloginlink('mydata0.html')">
|
||||
<div class="ub ub-f1" style="padding: 0.8em;">
|
||||
个人资料
|
||||
</div>
|
||||
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top:1.1em; width: 1.2em; height:1.2em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
||||
</div>
|
||||
<div class="ub li" onclick="onloginlink('mybindpay.html')">
|
||||
<div class="ub ub-f1" style="padding: 0.8em;">
|
||||
绑定支付
|
||||
</div>
|
||||
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top:1.1em; width: 1.2em; height:1.2em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
||||
</div>
|
||||
<div class="ub li" onclick="setlocalStorage('mytoaddress','1');clearlocalStorage('qygm');onloginlink('myaddress.html')">
|
||||
<div class="ub ub-f1" style="padding: 0.8em;">
|
||||
我的地址
|
||||
</div>
|
||||
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top:1.1em; width: 1.2em; height:1.2em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
||||
</div>
|
||||
<div class="ub li" onclick="onloginlink('editpwd.html')">
|
||||
<div class="ub ub-f1" style="padding: 0.8em;">
|
||||
修改登录密码
|
||||
</div>
|
||||
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top:1.1em; width: 1.2em; height:1.2em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
||||
</div>
|
||||
|
||||
<div class="ub li" onclick="onloginlink('about.html')">
|
||||
<div class="ub ub-f1" style="padding: 0.8em;">
|
||||
关于
|
||||
</div>
|
||||
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top:1.1em; width: 1.2em; height:1.2em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
||||
</div>
|
||||
<div class="ub li" onclick="cancelaccount()">
|
||||
<div class="ub ub-f1" style="padding: 0.8em;">
|
||||
注销账号
|
||||
</div>
|
||||
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top:1.1em; width: 1.2em; height:1.2em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ub ub-ac ub-pc setabtn" style="height: 5em;padding:0 0.8em; box-sizing:border-box;">
|
||||
<div id="logout" style="width:100%;height:2.5em; line-height:2.5em;text-align:center; color:#fff;border-radius:0.3em" onclick="logout(1);">
|
||||
退出登录
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<p class="pullUp">上拉加载...</p>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<div class="ajaxLoader ub ub-ac uhide" onclick="reload()">
|
||||
<div class="ub ub-ac ub-ver"><img src="image/load.gif" /><br>正在加载...</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user