Commit b2255b5b authored by xinyuandu's avatar xinyuandu

新增个人商铺按钮

parent 4d7edc4a
......@@ -163,7 +163,7 @@
<a href="#modal_modify_user" data-toggle="modal" class="btn btn-info btn3 margin-top-ld"><i class="icon-plus"></i>
批量修改客方</a>
<!-- 本人商铺 -->
<!--<span class="btn btn-info btn3 ld-Marheight" id="persional_shop">本人商铺</span>-->
<span class="btn btn-info btn3 ld-Marheight" id="persional_shop">本人商铺</span>
</form>
</td>
......
......@@ -113,9 +113,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
console.log(user_info_obj);
$('#persional_shop').unbind('click').bind('click',function(){
if ( business.all_shop ){
$('#persional_shop').html("个人商铺");
} else {
$('#persional_shop').html("所有商铺");
} else {
$('#persional_shop').html("个人商铺");
}
business.all_shop = !business.all_shop;
business.getList(1);
......@@ -807,7 +807,7 @@ if(data.code == 200) {
params.area = $('#area_id').val(); //面积筛选
//添加个人商铺和所有商铺选择功能
/*params.userinfo = this.all_shop ? '' : JSON.parse(decodeURIComponent(localStorage.getItem('userinfo'))).id ;*/
params.dish_id = this.all_shop ? '' : JSON.parse(decodeURIComponent(localStorage.getItem('userinfo'))).id ;
if($('#user_city_choose').val() == 310100){
params.city = '上海市' ;
......
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