Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
b88bf465
Commit
b88bf465
authored
Mar 27, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进3
parent
d684813b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
148 deletions
+71
-148
customer_gj.css
public/app/css/customer_gj.css
+2
-0
customer_gj.js
public/app/js/customer_gj.js
+69
-148
No files found.
public/app/css/customer_gj.css
View file @
b88bf465
...
...
@@ -162,6 +162,8 @@
margin-left
:
0rem
!important
;
}
#business_area
{
display
:
block
;
clear
:
both
;
height
:
.6rem
;
width
:
5rem
;
border-radius
:
0.14rem
;
...
...
public/app/js/customer_gj.js
View file @
b88bf465
...
...
@@ -65,6 +65,75 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
var
_this
=
this
;
clearInterval
(
_this
.
testBtn
);
},
loadMain
:
function
()
{
var
_this
=
this
;
_this
.
userid
=
localStorage
.
getItem
(
'id'
);
$
.
ajax
({
url
:
ServerHostTempC
+
"/broker/getFollowUpList"
,
type
:
'POST'
,
data
:
{
'report_id'
:
_applyId
},
timeout
:
30000
,
beforeSend
:
function
()
{},
dataType
:
"json"
,
cache
:
false
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'code'
]
==
'200'
||
data
[
'code'
]
==
'300'
)
{
_this
.
user_type
=
data
.
data
[
0
][
'user_type'
];
_this
.
decision_maker
=
data
.
data
[
0
][
'decision_maker'
];
_this
.
industry_type
=
data
.
data
[
0
][
'industry_type'
];
_this
.
area_requirement
=
data
.
data
[
0
][
'area_requirement'
];
_this
.
price_requirement
=
data
.
data
[
0
][
'price_requirement'
];
_this
.
business_area
=
data
.
data
[
0
][
'business_area'
];
_this
.
other_area
=
data
.
data
[
0
][
'other_area'
];
_this
.
explain
=
data
.
data
[
0
][
'explain'
];
_this
.
imgShowList
.
push
({
'name'
:
data
.
data
[
0
][
'explain_img'
]
});
//区域自动获取,并赋值
_this
.
getArea
({
'getType'
:
'province'
},
function
(
_data
){
_this
.
provinceList
=
_data
;
_this
.
province
=
data
.
data
[
0
][
'province'
]?
data
.
data
[
0
][
'province'
]:
'310000'
;
_this
.
getArea
({
'getType'
:
'city'
,
'code'
:
_this
.
province
},
function
(
_data2
){
_this
.
cityList
=
_data2
;
_this
.
city
=
data
.
data
[
0
][
'city'
]?
data
.
data
[
0
][
'city'
]:
_data2
[
0
][
'code'
];
_this
.
getArea
({
'getType'
:
'district'
,
'code'
:
_this
.
city
},
function
(
_data3
){
_this
.
districtList
=
_data3
;
_this
.
district
=
data
.
data
[
0
][
'district'
]?
data
.
data
[
0
][
'district'
]:
_data3
[
0
][
'code'
];
});
});
});
}
else
{
layerTipsX
(
data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'上传失败,请重试'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
"timeout"
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
_this
.
uploadImgFlag
=
false
;
}
});
},
getArea
:
function
(
_obj
,
fn
){
var
_this
=
this
,
_data
=
{};
...
...
@@ -133,154 +202,6 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
_this
.
district
=
_data3
[
0
][
'code'
];
});
},
loadMain
:
function
()
{
var
_this
=
this
;
_this
.
userid
=
localStorage
.
getItem
(
'id'
);
$
.
ajax
({
url
:
ServerHostTempC
+
"/broker/getFollowUpList"
,
type
:
'POST'
,
data
:
{
'report_id'
:
_applyId
},
timeout
:
30000
,
beforeSend
:
function
()
{},
dataType
:
"json"
,
cache
:
false
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'code'
]
==
'200'
)
{
_this
.
user_type
=
data
.
data
[
0
][
'user_type'
];
_this
.
decision_maker
=
data
.
data
[
0
][
'decision_maker'
];
_this
.
industry_type
=
data
.
data
[
0
][
'industry_type'
];
_this
.
area_requirement
=
data
.
data
[
0
][
'area_requirement'
];
_this
.
price_requirement
=
data
.
data
[
0
][
'price_requirement'
];
_this
.
business_area
=
data
.
data
[
0
][
'business_area'
];
_this
.
other_area
=
data
.
data
[
0
][
'other_area'
];
_this
.
explain
=
data
.
data
[
0
][
'explain'
];
_this
.
imgShowList
.
push
({
'name'
:
data
.
data
[
0
][
'explain_img'
]
});
//区域自动获取,并赋值
_this
.
getArea
({
'getType'
:
'province'
},
function
(
_data
){
_this
.
provinceList
=
_data
;
_this
.
province
=
data
.
data
[
0
][
'province'
]?
data
.
data
[
0
][
'province'
]:
'310000'
;
_this
.
getArea
({
'getType'
:
'city'
,
'code'
:
_this
.
province
},
function
(
_data2
){
_this
.
cityList
=
_data2
;
_this
.
city
=
data
.
data
[
0
][
'city'
]?
data
.
data
[
0
][
'city'
]:
_data2
[
0
][
'code'
];
_this
.
getArea
({
'getType'
:
'district'
,
'code'
:
_this
.
city
},
function
(
_data3
){
_this
.
districtList
=
_data3
;
_this
.
district
=
data
.
data
[
0
][
'district'
]?
data
.
data
[
0
][
'district'
]:
_data3
[
0
][
'code'
];
});
});
});
}
else
{
layerTipsX
(
data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'上传失败,请重试'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
"timeout"
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
_this
.
uploadImgFlag
=
false
;
}
});
// $.ajax({
// url: ServerHostTempC + "/applies/genjing_get",
// data: {
// "apply_id": _applyId,
// "token":_token
// },
// type: "POST",
// dataType: "json",
// beforeSend: function () {},
// success: function (response){
// $("#content1").val(response.data.username);//第一决策人
// //$("#area_city").val(response.data.ctiy);//请输入居住信息
// //$("#area_area").val(response.data.district);//请输入居住信息
// //$("#area_q").val(response.data.business);//请输入居住信息
// $("#content_area").val(response.data.content_area);//请输入居住信息
// $("#content_area1").val(response.data.other);//补充说明
// each_city=response.data.business;//商圈信息
//
// if(response.data.client=='A类(成交意愿较强)'){
// $('#btn1').attr("checked",true);
// }
// if(response.data.client=='B类(成交意愿中等)'){
// $('#btn2').attr("checked",true);
// }
// if(response.data.client=='C类(成交意愿较弱)'){
// $('#btn3').attr("checked",true);
// }
// if(response.data.use=='轻餐饮'){
// $('#btn4').attr("checked",true);
// }
// if(response.data.use=='重餐饮'){
// $('#btn5').attr("checked",true);
// }
// if(response.data.use=='百货零售'){
// $('#btn6').attr("checked",true);
// }
// if(response.data.use=='服装'){
// $('#btn7').attr("checked",true);
// }
// if(response.data.use=='亲子教育'){
// $('#btn8').attr("checked",true);
// }
// if(response.data.use=='休闲娱乐'){
// $('#btn9').attr("checked",true);
// }
// if(response.data.area=='30㎡以内'){
// $('#area1').attr("checked",true);
// }
// if(response.data.area=='30-60㎡'){
// $('#area2').attr("checked",true);
// }
// if(response.data.area=='60-100㎡'){
// $('#area3').attr("checked",true);
// }
// if(response.data.area=='100㎡以上'){
// $('#area4').attr("checked",true);
// }
// if(response.data.supplement=='月租金10000以内'){
// $('#money1').attr("checked",true);
// }
// if(response.data.supplement=='月租金10000-30000元'){
// $('#money2').attr("checked",true);
// }
// if(response.data.supplement=='月租金30000元以上'){
// $('#money3').attr("checked",true);
// }
// if(response.data.ctiy){
// getArea(response.data.ctiy, response.data.district);//获取市和区列表
// }else{
// getArea("上海市","黄浦区");//获取市和区列表
// $("#area_q").val(each_city);
// }
// },
// error: function (XMLHttpRequest, textStatus, errorThrown) {
// console.info("XMLHttpRequest.status:"+XMLHttpRequest.status);
// console.info("XMLHttpRequest.readyState:"+XMLHttpRequest.readyState);
// console.info("textStatus:"+textStatus);
// }
// });
},
deleteimgMain
:
function
(
payload
){
console
.
log
(
payload
);
this
.
imgShowList
=
this
.
imgShowList
.
filter
(
function
(
item
,
index
,
array
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment