Commit a359ef7c authored by xishifeng's avatar xishifeng

新增,暂存

parent 2148152a
...@@ -205,21 +205,23 @@ ...@@ -205,21 +205,23 @@
<li class="list-group-item"> <li class="list-group-item">
<div class="form-group"> <div class="form-group">
<label for="shangpuType">商铺类型</label> <label for="shangpuType">商铺类型</label>
<select class="form-control" name="shangpuType" id="shangpuType"> <select class="form-control" name="shangpuType" id="shangpuType" data-alert="请选择商铺类型">
<option value="0">商场</option> <option value="0">商场</option>
<option value="1">街铺</option> <option value="1">街铺</option>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="show_all">是否给商户公开</label> <label for="show_all">是否给商户公开</label>
<select class="form-control" name="showCd" id="showCd"> <select class="form-control" name="showCd" id="showCd" data-alert="请选择是否给商户公开">
<option value="">请选择</option>
<option value="0"></option> <option value="0"></option>
<option value="1"></option> <option value="1"></option>
</select> </select>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="exclusiveType">是否独家</label> <label for="exclusiveType">是否独家</label>
<select class="form-control" name="exclusiveType" id="exclusiveType"> <select class="form-control" name="exclusiveType" id="exclusiveType" data-alert="请选择是否独家">
<option value="">请选择</option>
<option value="0"></option> <option value="0"></option>
<option value="1"></option> <option value="1"></option>
</select> </select>
...@@ -282,7 +284,7 @@ ...@@ -282,7 +284,7 @@
<label for="internalName">对内商铺名称</label> <label for="internalName">对内商铺名称</label>
<input type="text" class="form-control" placeholder="请输入" name="internalName" id="internalName" data-alert="请填写对内商铺名称!"> <input type="text" class="form-control" placeholder="请输入" name="internalName" id="internalName" data-alert="请填写对内商铺名称!">
</div> </div>
<div class="form-group"> <div class="form-group show-c-part">
<label for="foreignName">对商户显示的商铺名称</label> <label for="foreignName">对商户显示的商铺名称</label>
<input type="text" class="form-control" placeholder="请输入" name="foreignName" id="foreignName" data-alert="请填写对外商铺名称!"> <input type="text" class="form-control" placeholder="请输入" name="foreignName" id="foreignName" data-alert="请填写对外商铺名称!">
</div> </div>
...@@ -368,7 +370,7 @@ ...@@ -368,7 +370,7 @@
<input type="text" class="form-control input-100-width" readonly="readonly" id="latitude" name="latitude" data-alert="请通过地址定位获取经纬度!"> <input type="text" class="form-control input-100-width" readonly="readonly" id="latitude" name="latitude" data-alert="请通过地址定位获取经纬度!">
</div> </div>
</li> </li>
<li class="list-group-item"> <li class="list-group-item show-c-part">
<div class="form-group"> <div class="form-group">
<label for="">对商户显示的地址</label> <label for="">对商户显示的地址</label>
<input type="text" class="form-control input-100-width" title="与对内地址一致,请通过修改对内地址,来改变此值" readonly="readonly" id="province_external" value="上海" /> <input type="text" class="form-control input-100-width" title="与对内地址一致,请通过修改对内地址,来改变此值" readonly="readonly" id="province_external" value="上海" />
...@@ -418,7 +420,7 @@ ...@@ -418,7 +420,7 @@
<label for="">对内项目优势</label> <label for="">对内项目优势</label>
<textarea class="form-control textarea-500-width" rows="3" id="internalYoushi" data-alert="请填写对内项目优势!"></textarea> <textarea class="form-control textarea-500-width" rows="3" id="internalYoushi" data-alert="请填写对内项目优势!"></textarea>
</div> </div>
<div class="form-group full-width-100"> <div class="form-group full-width-100 show-c-part">
<label for=""> 对商户显示的项目优势</label> <label for=""> 对商户显示的项目优势</label>
<textarea class="form-control textarea-500-width" rows="3" id="foreignYoushi" data-alert="请填写对外项目优势!"></textarea> <textarea class="form-control textarea-500-width" rows="3" id="foreignYoushi" data-alert="请填写对外项目优势!"></textarea>
</div> </div>
......
...@@ -430,12 +430,39 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () { ...@@ -430,12 +430,39 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
}else{ }else{
_jinchangPriceObj.parent().prev().html('进场费'); _jinchangPriceObj.parent().prev().html('进场费');
$('.shangchang-show-part').show(); $('.shangchang-show-part').show();
} };
});
_showCdObj.change(function(){
if($(this).val() == '1'){
//不显示给C端
$('.show-c-part').hide();
}else{
//显示给C端
$('.show-c-part').show();
};
}); });
$('#saveBtn').click(function(e){ $('#saveBtn').click(function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
//多个input输入框验证
var _isBreakFlag = false;
$.each([
_showCdObj,//显示给C端用户看
_exclusiveTypeObj,//是否独家
], function(i,item) {
if($.trim(item.val()) == ''){
alert(item.data('alert'));
_isBreakFlag = true;
return false;
};
});
if(_isBreakFlag){
return false;
};
//独家里的选项验证 //独家里的选项验证
if(_exclusiveTypeObj.val() == '1'){ if(_exclusiveTypeObj.val() == '1'){
if(_exclusiveDate1Obj.val() == '' || _exclusiveDate2Obj.val() == ''){ if(_exclusiveDate1Obj.val() == '' || _exclusiveDate2Obj.val() == ''){
...@@ -488,8 +515,6 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () { ...@@ -488,8 +515,6 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
return false; return false;
}; };
//多个input输入框验证
var _isBreakFlag = false;
$.each([ $.each([
_internalNameObj,//对内商铺名称 _internalNameObj,//对内商铺名称
_foreignNameObj,//对外商铺名称 _foreignNameObj,//对外商铺名称
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment