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
23388a39
Commit
23388a39
authored
Jun 12, 2019
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0529-v3.3.0' of
https://gitee.com/zwyjjc/tl_estate
into 0529-v3.3.0
parents
107020f6
0bc416fa
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
67 additions
and
38 deletions
+67
-38
OfficeManage.php
application/index/controller/OfficeManage.php
+2
-2
OfficeRoomService.php
application/index/service/OfficeRoomService.php
+2
-2
users_list.html
application/index/view/member/users_list.html
+3
-3
index.html
application/index/view/office/index.html
+3
-3
officeBuildingList.html
application/index/view/office/officeBuildingList.html
+4
-4
daily_achieve_mdzj.js
public/app/js/daily_achieve_mdzj.js
+4
-5
office_detail_pc.js
public/app/js/office_detail_pc.js
+0
-2
buildingDictionary.js
public/resource/js/buildingDictionary.js
+26
-7
officeBuildingList.js
public/resource/js/officeBuildingList.js
+5
-2
officeEdit.js
public/resource/js/officeEdit.js
+5
-1
user.js
public/resource/js/user.js
+11
-6
user_genjing_modal.js
public/resource/js/user_genjing_modal.js
+2
-1
No files found.
application/index/controller/OfficeManage.php
View file @
23388a39
...
...
@@ -114,8 +114,8 @@ class OfficeManage extends Basic
$msg
=
''
;
$data
=
[];
$code
=
200
;
$pageNo
=
empty
(
$
params
[
'pageNo'
])
?
1
:
$
params
[
'pageNo'
];
$pageSize
=
empty
(
$
params
[
'pageSize'
])
?
15
:
$
params
[
'pageSize'
];
$pageNo
=
empty
(
$
this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$
this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$building_service
=
new
OfficeService
();
$result
=
$building_service
->
BuildingSearch
(
$pageNo
,
$pageSize
,
$this
->
params
,
1
);
...
...
application/index/service/OfficeRoomService.php
View file @
23388a39
...
...
@@ -1357,8 +1357,8 @@ class OfficeRoomService
$result
[
'agent_end_time'
]
=
$data
[
'agent_end_time'
];
$agent_data
=
$this
->
agent_room
->
getAgentsByRoomId
(
'b.id,b.name,b.phone'
,
[
'a.house_id'
=>
$room_id
,
'a.type'
=>
3
]);
if
(
$agent_data
)
{
$result
[
'name'
]
=
empty
(
$agents
[
'name'
])
?
''
:
$agents
[
'name'
]
.
'-'
.
$agents
[
'phone'
];
if
(
$agent_data
[
0
]
)
{
$result
[
'name'
]
=
$agent_data
[
0
][
'name'
]
.
'-'
.
$agent_data
[
0
]
[
'phone'
];
}
else
{
$result
[
'name'
]
=
''
;
}
...
...
application/index/view/member/users_list.html
View file @
23388a39
...
...
@@ -644,7 +644,7 @@
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
客户类型:
</label>
<div
class=
"col-sm-8"
>
<select
class=
"form-control left-width"
id=
"find-shop-type"
>
<option
value=
""
>
客户类型
</option>
<option
value=
"
-1
"
>
客户类型
</option>
<option
value=
"0"
>
找商铺
</option>
<option
value=
"1"
>
找办公楼
</option>
</select>
...
...
@@ -655,10 +655,10 @@
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
客户状态:
</label>
<div
class=
"col-sm-8"
>
<select
class=
"form-control left-width"
id=
"add-user-staus"
>
<option
value=
""
>
客户状态
</option>
<option
value=
"
-1
"
>
客户状态
</option>
<option
value=
"0"
>
求租
</option>
<option
value=
"1"
>
已租
</option>
<
option
value=
"-1"
>
无效
</option
>
<
!--<option value="-1">无效</option>--
>
</select>
</div>
</div>
...
...
application/index/view/office/index.html
View file @
23388a39
...
...
@@ -341,7 +341,7 @@
<!-- /#新增编辑楼盘字典模态框 -->
<div
class=
"modal fade"
id=
"modal_add_loupan"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"width:
988px; height:600px;overflow:scroll
"
>
<div
class=
"modal-dialog"
style=
"width:
992px
"
>
<div
class=
"modal-content modal-body-new-user"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
...
...
@@ -352,7 +352,7 @@
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
style=
"height:600px;overflow:scroll"
>
<form
class=
"form-horizontal"
action=
"/agents/add_user"
id=
"add_user_form"
>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"col-sm-6 isshowLou"
>
...
...
@@ -408,7 +408,7 @@
<label
for=
""
>
纬度
</label>
<input
type=
"text"
class=
"input-100-width address-relate"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"latitude"
name=
"latitude"
data-alert=
"请通过地址定位获取经纬度!"
>
</div>
<div
class=
"form-group"
style=
"width: 1
64
px;float: left;"
>
<div
class=
"form-group"
style=
"width: 1
80
px;float: left;"
>
<label
for=
""
>
商圈
</label>
<select
id=
"business_rong"
>
<option
value=
"-1"
>
请选择商圈
</option>
...
...
application/index/view/office/officeBuildingList.html
View file @
23388a39
...
...
@@ -269,16 +269,16 @@
<option
value=
"6"
>
厂房
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"office_status"
>
<option
value=
""
>
出租
状态
</option>
<option
value=
""
>
上下架
状态
</option>
<option
value=
"1"
>
上架
</option>
<option
value=
"2"
>
下架
</option>
<option
value=
"3"
>
无效
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"office_rent"
>
<option
value=
""
>
出租状态
</option>
<option
value=
"
1
"
>
求租
</option>
<option
value=
"
2
"
>
已租
</option>
<
option
value=
"3"
>
无效
</option
>
<option
value=
"
0
"
>
求租
</option>
<option
value=
"
1
"
>
已租
</option>
<
!--<option value="3">无效</option>--
>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"office_id"
placeholder=
"房源编号"
type=
"text"
value=
""
>
...
...
public/app/js/daily_achieve_mdzj.js
View file @
23388a39
...
...
@@ -374,26 +374,25 @@ require(['vue', 'vconsole', 'html2canvas', 'css!style/report_achieve.css', 'jque
};
if
(
lengthID
>
0
&&
_data
.
data
[
0
].
site_id
==
10002
){
$
(
'.hangzhou'
).
show
();
shanghai
_bitian
=
1
;
hangzhou
_bitian
=
1
;
_this
.
loadMainHZ
(
_data
.
data
[
0
].
id
);
};
if
(
lengthID
>
0
&&
_data
.
data
[
0
].
site_id
==
10003
){
$
(
'.shenzhen'
).
show
();
sh
anghai
_bitian
=
1
;
sh
enzhen
_bitian
=
1
;
_this
.
loadMainSZ
(
_data
.
data
[
0
].
id
);
};
if
(
lengthID
>
0
&&
_data
.
data
[
0
].
site_id
==
10004
){
$
(
'.guangzhou'
).
show
();
shanghai
_bitian
=
1
;
guangzhou
_bitian
=
1
;
_this
.
loadMainGZ
(
_data
.
data
[
0
].
id
);
};
if
(
lengthID
>
0
&&
_data
.
data
[
0
].
site_id
==
10005
){
$
(
'.beijing'
).
show
();
shanghai_bitian
=
1
;
beijing_bitian
=
1
;
_this
.
loadMainBJ
(
_data
.
data
[
0
].
id
);
};
...
...
public/app/js/office_detail_pc.js
View file @
23388a39
...
...
@@ -284,8 +284,6 @@ require(['vue','css!style/office_detail_pc.css','jquery0325', 'common'], functio
_this
.
select_public_var
=
_data
.
data
.
is_show
;
_this
.
d
=
_data
.
data
;
_this
.
ds
=
_data
.
data
.
building_data
;
// _this.traffic =_data.data.building_data.traffic.join(',');//交通
// _this.exclusive_name = _data.data.exclusive_name.join(',');//独家方
_this
.
$nextTick
(()
=>
{
vm
.
$previewRefresh
()
});
...
...
public/resource/js/buildingDictionary.js
View file @
23388a39
...
...
@@ -607,22 +607,37 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
business
.
url
=
'/office_index/houseDictionaryAdd'
;
}
//验证必填项
if
(
$
(
'#loupan_type'
).
val
()
==
-
1
){
alert
(
'楼盘类型必选'
);
return
;
}
if
(
$
(
'#loupan_title'
).
val
()
==
''
){
alert
(
'楼盘名称必填'
);
}
if
(
$
(
'#loupan_type'
).
val
()
==
-
1
){
alert
(
'楼盘类型必选'
);
return
;
}
if
(
$
(
'#introOffice'
).
val
()
==
''
){
alert
(
'楼盘简介必选'
);
return
;
}
if
(
$
(
'#loucengOffice'
).
val
()
==
''
){
alert
(
'楼盘楼层必选'
);
alert
(
'楼盘总层数必填'
);
return
;
}
if
(
_cityInternalObj
.
val
()
==
''
){
alert
(
'请选择楼盘地址'
);
return
;
}
if
(
detailArr
.
length
==
0
){
alert
(
'请选择楼盘交通信息'
);
return
;
}
if
(
imgname1
.
concat
(
imgname2
).
length
==
0
){
alert
(
'请选择楼盘图片'
);
return
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
business
.
url
,
...
...
@@ -746,7 +761,10 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
//编辑获取交通详情
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
html
(
''
);
business
.
addStr
=
_str
;
$
.
each
(
business
.
buildingStations
,
function
(
i
,
v
)
{
if
(
business
.
buildingStations
.
length
==
0
){
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
append
(
'<div class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
business
.
addStr
+
'</select><select class="form-control btn2-city shop_area_id_line"><option value="" selected="selected">区域</option></select><input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
);
}
else
{
$
.
each
(
business
.
buildingStations
,
function
(
i
,
v
)
{
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
append
(
'<div data-id="'
+
v
.
id
+
'" class="form-group detail-modal-bargaininfo-commission-sec"><label class="control-label" style="float: left;">距离</label><select class="form-control btn2-city shop_city_choose_site_list_line">'
+
_str
+
'</select><select class="form-control btn2-city shop_area_id_line"><option value="{3}" selected="selected" data-latitude="{4}" data-longitude="{5}">{1}</option></select><input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" class="" placeholder="请输入" value="{2}"><label class="control-label">米</label><span href="javascript:;"class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png"/></span></div>'
.
stringFormatObj
({
'0'
:
v
.
line_name
,
'1'
:
v
.
name
,
...
...
@@ -755,9 +773,10 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
'4'
:
v
.
latitude
,
'5'
:
v
.
longitude
}));
var
name_
=
v
.
line_name
?
v
.
line_name
.
substr
(
2
,
3
):
v
.
line_nam
e
;
var
name_
=
v
.
line_name
_simpl
e
;
$
(
".shop_city_choose_site_list_line"
).
eq
(
i
).
val
(
name_
);
});
}
}
}
...
...
public/resource/js/officeBuildingList.js
View file @
23388a39
...
...
@@ -1302,6 +1302,9 @@ if(data.code == 200) {
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
data
.
msg
)
}
else
{
alert
(
data
.
msg
)
}
}
});
...
...
@@ -1379,8 +1382,8 @@ if(data.code == 200) {
if
(
$
(
'#price_end'
).
val
()){
params
.
price_total_end
=
$
(
'#price_end'
).
val
();
//租金总价
}
if
(
$
(
'#price_
end
_single'
).
val
()){
params
.
price_start
=
$
(
'#price_
end
_single'
).
val
();
//租金单价
if
(
$
(
'#price_
start
_single'
).
val
()){
params
.
price_start
=
$
(
'#price_
start
_single'
).
val
();
//租金单价
}
if
(
$
(
'#price_end_single'
).
val
()){
params
.
price_end
=
$
(
'#price_end_single'
).
val
();
//租金单价
...
...
public/resource/js/officeEdit.js
View file @
23388a39
...
...
@@ -826,6 +826,9 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_doc
.
on
(
'input'
,
'.phone_loupan'
,
function
()
{
var
_this
=
$
(
this
),
_thisVal
=
$
.
trim
(
_this
.
val
());
if
(
!
_thisVal
){
user
.
IDBuilding
=
''
;
}
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_thisVal
!=
''
)
{
_ajaxObjLoupan
&&
_ajaxObjLoupan
.
abort
();
...
...
@@ -1148,7 +1151,8 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
if
(
_data
[
'rent_free'
]
==
-
1
||
_data
[
'rent_free'
]
!=
''
){
}
else
{
alert
(
'请选择免租时间'
)
alert
(
'请选择免租时间'
);
return
}
if
(
_exclusiveTypeObj
.
val
()
==
'1'
)
{
_data
[
'agent_start_time'
]
=
_exclusiveDate1Obj
.
val
();
...
...
public/resource/js/user.js
View file @
23388a39
...
...
@@ -2253,7 +2253,13 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
if
(
$
(
"#concrete_industry"
).
val
()
==
''
)
{
alert
(
'具体业态必填'
);
return
;
}
};
if
(
params
.
industry_type
==
''
)
{
alert
(
'请选择业态'
);
$
(
"#industry_type2"
).
focus
();
return
;
}
}
params
.
disc
=
$
(
"#user_area_add"
).
val
();
...
...
@@ -2289,11 +2295,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
"input[name='user_phone']"
).
focus
();
return
;
}
if
(
params
.
industry_type
==
''
)
{
alert
(
'请选择业态'
);
$
(
"#industry_type2"
).
focus
();
return
;
}
if
(
params
.
price_demand
==
''
)
{
alert
(
'请选择价格'
);
$
(
"#price_type2"
).
focus
();
...
...
@@ -2323,6 +2324,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'请选择正确的客方'
);
return
;
}
if
(
params
.
user_status
==
'-1'
){
alert
(
'客户状态必填'
);
return
;
}
$
.
ajax
({
url
:
'/index/pcEditClient'
,
type
:
'POST'
,
...
...
public/resource/js/user_genjing_modal.js
View file @
23388a39
...
...
@@ -1016,6 +1016,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
}
else
{
user
.
yueDaiKanurl
=
'/office/getRoomListByReport'
;
//办公楼
}
console
.
log
(
user
.
entrustType
)
$
.
ajax
({
url
:
user
.
yueDaiKanurl
,
type
:
'GET'
,
...
...
@@ -1147,7 +1148,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
user
.
entrustType
=
=
data
.
data
.
user_info
.
entrust_type
;
user
.
entrustType
=
data
.
data
.
user_info
.
entrust_type
;
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".area_demand"
).
html
(
data
.
data
.
user_info
.
area_demand
*
1
);
...
...
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