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
04f8be0d
Commit
04f8be0d
authored
Jan 29, 2018
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家合同
parent
c9ad8744
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
178 additions
and
8 deletions
+178
-8
houseList.html
application/index/view/houses/houseList.html
+55
-1
home.css
public/resource/css/home.css
+16
-0
edit.js
public/resource/js/edit.js
+2
-2
houseList.js
public/resource/js/houseList.js
+97
-3
house_template_tpl.html
public/resource/template/house_template_tpl.html
+8
-2
No files found.
application/index/view/houses/houseList.html
View file @
04f8be0d
...
...
@@ -215,7 +215,6 @@
<td>
商场
</td>
<td>
长兴
</td>
</tr>
</table>
</div>
...
...
@@ -228,4 +227,58 @@
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--是否独家-->
<div
class=
"modal fade"
id=
"modal-dujia"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
独家合同
</h4>
</div>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
是否独家:
</label>
<select
class=
"form-control btn6"
id=
"sel_dujia"
>
<option
value=
""
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家合同上传(小于10张):
</label>
<span
id=
"liudan_pic_pre"
></span>
<input
readonly=
"readonly"
type=
"hidden"
name=
"liudan_pic_pre"
class=
"form-control btn6"
placeholder=
"请选择图片"
>
<button
class=
"btn btn-default liudan_pic_btn"
id=
"liudan_pic_btn"
type=
"button"
>
选择图片
</button>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家代理有效期:
</label>
<input
class=
"form-control btn5 "
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date_dujia"
name=
"start_date_dujia"
type=
"date"
>
<span
class=
"fore-span"
>
-
</span>
<input
class=
"form-control btn5 "
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date_dujia"
name=
"end_date_dujia"
type=
"date"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
独家方:
</label>
<input
class=
"form-control btn6"
data-rule-buga=
"false"
data-rule-required=
"true"
name=
"exclusive"
placeholder=
"请输入姓名或手机号码"
type=
"text"
value=
""
id=
"exclusive"
>
</div>
</form>
</div>
<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>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
public/resource/css/home.css
View file @
04f8be0d
...
...
@@ -58,6 +58,10 @@
width
:
49%
!important
;
float
:
left
;
}
.btn5
{
width
:
28%
!important
;
float
:
left
;
}
.use-span
{
float
:
left
;
margin-top
:
5px
;
...
...
@@ -183,4 +187,15 @@ body{
}
.phone_name
{
margin-left
:
4px
;
}
/*//上传独家合同*/
.jai_dujia
{
width
:
50px
;
height
:
50px
;
float
:
left
;
margin-left
:
10px
;
}
.liudan_pic_btn
{
float
:
left
;
margin-left
:
10px
;
}
\ No newline at end of file
public/resource/js/edit.js
View file @
04f8be0d
...
...
@@ -94,8 +94,8 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
_qianyueRuleObj
=
$
(
'#qianyueRule'
),
//签约规则
_roomTagObj
=
$
(
'.roomTag'
);
//商铺标签
$
(
'#liebiao_pic_btn'
).
click
(
function
()
{
BrowseServer
(
'liebiao_pic_pre'
);
});
BrowseServer
(
'liebiao_pic_pre'
);
});
/************************************************百度地址定位相关*************************************************************/
//字符串格式化,参数为对象的形式 by xishifeng 2017-07-14
...
...
public/resource/js/houseList.js
View file @
04f8be0d
...
...
@@ -2,7 +2,7 @@
* Created by 刘丹 on 2017/12/11.
*/
define
([
'doT'
,
'text!temp/house_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/house_template_tpl.html'
,
'css!style/home.css'
,
'
ckfinder'
,
'ckfinderStart'
,
'
pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
business
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
...
...
@@ -14,7 +14,7 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','pagin
stopstatus
:
true
,
ldHtml
:
$
(
'.phone_list'
),
boxphoto
:
''
,
ServerHost
:
location
.
origin
,
init
:
function
()
{
//初始化dot
...
...
@@ -47,6 +47,14 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','pagin
business
.
type
=
"2"
;
business
.
Anch
();
});
$
(
document
).
delegate
(
".dujia"
,
"click"
,
function
()
{
//点击独家
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"3"
;
business
.
Dujia
();
});
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
()
{
//提交独家
business
.
Dujianew
();
});
$
(
document
).
delegate
(
".submit_follow"
,
"click"
,
function
()
{
//提交按钮设置案场权限人
business
.
Submit_follow
();
});
...
...
@@ -87,7 +95,9 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','pagin
return
;
}
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{};
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
===
"推荐至首页"
)
{
...
...
@@ -97,7 +107,29 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','pagin
params
.
type
=
0
;
$
(
this
).
html
(
'推荐至首页'
);
}
$
.
ajax
({
//推荐至首页
'type'
:
'POST'
,
'url'
:
'/index/carefullyChosen'
,
data
:
{
"houses_id"
:
business
.
id
,
"is_carefully_chosen"
:
params
.
type
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
}
}
else
{
alert
(
"推荐失败!"
)
}
}
});
});
$
(
document
).
delegate
(
"#liudan_pic_btn"
,
"click"
,
function
()
{
//上传图片
BrowseServer
(
'liudan_pic_btn'
,
function
(
url
){
var
liudan_pic_btn
=
' <img src="'
+
url
+
'" class="jai_dujia">'
;
$
(
"#liudan_pic_pre"
).
append
(
liudan_pic_btn
)
});
});
},
Anch
:
function
(){
//获取手机号名字的
$
.
ajax
({
...
...
@@ -120,6 +152,65 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','pagin
}
});
},
Dujia
:
function
(){
//获取独家的信息
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/getExclusive'
,
data
:
{
"houses_id"
:
business
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
(
"#sel_dujia"
).
val
(
data
.
data
.
is_exclusive_type
);
//是否独家
$
.
each
(
data
[
'data'
][
'exclusive_img'
],
function
(
i
,
item
)
{
var
liudan_pic_btn
=
' <img src="'
+
item
.
img_name
+
'" class="jai_dujia">'
;
})
$
(
"#liudan_pic_pre"
).
append
(
liudan_pic_btn
)
$
(
"#start_date_dujia"
).
val
(
data
.
data
.
agent_start_time
);
//上传时间
$
(
"#end_date_dujia"
).
val
(
data
.
data
.
agent_end_time
);
$
(
"#exclusive"
).
val
(
data
.
data
.
name
);
exclusive_id
=
data
.
data
.
id
;
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Dujianew
:
function
(){
//提交独家的信息
var
images
=
[];
//图片
var
imgs
=
$
(
".jai_dujia"
);
for
(
var
j
=
0
;
j
<
imgs
.
length
;
j
++
){
images
.
push
(
imgs
[
j
].
src
)
}
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/editExclusive'
,
data
:
{
"houses_id"
:
business
.
house_id
,
//楼盘Id
"exclusive_id"
:
exclusive_id
,
//经纪人id
"agent_start_time"
:
$
(
"#start_date_dujia"
).
val
(),
//开始时间
"agent_end_time"
:
$
(
"#end_date_dujia"
).
val
(),
//结束时间
"exclusive_img"
:
images
//图片
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
data
)
{
$
(
"#sel_dujia"
).
val
(
data
.
data
.
is_exclusive_type
);
//是否独家
$
.
each
(
data
[
'data'
][
'exclusive_img'
],
function
(
i
,
item
)
{
var
liudan_pic_btn
=
' <img src="'
+
item
.
img_name
+
'" class="jai_dujia">'
;
})
$
(
"#liudan_pic_pre"
).
append
(
liudan_pic_btn
)
$
(
"#start_date_dujia"
).
value
(
data
.
data
.
agent_start_time
);
$
(
"#end_date_dujia"
).
value
(
data
.
data
.
agent_end_time
);
$
(
"#exclusive"
).
val
(
data
.
data
.
name
);
}
}
else
{
alert
(
'获取失败!'
);
}
}
});
},
Submit_follow
:
function
(){
//提交案场权限人数据
var
agents_id
=
""
;
var
_agents_id
=
""
;
...
...
@@ -317,6 +408,8 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','pagin
}
});
}
};
return
business
;
});
\ No newline at end of file
public/resource/template/house_template_tpl.html
View file @
04f8be0d
...
...
@@ -36,15 +36,21 @@
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"dish_name"
]
==
""
)
{
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-anch"
class
=
"btn1 btn-danger add_applies"
>
修改
<
/a
>
[
%
}
else
{
%
]
[
%=
it
[
item
][
'dish_name'
]
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-anch"
class
=
"btn1 btn-danger add_applies"
>
修改
<
/a
>
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"/admin.php/index/houseEdit?id=[%= it[item]['id']%]"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success is_show"
href
=
"#modal-process"
data
-
toggle
=
"modal"
data
-
id
=
"77"
>
推荐至首页
<
/a
>
<
a
class
=
"btn1 btn-success is_show"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
推荐至首页
<
/a
>
<
a
class
=
"btn1 btn-success anch"
data
-
target
=
"#modal-anch"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
设置案场权限人
<
/a
>
<
a
class
=
"btn1 btn-success
"
href
=
"#modal-process"
data
-
toggle
=
"modal"
data
-
id
=
"77"
>
是否独家
<
/a
>
<
a
class
=
"btn1 btn-success
dujia"
href
=
"#modal-dujia"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
是否独家
<
/a
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
id
=
"77"
>
操作记录
<
/a
>
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-delete"
class
=
"btn1 btn-danger add_applies del_modal"
>
删除
<
/a
>
...
...
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