Files
g.hnyhua.cn/Mtxfw.VipSite/mobile/mybusiness0.html
2026-02-07 15:48:27 +08:00

446 lines
20 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/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="/Scripts/TouchSlide.1.1.js"></script>
<script type="text/javascript" src="/Scripts/clipboard.min.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;
}
.mydata_box0 {
margin-bottom: 0.8em;
border-radius: 0;
}
.mydata_box0 div {
margin-top: 0;
width: 20%;
font-size: 0.8em;
border-radius: 0;
line-height: 1.8em;
}
.mydata_box0.jfbox {
height: 4em;
margin: 0;
border-radius: 0;
}
.mydata_box0.jfbox div {
height: 4em;
width: 33.333333333333333332%;
}
.mydata_box0.jfbox div div {
width: 100%;
font-size: 1.1em;
}
.mydata_box0.orderbox div {
width: 33.333333333333333332%;
}
.mydata_box0.orderbox div div.order_yuan {
font-size: 1em;
}
</style>
<script type="text/javascript">
var userId = null;
var LoginId = null;
var CartId = null;
var opentimes = null;
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");
opentimes = setInterval(function () {
var myrefresh = getlocalStorage("mybusiness_refresh");
if (myrefresh != null) {
rdata(1);
clearlocalStorage("mybusiness_refresh");
}
}, 1000);
rdata(1);
var clipboard = new Clipboard('#copybtn');
clipboard.on('success', function (e) {
tishi3("复制成功");
});
clipboard.on('error', function (e) {
tishi3("复制失败");
});
});
function onScroll0() {
isload = true;//设置是否终止滚动加载
curScrollHeight = 0;//当前滚动位置
curCount = 1;//计数器,防止滚动时重复执行加载下一页
$("#wrapper").scroll(function () {
var pageHeight = $("#sysnew").height();
var showHeight = $("#wrapper").height();
var scrollHeight = $("#wrapper").scrollTop();
if (curScrollHeight - scrollHeight < 10 && curScrollHeight > 0) {
if (curCount == 1 && isload) {
rdata(0);
}
curCount++; //加载下一页后计数器+1
}
if (curScrollHeight < scrollHeight) {
curScrollHeight = pageHeight - showHeight;//滚动到页面底部时,重设当前滚动位置
curCount = 1;
}
});
}
function rdata(ag) {
userId = getlocalStorage("userId");
LoginId = getlocalStorage("LoginId");
$(".ajaxLoader").removeClass("uhide");
$(".more_box").html("");
$.ajax({
type: 'GET',
url: "/apiajax.ashx",
data: "&action=getmybusinessdata&ifweb=1&userId=" + (userId != null ? userId : "") + "&LoginId=" + (LoginId != null ? LoginId : ""),
dataType: "JSON",
error: function (xhr, type) {
tishi3("发生错误:" + JSON.stringify(xhr));
},
success: function (data) {
if (data) {
if (data.status == 1) {
setlocalStorage("userinfo", JSON.stringify(data.userInfo));
var ifshowglzhmm = getlocalStorage("ifshowglzhmm");
if (ifshowglzhmm != null) {
onhideurl();
$("#nav-right").html("显示后台网址和账号");
} else {
onshowurl();
$("#nav-right").html("隐藏后台网址和账号");
}
$("#txtuserid").val(data.zh);
$("#txtuserpwd").val(data.mm);
$("#txtuserpwd0").val(data.mm0);
$("#hkdjye_box").html(data.userInfo.hkdjye);
$("#hkjdye_box").html(data.userInfo.hkjdye);
$("#hkksye_box").html(data.userInfo.hkksye);
$("#productcount").html(data.productcount);
$("#productcount0").html(data.productcount0);
$("#fhordercount0").html(data.fhordercount0);
$("#fhordercount1").html(data.fhordercount1);
$("#fhordercount2").html(data.fhordercount2);
$("#kdordercount0").html(data.kdordercount0);
$("#kdordercount1").html(data.kdordercount1);
$("#kdordercount2").html(data.kdordercount2);
$("#ztordercount0").html(data.ztordercount0);
$("#ztordercount1").html(data.ztordercount1);
$("#ztordercount2").html(data.ztordercount2);
$(".ajaxLoader").addClass("uhide");
} else {
tishi3(data.msg);
$(".ajaxLoader").addClass("uhide");
if (data.msg == "您未登录") {
onlink("/");
}
}
} else {
tishi3("网络错误!");
$(".ajaxLoader").addClass("uhide");
}
}
});
}
function ondetail(id) {
onlink("shop_view.html?id=" + id);
}
function onproduct(t) {
userId = getlocalStorage("userId");
if (userId != null) {
onlink("myproducts.html?t=" + t);
} else {
onlink("/");
}
}
function onlog(t) {
userId = getlocalStorage("userId");
if (userId != null) {
onlink("mylog.html?t=" + t);
} else {
onlink("/");
}
}
function onorders0(t, t0) {
userId = getlocalStorage("userId");
if (userId != null) {
onlink("myorders0.html?t=" + t + "&t0=" + t0);
} else {
onlink("/");
}
}
function onifshowurl() {
if ($("#url_box.uhide").length == 0) {
onhideurl();
} else {
onshowurl();
}
}
function onshowurl() {
clearlocalStorage("ifshowglzhmm");
$("#url_box").removeClass("uhide");
$("#nav-right").html("隐藏后台网址和账号");
}
function onhideurl() {
setlocalStorage("ifshowglzhmm", 1);
$("#url_box").addClass("uhide");
$("#nav-right").html("显示后台网址和账号");
}
function oncopy0(t) {
var font = $("#txturl").val();
if (t == 1) {
$("#txtuserid").val();
}else if (t == 2) {
font = $("#txtuserpwd").val();
} else if (t == 3) {
font = $("#txtuserpwd0").val();
}
$("#copyinput").val(font);
$("#copybtn").click();
}
</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" onclick="onifshowurl()" style="color:#fff; margin:0; padding:0; min-width:4em; padding-right:1em;">
</div>
</div>
</header>
<section class="ub-f1" id="wrapper">
<div class="ub ub-ver" style="margin-top:0em;z-index: 1000; padding:0em 0.8em;box-sizing: border-box;">
<div class="uhide" id="url_box" style=" margin-top:0.8em; background-color: #fff; border-radius:0.5em; overflow: hidden; box-sizing: border-box;">
<h3 class="mybusiness_title" style="">商品管理后台网址和账号<span class="close" onclick="onhideurl()"><img src="../image/close.png" /></span></h3>
<div class="clear"></div>
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .08em;">
<div class="ub" style="padding:0.8em 0.4em;padding-right:0.2em;">
登录网址
</div>
<div class="ub ub-f1">
<div class="ub ub-ac ub-pc uinput11" style="width:100%;padding-right:0.6em;box-sizing: border-box">
<textarea id="txturl" style=" width: 100%; height:3em; line-height: 1.2em; text-align: center;background-color: #e1e1e1;border:1px solid #DfDfDf;">https://vip.ksd2023.com/gl.aspx?g=0</textarea>
</div>
</div>
<div class="ub">
<img src="../image/copy.png" onclick="oncopy0(0)" style="width: 1.5em; height: 1.5em;" />
</div>
</div>
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .08em;">
<div class="ub" style="padding:0.8em 0.4em;">
登录账号
</div>
<div class="ub ub-f1">
<div class="ub ub-ac ub-pc uinput11" style="width:100%;padding-right:0.4em;box-sizing: border-box">
<input type="text" id="txtuserid" style=" width:100%;" />
</div>
</div>
<div class="ub" style="">
<img src="../image/copy.png" onclick="oncopy0(1)" style="width: 1.5em; height: 1.5em;" />
</div>
</div>
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .08em;">
<div class="ub" style="padding:0.8em 0.4em;">
登录密码
</div>
<div class="ub ub-f1">
<div class="ub ub-ac ub-pc uinput11" style="width:100%;padding-right:0.4em;box-sizing: border-box;">
<input type="text" id="txtuserpwd" style=" width: 100%;" />
</div>
</div>
<div class="ub" style="">
<img src="../image/copy.png" onclick="oncopy0(2)" style="width: 1.5em; height: 1.5em;" />
</div>
</div>
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .08em;">
<div class="ub" style="padding:0.8em 0.4em;">
二级密码
</div>
<div class="ub ub-f1">
<div class="ub ub-ac ub-pc uinput11" style="width:100%;padding-right:0.4em;box-sizing: border-box;">
<input type="text" id="txtuserpwd0" style=" width: 100%;" />
</div>
</div>
<div class="ub" style="">
<img src="../image/copy.png" onclick="oncopy0(3)" style="width: 1.5em; height: 1.5em;" />
</div>
</div>
</div>
<div class="" id="hk_box" style=" margin-top:0.8em; background-color: #fff; border-radius:0.5em; overflow: hidden; box-sizing: border-box;">
<h3 style=" height:2.5em; line-height:2.5em; padding-left:1em;">我的货款</h3>
<div class="mydata_box0 jfbox" style="border-radius:0;">
<div id="djhkye">
<div onclick="onlog(16)" style="background: url(../image/group2-dldxf.png) no-repeat 0 0; background-size: 100% 100%;">
<span>冻结货款</span>
<span class="je" id="hkdjye_box">0</span>
</div>
</div>
<div id="jdhkye">
<div onclick="onlog(17)" style="background: url(../image/group2-dldxf.png) no-repeat 0 0; background-size: 100% 100%;">
<span>解冻货款</span>
<span class="je" id="hkjdye_box">0</span>
</div>
</div>
<div id="hkksye">
<div onclick="onlog(15);" style="background: url(../image/group2-dldxf.png) no-repeat 0 0; background-size: 100% 100%;">
<span>货款扣税</span>
<span class="je" id="hkksye_box">0</span>
</div>
</div>
</div>
</div>
<div class="" id="products_box" style="background-color: #fff;margin-top: 0.8em; border-radius:0.5em; overflow: hidden; box-sizing: border-box;">
<h3 style=" height:2.5em; line-height:2.5em; padding-left:1em;">商品管理<span style="float: right; margin-right:0.8em; font-size: 0.8em;" onclick="onproduct(0)">全部商品</span></h3>
<div class="mydata_box0 orderbox">
<div onclick="onproduct(1)">
<img src="../image/order_ico0.png" />
<span>已上架</span>
<div class="order_yuan" id="productcount">0</div>
</div>
<div onclick="onproduct(2)">
<img src="../image/order_ico1.png" />
<span>未上架</span>
<div class="order_yuan" id="productcount0">0</div>
</div>
<div class="uhide" onclick="onproduct(3)" id="xxsp_box">
<img src="../image/order_ico1.png" />
<span>线下商品</span>
<div class="order_yuan" id="productcount1">0</div>
</div>
</div>
</div>
<div style="background-color: #fff;margin-top: 0.8em; border-radius:0.5em; overflow: hidden; box-sizing: border-box;">
<h3 style=" height:2.5em; line-height:2.5em; padding-left:1em;">发货订单<span style="float: right; margin-right:0.8em; font-size: 0.8em;" onclick="onorders0(1,0)">全部订单</span></h3>
<div class="mydata_box0 orderbox">
<div onclick="onorders0(1,1)">
<img src="../image/order_ico1.png" />
<span>待发货</span>
<div class="order_yuan" id="fhordercount0">0</div>
</div>
<div onclick="onorders0(1,2)">
<img src="../image/order_ico2.png" />
<span>待收货</span>
<div class="order_yuan" id="fhordercount1">0</div>
</div>
<div onclick="onorders0(1,3)">
<img src="../image/order_ico3.png" />
<span>已完成</span>
<div class="order_yuan" id="fhordercount2">0</div>
</div>
</div>
</div>
<div style="background-color: #fff;margin-top: 0.8em; border-radius:0.5em; overflow: hidden; box-sizing: border-box;">
<h3 style=" height:2.5em; line-height:2.5em; padding-left:1em;">快递订单<span style="float: right; margin-right:0.8em; font-size: 0.8em;" onclick="onorders0(2,0)">全部订单</span></h3>
<div class="mydata_box0 orderbox">
<div onclick="onorders0(2,1)">
<img src="../image/order_ico1.png" />
<span>待发货</span>
<div class="order_yuan" id="kdordercount0">0</div>
</div>
<div onclick="onorders0(2,2)">
<img src="../image/order_ico2.png" />
<span>待收货</span>
<div class="order_yuan" id="kdordercount1">0</div>
</div>
<div onclick="onorders0(2,3)">
<img src="../image/order_ico3.png" />
<span>已完成</span>
<div class="order_yuan" id="kdordercount2">0</div>
</div>
</div>
</div>
<div style="background-color: #fff;margin-top: 0.8em; border-radius:0.5em; overflow: hidden; box-sizing: border-box;">
<h3 style=" height:2.5em; line-height:2.5em; padding-left:1em;">自提订单<span style="float: right; margin-right:0.8em; font-size: 0.8em;" onclick="onorders0(3,0)">全部订单</span></h3>
<div class="mydata_box0 orderbox">
<div onclick="onorders0(3,1)">
<img src="../image/order_ico1.png" />
<span>待发货</span>
<div class="order_yuan" id="ztordercount0">0</div>
</div>
<div onclick="onorders0(3,2)">
<img src="../image/order_ico2.png" />
<span>待收货</span>
<div class="order_yuan" id="ztordercount1">0</div>
</div>
<div onclick="onorders0(3,3)">
<img src="../image/order_ico3.png" />
<span>已完成</span>
<div class="order_yuan" id="ztordercount2">0</div>
</div>
</div>
</div>
s
</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>
<div style="height:1px;width:1px; overflow:hidden;"><input id="copyinput" type="text" /><input type="button" id="copybtn" data-clipboard-action="copy" data-clipboard-target="#copyinput" value="copy" /></div>
</body>
</html>