Commit 3ec168ff authored by xishifeng's avatar xishifeng

暂存1

parent cd3d8c10
...@@ -440,8 +440,9 @@ ...@@ -440,8 +440,9 @@
</div> </div>
<script id="my_tpl_landlord_phone1" type="text/template"> <script id="my_tpl_landlord_phone1" type="text/template">
<div class="form-group phone-list-container landlord-form-group"> <div class="form-group phone-list-container">
<input type="text" class="form-control" placeholder="请输入房东称呼" /> <input type="text" class="form-control" placeholder="请输入房东称呼" />
<input type="tel" class="form-control phone_jia" placeholder="请输入房东手机号" data-alert="请填写房东手机号!"><img src="/resource/image/search_gb.png" class="input-cancel-pic"> <input type="tel" class="form-control phone_jia" placeholder="请输入房东手机号" name="landlordPhone" data-alert="请填写房东手机号!">
<img src="/resource/image/search_gb.png" class="input-cancel-pic"></div>
</div> </div>
</script> </script>
\ No newline at end of file
...@@ -13,6 +13,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra ...@@ -13,6 +13,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
_source = getUrlParam('source'), _source = getUrlParam('source'),
_sublet_id = getUrlParam('sublet_id'), _sublet_id = getUrlParam('sublet_id'),
_doc = $(document), _doc = $(document),
_tpl_landlord_phone1 = $('#my_tpl_landlord_phone1').html(),
_urlCut = location.origin + '/resource/lib/Attachments/images/', //要截取的部分url _urlCut = location.origin + '/resource/lib/Attachments/images/', //要截取的部分url
_loadMainItem = $('#main_loading_pic'), //整个页面的加载图标 _loadMainItem = $('#main_loading_pic'), //整个页面的加载图标
_shangpuTypeObj = $('#shangpuType'), //商铺类型 _shangpuTypeObj = $('#shangpuType'), //商铺类型
...@@ -654,9 +655,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra ...@@ -654,9 +655,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart', 'bootstra
e.stopPropagation(); e.stopPropagation();
var _this = $(this); var _this = $(this);
var _maxLen = 3; var _maxLen = 3;
if(_this.prev().find('.phone_jia').length < _maxLen) {
_this.prev().append(_tpl_landlord_phone1);
}else{
alert('最多添加' + _maxLen + '个');
return false;
}
}); });
//号码搜索(含房东手机号部分),点击关闭,删除父节点
_doc.on('click', '.input-cancel-pic', function() { _doc.on('click', '.input-cancel-pic', function() {
$(this).parent().remove(); $(this).parent().remove();
}); });
......
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