Commit 94fd2c81 authored by agping's avatar agping

推广链接 参数修改

parent b36a5db1
...@@ -169,12 +169,18 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -169,12 +169,18 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
var p_agent_id = business.agent_id_choose_p; var p_agent_id = business.agent_id_choose_p;
var type = $('#shop_type').val(); var type = $('#shop_type').val();
var city = $('.shop_city_choose_site_list').val(); var city = $('.shop_city_choose_site_list').val();
//推广杭州所有商铺
if(city == '杭州市'){
p_district_id = '';
p_store_id = '';
p_agent_id = '';
};
if(p_store_id == null){ if(p_store_id == null){
p_store_id = ''; p_store_id = '';
} }
var _shopLink='https://www.tonglianjituan.com/shop_link.html?' + 'p_district_id' + '=' + p_district_id + '&' + 'p_store_id' + '=' + p_store_id + '&' + 'p_agent_id' + '=' + p_agent_id + '&' + 'type' + '=' + (type == -1 ? 1 : type) + '&' + 'city' + '=' + encodeURIComponent(city==""?'上海市':city) + '&' + 'generalizeId' + '=' + business.generalize_id; var _shopLink='https://www.tonglianjituan.com/shop_link.html?' + 'p_district_id' + '=' + p_district_id + '&' + 'p_store_id' + '=' + p_store_id + '&' + 'p_agent_id' + '=' + p_agent_id + '&' + 'type' + '=' + (type == -1 ? 1 : type) + '&' + 'city' + '=' + encodeURIComponent(city==""?'上海市':city) + '&' + 'generalizeId' + '=' + business.generalize_id;
if(p_district_id || p_store_id || p_agent_id){ if((city == '杭州市')||p_district_id || p_store_id || p_agent_id){
$('#link_content').html(_shopLink); $('#link_content').html(_shopLink);
}else{ }else{
$('#link_content').html('进行部门 门店 个人筛选 才会有 推广链接产生'); $('#link_content').html('进行部门 门店 个人筛选 才会有 推广链接产生');
...@@ -189,11 +195,17 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -189,11 +195,17 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
var p_agent_id = business.agent_id_choose_p; var p_agent_id = business.agent_id_choose_p;
var type = $('#shop_type').val(); var type = $('#shop_type').val();
var city = $('.shop_city_choose_site_list').val(); var city = $('.shop_city_choose_site_list').val();
//推广杭州所有商铺
if(city == '杭州市'){
p_district_id = '';
p_store_id = '';
p_agent_id = '';
};
if(p_store_id == null){ if(p_store_id == null){
p_store_id = ''; p_store_id = '';
} }
var _shopLink='https://www.tonglianjituan.com/shop_link.html?' + 'p_district_id' + '=' + p_district_id + '&' + 'p_store_id' + '=' + p_store_id + '&' + 'p_agent_id' + '=' + p_agent_id + '&' + 'type' + '=' + (type == -1 ? 1 : type) + '&' + 'city' + '=' + encodeURIComponent(city==""?'上海市':city) + '&' + 'generalizeId' + '=' + business.generalize_id; var _shopLink='https://www.tonglianjituan.com/shop_link.html?' + 'p_district_id' + '=' + p_district_id + '&' + 'p_store_id' + '=' + p_store_id + '&' + 'p_agent_id' + '=' + p_agent_id + '&' + 'type' + '=' + (type == -1 ? 1 : type) + '&' + 'city' + '=' + encodeURIComponent(city==""?'上海市':city) + '&' + 'generalizeId' + '=' + business.generalize_id;
if(p_district_id || p_store_id || p_agent_id){ if((city == '杭州市')||p_district_id || p_store_id || p_agent_id){
$('#link_content').html(_shopLink); $('#link_content').html(_shopLink);
}else{ }else{
$('#link_content').html('进行部门 门店 个人筛选 才会有 推广链接产生'); $('#link_content').html('进行部门 门店 个人筛选 才会有 推广链接产生');
......
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