|
@@ -74,6 +74,7 @@
|
|
|
<form action="${path}/admin/customer/update_customer" method="post" class="form form-horizontal" id="form-customer-add" onkeydown="if(event.keyCode==13)return false;">
|
|
|
|
|
|
<input type="hidden" id="customerId" name="customerId" value="${customerInfo.customerId!''}">
|
|
|
+ <input type="hidden" id="relationId" name="relationId" value="${cmRelation.relationId!''}">
|
|
|
<input type="hidden" name="customerIsVisit" value="1" >
|
|
|
|
|
|
<input type="hidden" id="isNeedSelectOrder" name="isNeedSelectOrder" value="${customerInfo.isNeedSelectOrder}">
|
|
@@ -448,32 +449,67 @@
|
|
|
<input type="text" class="input-text" value="${cmRelation.relationAlipay!''}" placeholder="邮费转账 支付宝账户" id="relationAlipay" name="relationAlipay" errormsg="邮费转账账户!">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row cl recipientAddress" id="" style="display: none;">
|
|
|
+
|
|
|
+ <#--<div class="row cl recipientAddress relation_address" id="TDScollect" style="display: none;" code="returnCode" msg="resultMsg" data="returnMsg">-->
|
|
|
+ <#--<input type="hidden" id="addressInfo">-->
|
|
|
+ <#--<label class="form-label col-1 col-sm-1"></label>-->
|
|
|
+ <#--<div class="formControls col-2 col-sm-2" style="position: relative;">-->
|
|
|
+ <#--<span class="select-box">-->
|
|
|
+ <#--<select name="provinceNumber" class="select" id="province"-->
|
|
|
+ <#--ulcValName="province" ulcValId="provinceId" ulcURL="/address/list_province" ulcMsg="" ulcList="provinceList"-->
|
|
|
+ <#--ulcIsFristSelect="true" ulcFristSelectMsg="请选择省份">-->
|
|
|
+ <#--</select>-->
|
|
|
+ <#--</span>-->
|
|
|
+ <#--</div>-->
|
|
|
+ <#--<div class="formControls col-2 col-sm-2">-->
|
|
|
+ <#--<span class="select-box">-->
|
|
|
+ <#--<select name="cityNumber" class="select" id="city"-->
|
|
|
+ <#--ulcValName="city" ulcValId="cityId" ulcURL="/address/list_city?provinceId=" ulcMsg="" ulcList="cityList"-->
|
|
|
+ <#--ulcIsFristSelect="true" ulcFristSelectMsg="请选择市">-->
|
|
|
+ <#--</select>-->
|
|
|
+ <#--</span>-->
|
|
|
+ <#--</div>-->
|
|
|
+ <#--<div class="formControls col-2 col-sm-2" style="position: relative;">-->
|
|
|
+ <#--<span class="select-box">-->
|
|
|
+ <#--<select name="areaNumber" class="select" id="district"-->
|
|
|
+ <#--ulcValName="district" ulcValId="districtId" ulcURL="/address/list_district?cityId=" ulcMsg="" ulcList="districtList"-->
|
|
|
+ <#--ulcIsFristSelect="true" ulcFristSelectMsg="请选择区/县">-->
|
|
|
+ <#--</select>-->
|
|
|
+ <#--</span>-->
|
|
|
+ <#--</div>-->
|
|
|
+ <#--<input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">-->
|
|
|
+ <#--</div>-->
|
|
|
+
|
|
|
+ <div class="row cl recipientAddress relation_address" style="display: none;" code="returnCode" msg="resultMsg" data="returnMsg">
|
|
|
<input type="hidden" id="addressInfo">
|
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
|
- <div class="formControls col-2 col-sm-2">
|
|
|
+ <div class="formControls col-2 col-sm-2" style="position: relative;">
|
|
|
<span class="select-box">
|
|
|
- <select id="province" class="select" name="provinceNumber">
|
|
|
-
|
|
|
- </select>
|
|
|
- </span>
|
|
|
+ <select name="provinceNumber" class="select" id="province"
|
|
|
+ ulcValName="province" ulcValId="provinceId" ulcURL="/address/list_province" ulcMsg="" ulcList="provinceList"
|
|
|
+ ulcIsFristSelect="true" ulcFristSelectMsg="请选择省份">
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<div class="formControls col-2 col-sm-2">
|
|
|
<span class="select-box">
|
|
|
- <select id="city" class="select" name="cityNumber">
|
|
|
+ <select name="cityNumber" class="select" id="city"
|
|
|
+ ulcValName="city" ulcValId="cityId" ulcURL="/address/list_city?provinceId=" ulcMsg="" ulcList="cityList"
|
|
|
+ ulcIsFristSelect="true" ulcFristSelectMsg="请选择市">
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div class="formControls col-2 col-sm-2">
|
|
|
+ <div class="formControls col-2 col-sm-2" style="position: relative;">
|
|
|
<span class="select-box">
|
|
|
- <select id="district" class="select" name="areaNumber">
|
|
|
+ <select name="areaNumber" class="select" id="district"
|
|
|
+ ulcValName="district" ulcValId="districtId" ulcURL="/address/list_district?cityId=" ulcMsg="" ulcList="districtList"
|
|
|
+ ulcIsFristSelect="true" ulcFristSelectMsg="请选择区/县">
|
|
|
</select>
|
|
|
</span>
|
|
|
</div>
|
|
|
-
|
|
|
<input type="hidden" name="relationSendMergeAddress" id="relationSendMergeAddress">
|
|
|
-
|
|
|
</div>
|
|
|
+
|
|
|
<div class="row cl recipientAddress" id="" style="display: none;">
|
|
|
<label class="form-label col-1 col-sm-1"></label>
|
|
|
<div class="formControls col-5 col-sm-5">
|
|
@@ -710,9 +746,9 @@
|
|
|
|
|
|
<script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
|
|
|
<script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
|
|
|
-<script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
|
|
|
+<#--<script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>-->
|
|
|
+<#--<script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>-->
|
|
|
+<#--<script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>-->
|
|
|
<#--<script type="text/javascript" src="${path}/common/lib/cm.lib/dimensions.js"></script>-->
|
|
|
<script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
|
|
|
|
|
@@ -729,6 +765,8 @@
|
|
|
|
|
|
/*加载TDS地址信息*/
|
|
|
var addressUlc = init_address($(".init_address"));
|
|
|
+ //处理方式 地址信息
|
|
|
+ var ulcRelationAddress = init_address($(".relation_address"));
|
|
|
|
|
|
var customerId = "${customerInfo.customerId!''}";
|
|
|
|
|
@@ -955,24 +993,27 @@
|
|
|
* 设置省市区
|
|
|
*/
|
|
|
function setAddressInfo(){
|
|
|
- var proId = setPro(null,1); //创建省
|
|
|
- <#if cmRelation.provinceNumber?? >
|
|
|
- var proId = ${cmRelation.provinceNumber!''};
|
|
|
- $("#province option[value='"+ proId +"']").attr("selected","true"); //设置省
|
|
|
- </#if>
|
|
|
-
|
|
|
- var cityId = setCity(null,proId,2);
|
|
|
- <#if cmRelation.cityNumber?? >
|
|
|
- var cityId = ${cmRelation.cityNumber!''};
|
|
|
- $("#city option[value='" + cityId + "']").attr("selected", "true"); //设置市
|
|
|
- </#if>
|
|
|
-
|
|
|
- setDistrict(null, cityId, 2);
|
|
|
- <#if cmRelation.areaNumber?? >
|
|
|
- var disId = ${cmRelation.areaNumber!''};
|
|
|
- $("#district option[value='" + disId + "']").attr("selected", "true"); //设置地区
|
|
|
- isInitAddress = 1;
|
|
|
- </#if>
|
|
|
+ ulcRelationAddress.setUlcById(0,${cmRelation.provinceNumber!''},${cmRelation.cityNumber!''},${cmRelation.areaNumber!''});
|
|
|
+
|
|
|
+ <#--var proId = setPro(null,1); //创建省-->
|
|
|
+ <#--<#if cmRelation.provinceNumber?? >-->
|
|
|
+ <#--var proId = ;-->
|
|
|
+ <#--$("#province option[value='"+ proId +"']").attr("selected","true"); //设置省-->
|
|
|
+ <#--</#if>-->
|
|
|
+
|
|
|
+ <#--var cityId = setCity(null,proId,2);-->
|
|
|
+ <#--<#if cmRelation.cityNumber?? >-->
|
|
|
+ <#--var cityId = ${cmRelation.cityNumber!''};-->
|
|
|
+ <#--$("#city option[value='" + cityId + "']").attr("selected", "true"); //设置市-->
|
|
|
+ <#--</#if>-->
|
|
|
+
|
|
|
+ <#--setDistrict(null, cityId, 2);-->
|
|
|
+ <#--<#if cmRelation.areaNumber?? >-->
|
|
|
+ <#--var disId = ${cmRelation.areaNumber!''};-->
|
|
|
+ <#--$("#district option[value='" + disId + "']").attr("selected", "true"); //设置地区-->
|
|
|
+ <#--</#if>-->
|
|
|
+
|
|
|
+ isInitAddress = 1;
|
|
|
}
|
|
|
</script>
|
|
|
<!--/请在上方写此页面业务相关的脚本-->
|