Commit f3172f35 authored by agping's avatar agping

3

parent 9960dd02
...@@ -566,8 +566,8 @@ ...@@ -566,8 +566,8 @@
<option value="2">女</option> <option value="2">女</option>
</select>--> </select>-->
</td> </td>
<td> <td class="isShowTai">
<span class="fore-span">业态:</span> <span class="fore-span">业态范围:</span>
<span class="fore-span industry_type_two"></span> <span class="fore-span industry_type_two"></span>
</td> </td>
...@@ -648,7 +648,7 @@ ...@@ -648,7 +648,7 @@
<span class="fore-span">客户来源:</span> <span class="fore-span">客户来源:</span>
<span class="user-source-details fore-span">网络</span> <span class="user-source-details fore-span">网络</span>
</td> </td>
<td> <td class="isShowTai">
<span class="fore-span">具体业态:</span> <span class="fore-span">具体业态:</span>
<span class="concrete_industry fore-span"></span> <span class="concrete_industry fore-span"></span>
</td> </td>
......
...@@ -670,7 +670,7 @@ ...@@ -670,7 +670,7 @@
</div> </div>
</div> </div>
<div class="form-group form-group-bottom col-sm-6" class="isShowYetai"> <div class="form-group form-group-bottom col-sm-6" class="isShowYetai">
<label class="col-sm-4 control-label">业态:</label> <label class="col-sm-4 control-label">业态范围</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select class="form-control left-width" id="industry_type2"> <select class="form-control left-width" id="industry_type2">
<option value="">业态选择</option> <option value="">业态选择</option>
...@@ -911,7 +911,7 @@ ...@@ -911,7 +911,7 @@
<input class="form-control btn6 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="concrete_industryEdit" name="" type="text" placeholder="选填"> <input class="form-control btn6 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="concrete_industryEdit" name="" type="text" placeholder="选填">
</td> </td>
<td class="isShowYetaiEdit"> <td class="isShowYetaiEdit">
<span class="fore-span ld-Marheight">业态:</span> <span class="fore-span ld-Marheight">业态范围:</span>
<select class="form-control btn6 ld-Marheight industry_type_two_1" name="industry_type_two"> <select class="form-control btn6 ld-Marheight industry_type_two_1" name="industry_type_two">
<option>轻餐饮</option> <option>轻餐饮</option>
<option>重餐饮</option> <option>重餐饮</option>
......
...@@ -63,7 +63,9 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c ...@@ -63,7 +63,9 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
isExitsNew:0, isExitsNew:0,
isExitsNewInfo:1, isExitsNewInfo:1,
detailTabIndexFollowRent:3,//标识求租 已租 detailTabIndexFollowRent:3,//标识求租 已租
entrustType:0, entrustType:0,//客户详情 标识客户类型
yueDaiKanurl:'',//搜索办公楼
saveDaiKanurl:'',//保存约带看
init: function() { init: function() {
$("body").append(template); $("body").append(template);
user.isExitsNew=0; user.isExitsNew=0;
...@@ -949,8 +951,13 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c ...@@ -949,8 +951,13 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
console.log(start_time); console.log(start_time);
if(!user.isAjaxSaving){ if(!user.isAjaxSaving){
user.isAjaxSaving = true; user.isAjaxSaving = true;
if(user.entrustType == 0){
user.saveDaiKanurl = '/broker/report';//商铺
}else{
user.saveDaiKanurl = '/office/report';//办公楼
}
$.ajax({ $.ajax({
url: '/broker/report', url: user.saveDaiKanurl,
type: 'POST', type: 'POST',
async: true, async: true,
timeout: 30000, timeout: 30000,
...@@ -1004,8 +1011,13 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c ...@@ -1004,8 +1011,13 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
_markAreaObj2.html(_htmlTemp); _markAreaObj2.html(_htmlTemp);
}, },
search_phone_look: function(n) { //商铺名选择 search_phone_look: function(n) { //商铺名选择
if(user.entrustType == 0){
user.yueDaiKanurl = '/broker/getShopListByReport';//商铺
}else{
user.yueDaiKanurl = '/office/getRoomListByReport';//办公楼
}
$.ajax({ $.ajax({
url:'/broker/getShopListByReport', url:user.yueDaiKanurl,
type: 'GET', type: 'GET',
async: true, async: true,
data: { data: {
...@@ -1137,9 +1149,6 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c ...@@ -1137,9 +1149,6 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
if(data.data) { if(data.data) {
user.entrustType == data.data.user_info.entrust_type; user.entrustType == data.data.user_info.entrust_type;
$(".cus_id").html(data.data.user_info.user_id); //客户编号 $(".cus_id").html(data.data.user_info.user_id); //客户编号
// $(".cus_name").val(data.data.user_info.user_name); //姓名
// $("input[name=area_demand]").val(data.data.user_info.area_demand * 1);
// $(".sex").val(data.data.user_info.sex); //性别
$(".cus_name").html(data.data.user_info.user_name); //姓名 $(".cus_name").html(data.data.user_info.user_name); //姓名
$(".area_demand").html(data.data.user_info.area_demand * 1); $(".area_demand").html(data.data.user_info.area_demand * 1);
if(data.data.user_info.sex*1 == 1){ if(data.data.user_info.sex*1 == 1){
...@@ -1171,7 +1180,12 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c ...@@ -1171,7 +1180,12 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
$("#take_look_id").html(data.data.user_info.user_id); //约带看id $("#take_look_id").html(data.data.user_info.user_id); //约带看id
$(".concrete_industry").html(data.data.user_info.concrete_industry);//具体业态 $(".concrete_industry").html(data.data.user_info.concrete_industry);//具体业态
$(".weixin_nick").html(data.data.user_info.weixin_nick);//微信号 $(".weixin_nick").html(data.data.user_info.weixin_nick);//微信号
if(user.entrustType == 1){
$(".isShowTai").hide();
}else{
$(".isShowTai").show();
}
//收藏客户 取消收藏 //收藏客户 取消收藏
if(data.data.is_collect == 2){ if(data.data.is_collect == 2){
$('#user_is_collect').html('收藏'); $('#user_is_collect').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