提交订单
作者:互联网
<%@ Page Title="" Language="C#" MasterPageFile="~/CheckOut.master" AutoEventWireup="true"
CodeFile="CheckOut.aspx.cs" Inherits="CheckOut" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<link href="Styles/CheckOut.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/JScriptProvince.js" type="text/javascript"></script>
<script src="Scripts/jquery.json-2.4.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#dtCoupon').toggle(
function () {
$(this).children('.icon').addClass('now');
$('#dtCouponshow').show('slow');
},
function () {
$(this).children('.icon').removeClass('now');
$('#dtCouponshow').hide('slow');
}
);
$('#dtPoint').toggle(
function () {
$(this).children('.icon').addClass('now');
$(this).next().show('slow');
},
function () {
$(this).children('.icon').removeClass('now');
$(this).next().hide('slow');
}
);
$('#dtGiftCard').toggle(
function () {
$(this).children('.icon').addClass('now');
$(this).next().show('slow');
},
function () {
$(this).children('.icon').removeClass('now');
$(this).next().hide('slow');
}
);
});
//<!--选择收货地址-->
$(document).ready(function () {
var consigneelength = $('.myaddrlist li');
for (var j = 0; j < consigneelength.length; j++) {
var cfValue = $(consigneelength[j]).children('#addSel');
if ($(consigneelength[j]).children('#addSel').val() == "True") {
$(consigneelength[j]).addClass("curr");
}
}
GetSendWayMoney();
// $('.myaddrlist li').click(function () {
// $(this).removeClass('hover');
// $(this).parent().children('li').removeClass('curr');
// $(this).addClass('curr');
// });
// $('.myaddrlist li').hover(
// function () {
// var currName = $(this).attr('class').toString();
// if ($.trim(currName) != "curr") {
// $(this).addClass('hover');
// }
// },
// function () {
// $(this).removeClass('hover');
// }
// );
});
function selectedLi(thisObj) {
$(thisObj).removeClass('hover');
$(thisObj).parent().children('li').removeClass('curr');
$(thisObj).addClass('curr');
GetSendWayMoney();
}
function selectedLiHover(thisObj) {
var currName = $(thisObj).attr('class').toString();
if ($.trim(currName) != "curr") {
$(thisObj).addClass('hover');
}
}
function selectedLiout(thisObj) {
$(thisObj).removeClass('hover');
}
// <!--使用新地址-->
$(document).ready(function () {
$('.addShipAddrBtn').click(function () {
$('#shippingAddressContentInfo').show('fast');
$('#contentInfoIdStatus').val("");
});
$('#cancelSaveAdd').click(function () {
$('#shippingAddressContentInfo').hide('slow');
})
});
//<!--选择支付方式-->
$(document).ready(function () {
$('#editPayType').click(function () {
if ($('.hiddenPayWay').val() == "在线支付") {
$('#payonline').attr("checked", true);
$('.tabcBox').parent().show();
$('.netPayBox').show();
}
$('#paymentContentPanel').children().show();
$('#paymentContentPanel').children('.info').hide();
});
$("input[name='paytypeitem2']").click(function () {
$("input[name='paytypeitem']").removeAttr("checked");
$('.banklistalter li').removeClass("current");
$("#radio1-1").attr("checked", true);
$("#radio1-1").parent().parent().addClass("current");
$('.hiddenPayWay').val($("#radio1-1").parent().next().children().attr("src")); //支付宝
$('.hiddenPayType').val($('.tabcBox').find("#payonline").next().text()); //在线支付
$('.hiddenPayContent').val($('.tabcBox').find(".tip-msg").text());
$('#transfer-7').hide();
$('.netPayBox').show();
});
$('.banklistalter li a').click(function () {
$('.banklistalter li').removeClass("current");
$("input[name='paytypeitem']").removeAttr("checked");
$(this).parent().addClass("current");
$(this).parent().children().find("input[name='paytypeitem']").attr("checked", true);
$('.hiddenPayWay').val($(this).children().attr("src")); //获取img的相对路径Imge/brand_127X40_205.gif
$('.hiddenPayType').val($('.tabcBox').find("#payonline").next().text()); //在线支付
$('.hiddenPayContent').val($('.tabcBox').find(".tip-msg").text()); //通过徐家汇e卡通
});
$("input[name='paytypeitem']").click(function () {
$("input[name='paytypeitem2']").removeAttr("checked");
$(this).attr("checked", true);
$('.netPayBox').hide();
if ($(this).attr('id') == "radio6-1") {
$('.hiddenPayWay').val("");
$('.hiddenPayType').val($.trim($(this).parent().text())); //银行电汇
$('.hiddenPayContent').val($(this).parent().parent().next('.tip-msg').text()); //通过银行转账支付订单
$('#transfer-7').show();
}
else if ($(this).attr('id') == 'radio1-7') {
$('.hiddenPayWay').val("");
$('.hiddenPayType').val($.trim($(this).parent().text())); //货到付款
$('.hiddenPayContent').val($(this).parent().parent().next('.tip-msg').text()); //快递送货上门后再付款
$('#transfer-7').hide();
}
});
$(".savePayBtn").click(function () {
$('#paymentContentPanel').children().hide();
var checkedRadio = $('input:radio[name="paytypeitem"]:checked');
if (checkedRadio.attr("checked")) {
if ($('.hiddenPayWay').val() == "") {
$('.onlineTips').html($('.hiddenPayType').val() + "<span></span>");
$('.onlineTips').find("span").text("[" + $('.hiddenPayContent').val() + "]");
$('.ck-brand').hide();
}
else {
var srcImg = $('.hiddenPayWay').val();
$('.ck-brand').children().removeAttr("src").attr("src", srcImg);
$('.ck-brand').show();
$('.onlineTips').html($('.hiddenPayType').val() + "<span></span>");
$('.onlineTips').find("span").text("[" + $('.hiddenPayContent').val() + "]");
}
}
GetSendWayMoney();
$('#paymentContentPanel').children('.info').show();
})
//<!--发票信息-->
$("#invest").click(function () {
if ($(this).attr("checked")) {
$(this).attr("checked", true);
$('.investc').show();
}
else {
$(this).attr("checked", false);
$('.investc').hide();
}
});
$("input[name='invest']").click(function () {
$('div .tab').children().removeClass("now");
$(this).parent().addClass("now");
if ($(this).val() == 0) {
$('#tabcNormal').show();
$('#tbc_investAdded').hide();
}
else {
$('#tabcNormal').hide();
$('#tbc_investAdded').show();
}
});
});
$(document).ready(function () {
$("#contactMan2").focus(function () {
$(this).val("");
});
$("#contactMan2").blur(function () {
if ($(this).val() == "") {
$(this).val("默认显示为家(点击这里修改地址别名)");
}
})
$('#contactMan').blur(function () {
if ($(this).val() == "") {
$(this).next().next().addClass("Validform_wrong");
$(this).next().next().text("请填写收货人姓名!");
}
else {
$(this).next().next().text("");
}
});
//dropdownlist 获取select 选择的Value
$('#ContentPlaceHolder1_drpCounty').change(function () {
var checkValue = $(this).find("option:selected").val();
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong");
if (checkValue == -1) {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请选择所在地区!");
}
else {
$(this).parent().children(".Validform_checktip").text("");
}
});
//联系地址
$("#address").blur(function () {
if ($(this).val() == "") {
$(this).next().next().addClass("Validform_wrong");
$(this).next().next().text("请填写收货地址!");
}
else {
$(this).next().next().text("");
}
});
$("#mobile").blur(function () {
//手机验证
var reg = reg = /^1[3458]\d{9}$/;
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong");
if ($(this).val() == "") {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("联系方式必须填一个!");
}
else if (!reg.test($(this).val())) {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入正确的手机号码!");
}
else {
$(this).parent().children(".Validform_checktip").text("");
}
});
$("#area").focus(function () {
$(this).val("");
});
$("#area").blur(function () {
if ($(this).val() == "") {
$(this).val("区号");
}
});
$("#tel").focus(function () {
$(this).val("");
});
$("#tel").blur(function () {
//匹配国内电话号码:d{3}-d{8}|d{4}-d{7} 匹配形式如 0511-4405222 或 021-87888822
var regTel = /^\d{3}-\d{8}|\d{4}-\d{7}$/;
var telValue = $("#area").val() + "-" + $(this).val();
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong");
if ($(this).val() == "") {
if (telValue.trim() == "区号-") {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("联系方式必须填一个!");
}
else {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入正确的电话号码!");
}
$(this).val("号码");
}
else if (!regTel.test(telValue)) {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入正确的电话号码!");
}
else {
$(this).parent().children(".Validform_checktip").text("");
}
});
// 邮政编码验证
$("#zip").blur(function () {
var regCode = /^[0-9]{6}$/;
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong");
if ($(this).val() == "") {
$(this).next().next().addClass("Validform_wrong");
$(this).next().next().text("请填写邮政编码!");
}
else if (!regCode.test($(this).val())) {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入正确的邮政编码!");
}
else {
$(this).parent().children(".Validform_checktip").text("");
}
});
//保存地址#ContentPlaceHolder1_drpCounty
$('#saveAdd').click(function () {
// alert(parseInt($('#ContentPlaceHolder1_drpCity option:selected').val()) == -1);
var reg = /^1[3458]\d{9}$/;
var regCode = /^[0-9]{6}$/;
if ($('#contactMan').val() == "") {
$('#contactMan').next().next().addClass("Validform_wrong");
$('#contactMan').next().next().text("请填写收货地址!");
}
else if (parseInt($('#ContentPlaceHolder1_drpCounty option:selected').val()) == -1) {
$('#ContentPlaceHolder1_drpCounty').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请选择所在地区!");
}
else if ($('#address').val() == "") {
$('#address').next().next().addClass("Validform_wrong");
$('#address').next().next().text("请填写收货地址!");
}
else if ($('#mobile').val() == "" || !reg.test($('#mobile').val())) {
$('#mobile').parent().children(".Validform_checktip").removeClass("Validform_wrong");
if ($('#mobile').val() == "") {
$('#mobile').parent().children(".Validform_checktip").addClass("Validform_wrong").text("联系方式必须填一个!");
}
else if (!reg.test($('#mobile').val())) {
$('#mobile').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入正确的手机号码!");
}
}
else if ($('#zip').val() == "" || !regCode.test($('#zip').val())) {
$('#zip').parent().children(".Validform_checktip").removeClass("Validform_wrong");
if ($('#zip').val() == "") {
$('#zip').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请填写邮政编码!");
}
else {
$('#zip').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入正确的邮政编码!");
}
}
else {
var consigneeAddressName = ""; //收货地址名称
if ($('#contactMan2').val().trim() != "默认显示为家(点击这里修改地址别名)") {
consigneeAddressName = $('#contactMan2').val().trim();
}
else {
consigneeAddressName = "家";
}
var consigneeName = $('#contactMan').val(); //收货人姓名
//#ContentPlaceHolder1_drpCity
//#ContentPlaceHolder1_drpCounty
//地区
var consigneeProvinceAddress = $('#ContentPlaceHolder1_drpProvince option:selected').text() + " " + $('#ContentPlaceHolder1_drpCity option:selected').text() + " " + $('#ContentPlaceHolder1_drpCounty option:selected').text();
var consigneeAddress = $('#address').val(); //联系地址
var moboPhone = $('#mobile').val(); //手机号码
var telePhone = $('#area').val() + "-" + $('#tel').val(); //电话
if (telePhone.toString().trim() == "区号-号码") {
telePhone = "";
}
var consigneePostcode = $('#zip').val(); //邮政编码
var isdefault = 1;
// window.location.href = encodeURI("CheckOut.aspx?&consigneeAddressName=" + consigneeAddressName + "&consigneeName=" + consigneeName + "&consigneeProvinceAddress=" + consigneeProvinceAddress + "&consigneeAddress=" + consigneeAddress + "&moboPhone=" + moboPhone + "&telePhone=" + telePhone + "&consigneePostcode=" + consigneePostcode + "&isdefault=" + isdefault);
var consigneeId = $('#contentInfoIdStatus').val();
var oData = {
oconsigneeAddressName: consigneeAddressName,
oconsigneeName: consigneeName,
oconsigneeProvinceAddress: consigneeProvinceAddress,
oconsigneeAddress: consigneeAddress,
omoboPhone: moboPhone,
otelePhone: telePhone,
oconsigneePostcode: consigneePostcode,
oisdefault: isdefault
};
var jsonData = $.toJSON(oData);
if (consigneeId == "") {
$.ajax({
url: "ConsigneeInfomation.aspx",
type: 'post',
data: jsonData,
dataType: 'json',
success: function (data) {
if (data == "1") {
GetconsigneeInfo();
$('#contactMan2').val("默认显示为家(点击这里修改地址别名)");
$('#contactMan').val("");
$('#address').val("");
$('#mobile').val("");
$('#area').val("区号");
$('#tel').val("号码");
$('#zip').val("");
}
GetSendWayMoney();
$('#shippingAddressContentInfo').hide('slow');
},
Error: function (error) {
alert("失败!");
}
});
}
else {
var status = "1";
$.ajax({
url: "ConsigneeInfomation.aspx?&consigneeId=" + consigneeId + "&status=" + status + "&cj=" + Math.random(),
type: 'post',
data: jsonData,
dataType: 'json',
success: function (data) {
if (data == "1") {
GetconsigneeInfo();
$('#contactMan2').val("默认显示为家(点击这里修改地址别名)");
$('#contactMan').val("");
$('#address').val("");
$('#mobile').val("");
$('#area').val("区号");
$('#tel').val("号码");
$('#zip').val("");
// $('#ContentPlaceHolder1_drpProvince option:selected').text("请选择省份");
// $('#ContentPlaceHolder1_drpCity option:selected').text("请选择城市");
// $('#ContentPlaceHolder1_drpCounty option:selected').text("请选择区县");
}
GetSendWayMoney();
$('#shippingAddressContentInfo').hide('slow');
},
Error: function (error) {
alert("失败!");
}
});
}
}
});
});
//删除收货人信息
function deleteConsignee(thisObj) {
var consigneeId = $(thisObj).next().next().val();
$.ajax({
url: "ConsigneeInfomation.aspx?consigneeId=" + consigneeId + "&cj=" + Math.random(),
type: 'get',
success: function (od) {
if (od == "1") {
GetconsigneeInfo();
alert("删除成功!");
}
},
Error: function (error) {
alert("删除失败了");
}
});
}
//修改收货信息
function editConsignee(thisObj) {
$('#shippingAddressContentInfo').show('fast');
var consigneeId = $(thisObj).next().val();
var consigneeAddressName = $(thisObj).parent().find("strong").text();
var consigneeName = $(thisObj).parent().next().children(".user-name").text();
var consigneeProvinceAddress = $(thisObj).parent().parent().children("#listpConsigneeProvinceAddress").text();
var consigneeAddress = $(thisObj).parent().parent().children("#listpConsigneeAddress").text();
var moboPhone = $(thisObj).parent().parent().find("#listpMoboPhone span").text();
var consigneePostcode = $(thisObj).parent().parent().find("#listpConsigneePostcode span").text();
$("#contactMan2").val($.trim(consigneeAddressName));
$("#contactMan").val($.trim(consigneeName));
$("#address").val($.trim(consigneeAddress));
$("#mobile").val(moboPhone);
$("#zip").val(consigneePostcode);
var strArray = $.trim(consigneeProvinceAddress).split(" ");
$('#ContentPlaceHolder1_drpProvince option:selected').text(strArray[0]);
$('#ContentPlaceHolder1_drpCity option:selected').text(strArray[1]);
$('#ContentPlaceHolder1_drpCounty option:selected').text(strArray[2]);
$('#contentInfoIdStatus').val(consigneeId);
}
//增值税发票
$(document).ready(function () {
//公司名称
$('#companyName').blur(function () {
if ($(this).val() == "") {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入公司名称");
}
else {
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong").text("");
}
});
//纳税人识别号
$('#levelNum').blur(function () {
var reg = /^\w{15,20}$/;
if ($(this).val() == "" || !reg.test($('#levelNum').val())) {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("纳税人识别号为15或20位");
}
else {
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong").text("");
}
});
//注册地址
$('#companyAdd').blur(function () {
if ($(this).val() == "") {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入公司注册地址");
}
else {
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong").text("");
}
});
//注册电话
$('#companyTel').blur(function () {
//匹配国内电话号码:d{3}-d{8}|d{4}-d{7} 匹配形式如 0511-4405222 或 021-87888822
var regTel = /^\d{3}-\d{8}|\d{4}-\d{7}$/;
if ($(this).val() == "" || !regTel.test($(this).val())) {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入公司注册电话");
}
else {
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong").text("");
}
});
//开户银行及账号
$('#bankNum').blur(function () {
var regCount = /^\d{19}$/;
if ($(this).val() == "" || !regCount.test($(this).val())) {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入开户银行及账号");
}
else {
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong").text("");
}
});
//发票寄送地址
$('#other').blur(function () {
if ($(this).val() == "") {
$(this).parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入发票寄送地址");
}
else {
$(this).parent().children(".Validform_checktip").removeClass("Validform_wrong").text("");
}
});
$('#alertbox1404693952711').children().find("a").click(function () {
$('#alertbox1404693952711').hide();
$('#overlay').hide();
});
//提交订单
$('.btn_booklist_sub').click(function () {
if ($('#shippingAddressContentInfo').css("display") != "none") {
$('#alertbox1404693952711').show();
$('.centerPopBody').children().text("请先保存收货人信息。");
$('#overlay').show();
}
else if ($('.savePayBtn').parent().css("display") != "none") {
$('#alertbox1404693952711').show();
$('.centerPopBody').children().text("请保存支付方式!");
$('#overlay').show();
}
else if ($("#invest").attr("checked")) {
//判断checkedbox开具发票是否选中
if (!$('#check1-1').attr("checked")) {
$('#alertbox1404693952711').show();
$('.centerPopBody').children().text("提交订单前,您需要阅读并接受《发票须知》!");
$('#overlay').show();
}
if (!$('#check1-2').attr("checked")) {
$('#alertbox1404693952711').show();
$('.centerPopBody').children().text("提交订单前,您需要阅读并接受《发票须知》!");
$('#overlay').show();
}
else {
var reg = /^\w{15,20}$/;
//匹配国内电话号码:d{3}-d{8}|d{4}-d{7} 匹配形式如 0511-4405222 或 021-87888822
var regTel = /^\d{3}-\d{8}|\d{4}-\d{7}$/;
var regCount = /^\d{19}$/; //银行账号
if ($('#companyName').val() == "") {
$('#companyName').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入公司名称");
$('#companyName').focus();
}
if ($('#levelNum').val() == "" || !reg.test($('#levelNum').val())) {
$('#levelNum').parent().children(".Validform_checktip").addClass("Validform_wrong").text("纳税人识别号为15或20位");
}
if ($('#companyAdd').val() == "") {
$('#companyAdd').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入公司注册地址");
}
if ($('#companyTel').val() == "" || !regTel.test($('#companyTel').val())) {
$('#companyTel').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入公司注册电话");
}
if ($('#bankNum').val() == "" || !regCount.test($('#bankNum').val())) {
$('#bankNum').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入开户银行及账号");
}
if ($('#other').val() == "") {
$('#other').parent().children(".Validform_checktip").addClass("Validform_wrong").text("请输入发票寄送地址");
}
}
}
else {
//收货地址Id
var consigneeId = $('.myaddrlist .curr').find('.address-name').children("input:hidden").val();
//支付方式Id
var payWayId = $('input:radio[name="paytypeitem"]:checked').val();
//配送方式Id
var sendWayId = $('#ContentPlaceHolder1_drpSendWay').find("option:selected").val()
//未勾选发票
var invoiceId = 0;
//未勾选优惠券时优惠券ID为零
var couponId = 0;
//运费
var sendWayMoney = $('#sendWayMoney').text();
//应付总金额
var ordersMoney = $('.priceC_red').text();
alert(consigneeId);
$.ajax({
url: "ProductionOrder.aspx?consigneeId=" + consigneeId + "&payWayId=" + payWayId + "&sendWayId=" + sendWayId + "&invoiceId=" + invoiceId + "&couponId=" + couponId + "&sendWayMoney=" + sendWayMoney + "&ordersMoney=" + ordersMoney + "&cj=" + Math.random(),
type: 'get',
success: function (ordersNumber) {
if (ordersNumber != "") {
window.location.href = "Thankyou.aspx?ordersNumber=" + ordersNumber + "&cj=" + Math.random();
}
},
Error: function (error) {
alert("删除失败了");
}
});
}
var hightScroll = ($(document).scrollTop() + 200) + "px";
$("#alertbox1404693952711").animate({ top: hightScroll }, "slow");
});
});
window.onscroll = function () {
var hightScrollTop = ($(document).scrollTop() + 200) + "px";
$("#alertbox1404693952711").animate({ top: hightScrollTop }, 10);
};
</script>
<form id="Form1" runat="server">
<div id="main" class="wraper">
<div class="wraper">
<!-- 进度提示 -->
<div class="checkout">
<h1>
<i class="ico_indicator"></i>核对订单信息</h1>
<div class="checkorder">
<!--选择收货地址-->
<h2>
选择收货地址</h2>
<div class="selectads mb20">
<ul class="myaddrlist addSel clearfix">
<asp:Repeater ID="rptConsigneeInfo" runat="server">
<ItemTemplate>
<li class="" onclick="selectedLi(this)" onm ouseover="selectedLiHover(this)" onm ouseout="selectedLiout(this)">
<p class="address-name">
<strong>
<%# Eval("ConsigneeAddressName")%></strong> <span class="address-close" onclick="deleteConsignee(this)">
删除</span> <a class="address-edit" onclick="editConsignee(this)">[修改]</a>
<input type="hidden" value="<%# Eval("ConsigneeId") %>" />
</p>
<p class="listp">
<span class="user-name">
<%# Eval("ConsigneeName")%></span>收
</p>
<p class="listp" id="listpConsigneeProvinceAddress">
<%# Eval("ConsigneeProvinceAddress")%></p>
<p class="listp" id="listpConsigneeAddress">
<%# Eval("ConsigneeAddress")%></p>
<p class="listp" id="listpMoboPhone">
手机:<span><%# Eval("MoboPhone")%></p>
</span>
<p class="listp" id="listpConsigneePostcode">
邮政编码:<span><%# Eval("ConsigneePostcode")%></span></p>
<s class="icon"></s>
<input type="hidden" value="<%# Eval("Isdefault") %>" id="addSel">
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
<p class="addShipAddr">
<input type="button" value="使用新地址" class="addShipAddrBtn"></p>
<div id="shippingAddressContentInfo" class="newaddr formsub formsubB mt5" style="display: none">
<input id="contentInfoIdStatus" type="hidden" value="">
<ul>
<li>
<label>
收货地址名称:</label>
<input type="text" value="默认显示为家(点击这里修改地址别名)" class="intxt" style="color: #999;"
maxlength="10" id="contactMan2" name="txtAddressTitle">
</li>
<li>
<label>
收货人姓名:</label>
<input type="text" value="" class="intxt" maxlength="20" id="contactMan" name="txtContactMan">
<span class="need">*</span> <span class="Validform_checktip"></span></li>
<li id="liArea">
<label>
<span class="size2t4">地区</span>:</label>
<asp:DropDownList ID="drpProvince" runat="server" DataTextField="CityName" DataValueField="Codeid">
<%--<asp:ListItem>请选择省份</asp:ListItem>--%>
</asp:DropDownList>
<asp:DropDownList ID="drpCity" runat="server">
<asp:ListItem Value="-1">请选择城市</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="drpCounty" runat="server">
<asp:ListItem Value="-1">请选择区县</asp:ListItem>
</asp:DropDownList>
<span class="need">*</span> <span class="Validform_checktip"></span></li>
<li>
<label>
联系地址:</label>
<input type="text" value="" class="intxt" maxlength="200" id="address" name="txtAddress">
<span class="need">*</span> <span class="Validform_checktip"></span></li>
<li>
<label>
<span class="size2t4">手机</span>:</label>
<input type="text" value="" class="intxt" maxlength="20" id="mobile" name="txtMobile">
<span class="p0_5">或固定电话</span>
<input type="text" class="intxt hasDefaultText" tip="区号" value="区号" maxlength="5"
id="area" name="txtAreaCode"><span class="ml5 sep">-</span>
<input type="text" class="intxt hasDefaultText" tip="号码" value="号码" maxlength="20"
id="tel" name="txtTelephone"><span class="ml5 sep">-</span>
<input type="text" class="intxt hasDefaultText" tip="分机" value="分机" maxlength="5"
id="extension" name="txtExtension">
<span class="need">*</span> <span class="Validform_checktip">手机和电话必须填写一个</span>
</li>
<li class="isZip">
<label>
邮政编码:</label>
<input type="text" value="" class="intxt" maxlength="6" id="zip" name="txtZip">
<span class="need">*</span><span class="Validform_checktip"></span></li>
</ul>
<p class="action">
<a id="saveAdd" class="btn" title="保存地址"><span>保存地址</span></a> <a id="cancelSaveAdd"
class="btn cancel" title="取消"><span>取消</span></a> <span class="Validform_checktip">
</span>
</p>
</div>
</div>
<!--自提-->
<!--选择支付方式-->
<h2 class="mt10" id="payScrollCont">
选择支付方式</h2>
<div class="article paytype mb20" id="paymentContentPanel">
<div class="info">
<div class="cmnInfolist selectCmd">
<dl>
<dt class="onlineTips">在线支付 <span id="bankContent">[通过徐家汇e卡通、支付宝、网上银行支付订单金额,支持绝大数银行借记卡及信用卡]</span>
</dt>
<dd>
<p class="ck-brand">
<img src="Imge/brand_127X40_194.gif" alt="支付宝"></p>
<p class="otherBrand">
<a href="#" id="editPayType" class="blue" title="修改支付方式">其他支付方式</a></p>
</dd>
</dl>
<div class="clear">
</div>
</div>
</div>
<div class=" inner banklist" style="display: none">
<div class="tabcBox" rel="netpaytype">
<div class="payTitle">
<h3>
<input id="payonline" class="input-r" type="radio" value="" name="paytypeitem2"><label
for="payonline" style="display: inline; float: none; height: auto; width: auto;">在线支付</label></h3>
<span class="tip-msg">通过徐家汇e卡通、支付宝、网上银行支付订单金额,支持绝大数银行借记卡及信用卡</span>
</div>
<div class="netPayBox" style="display: none;">
<p>
第三方支付</p>
<ul class="banklistalter cls">
<asp:Repeater ID="rptBankOne" runat="server">
<ItemTemplate>
<li class="current">
<label>
<input type="radio" value="<%# Eval("PayWayId") %>" name="paytypeitem" checked="checked"
id="radio1-1">
</label>
<a><img src="Imge/<%# Eval("PayWayImg") %>" alt="<%# Eval("PayWayValue") %>"></a>
<s class="icon"></s></li>
</ItemTemplate>
</asp:Repeater>
</ul>
<p>
银行在线</p>
<ul class="banklistalter cls">
<asp:Repeater ID="rptBank" runat="server">
<ItemTemplate>
<li class="">
<label>
<input type="radio" value="<%# Eval("PayWayId") %>" name="paytypeitem">
</label>
<a><img src="Imge/<%# Eval("PayWayImg") %>" alt="<%# Eval("PayWayValue") %>"></a>
<s class="icon"></s></li>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
</div>
</div>
<div class=" inner" rel="codpaytype" style="display: none">
<ul class="pay_cod clearfix">
<li>
<label for="radio1-7">
<input id="radio1-7" type="radio" name="paytypeitem" value="12">
货到付款
</label>
</li>
<li class="tip-msg">快递送货上门后再付款,目前仅支持现金支付---部分商品暂不支持货到付款</li>
</ul>
</div>
<div class=" inner" rel="otherpaytype" style="display: none">
<ul class="pay_cod clearfix">
<li>
<label for="radio6-1">
<input id="radio6-1" type="radio" name="paytypeitem" value="13">
银行电汇
</label>
</li>
<li class="tip-msg">通过银行转账支付订单,转账后1-3个工作日内到账,到帐后安排发货</li>
</ul>
<div class="transfer" id="transfer-7">
<div class="listbox">
<ul>
<li>户 名: 上海徐家汇商城集团电子商务有限公司 </li>
<li>开户行: 浙江稠州商业银行上海分行 </li>
<li>账 号: 5656 7012 0100 9001 3232</li>
</ul>
<p class="tips">
在附加及用途处填写您的订单号</p>
</div>
</div>
</div>
<p class="savePay" style="display: none">
<input type="button" class="savePayBtn" value="保存支付方式" />
<input type="hidden" class="hiddenPayWay" value="在线支付" />
<input type="hidden" class="hiddenPayType" value="" />
<input type="hidden" class="hiddenPayContent" value="" />
</p>
</div>
<h2 class="mt10">
选择配送方式</h2>
<div class="selectsend">
<table>
<thead>
<tr>
<th width="120">
商家
</th>
<th width="120">
配送方式
</th>
<th width="90">
运费
</th>
<th width="280">
<!--隐藏配送时间 20130418 BY Demon-->
<!-- 配送时间-->
</th>
<th width="270">
备注
</th>
</tr>
</thead>
<tbody>
<tr class="first ship" id="shipDetail1">
<td>
徐家汇商城
</td>
<td>
<asp:DropDownList ID="drpSendWay" runat="server" DataTextField="SendWayName" DataValueField="SendWayId">
</asp:DropDownList>
<input id="hiddenSeller" value="1" type="hidden">
<input id="sellerFreeShipping1" type="hidden" value="0">
<input id="alocate1" type="hidden" value="">
</td>
<td>
<span id="shipFee1" class="price">10.00</span>
</td>
<td>
<div id="shipDetailTimer1" class="shipDetail" style="display: none">
<span id="cmnLoadB1" class="cmnLoadB" style="display: none">处理中...</span>
<!--ozzo一流-->
<!--工作日非工作日-->
<!--自提一流-->
<!--圆通发票-->
<!--邮政自提-->
</div>
</td>
<td>
<p>
</p>
<div class="info" id="desc1">
申通快递</div>
<p>
</p>
</td>
</tr>
<tr class="tip">
<td colspan="5">
我们会努力按照您指定的时间配送,交通等各类因素影响,您的订单有可能会有延误现象!
</td>
</tr>
</tbody>
</table>
</div>
<h2 class="mt10">
发票信息</h2>
<div class="invest" id="invoiceContentPanel">
<label class="fz14 invest_need" for="invest">
<input type="checkbox" id="invest" value="">
开具发票</label>
<div class="investc mt10">
<div class="tab" trigger="click">
<label class="tabitem mr20 now" rel="0">
<input type="radio" name="invest" value="0" checked="checked">
普通发票</label>
<label class="tabitem" rel="1">
<input type="radio" name="invest" value="1">
增值税发票</label>
</div>
<div class="tabc" id="tabcNormal" style="display: block;">
<p class="common mb10">
发票抬头:
<input id="companyNameForNormal" value="" maxlength="20" class="intxt" type="text">
<span class="red">*</span> <span class="Validform_checktip ml10"></span>
</p>
<div class="common clearfix">
<p class="label">
发票内容:</p>
<ul class="comlist">
<li>商品明细</li>
</ul>
</div>
<div class="tips-box">
<p>
* 温馨提示:</p>
<p>
1、开具发票,处理退换货时,请将您的发票退回至徐家汇商城指定地点;</p>
<p>
2、如商品由第三方商家销售,发票内容由其卖家决定,发票由卖家开具并寄出。</p>
</div>
<p>
<label>
<input id="check1-1" checked="checked" name="check1" type="checkbox">我已经阅读并同意</label>
<a target="_blank" class="blue" href="http://www.xjh.com/service/helpcenter.aspx?sysno=33">
《发票须知》</a> <span class="Validform_wrong ml10">提交订单前,您需要阅读并接受《发票须知》</span>
</p>
</div>
<div class="tabc tbc_invest" id="tbc_investAdded" style="display: none;">
<div class="invest_ac">
<p class="exp">
<strong>特别说明:</strong><br>
1.请需要开具增值税专用发票的客户一定要勾选"增值税专用发票",否则系统将默认开具"国税通用机打发票"(普票)。<br>
2.为了正确的使用增值税专用发票,请您将一般纳税人资格证明的复印件加盖公章(营业执照、税务登记证等)写上您的用户名,用户传真至021-54231219。<br>
3.为使客户能及时有效地使用增值税专用发票,请详细填写公司名称、地址、电话、税号、开户银行和账号,并注意所填的内容须与纳税信息一致。<br>
</p>
<ul>
<li>
<label>
公司名称:</label><input id="companyName" maxlength="100" class="intxt" type="text" value="">
<span class="need">*</span><span class="Validform_checktip ml10"></span> </li>
<li>
<label>
纳税人识别号:</label><input id="levelNum" class="intxt" type="text" value="" maxlength="20"><span
class="need">*</span><span class="Validform_checktip ml10"></span></li>
<li>
<label>
注册地址:</label><input id="companyAdd" class="intxt" type="text" value="" maxlength="200"><span
class="need">*</span><span class="Validform_checktip ml10"></span></li>
<li>
<label>
注册电话:</label><input id="companyTel" class="intxt" type="text" value="" maxlength="12"><span
class="need">*</span><span class="Validform_checktip ml10"></span></li>
<li>
<label>
开户银行及账号:</label><input id="bankNum" class="intxt" type="text" value="" maxlength="19"><span
class="need">*</span><span class="Validform_checktip ml10"></span></li>
<li>
<label>
发票寄送地址:</label><input id="other" class="intxt" type="text" value=""><span class="need">*</span><span
class="Validform_checktip ml10"></span></li>
</ul>
</div>
<div class="common mt10 clearfix">
<p class="label">
发票内容:</p>
<ul class="comlist">
<li>商品明细</li>
</ul>
</div>
<div class="tips-box">
<p>
* 温馨提示:</p>
<p>
1、开具发票,处理退换货时,请将您的发票退回至徐家汇商城指定地点;</p>
<p>
2、如商品由第三方商家销售,发票内容由其卖家决定,发票由卖家开具并寄出。</p>
</div>
<p class="mt10">
<label>
<input checked="checked" id="check1-2" name="check1" type="checkbox">我已经阅读并同意</label><a
target="_blank" class="red" href="http://www.xjh.com/service/helpcenter.aspx?sysno=33">《发票须知》</a></p>
</div>
<input id="invoiceType" type="hidden" value="-1">
</div>
</div>
<!--选择商品列表-->
<h2 class="mt10">
商品清单</h2>
<div class="cartlist">
<table cellpadding="0" cellspacing="0" class="table">
<tbody>
<tr>
<th class="title first">
商品名称
</th>
<th width="135">
单价
</th>
<th width="110">
数量
</th>
<th width="175">
小计
</th>
</tr>
<tr>
<td colspan="5" class="flagship">
<p class="icon">
<a href="#" class="fr mr5"><span>返回购物车</span></a> 商家:徐家汇商城
</p>
</td>
</tr>
<asp:Repeater ID="rptCommodity" runat="server">
<ItemTemplate>
<tr>
<td class="title">
<div class="pro">
<div class="img fl">
<a href="#" target="_blank">
<img src="Imge/SmallImg/<%# Eval("SkuPictureName") %>" alt="<%# Eval("CommotidyName") %>"></a></div>
<p class="tit">
<a href="#" target="_blank">
<%# Eval("CommotidyName")%></a></p>
<p class="prom">
<span class="gray mr20">
<%# Eval("AttributeColor")%>:<%# Eval("AttributeValueColor")%></span><span class="gray mr20"><%# Eval("AttributeSize")%>:<%# Eval("AttributeValueSize")%></span></p>
</div>
</td>
<td>
<span class="price">
<%# Eval("SkuPrice")%></span>
</td>
<td>
<p>
<%# Eval("BuyCommodityQuantity") %></p>
</td>
<td>
<span class="price"><%# Eval("Subtotal")%></span>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
<%--<tr>
<td class="title">
<div class="pro">
<div class="img fl">
<a href="http://www.xjh.com/product/A37-103-05C.htm" target="_blank">
<img src="https://s.xjhimg.com/neg/P50/A37-103-05C_1.jpg" alt=""></a></div>
<p class="tit">
<a href="http://www.xjh.com/product/A37-103-05C.htm" target="_blank">荳怡坊 黑底白小波点 珊瑚绒毯
T-SH22005 黑底白小波点 1.5m*2m</a></p>
<p class="prom">
<span class="gray mr20">颜色:黑底白小波点</span><span class="gray mr20">尺码:1.5m*2m</span></p>
</div>
</td>
<td>
<span class="price">68.00</span>
</td>
<td>
<p>
1</p>
</td>
<td>
<span class="price">68.00</span>
</td>
</tr>--%>
</tbody>
</table>
</div>
<!--结算信息及优惠使用,提交操作-->
<h2 class="mt10">
提交订单</h2>
<div class="article" id="salesOrderBalancePanel">
<div class="booklist_sub">
<div class="subinner">
<table cellpadding="0" cellspacing="0" class="tb_booklist_sub">
<tbody>
<tr>
<th class="remark">
<p class="pro_replace">
您可以使用下列方式抵扣订单金额</p>
</th>
<th class="gather" width="226">
最终订单金额
</th>
</tr>
<tr>
<td class="remarkinfo">
<dl id="discount">
<!-- 优惠券 -->
<!--查看优惠券优化 BY demon 20130417-->
<dt id="dtCoupon"><s class="icon"></s>使用我的优惠券
<div class="viewDeals-box" id="viewDeals">
[<a href="https://secure.xjh.com/Customer/MyVoucher.aspx" target="_blank">查看我的优惠券</a>]
<div class="deals-list" id="dealsList">
</div>
</div>
<!--查看优惠券优化 BY demon 20130417-->
</dt>
<dd id="dtCouponshow" style="display: none;">
<label>
优惠券编码:</label><input class="intxt" id="ticket" style="width: 100px;" type="text"
value="">
<a id="applyCode1" href="javascript:;" onclick="ajaxAmount.applyTicket(this)" class="btn btnA ml10">
使用</a> <span class="Validform_wrong ml10"></span>
<img id="welcard-tip" style="display: none; margin-top: -6px; vertical-align: text-top;"
src="/WebResources/Default/Nest/img/welcard.gif">
</dd>
<dt id="dtPoint"><s class="icon"></s>使用积分抵扣</dt>
<dd style="display: none;">
使用积分:
<input id="point" maxlength="9" class="intxt" style="width: 150px;" type="text" value="">
<a class="btn ml10" href="javascript:;" onclick="ajaxAmount.applyPoint(this);">使用积分</a>
<span id="pointError" style="" class="Validform_checktip ml10 Validform_wrong">使用积分必须是100的倍数!</span>
<p class="int">
您当前有50积分</p>
</dd>
<!-- 红包 -->
<dt id="dtGiftCard"><s class="icon"></s>使用红包</dt>
<dd style="display: none;">
红包号:
<input id="giftCardCode" class="intxt" style="width: 110px;" type="text" maxlength="14">
密码:
<input id="giftCardPwd" class="intxt" style="width: 100px;" type="password">
<a class="btn btnB ml10" href="javascript:void(0)" onclick="ajaxAmount.applyNoBindingGiftCard(this);">
使用红包</a>
<br>
<span id="gifCardError" style="display: none" class="Validform_checktip ml10 Validform_wrong">
</span>
</dd>
</dl>
<p class="mt10">
<span class="tit">订单备注:</span>
<input id="orderMemo" class="intxt hasDefaultText" maxlength="40" tip="如您对订单有什么要求,欢迎备注">
</p>
</td>
<td class="gatherinfo">
<div class="cls mb10">
<ul>
<li><span class="tit">商品小计:</span> <strong class="priceB_gray" id="subtotalMoney" runat="server"></strong>
</li>
<!-- CheckOut优化 Add by CC.Yao 20130903 -->
<li><span class="tit">运费:</span> <strong class="priceB_gray" id="sendWayMoney"></strong>
</li>
<!--// CheckOut优化 Add by CC.Yao 20130903 -->
</ul>
</div>
<div class="cls togather">
<p id="priceTotalAmount" class="all">
<span class="tit total">应付总金额:</span> <span class="total_num fr"><strong class="priceC_red" >
78.00</strong> </span>
</p>
</div>
<a id="submit" class="btn_booklist_sub">提交订单</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- 回答问题 -->
<input id="salesOrderType" type="hidden" value="0">
<input id="loadSOError" type="hidden" value="">
<input id="dcQuizValue" type="hidden" value="">
<div id="popBack">
</div>
</div>
</div>
</form>
<div id="alertbox1404693952711" class="centerPopA centerPopC" style="width: 400px;
left: 50%; top: 988px; margin-left: -200px; display: none;" moving="0" showed="1">
<div class="centerPopT">
<a class="close inblock ie6png2" title="关闭" href="#" data-popwin-bound="true">×</a></div>
<div class="centerPopBody">
<p class="tc contentText mt40 mb40">
</p>
</div>
</div>
<div id="overlay" style="position: fixed; top: 0px; left: 0px; right: 0px; bottom: 0px;
z-index: 999; opacity: 0.7; display: none; background-image: none; background-color: rgb(120, 121, 123);
background-position: 0% 0%; background-repeat: repeat;">
</div>
</asp:Content>
转载于:https://www.cnblogs.com/simpleBlue3/p/3889119.html
标签:function,parent,val,text,订单,Validform,提交,children 来源: https://blog.csdn.net/weixin_34010949/article/details/93922687