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
df7643d6
Commit
df7643d6
authored
Apr 24, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否独家修改
parent
470d06f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
2 deletions
+35
-2
houseList.html
application/index/view/houses/houseList.html
+9
-1
houseList.js
public/resource/js/houseList.js
+26
-1
No files found.
application/index/view/houses/houseList.html
View file @
df7643d6
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"houseList"
/>
<style>
.modal.fade.in.yz
{
opacity
:
0
;
}
.modal-backdrop.fade.in
{
opacity
:
0
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -257,7 +265,7 @@
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary submit_follow2"
data-dismiss=
"modal"
>
<button
type=
"button"
class=
"btn btn-primary submit_follow2"
>
提交
</button>
</div>
...
...
public/resource/js/houseList.js
View file @
df7643d6
...
...
@@ -164,6 +164,7 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
});
},
Dujia
:
function
(){
//获取独家的信息
$
(
"#modal-dujia"
).
removeClass
(
"yz"
);
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/getExclusive'
,
...
...
@@ -195,7 +196,31 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
var
imgs
=
$
(
".jai_dujia"
);
for
(
var
j
=
0
;
j
<
imgs
.
length
;
j
++
){
images
.
push
(
imgs
[
j
].
getAttribute
(
"data-img"
))
};
console
.
log
(
$
(
"#sel_dujia"
).
val
());
if
(
$
(
"#sel_dujia"
).
val
()
==
null
){
alert
(
"请选择是否独家"
);
return
;
}
if
(
imgs
.
length
==
0
){
alert
(
"请选择图片"
);
return
;
}
if
(
$
(
"#start_date_dujia"
).
val
()
==
""
){
alert
(
"请选择独家代理的时间"
);
return
;
}
if
(
$
(
"#end_date_dujia"
).
val
()
==
""
){
alert
(
"请选择独家代理的时间"
);
return
;
}
if
(
$
(
"#exclusive"
).
val
()
==
""
){
alert
(
"请选择姓名或者手机号"
);
return
;
}
$
(
"#modal-dujia"
).
addClass
(
"yz"
);
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/editExclusive'
,
...
...
@@ -209,10 +234,10 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
...
...
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