385 lines
15 KiB
HTML
385 lines
15 KiB
HTML
<!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 ifapp = 0;
|
|
var IFUpdating=0;
|
|
var version = "", plat = "";
|
|
var 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");
|
|
var etypedata = getlocalStorage("etype");
|
|
if (etypedata != null) {
|
|
etype = etypedata
|
|
}
|
|
var aifapp = getlocalStorage("ifapp");
|
|
if (aifapp != null) {
|
|
ifapp = aifapp;
|
|
}
|
|
if(ifapp ==0){
|
|
$("#checkapp").addClass("uhide");
|
|
} else {
|
|
|
|
var closeInterval = setInterval(function () {
|
|
try {
|
|
version = api.appVersion;
|
|
var systemType = api.systemType;
|
|
if (systemType == "ios") {
|
|
plat = "0";
|
|
}
|
|
else if (systemType == "android") {
|
|
plat = "1";
|
|
}
|
|
$("#appVersion").html(version);
|
|
} catch (e) {
|
|
|
|
}
|
|
clearInterval(closeInterval);
|
|
}, 500);
|
|
|
|
|
|
}
|
|
//getdata();
|
|
});
|
|
function getdata() {
|
|
|
|
if (etype == 0) {
|
|
|
|
var title = "个人设置";
|
|
$(document).attr("title", title);
|
|
$("title").html(title);
|
|
$("header h1").html(title);
|
|
$("#smrz_title").html("实名认证");
|
|
$("#bdqb_title").html("绑定USDT钱包");
|
|
$("#bdqb_title").html("绑定USDT钱包");
|
|
$("#wddz_box").removeClass("uhide");
|
|
$("#xgdlmm_title").html("修改登录密码");
|
|
$("#xgaqmm_title").html("修改安全密码");
|
|
$("#logout").html("安全退出");
|
|
} else {
|
|
var title = "Personal settings";
|
|
$(document).attr("title", title);
|
|
$("title").html(title);
|
|
$("header h1").html(title);
|
|
$("#smrz_title").html("Real-name authentication");
|
|
$("#bdqb_title").html("Bind USDT wallet");
|
|
$("#wddz_box").addClass("uhide");
|
|
$("#xgdlmm_title").html("Modify login password");
|
|
$("#xgaqmm_title").html("Modify security password");
|
|
$("#logout").html("Safe exit");
|
|
}
|
|
|
|
}
|
|
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 oncheckapp() {
|
|
|
|
var ifb = true;
|
|
var ifb0 = true;
|
|
try {
|
|
var permission = 'storage';
|
|
var resultList = api.hasPermission({
|
|
list: [permission]
|
|
});
|
|
var granted = resultList[0].granted;
|
|
if (!granted) {
|
|
ifb = false;
|
|
layer.confirm((etype == 0 ? "应用需要您的授权才能访问存储,是否要授权?" : "The application needs your authorization to access the storage. Do you want to authorize it?"), {
|
|
btn: [(etype == 0 ? "是" : "YES"), (etype == 0 ? "否" : "NO")] //按钮
|
|
}, function () {
|
|
api.requestPermission({
|
|
list: [permission],
|
|
}, function (res) {
|
|
if (res.list[0].granted) {
|
|
// 已授权,可以继续下一步操作
|
|
etishi3(etype == 0 ? "已授权" : "Authorized");
|
|
|
|
oncheckappto();
|
|
ifb0 = false;
|
|
} else {
|
|
ifb = false;
|
|
}
|
|
});
|
|
}, function () {
|
|
ifb = false;
|
|
});
|
|
} else {
|
|
oncheckappto();
|
|
}
|
|
} catch (err) {
|
|
tishi3("发生错误:" + err);
|
|
}
|
|
|
|
}
|
|
function oncheckappto() {
|
|
|
|
$("#jcbb_title").html("检查中...");
|
|
try {
|
|
|
|
version = api.appVersion;
|
|
var systemType = api.systemType;
|
|
if (systemType == "ios") {
|
|
plat = "0";
|
|
}
|
|
else if (systemType == "android") {
|
|
plat = "1";
|
|
}
|
|
|
|
} catch (e) {
|
|
|
|
}
|
|
var datas = { plat: plat, version: version };
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/ajax.ashx?action=CheckAPPVersion&ifweb=1",
|
|
data: datas,
|
|
dataType: "JSON",
|
|
error: function (xhr, type) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
$("#jcbb_title").html("检查版本");
|
|
if (data.IFupdate == 1) {
|
|
var _index = layer.confirm(data.updatemsg, {
|
|
btn: [(etype == 0 ? "去更新" : "To update"), (etype == 0 ? "不更新,谢谢!" : "No update, thank you!")] //按钮
|
|
}, function () {
|
|
api.download({
|
|
url: encodeURI(updateurl + data.appUpdateUrl),
|
|
savePath: "fs://app/" + data.appUpdateUrl,
|
|
encode: false,
|
|
report: true,
|
|
cache: false,
|
|
allowResume: true
|
|
}, function (ret, err) {
|
|
|
|
if (ret.state == 0) {
|
|
api.showProgress({
|
|
title: (etype == 0 ? "正在下载" : "Downloading"),
|
|
text: (etype == 0 ? "已完成:" : "Completed:") + ret.percent + '%',
|
|
modal: false
|
|
});
|
|
}
|
|
else if (ret.state == 1) {
|
|
api.hideProgress();
|
|
IFUpdating = 0;
|
|
|
|
api.installApp({
|
|
appUri: ret.savePath
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
tishi3(JSON.stringify(ret));
|
|
IFUpdating = 0;
|
|
}
|
|
});
|
|
}, function () {
|
|
});
|
|
} else {
|
|
tishi3("已经是最新版本,无需更新!");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
</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 ub-ac ub-pc" style="">
|
|
<img src="../image/logo.png" />
|
|
|
|
</div>
|
|
|
|
<div class="ub li" id="checkapp" onclick="oncheckapp()">
|
|
<div class="ub ub-f1" id="jcbb_title" style="padding: 0.8em;">
|
|
检查版本
|
|
</div>
|
|
<div class="ub ub-ac ub-pc" id="appVersion" style="margin-right: .5em; margin-top: 0.1em; width: 3em; height: 2.5em; line-height: 2.5em;">0.0.1</div>
|
|
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top:0.8em; width: 1em; height:1em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
|
</div>
|
|
<div class="ub li" onclick='onloginlink("news_details.html?id=341")'>
|
|
<div class="ub ub-f1" id="bdqb_title" style="padding: 0.8em;">
|
|
用户服务协议
|
|
</div>
|
|
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top: 0.8em; width: 1em; height: 1em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
|
</div>
|
|
<div class="ub li" id="wddz_box" onclick='onloginlink("news_details.html?id=224167")'>
|
|
<div class="ub ub-f1" id="wddz_title" style="padding: 0.8em;">
|
|
隐私政策
|
|
</div>
|
|
<div class="ub ub-ac ub-pc" style="margin-right: .5em; margin-top: 0.8em; width: 1em; height: 1em;"><img style="width: 1.2em;" src="../image/faifeito.png" /></div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
<p class="pullUp">上拉加载...</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
<footer style="background:none;border:0">
|
|
<p>
|
|
© 2025 银花优选(上海)水业有限公司 All Rights Reserved.
|
|
<a href="https://beian.miit.gov.cn/" target="_blank">沪ICP备2025144910号-1</a>
|
|
</p>
|
|
|
|
</footer>
|
|
<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>
|