代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>同城物流-发货-品代网(www.pdw123.com)--国内首家建材行业供应链交易平台,F2B2C运营模式开创网络建材市场新纪元</title>
<meta name="keywords" content="代理,加盟,招商,批发,零售,掌上建材,PPR,PVC,PE,管材,管件,波纹管,缠绕管,卫浴,陶瓷,龙头,浴缸,地漏,吊顶,灯具,开关,插线板,插座,电线,电缆,水暖五金,地板,油漆,地暖,太阳能,净水器,装修材料" />
<meta name="description" content="品代网(www.pwd123.com)是中国首家采用云管理系统,互联网加实体营销管理为一体的交易平台。专业的建材行业综合网上购物平台,销售管材管件,水暖卫浴,厨卫洁具,灯具开关,板材五金,油漆涂料,电线电缆,家装材料,建筑材料,五金配件,防水等。正品低价,品质保证,便捷操作,诚信服务">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="Administrator">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<meta name="renderer" content="webkit">
<link rel="shortcut icon" href="favicon.ico"/>
<!--css-->
<link rel="stylesheet" href="css/head.css" />
<link rel="stylesheet" href="css/index2.css" />
<link rel="stylesheet" href="css/topbannerSecond.css"/>
<link rel="stylesheet" href="css/indent.css" />
<link rel="stylesheet" href="css/add.css" />
<link rel="stylesheet" href="css/shipments.css" />
<link rel="stylesheet" href="css/deliverGoods.css" />
<link rel="stylesheet" href="js/jquery-ui-1.11.4.custom/jquery-ui.css" />
<link rel="stylesheet" href="js/jquery-ui-1.11.4.custom/jquery-ui.theme.css" />
<!--js-->
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery-ui-1.11.4/jquery-ui.js"></script>
<script src="js/jquery.soChange.js"></script>
<script src="js/json2.js"></script>
<script type="text/javascript" src="js/hd_nav.js"></script>
</head>
<body>
<!--遮罩背景层-->
<div id="loading" class="loading" style="display:none;">
<div style="position:absolute;left:49%;top:200px;">
<img src="images/loading.gif">
</div>
</div>
<!-- gg_top -->
{$ad_head_html}
<!-- top_header 顶部 -->
{$user_head_html}
<!-- top-main-->
{$search_head_html}
<!--导航分类-->
<div id="headerNav" style="position: relative;">
<div class="wrap_1200 hd_header_nav clearfix">
<!--所有商品分类-->
<div id="allSortOuterbox" class="hd_header_nav_div clearfix">
<div class="allSortOuterbox_til">产品分类</div>
<ul class="allSortOuterbox_con" style="display: none;">
</ul>
<div class="allSortOuterbox_sort" style="display: none;">
</div>
</div>
<!--快速导航-->
<ul id="global_menu" class="hd_header_nav_div">
<img src="images/images/oratil2_12.jpg" class="allSortOuter_trigon">
<li><a href="index.php" class="active"> 首页 </a> </li>
<li id="applyAgent" class="header_nav_bigger"><a href="applicationAgency.php" target="_blank">申请代理意向</a> </li>
<li class="header_nav_bigger">
<div class="header_nav_order">装修师傅预约<i class="pullIcon"></i></div>
<div class="header_nav_pulldown" style="display: none;">
<ul>
<li><a href="seekMaster.php">查询装修师傅</a></li>
<li><a href="fitmentRegister.php">装修维修登记</a></li>
<li><a href="masterSeekJob.php">装修师傅找活</a></li>
</ul>
</div>
</li>
<li class="header_nav_bigger">
<div>同城顺带物流<i class="pullIcon"></i></div>
<div class="header_nav_pulldown" style="display: none;">
<ul>
<li><a href="shipments.php">我要发货</a></li>
<li><a href="deliverGoods.php">我要送货</a></li>
<li><a href="shipmentList.php">我的物流</a></li>
</ul>
</div>
</li>
<li><a href="quickorder.php" target="_blank">快速下单</a> </li>
<li><a href="./brandWall.php" target="_blank">品牌大全</a> </li>
<li><a href="./commodity.php" target="_blank">商品专区</a> </li>
</ul>
<!--手机品代-->
<div class="global_menu_mobile">
<i class="header_nav_mobile"></i>
<div class="header_nav_mobile_img" style="display: none;">
<img src="images/head/downloadAPP.jpg" />
</div>
</div>
</div>
</div>
<script type="text/javascript">
//导航
$.post('api.php?act=IndexNav', {},
function (data) {
if (data != '') {
data = $.parseJSON(data);
var htmlSeries = "";
var htmlType = "";
$.each(data, function (n, value) {
if (n % 2 == 0) {
htmlSeries += '<li id="allSortOuterbox' + value.SeriesId + '" class="allSort_conli allSort_conliOdd">';
}
else {
htmlSeries += '<li id="allSortOuterbox' + value.SeriesId + '" class="allSort_conli allSort_conliEven">';
}
htmlSeries += '<div class="allSort_conli_til">';
htmlSeries += '<i class="icon iconallsort' + ++n + '"></i>' + '<a href="search.php?seriesId= ' + value.SeriesId + '" style="color:white">' + value.SeriesName + '</a>' + '';
htmlSeries += '</div>';
switch (n) {
case 1:
htmlSeries += '<div class="allSort_conli_vicetil"><span>PPR管</span><span>PVC管</span><span>金属管</span></div>';
break;
case 2:
htmlSeries += '<div class="allSort_conli_vicetil"><span>龙头系列</span><span>卫浴</span><span>吊顶</span></div>';
break;
case 3:
htmlSeries += '<div class="allSort_conli_vicetil"><span>插线板</span><span>灯具</span><span>开关</span></div>';
break;
case 4:
htmlSeries += '<div class="allSort_conli_vicetil"><span>刨花板</span><span>集成板</span><span>防火板</span></div>';
break;
case 5:
htmlSeries += '<div class="allSort_conli_vicetil"><span>油漆</span><span>辅料</span><span>堵漏系列</span></div>';
break;
case 6:
htmlSeries += '<div class="allSort_conli_vicetil"><span>电线</span><span>电缆</span></div>';
break;
}
htmlSeries += '</li>';
htmlType += '<div class="allSort_sort_con clearfix" id="allSort_sort_' + value.SeriesId + '" style="display: none;">';
htmlType += '<ul class="allSort_sort_content">';
$.each(value.Type, function (m, v) {
htmlType += '<li><a href="search.php?seriesId=' + value.SeriesId + '&typeId=' + v.TypeId + '">' + v.TypeName + '</a> </li>';
});
htmlType += '</ul>';
htmlType += '<ul class="allSort_sort_shop">';
$.each(value.Factorys, function (v, l) {
htmlType += '<li><a href ="store.php?id=' + l.FactoryId + '" class="allSort_sort_shop_li"><img src=" ' + l.ListPic + '" class="sort_shop_li_img"></a></li>';
});
htmlType += '</ul>';
htmlType += '</div>';
});
$('.allSortOuterbox_sort').html(htmlType);
$('.allSortOuterbox_con').html(htmlSeries);
var $allSortOutboxNav = $('.allSortOuterbox_con');
var $allSortli = $('.allSort_conli');
var $allSortcon = $('.allSort_sort_con');
$('.allSortOuterbox_til').mouseover(function(){
$allSortOutboxNav.show();
$('.allSortOuterbox_sort').css('display', 'block');
$allSortcon.show();
});
$allSortli.mouseover(function () {
var $this = $(this);
var $t = $this.index();
$('.allSortOuterbox_sort').css('display', 'block');
$allSortli.removeClass('active');
$this.addClass('active');
$allSortcon.css('display', 'none');
$allSortcon.eq($t).css('display', 'block');
});
$('#allSortOuterbox').mouseleave(function () {
$allSortli.removeClass('active');
$allSortOutboxNav.hide();
$('.allSortOuterbox_sort').css({
'display': 'none',
'z-index': '-10'
});
});
}
});
</script>
<div id="shipmentsMain" class="shipmentsMain">
<div class="wrap_1200 clearfix">
<!--左部分-->
<div class="shipmentsLeft clearfix ">
<!--基本信息-->
<div class="basicInfo clearfix">
<div class="basicInfo_head">
<i class="basicInfo_icon"></i>
<p>基本信息</p>
<a href="addressLogistics.php">
<i class="addressManage"></i>
地址管理
</a>
</div>
<div class="basicInfo_content">
<!--提货地址-->
<div class="basic_pickUpAddress">
<div class="pickUpAdd">提货地址</div>
<div class="pickAddressTill">
<div class="basic_pickUpContent">
<p><span class="basic_pickCity">请选择县/区、</span><span class="basic_pickVillage">乡镇/街道</span></p>
<i class="basic_graySanjiao"></i>
</div>
<div class="basic_divProCity basic_picUpArea" style="display:none">
<ul class="headMenu">
<li class="liDefault">县/区</li>
<li>乡镇/街道</li>
</ul>
<ul class="pickup_menuCity" style="display:">
</ul>
<ul class="pickup_menuVillages" style="display:none ">
</ul>
</div>
<input type="text" class="basic_pickUpKeywords" placeholder="请输入详细地址" >
</div>
<div class="saveAddress clearfix">
<i class="basic_pickAll"></i>
<span>是否保存到已有地址</span>
</div>
<div class="pickupAdress_choose clearfix">
<div class="beforeAdress ba_pickUp">选择曾用地址</div>
<ul class="beforePickupDown" style="display:none ;">
</ul>
</div>
</div>
<!--到货地址-->
<div class="basic_arrivalAddress">
<div class="arrivalAdd">到货地址</div>
<div class="pickAddressTill">
<div class="basic_arrivalContent">
<p><span class="basic_arriCity">请选择县/区、</span><span class="basic_arriVillage">乡镇/街道</span></p>
<i class="basic_graySanjiao"></i>
</div>
<div class="basic_divProCity basic_arrivalArea" style="display: none">
<ul class="headMenu">
<li class="liDefault">县/区</li>
<li>乡镇/街道</li>
</ul>
<ul class="arrival_menuCity" style="display: ">
</ul>
<ul class="arrival_menuVillages" style="display:none ">
</ul>
</div>
<input type="text" class="basic_arrivalKeywords" placeholder="请输入详细地址" >
</div>
<div class="saveAddress clearfix">
<i class="basic_pickAll"></i>
<span>是否保存到已有地址</span>
</div>
<div class="arrivalAdress_choose clearfix">
<div class="beforeAdress ba_arrival">选择曾用地址</div>
<ul class="beforeArrivalDown" style="display:none ;">
</ul>
</div>
</div>
<!--提货时间-->
<div class="basic_pickupTime">
<div class="basic_pickupDateTil">
<div class="basic_pickDate">提货日期</div>
<input class="basic_pickDateInput" type="text" readonly="readonly" placeholder="请选择提货日期" />
</div>
<div class="basic_pickTimeTil">
<div class="basic_pickTime">提货时间</div>
<div class="pickupTimetill">
<div class="pickupTimeContent">
<p>请选择具体时间</p>
<i class="timeSan"></i>
</div>
<ul class="pickupTimePulldown" style="display: none;">
<li>00:00--02:00</li>
<li>02:00--04:00</li>
<li>04:00--06:00</li>
<li>06:00--08:00</li>
<li>08:00--10:00</li>
<li>10:00--12:00</li>
<li>12:00--14:00</li>
<li>14:00--16:00</li>
<li>16:00--18:00</li>
<li>20:00--22:00</li>
<li>22:00--24:00</li>
</ul>
</div>
</div>
<!--<span style="display: none;" class="yellowDate">*请选择提货时间</span>-->
</div>
<!--到达时间-->
<div class="basic_arrivalTime">
<div class="basic_arrivalDateTil">
<div class="basic_arriDate">到货日期起</div>
<input class="basic_arrivalInput" type="text" readonly="readonly" placeholder="请选择到货日期" />
</div>
<div class="basic_arrivalTil">
<div class="basic_arriTime">到货日期止</div>
<input class="arrivalTimeContent" type="text" readonly="readonly" placeholder="请选择到货日期" />
</div>
<!--<span style="display:none ;" class="yellowDate">*请选择到货时间</span>-->
</div>
</div>
</div>
<!--货物信息-->
<div class="cargoInfo clearfix">
<div class="cargoInfo_head">
<i class="cargoInfo_icon"></i>
<p>货物信息</p>
</div>
<!--货物类别-->
<div class="cargoContent clearfix" id="cargoSort">
<div class="cargoSortLeft">货物类别<span>{*单选}</span></div>
<ul class="cargoSortRight">
<li>管材管件</li>
<li>水暖卫浴</li>
<li>灯具开关</li>
<li>板材五金</li>
<li>电线电缆</li>
<li>油漆涂料</li>
<li>黄沙水泥</li>
<li>集成吊顶</li>
<li>家用电器</li>
<!--<span style="display: none;" class="yellowSort">*请选择货物类别</span>-->
</ul>
</div>
<!--货物特征-->
<div class="cargoContent clearfix" id="cargoFeature">
<div class="cargoFeatureLeft">货物特征<span>{*多选}</span></div>
<ul class="cargoFeatureRight">
<li>易碎</li>
<li>易燃</li>
<li>向上</li>
<li>怕晒</li>
<li>防潮</li>
<li>勿压</li>
</ul>
</div>
<!--货物重量-->
<div class="cargoContent clearfix" id="cargoWeight">
<div class="cargoWeightLeft">货物重量</div>
<div class="cargoWeightRight">
<div class="cargoWeightInput">
<input class="cargoWeightNum" type="text" onkeyup="clearNoNum(this)" />
<span>kg</span>
</div>
<div class="cargoWeightTitle">
(重量最高不超过100kg,最低不低于0.1kg)
<span style="display: none;">*请填写货物重量</span>
</div>
</div>
</div>
<!--货物体积-->
<div class="cargoContent clearfix" id="cargoVolume">
<div class="cargoVolumeLeft">货物体积</div>
<div class="cargoVolumeRight">
<div class="cargoVolumeInput">
<input class="cargoVolumeNum" type="text" onkeyup="clearNoNum(this)" maxlength="7" />
<span>m³</span>
</div>
<div class="cargoVolumeTitle">
(体积最大不超过1000m³,最小不小于0.1m³)
<span style="display:none ;">*请填写货物体积</span>
</div>
</div>
</div>
<!--货物数量-->
<div class="cargoContent clearfix" id="cargoNumber">
<div class="cargoNumberLeft">货物数量</div>
<div class="cargoNumberRight">
<input class="cargoNumberNum" type="text" onkeyup="clearNoNum(this)" maxlength="7" />
<div class="cargoNumberTil clearfix" >
<div class="cargoNumberUnit">
<p>箱</p>
<i class="cargoNumberIcon"></i>
</div>
<ul class="cargoNumberPulldown" style="display: none;">
<li>箱</li>
<li>包</li>
<li>桶</li>
<li>组</li>
<li>捆</li>
</ul>
</div>
<input type="text" class="cargoNumberOther" placeholder="其他"/>
<span style="display:none ;" class="yellowNum">*请填写货物数量</span>
</div>
</div>
<!--超出范围-->
<div class="cargoContent clearfix" id="cargoOverlength">
<div class="cargoOverlengthLeft">尺寸超限<span>{*选填}</span></div>
<div class="cargoOverlengthRight">
<div class="cargoOver_Length">
长度(m)
<input class="overlength_input" onkeyup="clearNoNum(this)" maxlength="7"/>
<!--<span>m</span>-->
</div>
<div class="cargoOver_width">
宽度(m)
<input class="overwidth_input" onkeyup="clearNoNum(this)" maxlength="7"/>
<!--<span>m</span>-->
</div>
<div class="cargoOver_height">
高度(m)
<input class="overheight_input" onkeyup="clearNoNum(this)" maxlength="7"/>
<!--<span>m</span>-->
</div>
</div>
</div>
<!--装卸货物-->
<div class="cargoContent clearfix" id="cargoLoading">
<div class="cargoLoadingLeft">装卸货物</div>
<div class="cargoLoadingRight">
<div class="cargoLoad">需要司机装货</div>
<div class="cargoUnload">需要司机卸货</div>
</div>
</div>
<!--备注信息-->
<div class="cargoContent clearfix" id="cargoRemark">
<div class="cargoRemarkLeft">备注信息</div>
<div class="cargoRemarkRight">
<textarea id="cargoText" class="cargoRemarkText" maxlength="250" maxlength="20" onchange="this.value=this.value.substring(0, 250)"
onkeydown="this.value=this.value.substring(0, 250)" onkeyup="this.value=this.value.substring(0, 250)"></textarea>
</div>
</div>
</div>
<!--运输价格-->
<!--<div class="shippingPrice clearfix">
<div class="shippingPrice_head">
<i class="shippingPrice_icon"></i>
<p>货物信息</p>
</div>
<div class="cargoContent clearfix" id="referencePrive">
<div class="referencePriceLeft">品代参考价</div>
<input class="referencePriceRight" value="132" readonly="readonly" type="text" onkeyup='this.value=this.value.replace(/\D/gi,"")' maxlength="9"/>
<span>元</span>
</div>
<div class="cargoContent clearfix" id="myBid">
<div class="myBidLeft">我的出价</div>
<input class="muBidRight" value="111" id="muBidRight" type="text" onkeyup='this.value=this.value.replace(/\D/gi,"")' maxlength="9"/>
<span>元</span>
</div>
<div class="cargoContent clearfix" id="thankFee">
<div class="thankFeeLeft">感谢费(选填)</div>
<input class="thankFeeRight" id="thankFeeRight" type="text" onkeyup='this.value=this.value.replace(/\D/gi,"")' maxlength="9"/>
<span>元</span>
</div>
</div>
-->
<div class="saveButton"> <!--onclick="document.getElementById('loading').style.display='';"-->生成发货信息</div>
</div>
<!--右部分-->
<div id="shipmentBox" class="shipmentsRight clearfix">
<div class="shipmentsRight_head clearfix">
<i class="shipmentInfoIcon"></i>
<p>发货信息</p>
</div>
<div class="shipmentContent clearfix">
<div class="shipAdressInfo clearfix">
<div class="shipAdressQi clearfix">
<span class="ship_qi">起</span>
<div class="ship_adress addressStart">
</div>
</div>
<div class="shipAdressZhong clearfix">
<span class="ship_qi">终</span>
<div class="ship_adress addressFinish">
</div>
</div>
<div class="shipAdressTi clearfix">
<span class="ship_qi">提</span>
<span class="ship_adress dateDelivery"></span>
</div>
<div class="shipAdressDao clearfix">
<span class="ship_qi">到</span>
<span class="ship_adress dateArrival"></span>
</div>
</div>
</div>
<div class="shipmentContent clearfix">
<div class="shipCargoInfo clearfix">
<div class="shipCargoTil shipCargoSort"></div>
<div class="shipCargoTil shipCargoTrait"></div>
<div class="shipCargoTil shipCargoFeatures"></div>
<div class="shipCargoTil shipCargoWeight"></div>
<div class="shipCargoTil shipCargoVol"></div>
<div class="shipCargoTil shipCargoNum"></div>
<div class="shipCargoTil shipCargoLength"></div>
<div class="shipCargoTil shipCargoNeed">
<span class="zhuang"></span>
<span class="xie"></span>
</div>
<div class="shipCargoTil shipCargoRemark"></div>
</div>
</div>
<div class="shipmentContent clearfix">
<div class="shipPriceInfo clearfix">
<div class="shipPriceTil pdPrice">
品代参考价
<span></span>
</div>
<div class="shipPriceTil myPrice">
我的出价
<span>元</span>
<input type="text" class="myaaprice"/>
</div>
<!--<div class="shipPriceTil">
感谢费
<span>200元</span>
</div>-->
<div class="submitInfo">提交</div>
</div>
</div>
</div>
</div>
</div>
<!--sidebar-->
{$sidebar_html}
<!--footer-->
<div class="comfooter">
{$foot_html}
</div>
<script>
//滚动到头部
$.fn.smartFloat = function () {
var position = function (element) {
$(window).scroll(function () {
var scrolls = $(this).scrollTop();
if (scrolls > 260 && scrolls < 1320) {
element.show();
if (window.XMLHttpRequest) {
element.css({
position: "fixed",
top: "0px",
left: "50%",
marginLeft : "280px"
});
} else {
element.css({
top: scrolls
});
}
} else {
element.show();
element.css({
position: "absolute",
top: top,
left: "50%",
marginLeft : "280px"
});
}
if(scrolls >1320){
$('#shipmentBox').unbind('scroll');
}
});
};
return $(this).each(function () {
position($(this));
});
}
</script>
<script>
function clearNoNum(obj){
//先把非数字的都替换掉,除了数字和.
obj.value = obj.value.replace(/[^\d.]/g,"");
//必须保证第一个为数字而不是.
obj.value = obj.value.replace(/^\./g,"");
//保证只有出现一个.而没有多个.
obj.value = obj.value.replace(/\.{2,}/g,".");
//保证.只出现一次,而不能出现两次以上
obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
}
</script>
<script type="text/javascript">
var city = "";
var userId = {$userId};
var logisticJson = "";
$(document).ready(function (){
(function ($) {
$.getUrlParam = function (name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null)
return unescape(r[2]);
return null;
};
})(jQuery);
city = $.getUrlParam('city');
city = decodeURI(city);
if (city == "null" || city == "") {
city = remote_ip_info["city"] + "市";
$('.now_province').html(city);
}
else {
$('.now_province').html(city);
}
loadLogisticAddr(city);
loadDistrict(city);
// $(function(){
// $('input').val("");
// $('.referencePriceRight').val();
// });
// 货物类别
$('.cargoSortRight li').click(function(){
$(this).addClass('active').siblings().removeClass('active');
});
// 货物特征
$('.cargoFeatureRight li').toggle(function(){
$(this).addClass('active');
var feat = $(this).index();
},function(){
$(this).removeClass('active');
});
// 货物数量
$('.cargoNumberUnit').click(function(){
$('.cargoNumberPulldown').show();
$('.cargoNumberPulldown li').click(function(){
var numberUnit = $(this).html();
$('.cargoNumberUnit p').html(numberUnit);
$('.cargoNumberPulldown').hide();
});
});
$('.cargoNumberTil').mouseleave(function(){
$('.cargoNumberPulldown').hide();
});
// 是否需要装卸货物
$('.cargoLoadingRight>div').toggle(function(){
$(this).addClass('active');
},function(){
$(this).removeClass('active');
});
// 提货地址
$('.basic_pickUpContent').click(function(){
$('.headMenu li:first-child').addClass("liDefault").siblings().removeClass('liDefault');
$('.pickup_menuCity').show();
$('.basic_picUpArea').show();
$('.pickup_menuVillages').hide();
$('.pickup_menuCity li').click(function(){
var cityOn = $(this).html();
$(this).addClass("hadCity").siblings().removeClass("hadCity");
$('.basic_pickUpContent p .basic_pickCity').html(cityOn);
$('.basic_pickUpContent p .basic_pickVillage').html("");
$('.headMenu li:nth-child(2)').addClass("liDefault").siblings().removeClass('liDefault');
$('.pickup_menuVillages').show();
$('.pickup_menuCity').hide();
});
$('.headMenu li:first-child').click(function(){
$('.headMenu li:first-child').addClass("liDefault").siblings().removeClass('liDefault');
$('.pickup_menuCity').show();
$('.pickup_menuVillages').hide();
});
});
$('.pickAddressTill').mouseleave(function(){
$(this).find('.basic_picUpArea').hide();
});
// 是否保存在已有地址
$('.basic_pickAll').toggle(function(){
$(this).css('background-position','-220px -220px');
$(this).addClass('checked');
},function(){
$(this).css('background-position','-180px -220px');
$(this).removeClass('checked');
});
// 到货地址
$('.basic_arrivalContent').click(function(){
$('.headMenu li:first-child').addClass("liDefault").siblings().removeClass('liDefault');
$('.arrival_menuCity').show();
$('.basic_arrivalArea').show();
$('.arrival_menuVillages').hide();
$('.arrival_menuCity li').click(function(){
var cityOn = $(this).html();
$(this).addClass("hadCity").siblings().removeClass("hadCity");
$('.basic_arrivalContent p .basic_arriCity').html(cityOn);
$('.basic_arrivalContent p .basic_arriVillage').html("");
$('.headMenu li:nth-child(2)').addClass("liDefault").siblings().removeClass('liDefault');
$('.arrival_menuVillages').show();
$('.arrival_menuCity').hide();
});
$('.headMenu li:first-child').click(function(){
$('.headMenu li:first-child').addClass("liDefault").siblings().removeClass('liDefault');
$('.arrival_menuCity').show();
$('.arrival_menuVillages').hide();
});
});
$('.pickAddressTill').mouseleave(function(){
$(this).find('.basic_arrivalArea').hide();
});
// 到货日期提货日期
$('.basic_pickDateInput').datepicker({
altField: ".basic_pickDateInput",
altFormat: "yy-mm-dd",
changeMonth: true,
changeYear: true,
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
showMonthAfterYear: true, //是否把月放在年的后面
minDate: new Date(),
maxDate: '+1m'
});
$('.basic_arrivalInput').datepicker({
altField: ".basic_arrivalInput",
altFormat: "yy-mm-dd",
changeMonth: true,
changeYear: true,
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
showMonthAfterYear: true, //是否把月放在年的后面
minDate: new Date(),
maxDate: '+1m'
});
$('.arrivalTimeContent').datepicker({
altField: ".arrivalTimeContent",
altFormat: "yy-mm-dd",
changeMonth: true,
changeYear: true,
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
showMonthAfterYear: true, //是否把月放在年的后面
minDate: new Date(),
maxDate: '+1m',
});
// 到货时间提货时间
$('.pickupTimeContent').click(function(){
$('.pickupTimePulldown').show();
$('.pickupTimePulldown li').click(function(){
var ptimeTill = $(this).html();
$('.pickupTimeContent p').html(ptimeTill);
$('.pickupTimePulldown').hide();
});
});
$('.pickupTimetill').mouseleave(function(){
$('.pickupTimePulldown').hide();
});
// 曾用地址
$('.pickupAdress_choose').mouseleave(function(){
$('.beforePickupDown').hide();
});
$('.arrivalAdress_choose ').mouseleave(function(){
$('.beforeArrivalDown').hide();
});
$("#shipmentBox").smartFloat();
});
function loadLogisticAddr(city){
$.ajax({
type:"post",
url:"api.php?act=getLogisticAddr",
data:{
city:city,
type:3
},
async:true,
success:function(result){
if(result != "Failure"){
result = $.parseJSON(result);
var takeHtml = "";
var arrHtml = "";
$.each(result, function(n,value) {
if(value.type == "1"){
takeHtml += '<li lng="'+value.lng+'" lat="'+value.lat+'">';
takeHtml += '<span>'+value.districtName+'</span>';
takeHtml += '<span>'+value.townName+'</span>';
takeHtml += '<span>'+value.postAddress+'</span>';
takeHtml += "</li>";
}
if(value.type == "2"){
arrHtml += '<li lng="'+value.lng+'" lat="'+value.lat+'">';
arrHtml += '<span>'+value.districtName+'</span>';
arrHtml += '<span>'+value.townName+'</span>';
arrHtml += '<span>'+value.postAddress+'</span>';
arrHtml += "</li>";
}
});
$('.beforePickupDown').html(takeHtml);
$('.beforeArrivalDown').html(arrHtml);
$('.ba_pickUp').click(function(){
if(takeHtml == ""){
alert("抱歉,您暂时还没有记录!");
}
else{
$('.beforePickupDown').show();
$('.beforePickupDown>li').click(function(){
var district = $(this).find('span').eq(0).html();
var town = $(this).find('span').eq(1).html();
var addr = $(this).find('span').eq(2).html();
$('.basic_pickCity').html(district);
$('.basic_pickVillage').html(town);
$('.basic_pickUpKeywords').val(addr);
$('.beforePickupDown').hide();
});
}
});
$('.ba_arrival').click(function(){
if(arrHtml == ""){
alert("抱歉,您暂时还没有记录!");
}
else {
$('.beforeArrivalDown').show();
$('.beforeArrivalDown>li').click(function(){
var district = $(this).find('span').eq(0).html();
var town = $(this).find('span').eq(1).html();
var addr = $(this).find('span').eq(2).html();
$('.basic_arriCity').html(district);
$('.basic_arriVillage').html(town);
$('.basic_arrivalKeywords').val(addr);
$('.beforeArrivalDown').hide();
});
}
});
}
else{
$('.beforeAdress').on('click',function(){
alert("抱歉,您暂时还没有记录!");
});
}
}
});
}
function loadDistrict(city){
$.ajax({
type:"post",
url:"api.php?act=factoryListCity",
data:{
city:city
},
async:true,
success:function(result){
if(result != "Failure"){
var html = '';
result = $.parseJSON(result);
$.each(result, function(n,value) {
html += '<li>';
html += value.district;
html += '</li>';
});
$('.pickup_menuCity').html(html);
$('.arrival_menuCity').html(html);
$('.pickup_menuCity li').on('click',function(){
var district = $(this).html();
$.ajax({
type:"post",
url:"api.php?act=factoryListTown",
data:{
city:city,
district:district
},
async:true,
success:function(resultTown){
if(resultTown != 'Failure'){
var htmlTown = '';
resultTown = $.parseJSON(resultTown);
$.each(resultTown, function(m,v) {
htmlTown += '<li>';
htmlTown += v.town;
htmlTown += '</li>';
});
$('.pickup_menuVillages').html(htmlTown);
$(".pickup_menuVillages li").click(function(){
var villsOn = $(this).html();
$(this).addClass("hadVillages").siblings().removeClass("hadVillages");
$('.basic_pickUpContent p .basic_pickVillage').html(villsOn);
$('.pickup_menuVillages').hide();
$('.basic_picUpArea').hide();
});
}
}
});
});
$('.arrival_menuCity li').on('click',function(){
var district = $(this).html();
$.ajax({
type:"post",
url:"api.php?act=factoryListTown",
data:{
city:city,
district:district
},
async:true,
success:function(resultTown){
if(resultTown != 'Failure'){
var htmlTown = '';
resultTown = $.parseJSON(resultTown);
$.each(resultTown, function(m,v) {
htmlTown += '<li>';
htmlTown += v.town;
htmlTown += '</li>';
});
$('.arrival_menuVillages').html(htmlTown);
$(".arrival_menuVillages li").click(function(){
var villagesOn = $(this).html();
$(this).addClass("hadVillages").siblings().removeClass("hadVillages");
$('.basic_arrivalContent p .basic_arriVillage').html(villagesOn);
$('.arrival_menuVillages').hide();
$('.basic_arrivalArea').hide();
});
}
}
});
});
}
}
});
}
var LocAddr = function () {
this.provinceName = "";
this.cityName = "";
this.districtName = "";
this.townName = "";
this.postAddress = "";
};
var Logistic = function(){
this.getGoodsProvince = "";
this.getGoodsCity = "";
this.getGoodsDistrict = "";
this.getGoodsTown = "";
this.getGoodsAddr = "";
this.sendGoodsProvince = "";
this.sendGoodsCity = "";
this.sendGoodsDistrict = "";
this.sendGoodsTown = "";
this.sendGoodsAddr = "";
this.getGoodsDate = "";
this.getGoodsTime = "";
this.sendGoodsDateStart = "";
this.sendGoodsDateEnd = "";
this.goodsType = "";
this.goodsCharacter = "";
this.goodsWeight = 0;
this.goodsVolume = 0;
this.goodsQuantity = 0;
this.goodsUnit = "";
this.goodsBeyond = "";
this.goodsBeLoad = 0;
this.goodsBeUnload = 0;
this.remark = "";
this.referencePrice = 0;
this.myOffer = 0;
this.fee = 0;
};
var locLogic = new Logistic();
$('.saveButton').on('click',function(){
$('.loading').show();
var takeDistict = $('.basic_pickCity').html();
var takeTown = $('.basic_pickVillage').html();
var takeAddress = $('.basic_pickUpKeywords').val();
// 验证部分
var basic_pickUpKeywords = $('.basic_pickUpKeywords').val();
var basic_arrivalKeywords=$('.basic_arrivalKeywords').val();
var basic_pickDateInput = $('.basic_pickDateInput').val();
var pickupTimeContentP = $('.pickupTimeContent p').html();
var basic_arrivalInput = $('.basic_arrivalInput').val();
var arrivalTimeContent =$('.arrivalTimeContent').val();
var cargoWeightNum =$('.cargoWeightNum').val();
var cargoVolumeNum = $('.cargoVolumeNum').val();
var cargoNumberNum = $('.cargoNumberNum').val();
// 验证
if(basic_pickUpKeywords == "" || basic_pickUpKeywords == "请输入详细地址"){
alert('请输入详细地址');
$('.loading').hide();
return;
}
if(basic_arrivalKeywords == "" || basic_arrivalKeywords == "请输入详细地址"){
alert("请输入详细地址");
$('.loading').hide();
return;
}
if(basic_pickDateInput == " "|| basic_pickDateInput == "请选择提货日期"){
alert("请选择提货日期");
$('.loading').hide();
return;
}
if(pickupTimeContentP == "请选择具体时间"){
alert("请选择提货具体时间");
$('.loading').hide();
return;
}
if(basic_arrivalInput == "" || basic_arrivalInput == "请选择到货日期"){
alert("请选择到货日期");
$('.loading').hide();
return;
}
if(arrivalTimeContent == "" || arrivalTimeContent == "请选择到货日期"){
alert("请选择到货日期");
$('.loading').hide();
return;
}
var takeDate = new Date(basic_pickDateInput);
var arrDateS = new Date(basic_arrivalInput);
var arrDateE = new Date(arrivalTimeContent);
if(arrDateE < arrDateS){
alert("到货终止时间不能小于起始时间!");
$('.loading').hide();
return;
}
else if(arrDateS < takeDate){
alert("到货时间不能小于提货时间!");
$('.loading').hide();
return;
}
if(! $('.cargoSortRight li').hasClass('active')){
alert("请选择货物类别");
$('.loading').hide();
return;
}
if(cargoWeightNum == ""){
alert("请输入货物重量");
$('.loading').hide();
return;
}
if(parseFloat(cargoWeightNum) > 100 || parseFloat(cargoWeightNum) < 0.1){
alert("重量最高不超过100kg,最低不低于0.1kg");
$('.loading').hide();
return;
}
if(cargoVolumeNum == ""){
alert("请输入货物体积");
$('.loading').hide();
return;
}
if(parseFloat(cargoVolumeNum) > 1000 || parseFloat(cargoVolumeNum) < 0.1){
alert("体积最大不超过1000m³,最小不小于0.1m³");
$('.loading').hide();
return;
}
if(cargoNumberNum == ""){
alert("请输入货物数量");
$('.loading').hide();
return;
}
$('.addressStart').html("");
$('.addressStart').append("<span>"+takeDistict+"<span>");
$('.addressStart').append("<span>"+takeTown+"<span>");
$('.addressStart').append("<span>"+takeAddress+"<span>");
var takeLat = "";
var takeLng = "";
var takeAddr = new LocAddr();
takeAddr.provinceName = "";
takeAddr.cityName = city;
takeAddr.districtName = takeDistict;
takeAddr.townName = takeTown;
takeAddr.postAddress = takeAddress;
var takeJson = JSON.stringify(takeAddr);
var flag = true;
if($('.basic_pickUpAddress').find('.basic_pickAll').hasClass('checked')){
$.ajax({
type:"post",
url:"api.php?act=logisticAddressSubmit",
data:{
postAddressId:0,
userProxyId:userId,
type:1,//提货地址
strJson:takeJson
},
async:false,
success:function(result){
if(result != "Failure"){
result = $.parseJSON(result);
$.each(result, function(n,value) {
takeLat = value.lat;
takeLng = value.lng;
});
}
else{
alert("请检查提货地址是否输入有误!");
$('.loading').hide();
flag = false;
}
}
});
}
else{
$.ajax({
type:"post",
url:"api.php?act=getLocCode",
data:{
city:city,
address:takeAddress
},
async:false,
success:function(result){
if(result != "Failure"){
lnglat = result.split(',');
takeLng = lnglat[1];
takeLat = lnglat[0];
}
else{
alert("请检查提货地址是否输入有误!");
$('.loading').hide();
flag = false;
}
}
});
}
if(!flag){
return;
}
var arrDistrict = $('.basic_arriCity').html();
var arrTown = $('.basic_arriVillage').html();
var arrAddress = $('.basic_arrivalKeywords').val();
$('.addressFinish').html("");
$('.addressFinish').append("<span>"+arrDistrict+"<span>");
$('.addressFinish').append("<span>"+arrTown+"<span>");
$('.addressFinish').append("<span>"+arrAddress+"<span>");
var arrLat = "";
var arrLng = "";
var arrAddr = new LocAddr();
arrAddr.provinceName = "";
arrAddr.cityName = city;
arrAddr.districtName = arrDistrict;
arrAddr.townName = arrTown;
arrAddr.postAddress = arrAddress;
var arrJson = JSON.stringify(arrAddr);
flag = true;
if($('.basic_arrivalAddress').find('.basic_pickAll').hasClass('checked')){
$.ajax({
type:"post",
url:"api.php?act=logisticAddressSubmit",
data:{
postAddressId:0,
userProxyId:userId,
type:2,//提货地址
strJson:arrJson
},
async:false,
success:function(result){
if(result != "Failure"){
result = $.parseJSON(result);
$.each(result, function(n,value) {
arrLat = value.lat;
arrLng = value.lng;
});
}
else{
alert("请检查到货地址是否输入有误!");
$('.loading').hide();
flag = false;
}
}
});
}
else{
$.ajax({
type:"post",
url:"api.php?act=getLocCode",
data:{
city:city,
address:arrAddress
},
async:false,
success:function(result){
if(result != "Failure"){
lnglat = result.split(',');
arrLng = lnglat[1];
arrLat = lnglat[0];
}
else{
alert("请检查到货地址是否输入有误!");
$('.loading').hide();
flag = false;
}
}
});
}
if(!flag){
return;
}
var takeDate = $('.basic_pickDateInput').val(); //提货日期
var takeTime = $('.pickupTimeContent').find('p').html(); //提货时间段
$('.dateDelivery').html(takeDate + " " + takeTime);
var arrSDate = $('.basic_arrivalInput').val(); //到货日期起
var arrEDate = $('.arrivalTimeContent').val(); //到货日期止
$('.dateArrival').html(arrSDate + "~" + arrEDate);
var goodsType = $('.cargoSortRight').find('.active').html();
$('.shipCargoTrait').html("");
$('.shipCargoTrait').append('<span>'+goodsType+'</span>');
var goodsFeatures = ""; //货物特征
$('.cargoFeatureRight').find('.active').each(function(){
if(goodsFeatures == ""){
goodsFeatures = $(this).html();
}
else{
goodsFeatures += "," + $(this).html();
}
});
$('.shipCargoFeatures').html("");
$('.shipCargoFeatures').append('<span>'+goodsFeatures+'</span>');
var goodsWeight = $('.cargoWeightNum').val(); //货物重量
var goodsVolume = $('.cargoVolumeNum').val(); //货物体积
var goodsCount = $('.cargoNumberNum').val(); //货物数量
if(goodsWeight != "" && goodsWeight != null){
$('.shipCargoWeight').html(goodsWeight + " kg");
}
if(goodsVolume != "" && goodsVolume != null){
$('.shipCargoVol').html(goodsVolume + " 立方米");
}
var goodsUnit = "";
if($('.cargoNumberOther').val() == ""){
goodsUnit = $('.cargoNumberUnit').find('p').html();
}
else{
goodsUnit = $('.cargoNumberOther').val();
}
if(goodsCount != "" && goodsCount != null){
$('.shipCargoNum').html(goodsCount + " " + goodsUnit);
}
var beyondLong = $('.overlength_input').val(); //超长
var beyondWidth = $('.overwidth_input').val(); //超宽
var beyondHeight = $('.overheight_input').val(); //超高
var beyondMsg = "";
if(beyondLong != "" && beyondLong != null){
beyondMsg += " 长:" + beyondLong + " 米 ";
}
if(beyondWidth != "" && beyondWidth != null){
beyondMsg += " 宽:" + beyondWidth + " 米 ";
}
if(beyondHeight != "" && beyondHeight != null){
beyondMsg += " 高:" + beyondHeight + " 米 ";
}
if(beyondMsg != ""){
$('.shipCargoLength').html(beyondMsg);
}
var goodsBeLoad = false; //是否需要装货
var goodsBeUnLoad = false; //是否需要卸货
if($('.cargoLoad').hasClass('active')){
goodsBeLoad = true;
}
if($('.cargoUnload').hasClass('active')){
goodsBeUnLoad = true;
}
if(goodsBeLoad){
$('.zhuang').html('需要装货');
}
if(goodsBeUnLoad){
$('.xie').html('需要卸货');
}
var remark = $('.cargoRemarkText').val();
$('.shipCargoRemark').html(remark);
var pdPrice = "";
$.ajax({
type:"post",
url:"api.php?act=GetDistanceMarkPrice",
data:{
nDepLng:takeLng,
nDepLat:takeLat,
nArrLng:arrLng,
nArrLat:arrLat,
dTonnage:goodsWeight,
dCubage:goodsVolume,
bLoad:goodsBeLoad,
bUnload:goodsBeUnLoad
},
async:false,
success:function(result){
$('.loading').hide();
if(result != "Failure"){
result = $.parseJSON(result);
$.each(result, function(n,value) {
pdPrice = value.total_prices;
});
$('.pdPrice').find('span').html(pdPrice + "元");
locLogic.getGoodsProvince = "";
locLogic.getGoodsCity = city;
locLogic.getGoodsDistrict = takeDistict;
locLogic.getGoodsTown = takeTown;
locLogic.getGoodsAddr = takeAddress;
locLogic.sendGoodsProvince = "";
locLogic.sendGoodsCity = city;
locLogic.sendGoodsDistrict = arrDistrict;
locLogic.sendGoodsTown = arrTown;
locLogic.sendGoodsAddr = arrAddress;
locLogic.getGoodsDate = takeDate;
locLogic.getGoodsTime = takeTime;
locLogic.sendGoodsDateStart = arrSDate;
locLogic.sendGoodsDateEnd = arrEDate;
locLogic.goodsType = goodsType;
locLogic.goodsCharacter = goodsFeatures;
locLogic.goodsWeight = goodsWeight;
locLogic.goodsVolume = goodsVolume;
locLogic.goodsQuantity = goodsCount;
locLogic.goodsUnit = goodsUnit;
locLogic.goodsBeyond = beyondMsg;
if(goodsBeLoad == false){
locLogic.goodsBeLoad = 0;
}
else{
locLogic.goodsBeLoad = 1;
}
if(goodsBeUnLoad == false){
locLogic.goodsBeUnload = 0;
}
else{
locLogic.goodsBeUnload = 1;
}
locLogic.remark = remark;
locLogic.referencePrice = pdPrice;
locLogic.myOffer = 0;
locLogic.fee = 0;
}
}
});
});
$('.submitInfo').on('click',function(){
if($('.pdPrice').find('span').html() == ""){
alert('请先完善信息');
}
else{
var myOffer = $('.myaaprice').val();
if(myOffer == ""){
alert('请输入您的出价');
}
else{
locLogic.myOffer = myOffer; //我的出价
logisticJson = JSON.stringify(locLogic);
$.ajax({
type:"post",
url:"api.php?act=LogisticSubmit",
data:{
strJson:logisticJson
},
async:true,
success:function(result){
if(result == "success"){
window.location.href = "issueSuccess.php?type=release";
}
}
});
}
}
});
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。