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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
147 deletions
+70
-147
customer_gj.css
public/app/css/customer_gj.css
+2
-0
customer_gj.js
public/app/js/customer_gj.js
+68
-147
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,74 +65,7 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
var
_this
=
this
;
clearInterval
(
_this
.
testBtn
);
},
getArea
:
function
(
_obj
,
fn
){
var
_this
=
this
,
_data
=
{};
if
(
_obj
[
'getType'
]
===
'district'
){
_data
[
'parent_code'
]
=
_obj
[
'code'
];
}
else
if
(
_obj
[
'getType'
]
===
'city'
){
_data
[
'parent_code'
]
=
_obj
[
'code'
];
}
else
if
(
_obj
[
'getType'
]
===
'province'
){
}
else
{}
$
.
ajax
({
url
:
"/broker/getregions"
,
type
:
'GET'
,
timeout
:
30000
,
data
:
_data
,
beforeSend
:
function
()
{},
dataType
:
"json"
,
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
fn
&&
fn
(
_data
.
data
);
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'上传失败,请重试'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
"timeout"
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
changeProvince
:
function
(
e
){
var
_this
=
this
;
_this
.
getArea
({
'getType'
:
'city'
,
'code'
:
_this
.
province
},
function
(
_data2
){
_this
.
cityList
=
_data2
;
_this
.
city
=
_data2
[
0
][
'code'
];
_this
.
getArea
({
'getType'
:
'district'
,
'code'
:
_this
.
city
},
function
(
_data3
){
_this
.
districtList
=
_data3
;
_this
.
district
=
_data3
[
0
][
'code'
];
});
});
console
.
log
(
e
.
target
.
value
);
},
changeCity
:
function
(
e
){
var
_this
=
this
;
_this
.
getArea
({
'getType'
:
'district'
,
'code'
:
_this
.
city
},
function
(
_data3
){
_this
.
districtList
=
_data3
;
_this
.
district
=
_data3
[
0
][
'code'
];
});
},
loadMain
:
function
()
{
var
_this
=
this
;
_this
.
userid
=
localStorage
.
getItem
(
'id'
);
...
...
@@ -148,7 +81,7 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
cache
:
false
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'code'
]
==
'200'
)
{
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'
];
...
...
@@ -200,87 +133,75 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
_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);
// }
// });
},
getArea
:
function
(
_obj
,
fn
){
var
_this
=
this
,
_data
=
{};
if
(
_obj
[
'getType'
]
===
'district'
){
_data
[
'parent_code'
]
=
_obj
[
'code'
];
}
else
if
(
_obj
[
'getType'
]
===
'city'
){
_data
[
'parent_code'
]
=
_obj
[
'code'
];
}
else
if
(
_obj
[
'getType'
]
===
'province'
){
}
else
{}
$
.
ajax
({
url
:
"/broker/getregions"
,
type
:
'GET'
,
timeout
:
30000
,
data
:
_data
,
beforeSend
:
function
()
{},
dataType
:
"json"
,
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
fn
&&
fn
(
_data
.
data
);
}
else
{
layerTipsX
(
_data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'上传失败,请重试'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
"timeout"
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
changeProvince
:
function
(
e
){
var
_this
=
this
;
_this
.
getArea
({
'getType'
:
'city'
,
'code'
:
_this
.
province
},
function
(
_data2
){
_this
.
cityList
=
_data2
;
_this
.
city
=
_data2
[
0
][
'code'
];
_this
.
getArea
({
'getType'
:
'district'
,
'code'
:
_this
.
city
},
function
(
_data3
){
_this
.
districtList
=
_data3
;
_this
.
district
=
_data3
[
0
][
'code'
];
});
});
console
.
log
(
e
.
target
.
value
);
},
changeCity
:
function
(
e
){
var
_this
=
this
;
_this
.
getArea
({
'getType'
:
'district'
,
'code'
:
_this
.
city
},
function
(
_data3
){
_this
.
districtList
=
_data3
;
_this
.
district
=
_data3
[
0
][
'code'
];
});
},
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