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
1f7ef7d9
Commit
1f7ef7d9
authored
Mar 26, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
032601
parent
30551323
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
9 deletions
+112
-9
customerinfo_genjin.html
application/app_broker/view/index/customerinfo_genjin.html
+7
-3
customer_gj.css
public/app/css/customer_gj.css
+3
-3
customer_gj.js
public/app/js/customer_gj.js
+102
-3
No files found.
application/app_broker/view/index/customerinfo_genjin.html
View file @
1f7ef7d9
...
@@ -134,15 +134,19 @@
...
@@ -134,15 +134,19 @@
6、选在哪些区域?
6、选在哪些区域?
</p>
</p>
<div
class=
"area_list"
>
<div
class=
"area_list"
>
<select
id=
"area_city"
>
<select
id=
"area_province"
v-model=
"province"
>
<option
v-for=
"item in provinceList"
:value=
"item.code"
:key=
"item.code"
>
{{item.name}}
</option>
</select>
</select>
<img
src=
"/app/images/but_down.png"
class=
"but_down"
>
<img
src=
"/app/images/but_down.png"
class=
"but_down"
>
<select
id=
"area_area"
>
<select
id=
"area_city"
v-model=
"city"
>
<option
v-for=
"item in cityList"
:value=
"item.code"
:key=
"item.code"
>
{{item.name}}
</option>
</select>
</select>
<img
src=
"/app/images/but_down.png"
class=
"but_down"
>
<img
src=
"/app/images/but_down.png"
class=
"but_down"
>
<select
id=
"area_q"
>
<select
id=
"area_area"
v-model=
"district"
>
<option
v-for=
"item in districtList"
:value=
"item.code"
:key=
"item.code"
>
{{item.name}}
</option>
</select>
</select>
<img
src=
"/app/images/but_down.png"
class=
"but_down"
>
<img
src=
"/app/images/but_down.png"
class=
"but_down"
>
<textarea
placeholder=
"请输入其他信息"
name=
"content"
id=
"content_area"
v-model
.
trim=
"other_area"
></textarea>
<textarea
placeholder=
"请输入其他信息"
name=
"content"
id=
"content_area"
v-model
.
trim=
"other_area"
></textarea>
...
...
public/app/css/customer_gj.css
View file @
1f7ef7d9
...
@@ -158,6 +158,9 @@
...
@@ -158,6 +158,9 @@
background
:
#FFFFff
;
background
:
#FFFFff
;
margin-left
:
0.35rem
;
margin-left
:
0.35rem
;
}
}
.area_list
select
:nth-of-type
(
1
)
{
margin-left
:
0rem
!important
;
}
.but_down
{
.but_down
{
width
:
0.14rem
;
width
:
0.14rem
;
height
:
0.07rem
;
height
:
0.07rem
;
...
@@ -165,9 +168,6 @@
...
@@ -165,9 +168,6 @@
margin-left
:
-0.34rem
;
margin-left
:
-0.34rem
;
margin-top
:
0.23rem
;
margin-top
:
0.23rem
;
}
}
#area_city
{
margin-left
:
0rem
!important
;
}
#content_area
{
#content_area
{
width
:
100%
;
width
:
100%
;
border-top
:
1px
solid
#e5e5e5
;
border-top
:
1px
solid
#e5e5e5
;
...
...
public/app/js/customer_gj.js
View file @
1f7ef7d9
...
@@ -11,7 +11,7 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
...
@@ -11,7 +11,7 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
},
},
methods
:
{
methods
:
{
deleteimg
:
function
(){
deleteimg
:
function
(){
this
.
$emit
(
'deleteimg'
,
{
message
:
this
.
data
.
name
});
this
.
$emit
(
'deleteimg'
,
{
'message'
:
this
.
data
.
name
});
}
}
}
}
});
});
...
@@ -29,7 +29,13 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
...
@@ -29,7 +29,13 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
price_requirement
:
''
,
price_requirement
:
''
,
other_area
:
''
,
other_area
:
''
,
explain
:
''
,
explain
:
''
,
imgShowList
:
[]
imgShowList
:
[],
provinceList
:
[],
province
:
'310000'
,
cityList
:
[],
city
:
''
,
districtList
:
[],
district
:
''
},
},
created
:
function
()
{
created
:
function
()
{
var
_this
=
this
;
var
_this
=
this
;
...
@@ -43,9 +49,90 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
...
@@ -43,9 +49,90 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
}
}
},
},
methods
:
{
methods
:
{
getArea
:
function
(
_obj
,
fn
){
var
_this
=
this
,
_data
=
{};
if
(
_obj
[
'getType'
]
!==
'province'
){
if
(
!!
_obj
[
'dom'
]){
_data
[
'parent_code'
]
=
Number
(
_obj
[
'dom'
].
val
())
}
else
{
//处理没有市选项,区选项的内容
_obj
[
'dom'
].
next
().
html
(
''
);
fn
&&
fn
();
return
false
;
};
};
$
.
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
);
}
else
{
layerTipsX
(
data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'上传失败,请重试'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
"timeout"
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
}
});
},
loadMain
:
function
()
{
loadMain
:
function
()
{
var
_this
=
this
;
var
_this
=
this
;
_this
.
userid
=
localStorage
.
getItem
(
'id'
);
_this
.
userid
=
localStorage
.
getItem
(
'id'
);
_this
.
getArea
({
'getType'
:
'province'
},
function
(
_data
){
_this
.
provinceList
=
data
;
});
$
.
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'
)
{
}
else
{
layerTipsX
(
data
[
'msg'
]);
}
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
()
{
layerTipsX
(
'上传失败,请重试'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
"timeout"
)
{
//处理超时的逻辑
layerTipsX
(
'请求超时,请重试'
);
};
_this
.
uploadImgFlag
=
false
;
}
});
// $.ajax({
// $.ajax({
// url: ServerHostTempC + "/applies/genjing_get",
// url: ServerHostTempC + "/applies/genjing_get",
// data: {
// data: {
...
@@ -129,6 +216,9 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
...
@@ -129,6 +216,9 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
},
},
deleteimgMain
:
function
(
payload
){
deleteimgMain
:
function
(
payload
){
console
.
log
(
payload
);
console
.
log
(
payload
);
this
.
imgShowList
=
this
.
imgShowList
.
filter
(
function
(
item
,
index
,
array
){
return
(
item
.
name
!==
payload
.
message
);
});
},
},
uploadImg
:
function
(
e
)
{
uploadImg
:
function
(
e
)
{
var
_this
=
this
,
var
_this
=
this
,
...
@@ -138,6 +228,9 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
...
@@ -138,6 +228,9 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
}
else
if
(
e
.
target
.
value
.
length
<=
0
){
}
else
if
(
e
.
target
.
value
.
length
<=
0
){
layerTipsX
(
'您取消了上传'
);
layerTipsX
(
'您取消了上传'
);
return
false
;
return
false
;
}
else
if
(
_this
.
imgShowList
.
length
>
0
){
layerTipsX
(
'目前最多只能上传一张'
);
return
false
;
}
else
{
}
else
{
_fd
.
append
(
'image'
,
e
.
target
.
files
[
0
]);
_fd
.
append
(
'image'
,
e
.
target
.
files
[
0
]);
};
};
...
@@ -149,7 +242,6 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
...
@@ -149,7 +242,6 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
beforeSend
:
function
()
{
beforeSend
:
function
()
{
_this
.
uploadImgFlag
=
true
;
_this
.
uploadImgFlag
=
true
;
},
},
async
:
false
,
dataType
:
"json"
,
dataType
:
"json"
,
cache
:
false
,
cache
:
false
,
processData
:
false
,
processData
:
false
,
...
@@ -196,14 +288,21 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
...
@@ -196,14 +288,21 @@ require(['vue', 'css!style/customerinfo_sub_page.css', 'css!style/customer_gj.cs
"price_requirement": _this.price_requirement
"price_requirement": _this.price_requirement
};
};
if(_this.decision_maker !== '') {
if(_this.decision_maker !== '') {
//第一决策人
_data.decision_maker = _this.decision_maker;
_data.decision_maker = _this.decision_maker;
};
};
if(_this.other_area !== '') {
if(_this.other_area !== '') {
//区域的补充说明
_data.other_area = _this.other_area;
_data.other_area = _this.other_area;
};
};
if(_this.explain !== '') {
if(_this.explain !== '') {
//补充说明
_data.explain = _this.explain;
_data.explain = _this.explain;
};
};
if(_this.imgShowList.length > 0) {
//图片,目前只能上传一张
_data.explain_img = _this.imgShowList[0].name;
};
$.ajax({
$.ajax({
url: ServerHostTempC + "/broker/addFollowUp",
url: ServerHostTempC + "/broker/addFollowUp",
data: _data,
data: _data,
...
...
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