1126 lines
43 KiB
HTML
1126 lines
43 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-3.4.1.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/area.js?t=0"></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;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.dbtnbox {
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
text-align: center;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.dbtnbox input[type='button'] {
|
|
float: left;
|
|
height: 3.5em;
|
|
line-height: 3.5em;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.dbtnbox input[type='button'].mybtn.hovered {
|
|
background: #eee;
|
|
color: #aaa;
|
|
}
|
|
|
|
.uploadpic_btn {
|
|
position: absolute;
|
|
width: 5em;
|
|
height: 5em;
|
|
right: 0;
|
|
top: 0;
|
|
opacity: 0;
|
|
filter: alpha(opacity=0);
|
|
}
|
|
|
|
.layer {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 100;
|
|
background: rgba(0, 0, 0, .5);
|
|
display: none;
|
|
}
|
|
|
|
.layer img {
|
|
width: auto;
|
|
max-width: 20em;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
.showthjto {
|
|
bottom: 3.2em;
|
|
}
|
|
|
|
.productlist ul li {
|
|
border-radius: 0;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var userId = null;
|
|
var LoginId = null;
|
|
var CartId = null;
|
|
var opentimes = null;
|
|
var id = 0, atype = 0, jbtype = 0, uploading = 0, uploadtype = 0;
|
|
var image0 = "", image1 = "", image2 = "", image3 = "";
|
|
var closeInterval = 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");
|
|
var dParam = $.getUrlParam("id");
|
|
if (dParam != null) {
|
|
id = dParam;
|
|
}
|
|
var clipboard = new Clipboard('#copybtn');
|
|
|
|
clipboard.on('success', function (e) {
|
|
tishi3("复制成功");
|
|
});
|
|
|
|
clipboard.on('error', function (e) {
|
|
tishi3("复制失败");
|
|
});
|
|
rdata();
|
|
});
|
|
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 rdata() {
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: "/apiajax.ashx?action=getyyddview&id=" + id + "&ifweb=1" + (userId != null ? "&userId=" + userId : "") + (LoginId != null ? "&LoginId=" + LoginId : ""),
|
|
dataType: "JSON",
|
|
error: function (xhr, type) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
|
|
if (data) {
|
|
if (data.status == 1) {
|
|
$('#JYID').html(data.JYID);
|
|
if (data.type == 1) {
|
|
$('#JYJG').html("¥" + data.JYJG);
|
|
|
|
$('#SKSJ').html(data.SKSJ);
|
|
|
|
} else {
|
|
$('#JYJG').html("¥" + data.JYJG);
|
|
var html = "<div class=\"ub ub-ac productlist\"><ul class=\"ub ub-ac ub-ver\">";
|
|
|
|
html += "<li id=\"cartbox0\">";
|
|
html += "<span class=\"limg\"><img src=\"" + data.pimage + "\" /></span>";
|
|
html += "<span class=\"rname\"><span class=\"prodName\">" + data.pname + "</span></span>";
|
|
html += "</li>";
|
|
|
|
html += "</ul></div>";
|
|
$(".floor-product").html(html);
|
|
}
|
|
$('#SKSJ_box').css("display", "none");
|
|
$('#JYSJ').html(data.JYSJ);
|
|
$('#DDZT').html(data.strseef);
|
|
if (data.type == 1) {
|
|
|
|
if (data.seef == 3) {
|
|
$('#SKSJ_box').css("display", "table-row");
|
|
} else {
|
|
$('#SKSJ_box').css("display", "none");
|
|
}
|
|
|
|
}
|
|
showbtn(data.seef, data.type, data.utype, data.b2, data.ifselect, data.yyqed);
|
|
$(".ajaxLoader").addClass("uhide");
|
|
} else {
|
|
|
|
tishi3(data.msg);
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.msg == "您未登录") {
|
|
clearlocalStorage("userId");
|
|
clearlocalStorage("LoginId");
|
|
onlink("/");
|
|
}
|
|
}
|
|
} else {
|
|
tishi3("网络错误!");
|
|
$(".ajaxLoader").addClass("uhide");
|
|
}
|
|
}
|
|
});
|
|
|
|
}
|
|
function setRemainTimeto() {
|
|
var SJC = $("#skdjs-time").attr("time");
|
|
if (SJC != "") {
|
|
var SysSecond = parseInt(SJC);
|
|
if (SysSecond > 0) {
|
|
SysSecond = SysSecond - 1;
|
|
var second = Math.floor(SysSecond % 60).toString();
|
|
var minite = Math.floor((SysSecond / 60) % 60).toString();
|
|
var hour = Math.floor((SysSecond / 3600) % 24).toString();
|
|
var day = Math.floor((SysSecond / (3600 * 24))).toString();
|
|
var timesto = "";
|
|
/*if(day>0){
|
|
timesto=day + "天 ";
|
|
}*/
|
|
if (hour > 0) {
|
|
timesto += hour + ":";
|
|
}
|
|
if (minite > 0) {
|
|
timesto += minite + ":";
|
|
}
|
|
if (second > 0) {
|
|
timesto += second;
|
|
}
|
|
$("#skdjs-time").html(timesto);
|
|
$("#skdjs-time").attr("time", SysSecond);
|
|
} else {
|
|
$("#skdjs-time").html("00:00:01");
|
|
}
|
|
|
|
} else {
|
|
$api.html($api.dom("#skdjs-time"), "00:00:00");
|
|
}
|
|
|
|
|
|
}
|
|
function showbtn(seef, type, type0, b2, ifselect, yyqed) {
|
|
vtype = type;
|
|
$("#zsddbtn").css("display", "none");
|
|
$("#thddbtn").css("display", "none");
|
|
$("#tuihuoddbtn").css("display", "none");
|
|
if (type == 0) {
|
|
if (b2 == 1) {
|
|
if (ifselect == 0) {
|
|
$("#zsddbtn").css({ "display": "block", "width": "33.3333333333333%" });
|
|
$("#thddbtn").css({ "display": "block", "width": "33.3333333333333%" });
|
|
$("#tuihuoddbtn").css({ "display": "block", "width": "33.3333333333332%" });
|
|
} else if (ifselect == 1) {
|
|
$("#thddbtn").css({ "display": "block", "width": "50%" });
|
|
$("#tuihuoddbtn").css({ "display": "block", "width": "50%" });
|
|
}
|
|
} else {
|
|
|
|
}
|
|
} else {
|
|
|
|
}
|
|
|
|
}
|
|
function stopPropagation(e) {
|
|
if (e.stopPropagation)
|
|
e.stopPropagation();
|
|
else
|
|
e.cancelBubble = true;
|
|
}
|
|
function showbox(type) {
|
|
atype = type;
|
|
$("#showthjto" + type).removeClass("uhide");
|
|
if (type == 2) {
|
|
jbtype = 0;
|
|
} else if (type == 3) {
|
|
jbtype = 1;
|
|
}
|
|
showthjto();
|
|
}
|
|
function showthjto() {
|
|
$("footer #dbtnbox").css("display", "none");
|
|
$("footer #dbtnbox0").css("display", "block");
|
|
}
|
|
function hideshowthjto(type) {
|
|
$("#showthjto" + type).addClass("uhide");
|
|
$("footer #dbtnbox").css("display", "block");
|
|
$("footer #dbtnbox0").css("display", "none");
|
|
}
|
|
function onqy() {
|
|
|
|
if (atype == 0) {
|
|
qyfk();
|
|
} else if (atype == 1) {
|
|
qysk();
|
|
} else if (atype == 2) {
|
|
jubao();
|
|
} else if (atype == 3) {
|
|
jubao();
|
|
} else if (atype == 4) {
|
|
reuploadpic();
|
|
} else if (atype == 5) {
|
|
cxdd();
|
|
} else if (atype == 6) {
|
|
zhuanshou_tihou(0);
|
|
} else if (atype == 7) {
|
|
zhuanshou_tihou(1);
|
|
} else if (atype == 8) {
|
|
qytuihuo();
|
|
}
|
|
}
|
|
function onqx() {
|
|
hideshowthjto(atype);
|
|
}
|
|
function qyfk() {
|
|
var b = true;
|
|
if (uploading == 1) {
|
|
b = false;
|
|
tishi3('正在上传图片...');
|
|
}
|
|
if (b) {
|
|
if (image0 == "") {
|
|
b = false;
|
|
tishi3('请先上传图片');
|
|
}
|
|
}
|
|
if (b) {
|
|
if ($(".ajaxLoader.uhide").length > 0) {
|
|
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
uploadpic: image0,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=qydk&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3(data.msg);
|
|
hideshowthjto(atype);
|
|
rdata();
|
|
setlocalStorage("yydd_refresh", 1);
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
function qylcfk() {
|
|
var b = true;
|
|
|
|
if (b) {
|
|
if ($(".ajaxLoader.uhide").length > 0) {
|
|
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=qylcdk&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3(data.msg);
|
|
hideshowthjto(atype);
|
|
rdata();
|
|
setlocalStorage("yydd_refresh", 1);
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
function qysk() {
|
|
var b = true;
|
|
if (b) {
|
|
if ($(".ajaxLoader.uhide").length > 0) {
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=qysk&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3(data.msg);
|
|
hideshowthjto(atype);
|
|
rdata();
|
|
setlocalStorage("yydd_refresh", 1);
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
function jubao() {
|
|
var b = true;
|
|
if (uploading == 1) {
|
|
b = false;
|
|
tishi3('正在上传图片...');
|
|
}
|
|
var JuBaoType = fTrim($("#JuBaoType").val());
|
|
var JuBaoBody = fTrim($("#JuBaoBody").val());
|
|
if (b) {
|
|
if (JuBaoType == "") {
|
|
b = false;
|
|
tishi3('举报类型不能为空');
|
|
}
|
|
}
|
|
if (b) {
|
|
if (JuBaoBody == "") {
|
|
b = false;
|
|
tishi3('举报内容不能为空');
|
|
}
|
|
}
|
|
var uploadpic = "";
|
|
if (b) {
|
|
if (uploadtype == 1) {
|
|
uploadpic = image1;
|
|
} else if (uploadtype == 2) {
|
|
uploadpic = image2;
|
|
}
|
|
}
|
|
if (b) {
|
|
if ($(".ajaxLoader.uhide").length > 0) {
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
JuBaoType: JuBaoType,
|
|
JuBaoBody: JuBaoBody,
|
|
uploadpic: uploadpic,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=jubao&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3(data.msg);
|
|
hideshowthjto(atype);
|
|
rdata();
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
function reuploadpic() {
|
|
var b = true;
|
|
if (uploading == 1) {
|
|
b = false;
|
|
tishi3('正在上传图片...');
|
|
}
|
|
if (b) {
|
|
if (image3 == "") {
|
|
b = false;
|
|
tishi3('请先上传图片');
|
|
}
|
|
}
|
|
if (b) {
|
|
if ($(".ajaxLoader.uhide").length > 0) {
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
uploadpic: image3,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=reuploadpic&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3(data.msg);
|
|
hideshowthjto(atype);
|
|
rdata();
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
function cxdd() {
|
|
|
|
if ($(".ajaxLoader.uhide").length > 0) {
|
|
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=qxjy&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3(data.msg);
|
|
hideshowthjto(atype);
|
|
setlocalStorage("yydd_refresh", 1);
|
|
var closeInterval0 = setInterval(function () {
|
|
clearInterval(closeInterval0);
|
|
closeWin();
|
|
}, 500);
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
function qytuihuo() {
|
|
|
|
if ($(".ajaxLoader.uhide").length > 0) {
|
|
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=qytuihuo&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3(data.msg);
|
|
hideshowthjto(atype);
|
|
setlocalStorage("yydd_refresh", 1);
|
|
var closeInterval0 = setInterval(function () {
|
|
clearInterval(closeInterval0);
|
|
closeWin();
|
|
}, 500);
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
function zhuanshou_tihou(t) {
|
|
var b = true;
|
|
|
|
|
|
if (b && $(".ajaxLoader.uhide").length > 0) {
|
|
$(".ajaxLoader").removeClass("uhide");
|
|
userId = getlocalStorage("userId");
|
|
LoginId = getlocalStorage("LoginId");
|
|
var datas = {
|
|
userId: userId,
|
|
LoginId: LoginId,
|
|
t: t,
|
|
id: id
|
|
};
|
|
$.ajax({
|
|
type: 'POST',
|
|
url: "/apiajax.ashx?action=zhuanshou_tihou&ifweb=1",
|
|
data: datas,
|
|
dataType: "json",
|
|
error: function (xhr) {
|
|
tishi3("发生错误:" + JSON.stringify(xhr));
|
|
},
|
|
success: function (data) {
|
|
|
|
$(".ajaxLoader").addClass("uhide");
|
|
if (data.status == 1) {
|
|
tishi3("操作成功");
|
|
hideshowthjto(atype);
|
|
setlocalStorage("yydd_refresh", 1);
|
|
if (t == 1) {
|
|
var closeInterval0 = setInterval(function () {
|
|
clearInterval(closeInterval0);
|
|
closeWin();
|
|
}, 500);
|
|
} else {
|
|
var closeInterval0 = setInterval(function () {
|
|
clearInterval(closeInterval0);
|
|
closeWin();
|
|
}, 500);
|
|
}
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
function choose(t) {
|
|
var ifb = true;
|
|
if (t == 0) {
|
|
if (image0 != "") {
|
|
var aimage = image0.split("|");
|
|
if (aimage.length > 2) {
|
|
ifb = false;
|
|
tishi3('最多只能上传3张图片');
|
|
}
|
|
}
|
|
}
|
|
if (t == 3) {
|
|
if (image3 != "") {
|
|
var aimage = image3.split("|");
|
|
if (aimage.length > 2) {
|
|
ifb = false;
|
|
tishi3('最多只能上传3张图片');
|
|
}
|
|
}
|
|
}
|
|
if (ifb) {
|
|
uploadtype = t;
|
|
uploadimg();
|
|
}
|
|
}
|
|
function uploadimg() {
|
|
var myForm = document.getElementById("myForm");
|
|
/*if (uploadtype == 1) {
|
|
myForm = document.getElementById("myForm0");
|
|
} else {
|
|
myForm = document.getElementById("myForm");
|
|
}*/
|
|
var formdata0 = new FormData(myForm);
|
|
formdata0.append("action", "uploadImage");
|
|
formdata0.append("userId", userId);
|
|
formdata0.append("LoginId", LoginId);
|
|
formdata0.append("uploadpic", document.getElementById("uploadpic" + uploadtype).files[0]);
|
|
|
|
uploading = 1;
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/apiajax.ashx?ifweb=1",
|
|
data: formdata0,
|
|
dataType: 'JSON',
|
|
cache: false, // 不缓存
|
|
processData: false, // jQuery不要去处理发送的数据
|
|
contentType: false, // jQuery不要去设置Content-Type请求头
|
|
success: function (data) {
|
|
tishi2close();
|
|
uploading = 0;
|
|
if (data.status == 1) {
|
|
tishi3('上传成功');
|
|
var thumb = data.url[0];
|
|
var image = data.url[1];
|
|
$("#image" + uploadtype).attr("src", apiurl + thumb);
|
|
if (uploadtype == 3) {
|
|
if (image3 == "") {
|
|
image3 = image;
|
|
} else {
|
|
image3 += "|" + image;
|
|
}
|
|
var yhtml = $("#image" + uploadtype).html();
|
|
var html = '<div class="ub ub-ac ub-pc upload_image" >'
|
|
+ '<img src="' + apiurl + thumb + '" />'
|
|
+ '</div>';
|
|
$("#image" + uploadtype).html(html + yhtml);
|
|
} else if (uploadtype == 2) {
|
|
image2 = image;
|
|
$("#image" + uploadtype).attr("src", apiurl + thumb);
|
|
} else if (uploadtype == 1) {
|
|
image1 = image;
|
|
$("#image" + uploadtype).attr("src", apiurl + thumb);
|
|
} else if (uploadtype == 0) {
|
|
if (image0 == "") {
|
|
image0 = image;
|
|
} else {
|
|
image0 += "|" + image;
|
|
}
|
|
var yhtml = $("#image" + uploadtype).html();
|
|
var html = '<div class="ub ub-ac ub-pc upload_image" >'
|
|
+ '<img src="' + apiurl + thumb + '" />'
|
|
+ '</div>';
|
|
$("#image" + uploadtype).html(html + yhtml);
|
|
}
|
|
} else {
|
|
tishi3(data.msg);
|
|
}
|
|
},
|
|
error: function (jqXHR) {
|
|
tishi3("发生错误:" + JSON.stringify(jqXHR));
|
|
},
|
|
});
|
|
|
|
}
|
|
function oncopy0(font) {
|
|
$("#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" style=" margin:0; padding:0; min-width:3em; ">
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<section class="ub-f1" id="wrapper">
|
|
|
|
<div id="wrapper_content">
|
|
|
|
<p class="pullDown">下拉刷新...</p>
|
|
<div class="clear"></div>
|
|
<div style="padding:0.8em;">
|
|
<div style=" margin-top:0.8em; background-color:#31343D; width:100%; box-sizing: border-box; border-radius:0.5em; overflow:hidden;">
|
|
<table class="data_table" style="margin:0;">
|
|
<tr><th>订单ID</th><td id="JYID"></td></tr>
|
|
<tr><th>订单金额</th><td id="JYJG"></td></tr>
|
|
|
|
<tr><th>发布时间</th><td id="JYSJ"></td></tr>
|
|
|
|
<tr id="SKSJ_box" style="display:none;"><th>完成时间</th><td id="SKSJ"></td></tr>
|
|
<tr><th>订单状态</th><td id="DDZT"></td></tr>
|
|
</table>
|
|
<div class="ub ub-ver floor-product">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
<div id="skfk_box" style="display:none;">
|
|
|
|
<div class="clear"></div>
|
|
<div style="background-color:#fff; width:100%; box-sizing: border-box; border-radius:0.5em; overflow:hidden;">
|
|
<div class="ub ub-ver yydd-view-box">
|
|
|
|
<div class="kfserver" onclick="onlink('mykf.html');"><img src="../image/kfserver.png" />联系客服</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
<div class="skdjs-box"><span id="skdjs-title"></span><span id="skdjs-time"></span></div>
|
|
<div class="clear"></div>
|
|
<div class="more_box"></div>
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
<p class="pullUp">上拉加载...</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
<footer>
|
|
<div class="dbtnbox" id="dbtnbox">
|
|
|
|
<input id="zsddbtn" type="button" style="display:none;" class="mybtn" onclick="showbox(6)"
|
|
value="转售" />
|
|
|
|
<input id="thddbtn" type="button" style="display:none;" class="mybtn" onclick="showbox(7)"
|
|
value="提货" />
|
|
<input id="tuihuoddbtn" type="button" style="display:none;" class="mybtn" onclick="showbox(8)"
|
|
value="退货" />
|
|
|
|
</div>
|
|
<div class="dbtnbox" id="dbtnbox0" style="display:none;">
|
|
<input id="qybtn" type="button" style="width:50%;" class="mybtn" onclick="onqy()" value="确认" />
|
|
<input id="qxbtn" type="button" style="width:50%;" class="mybtn hovered" onclick="onqx()" value="取消" />
|
|
</div>
|
|
</footer>
|
|
|
|
<div class="showthjto uhide" id="showthjto0" onclick='hideshowthjto(0);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>确认支付</span><span class="close" onclick='hideshowthjto(0);'><img src="../image/close.png" /></span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-top: .8em;margin-bottom: .8em;">
|
|
您确认已经付款了吗?已付款请在下面上传付款截图,并点击“确认”上传图片。
|
|
|
|
</div>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .8em;">
|
|
|
|
<div class="ub ub-ac ub-pc" id="image0">
|
|
<form id="myForm">
|
|
<div class="ub ub-ac ub-pc upload_image">
|
|
<img src="../image/add1.png" />
|
|
<input type="file" id="uploadpic0" class="uploadpic_btn" onchange="choose(0)" accept="image/*" />
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto1" onclick='hideshowthjto(1);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>确认收款</span><span class="close" onclick='hideshowthjto(1);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-top: 1.8em;margin-bottom: 1.8em;">
|
|
此操作不可恢复,您确认已经收到款了吗?
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto2" onclick='hideshowthjto(2);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>举报收款人</span><span class="close" onclick='hideshowthjto(2);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-top: .8em;">
|
|
<div class="ub" style="padding:1em;">
|
|
举报类型
|
|
</div>
|
|
<div class="ub ub-ac ub-pc">
|
|
<div class="ub ub-ac ub-pc uinput11">
|
|
<select id="JuBaoType">
|
|
<option value="对方不收款">对方不收款</option>
|
|
<option value="其它原因">其它原因</option>
|
|
</select>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .08em;">
|
|
<div class="ub" style="padding:1em;">
|
|
举报内容
|
|
</div>
|
|
<div class="ub ub-ac ub-pc">
|
|
<div class="ub ub-ac ub-pc uinput11" style="padding-right: 1.6em">
|
|
<textarea id="JuBaoBody" style=" width:15em; height:5em;"></textarea>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .8em;">
|
|
<div class="ub" style="padding:1em;">
|
|
上传其它证据
|
|
</div>
|
|
<div class="ub ub-ac ub-pc">
|
|
<div class="ub ub-ac ub-pc upload_image">
|
|
<img src="../image/add1.png" id="image1" />
|
|
<input type="file" id="uploadpic1" class="uploadpic_btn" onchange="choose(1)" accept="image/*" />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto3" onclick='hideshowthjto(3);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>举报付款人</span><span class="close" onclick='hideshowthjto(3);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .08em;">
|
|
<div class="ub" style="padding:1em;">
|
|
举报类型
|
|
</div>
|
|
<div class="ub ub-ac ub-pc">
|
|
<div class="ub ub-ac ub-pc uinput11" style="width:10em;padding-right: 1.6em">
|
|
<select id="JuBaoType">
|
|
<option value="假冒欺骗">假冒欺骗</option>
|
|
<option value="对方不付款">对方不付款</option>
|
|
<option value="付款凭证是假的">付款凭证是假的</option>
|
|
<option value="其它原因">其它原因</option>
|
|
</select>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .08em;">
|
|
<div class="ub" style="padding:1em;">
|
|
举报内容
|
|
</div>
|
|
<div class="ub ub-ac ub-pc">
|
|
<div class="ub ub-ac ub-pc uinput11" style="padding-right: 1.6em">
|
|
<textarea id="JuBaoBody" style=" width:15em; height:5em;"></textarea>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .8em;">
|
|
<div class="ub" style="padding:1em">
|
|
上传其它证据
|
|
</div>
|
|
<div class="ub ub-ac ub-pc">
|
|
<div class="ub ub-ac ub-pc upload_image">
|
|
<img src="../image/add1.png" id="image2" />
|
|
<input type="file" id="uploadpic2" class="uploadpic_btn" onchange="choose(2)" accept="image/*" />
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto4" onclick='hideshowthjto(4);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>重新上传付款截图</span><span class="close" onclick='hideshowthjto(4);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .8em;">
|
|
您的图片上传错了吗?错了请重新上传付款截图,并点击“确认”上传图片。
|
|
|
|
</div>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-bottom: .8em;">
|
|
|
|
<div class="ub ub-ac ub-pc" id="image3">
|
|
<div class="ub ub-ac ub-pc upload_image">
|
|
<img src="../image/add1.png" />
|
|
<input type="file" id="uploadpic3" class="uploadpic_btn" onchange="choose(3)" accept="image/*" />
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto5" onclick='hideshowthjto(5);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>撤消</span><span class="close" onclick='hideshowthjto(5);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-top: 1.8em;margin-bottom: 1.8em;">
|
|
此操作不可恢复,您确认要撤消订单吗?
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto6" onclick='hideshowthjto(6);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>转售</span><span class="close" onclick='hideshowthjto(6);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-top: 1.8em;margin-bottom: 1.8em;">
|
|
此操作不可恢复,您确认要转售订单吗?
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto7" onclick='hideshowthjto(7);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>提货</span><span class="close" onclick='hideshowthjto(7);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-top: 1.8em;margin-bottom: 1.8em;">
|
|
此操作不可恢复,您确认要提货吗?
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="showthjto uhide" id="showthjto8" onclick='hideshowthjto(8);'>
|
|
<div class="showthjto_box" onclick="stopPropagation(event)">
|
|
<h3><span>确认退货</span><span class="close" onclick='hideshowthjto(8);'>X</span></h3>
|
|
<div class="ub ub-ac" style="background-color: #FFFFFF;margin-top: .8em;margin-bottom: .8em;">
|
|
此操作不可恢复,您确认要退货吗?
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<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:0px;width:0px; 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>
|