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
668a668f
Commit
668a668f
authored
May 30, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
楼盘字典
parent
ca7dd1b7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1151 additions
and
55 deletions
+1151
-55
OfficeBuilding.php
application/index/controller/OfficeBuilding.php
+8
-0
account_statement.html
application/index/view/finance/account_statement.html
+0
-1
buildingDictionary.html
...ication/index/view/officeBuilding/buildingDictionary.html
+475
-0
officeEdit.html
application/index/view/officeBuilding/officeEdit.html
+91
-53
route.php
application/route.php
+3
-1
buildingDictionary.js
public/resource/js/buildingDictionary.js
+520
-0
building_dictionary_list_template_tpl.html
...ource/template/building_dictionary_list_template_tpl.html
+54
-0
No files found.
application/index/controller/OfficeBuilding.php
View file @
668a668f
...
@@ -26,4 +26,11 @@ class OfficeBuilding extends Basic
...
@@ -26,4 +26,11 @@ class OfficeBuilding extends Basic
return
view
(
'officeBuilding/officeEdit'
);
return
view
(
'officeBuilding/officeEdit'
);
}
}
}
}
public
function
buildingDictionary
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'officeBuilding/buildingDictionary'
);
}
}
}
}
\ No newline at end of file
application/index/view/finance/account_statement.html
View file @
668a668f
...
@@ -366,7 +366,6 @@
...
@@ -366,7 +366,6 @@
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"date"
class=
"form-control"
placeholder=
"请输入"
>
<input
type=
"date"
class=
"form-control"
placeholder=
"请输入"
>
</div>
</div>
<!--<mark href="javascript:;" class="detail-modal-bargaininfo-commission-cancel-pic"><img src="/resource/image/search_gb.png" /></mark>-->
</div>
</div>
</div>
</div>
<div
id=
"bargaininfo_commission_add_btn"
>
<div
id=
"bargaininfo_commission_add_btn"
>
...
...
application/index/view/officeBuilding/buildingDictionary.html
0 → 100644
View file @
668a668f
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"buildingDictionary"
/>
<style>
#container_body_img_area
{
margin-top
:
10px
;
}
#container_body_img_area
img
{
width
:
120px
;
height
:
120px
;
}
.span-del
,
.span-del2
{
color
:
red
;
}
#container_body_img_area
>
div
{
float
:
left
;
width
:
216px
;
}
#file_input_pic
{
opacity
:
0
;
position
:
absolute
;
top
:
0
;
/*left: 145px;*/
height
:
35px
;
width
:
80px
;
}
.detail-modal-bargaininfo-commission-cancel-pic
img
{
width
:
20px
;
margin-left
:
10px
;
}
.detail-modal-bargaininfo-commission-sec
{
float
:
left
;
}
video
{
outline
:
none
;
}
.clear
{
clear
:
both
;
}
.modal.fade.in.yz
{
opacity
:
0
;
}
.modal-backdrop.fade.in
{
opacity
:
0
;
}
#batch
{
float
:
left
;
height
:
34px
;
line-height
:
34px
;
}
.ld-Marheight
{
margin-top
:
15px
;
}
.phone_list
{
margin-top
:
32px
;
width
:
182px
;
margin-left
:
-182px
;
}
.phone_jia1
{
float
:
left
;
width
:
182px
;
}
.phone_list
li
{
height
:
22px
;
line-height
:
22px
;
}
.phone_list
li
:nth-of-type
(
even
)
{
display
:
none
;
}
.modal-dialog-one
{
width
:
668px
;
}
.main_table_th_tr
>
th
:nth-of-type
(
2
)
{
width
:
50px
;
}
.main_table_th_tr
>
th
:nth-of-type
(
4
)
{
width
:
86px
;
}
.main_table_th_tr
>
th
:nth-of-type
(
5
)
{
width
:
86px
;
}
.main_table_th_tr
>
th
:nth-of-type
(
7
)
{
width
:
100px
;
}
.main_table_th_tr
>
th
:nth-of-type
(
8
)
{
width
:
50px
;
}
.btn-top-house
{
margin-top
:
20px
;
text-align
:
center
;
}
.ld-Marheight-city
{
margin-top
:
8px
;
}
/*控制放大镜的 收款图片显示*/
#preview
{
z-index
:
9999
!important
;
}
#preview
img
{
width
:
580px
;
max-height
:
720px
;
}
.main-select
{
display
:
none
;
}
.btn2
{
width
:
10%
!important
;
}
.btn4
{
width
:
16%
!important
;
}
/*适配 不同屏幕*/
@media
screen
and
(
min-width
:
1680px
){
.btn4
{
width
:
12%
!important
;
}
.btn2
{
width
:
8%
!important
;
}
}
/*上传附件 的 样式*/
.img-pre-ul
>
li
{
list-style
:
no
;
float
:
left
;
width
:
210px
;
height
:
170px
;
overflow
:
hidden
;
margin-right
:
10px
;
margin-top
:
10px
;
}
.img-pre-ul
>
li
.pdf-pre-li
{
height
:
70px
;
}
.img-pre-ul
>
li
>
img
{
float
:
left
;
width
:
210px
;
height
:
140px
;
object-fit
:
contain
;
cursor
:
pointer
;
}
.img-pre-ul
>
li
>
a
{
float
:
left
;
width
:
210px
;
text-align
:
center
;
line-height
:
30px
;
}
.img-pre-ul
>
li
>
a
.pdf-pre-a
{
line-height
:
20px
;
word-break
:
break-all
;
}
.delet-pic-btn
{
color
:
red
;
}
.img-pre-ul
{
padding-left
:
0
;
overflow
:
hidden
;
}
.modal-dialog-dujia
{
width
:
856px
;
}
.phone_list_dujia
{
margin-top
:
34px
;
width
:
257px
;
margin-left
:
-256px
;
}
.file-upload-area
>
.btn-area
{
position
:
relative
;
width
:
82px
;
height
:
34px
;
}
.iframe-shop-detail-scroll
{
height
:
600px
;
overflow-y
:
scroll
;
}
/*盘方员工 姓名 下拉式 搜索*/
/*经纪人 搜索 下拉式*/
.left-phone
{
margin-left
:
10px
;
float
:
left
;
width
:
230px
;
position
:
relative
;
}
.user-ul-agent
{
width
:
223px
;
height
:
auto
;
float
:
left
;
position
:
absolute
;
background
:
#fff
;
border
:
.5px
solid
#ccc
;
border-top
:
none
;
left
:
11px
;
z-index
:
999
;
}
.user-ul-agent
li
{
list-style
:
none
;
line-height
:
30px
;
margin-left
:
-28px
;
}
/*加载图标*/
#main_loading_pic
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
width
:
100px
;
height
:
100px
;
margin-left
:
50px
;
margin-top
:
-100px
;
overflow
:
hidden
;
display
:
none
;
}
/*推广链接 弹窗*/
#link_content
{
font-size
:
14px
;
font-weight
:
bold
;
margin
:
0
20px
;
}
.modal-dialog-tuiguang
{
width
:
1080px
;
}
/*搜索条件的margain变小*/
.ld-Marheight
{
margin-top
:
5px
;
}
/*商铺详情 样式优化*/
.btn-info-liu
{
font-size
:
18px
;
color
:
#FF8018
;
}
.btn-default-liu
{
opacity
:
0.4
;
font-size
:
18px
;
color
:
#1F3865
;
}
.detail-modal-header-tab
span
{
cursor
:
pointer
;
margin-left
:
30px
;
font-weight
:
600
;
}
.upload-image-btn
{
width
:
82px
;
height
:
40px
;
position
:
relative
;
opacity
:
0
;
z-index
:
66
;
}
.btn-default-liu-css
{
position
:
relative
;
left
:
-80px
;
z-index
:
6
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li><a
href=
"#"
>
楼盘字典
</a></li>
<div
class=
"pull-right"
>
<ul
class=
"bread_btn"
>
<li>
<a
href=
"#modal_add_loupan"
class=
"btn btn-default add"
data-toggle=
"modal"
><i
class=
"icon-plus"
></i>
新增楼盘
</a>
</li>
</ul>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"16"
>
<form
id=
"form_search"
>
<div
class=
"col-xs-12"
style=
"padding:0px"
>
<select
class=
"form-control btn2-city shop_city_choose_site_list"
></select>
<select
class=
"form-control btn2"
id=
"shop_area_id"
>
<option
value=
""
selected=
"selected"
>
区域
</option>
</select>
<select
class=
"form-control btn2"
id=
"business_circle_id"
>
<option
value=
""
selected=
"selected"
>
商圈
</option>
</select>
<select
class=
"form-control btn2"
id=
"shop_type"
>
<option
value=
"-1"
>
楼盘类型
</option>
<option
value=
"0"
>
商场
</option>
<option
value=
"1"
>
街铺
</option>
</select>
<input
type=
"text"
class=
"form-control btn2"
id=
"shop_type"
placeholder=
"楼盘名称"
/>
</div>
<div
class=
"col-xs-12"
style=
"padding : 0px;"
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
</div>
</form>
</td>
</tr>
<tr
class=
"main_table_th_tr"
>
<th
class=
"text-center"
>
楼盘编号
</th>
<th
class=
"text-center"
>
楼盘类型
</th>
<th
class=
"text-center"
>
区域
</th>
<th
class=
"text-center"
>
商圈
</th>
<th
class=
"text-center"
>
楼盘名称
</th>
<th
class=
"text-center"
>
总层数
</th>
<th
class=
"text-center"
>
楼盘简介
</th>
<th
class=
"text-center"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"business_list"
></tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /#新增编辑楼盘字典模态框 -->
<div
class=
"modal fade"
id=
"modal_add_loupan"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"width: 800px;"
>
<div
class=
"modal-content modal-body-new-user"
>
<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"
action=
"/agents/add_user"
id=
"add_user_form"
>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
楼盘编号:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
</div>
</div>
<div
class=
"col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
楼盘类型:
</label>
<div
class=
"col-sm-8"
>
<select
class=
"form-control"
id=
"user_sex"
>
<option
value=
""
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
</select>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
楼盘名称:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入楼盘名称"
>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
楼盘地址:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
</div>
</div>
<div
class=
"col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
地址定位:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
所在城市/区域/商圈:
</label>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn2-city shop_city_choose_site_list_add"
></select>
<select
class=
"form-control btn2-city"
id=
"shop_area_id_add"
>
<option
value=
""
selected=
"selected"
>
区域
</option>
</select>
<select
class=
"form-control btn2-city"
id=
"business_circle_id_add"
>
<option
value=
""
selected=
"selected"
>
商圈
</option>
</select>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
周边交通:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"detail-modal-bargaininfo-commission-addarea"
>
<div
class=
"detail-modal-bargaininfo-commission-sec form-group"
>
<label
class=
"control-label"
style=
"float: left;"
>
距离
</label>
<select
class=
"form-control btn2-city shop_city_choose_site_list_line"
></select>
<select
class=
"form-control btn2-city"
id=
"shop_area_id_line"
>
<option
value=
""
selected=
"selected"
>
区域
</option>
</select>
<input
type=
"number"
class=
"form-control btn2-city"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
placeholder=
"请输入"
>
<label
class=
"control-label"
>
米
</label>
</div>
</div>
</div>
</div>
<div
id=
"bargaininfo_commission_add_btn"
class=
"form-group form-group-bottom"
style=
"text-align: center;"
>
<img
src=
"/resource/image/jia2@2x.png"
/>
</div>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
总层数:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"number"
class=
"form-control btn2-city"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
placeholder=
"请输入"
>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
楼盘简介:
</label>
<div
class=
"col-sm-9"
>
<textarea
name=
""
rows=
""
cols=
""
style=
"width: 366px;height: 100px;"
></textarea>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
楼盘图片:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<div
id=
"container_body"
>
<!--<label>请选择一个图像文件:</label>-->
<button
type=
"button btn2"
class=
"btn btn-default"
>
上传图片
</button>
<input
type=
"file"
id=
"file_input_pic"
/>
<div
id=
"container_body_img_area"
></div>
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
>
</ul>
</div>
</div>
</form>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
id=
"close"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary btn-guanbi"
id=
"saveBtn"
>
提交
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
\ No newline at end of file
application/index/view/officeBuilding/officeEdit.html
View file @
668a668f
...
@@ -30,7 +30,50 @@
...
@@ -30,7 +30,50 @@
<div
class=
"panel-heading"
>
新增/编辑办公楼
</div>
<div
class=
"panel-heading"
>
新增/编辑办公楼
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<form
class=
"form-inline"
id=
"main_form"
>
<form
class=
"form-inline"
id=
"main_form"
>
<ul
class=
"list-group"
>
<ul
class=
"list-group"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<label
for=
"shangpuType"
>
所属楼盘:
</label>
<input
class=
"form-control"
type=
"text"
name=
""
id=
""
value=
""
/>
</div>
</li>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<label
for=
"shangpuType"
>
楼盘地址:
</label>
<span>
上海市徐汇区云锦路500号
</span>
</div>
<div
class=
"form-group"
style=
"display: none;"
>
<label
for=
"show_all"
>
所属商圈:
</label>
<span>
龙华
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
总层数:
</label>
<span>
23
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
类型:
</label>
<span>
写字楼
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
交通:
</label>
<span>
靠近11号线南京东路地铁站100米
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
简介:
</label>
<span>
巴拉巴拉了喇叭狼来了
</span>
</div>
<br
/>
<div
class=
"form-group text-danger"
>
<label
for=
"exclusiveType"
>
如果以上楼盘信息不对,请联系店长在电脑端编辑楼盘字典
</label>
</div>
</li>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"shangpuType"
>
房源类型
</label>
<label
for=
"shangpuType"
>
房源类型
</label>
...
@@ -111,78 +154,76 @@
...
@@ -111,78 +154,76 @@
<li
class=
"list-group-item"
style=
"overflow: hidden;"
>
<li
class=
"list-group-item"
style=
"overflow: hidden;"
>
<div
class=
"col-xs-12 form-group"
>
<div
class=
"col-xs-12 form-group"
>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
>
租金总价:
</label>
<label
>
租金总价:
</label>
<input
type=
"number"
class=
"form-control
half
"
id=
"miankuan"
placeholder=
"请输入"
data-alert=
"请输入租金总价!"
>
元/月
<input
type=
"number"
class=
"form-control
input-100-width
"
id=
"miankuan"
placeholder=
"请输入"
data-alert=
"请输入租金总价!"
>
元/月
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
租金单价:
</label>
<label
class=
""
>
租金单价:
</label>
<input
type=
"number"
class=
"form-control
half
"
id=
"jinshen"
placeholder=
"请输入"
data-alert=
"请输入租金单价!"
>
元/m/天
<input
type=
"number"
class=
"form-control
input-100-width
"
id=
"jinshen"
placeholder=
"请输入"
data-alert=
"请输入租金单价!"
>
元/m/天
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
是否有转让费:
</label>
<label
class=
""
>
是否有转让费:
</label>
<label
class=
"checkbox-inline"
>
<label
class=
"checkbox-inline"
>
<input
type=
"checkbox"
id=
"foreignZhuanrangFace"
value=
"面议"
>
是
<input
type=
"checkbox"
id=
"foreignZhuanrangFace"
value=
"面议"
>
是
</label>
</label>
<div
class=
"input-group"
>
<!--<div class="input-group">-->
<input
type=
"number"
class=
"form-control input-100-width"
id=
""
placeholder=
"请输入"
data-alert=
"请填写转让费!"
>
<input
type=
"number"
class=
"form-control input-100-width"
id=
""
placeholder=
"请输入"
data-alert=
"请填写转让费!"
>
元
<div
class=
"input-group-addon"
>
元
</div>
<!--</div>-->
</div>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
免租时间:
</label>
<label
class=
""
>
免租时间:
</label>
<label
class=
"checkbox-inline"
>
<label
class=
"checkbox-inline"
>
<input
type=
"checkbox"
id=
"foreignZhuanrangFace"
value=
"面议"
>
面议
<input
type=
"checkbox"
id=
"foreignZhuanrangFace"
value=
"面议"
>
面议
</label>
</label>
<div
class=
"input-group"
>
<!--<div class="input-group">-->
<input
type=
"number"
class=
"form-control input-100-width"
id=
""
placeholder=
"请输入"
data-alert=
"请填写免租时间!"
>
<input
type=
"number"
class=
"form-control input-100-width"
id=
""
placeholder=
"请输入"
data-alert=
"请填写转让费!"
>
元
<div
class=
"input-group-addon"
>
月
</div>
<!--</div>-->
</div>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
佣金规则:
</label>
<label
class=
""
>
佣金规则:
</label>
<input
type=
"text"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入物业管理费!"
>
<input
type=
"text"
class=
"form-control
input-100-width
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入物业管理费!"
>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
物业管理费:
</label>
<label
class=
""
>
物业管理费:
</label>
<input
type=
"number"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入物业管理费!"
>
元/m/天
<input
type=
"number"
class=
"form-control
input-100-width
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入物业管理费!"
>
元/m/天
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
可容纳工位:
</label>
<label
class=
""
>
可容纳工位:
</label>
<input
type=
"number"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
<input
type=
"number"
class=
"form-control
"
style=
"width: 100px!important;
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
-
-
<input
type=
"number"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
<input
type=
"number"
class=
"form-control
"
style=
"width: 100px!important;
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
面积:
</label>
<label
class=
""
>
面积:
</label>
<input
type=
"number"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入面积!"
>
m
<input
type=
"number"
class=
"form-control
input-100-width
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入面积!"
>
m
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
所在楼层:
</label>
<label
class=
""
>
所在楼层:
</label>
<input
type=
"number"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入楼层!"
>
楼
<input
type=
"number"
class=
"form-control
input-100-width
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入楼层!"
>
楼
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
房号:
</label>
<label
class=
""
>
房号:
</label>
<input
type=
"number"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入房号!"
>
<input
type=
"number"
class=
"form-control
input-100-width
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入房号!"
>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
所属楼层 :
</label>
<label
class=
""
>
所属楼层 :
</label>
<select
class=
"form-control
half
"
name=
"dianya"
id=
"dianya"
data-alert=
"请选择所属楼层"
>
<select
class=
"form-control
input-100-width
"
name=
"dianya"
id=
"dianya"
data-alert=
"请选择所属楼层"
>
<option
value=
""
>
请选择
</option>
<option
value=
""
>
请选择
</option>
<option
value=
"220"
>
底层
</option>
<option
value=
"220"
>
底层
</option>
<option
value=
"380"
>
中层
</option>
<option
value=
"380"
>
中层
</option>
<option
value=
"380"
>
高层
</option>
<option
value=
"380"
>
高层
</option>
</select>
</select>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
入驻时间:
</label>
<label
class=
""
>
入驻时间:
</label>
<input
type=
"date"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入入驻时间!"
>
<input
type=
"date"
class=
"form-control
input-100-width
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入入驻时间!"
>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
for=
"shangpuType"
>
付款规则
</label>
<label
for=
"shangpuType"
>
付款规则
</label>
<span>
付
</span>
<span>
付
</span>
<select
class=
"form-control"
name=
"guizeFu"
id=
"guizeFu"
data-alert=
"请选择付款规则付多少"
>
<select
class=
"form-control"
name=
"guizeFu"
id=
"guizeFu"
data-alert=
"请选择付款规则付多少"
>
...
@@ -217,40 +258,37 @@
...
@@ -217,40 +258,37 @@
<option
value=
"12"
>
12
</option>
<option
value=
"12"
>
12
</option>
</select>
</select>
</div>
</div>
<div
class=
"col-xs-3 p-t-10"
>
<div
class=
"col-xs-4 p-t-10"
>
<label
for=
""
>
签约年限
</label>
<label
class=
""
>
签约年限:
</label>
<div
class=
"input-group"
>
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入签约年限!"
>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"qianyueNianxian"
placeholder=
"请填写"
data-alert=
"请填写签约年限上限!"
>
-
<div
class=
"input-group-addon"
>
至
</div>
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入签约年限!"
>
年
<input
type=
"number"
class=
"form-control input-100-width"
id=
"qianyueNianxian2"
placeholder=
"请输入"
data-alert=
"请填写签约年限下限!"
>
<div
class=
"input-group-addon"
>
年
</div>
</div>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
可注册公司:
</label>
<label
class=
""
>
可注册公司:
</label>
<select
class=
" form-control
half
"
id=
"hasGas"
data-alert=
"请选择燃气!"
>
<select
class=
" form-control
input-100-width
"
id=
"hasGas"
data-alert=
"请选择燃气!"
>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"1"
>
否
</option>
</select>
</select>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
是否可分割:
</label>
<label
class=
""
>
是否可分割:
</label>
<select
class=
" form-control
half
"
id=
"yanguandao"
data-alert=
"请选择烟管道!"
>
<select
class=
" form-control
input-100-width
"
id=
"yanguandao"
data-alert=
"请选择烟管道!"
>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
</select>
</select>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
车位情况:
</label>
<label
class=
""
>
车位情况:
</label>
<input
type=
"text"
class=
"form-control
half
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入车位情况!"
>
<input
type=
"text"
class=
"form-control
input-100-width
"
id=
"dianliang"
placeholder=
"请输入"
data-alert=
"请输入车位情况!"
>
</div>
</div>
<div
class=
"col-xs-
3
p-t-10"
>
<div
class=
"col-xs-
4
p-t-10"
>
<label
class=
""
>
交付装修 :
</label>
<label
class=
""
>
交付装修 :
</label>
<select
class=
" form-control
half
"
id=
"zuhangxiu"
data-alert=
"请选择交付装修!"
>
<select
class=
" form-control
input-100-width
"
id=
"zuhangxiu"
data-alert=
"请选择交付装修!"
>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
"1"
>
毛胚
</option>
<option
value=
"1"
>
毛胚
</option>
<option
value=
"2"
>
现状
</option>
<option
value=
"2"
>
现状
</option>
...
@@ -281,7 +319,7 @@
...
@@ -281,7 +319,7 @@
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<label
for=
""
>
详情图(至少2张)
</label>
<label
for=
""
>
室内
详情图(至少2张)
</label>
<input
readonly=
"readonly"
type=
"text"
name=
"xiangqing_pic_input"
class=
"form-control"
style=
"display: none"
id=
"xiangqing_pic_input"
placeholder=
"请选择图片"
>
<input
readonly=
"readonly"
type=
"text"
name=
"xiangqing_pic_input"
class=
"form-control"
style=
"display: none"
id=
"xiangqing_pic_input"
placeholder=
"请选择图片"
>
<input
class=
"upload-image-btn"
id=
"xiangqing_pic_btn"
type=
"file"
data-limittop=
"20"
style=
"display: inline-block;"
>
<input
class=
"upload-image-btn"
id=
"xiangqing_pic_btn"
type=
"file"
data-limittop=
"20"
style=
"display: inline-block;"
>
<button
class=
"btn btn-default btn-default-liu"
>
选择图片
</button>
<button
class=
"btn btn-default btn-default-liu"
>
选择图片
</button>
...
@@ -295,7 +333,7 @@
...
@@ -295,7 +333,7 @@
</div>
</div>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
></ul>
<ul
class=
"img-pre-ul"
id=
"xiangqing_pic_ul"
></ul>
</li>
</li>
<li
class=
"list-group-item"
>
<
!--<
li class="list-group-item">
<div class="form-group full-width-100 full-pic-area">
<div class="form-group full-width-100 full-pic-area">
<label for="">楼层平面图(选填)</label>
<label for="">楼层平面图(选填)</label>
<input readonly="readonly" type="text" name="louceng_pic_input" class="form-control" style="display: none" id="louceng_pic_input" placeholder="请选择图片">
<input readonly="readonly" type="text" name="louceng_pic_input" class="form-control" style="display: none" id="louceng_pic_input" placeholder="请选择图片">
...
@@ -305,8 +343,8 @@
...
@@ -305,8 +343,8 @@
<span class="tip"></span>
<span class="tip"></span>
</div>
</div>
<ul class="img-pre-ul" id="louceng_pic_ul"></ul>
<ul class="img-pre-ul" id="louceng_pic_ul"></ul>
</li>
</li>
-->
<li
class=
"list-group-item"
>
<
!--<
li class="list-group-item">
<div class="form-group full-width-100 full-pic-area">
<div class="form-group full-width-100 full-pic-area">
<label for="">附件上传(pdf格式,选填,1个)</label>
<label for="">附件上传(pdf格式,选填,1个)</label>
<input readonly="readonly" type="text" name="fujian_pre" class="form-control" style="display: none" id="fujian_pre" placeholder="请选择图片">
<input readonly="readonly" type="text" name="fujian_pre" class="form-control" style="display: none" id="fujian_pre" placeholder="请选择图片">
...
@@ -316,7 +354,7 @@
...
@@ -316,7 +354,7 @@
<span class="tip"></span>
<span class="tip"></span>
</div>
</div>
<ul class="img-pre-ul" id="fujian_ul"></ul>
<ul class="img-pre-ul" id="fujian_ul"></ul>
</li>
</li>
-->
<li
class=
"list-group-item li_dujia_area"
>
<li
class=
"list-group-item li_dujia_area"
>
...
...
application/route.php
View file @
668a668f
...
@@ -364,7 +364,9 @@ Route::group('index', [
...
@@ -364,7 +364,9 @@ Route::group('index', [
'dayAchievementsReport'
=>
[
'index/PerformanceReport/dayAchievementsReportList'
,
[
'method'
=>
'POST|GET'
]],
//日报liu
'dayAchievementsReport'
=>
[
'index/PerformanceReport/dayAchievementsReportList'
,
[
'method'
=>
'POST|GET'
]],
//日报liu
'weekAchievementsReport'
=>
[
'index/PerformanceReport/weekAchievementsReportList'
,
[
'method'
=>
'POST|GET'
]],
//周报liu
'weekAchievementsReport'
=>
[
'index/PerformanceReport/weekAchievementsReportList'
,
[
'method'
=>
'POST|GET'
]],
//周报liu
'officeBuildingList'
=>
[
'index/OfficeBuilding/officeBuildingList'
,
[
'method'
=>
'POST|GET'
]],
//办公楼liu
'officeBuildingList'
=>
[
'index/OfficeBuilding/officeBuildingList'
,
[
'method'
=>
'POST|GET'
]],
//办公楼liu
'officeEdit'
=>
[
'index/OfficeBuilding/officeEdit'
,
[
'method'
=>
'POST|GET'
]],
//办公楼liu
'officeEdit'
=>
[
'index/OfficeBuilding/officeEdit'
,
[
'method'
=>
'POST|GET'
]],
//办公楼新增编辑liu
'buildingDictionary'
=>
[
'index/OfficeBuilding/buildingDictionary'
,
[
'method'
=>
'POST|GET'
]],
//楼盘字典liu
//‘页面的地址’ =》 index/控制器名称/使用的方法
//‘页面的地址’ =》 index/控制器名称/使用的方法
'inviteStatistics'
=>
[
'index/InviteStatistics/inviteStatisticsList'
,
[
'method'
=>
'POST|GET'
]],
//邀请注册liu
'inviteStatistics'
=>
[
'index/InviteStatistics/inviteStatisticsList'
,
[
'method'
=>
'POST|GET'
]],
//邀请注册liu
...
...
public/resource/js/buildingDictionary.js
0 → 100644
View file @
668a668f
/**
* Created by 刘丹 on 2017/12/11.
*/
define
([
'doT'
,
'text!temp/building_dictionary_list_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
//处理文件名,长度过长时处理
function
dealFileName
(
str
)
{
//如果文件超过30的长度,则用*代替
if
(
str
.
length
>
26
)
{
return
str
.
slice
(
0
,
23
)
+
'***'
+
str
.
slice
(
-
4
);
}
else
{
return
str
;
};
};
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
business
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
AuthToken
:
''
,
agent_id
:
0
,
agent_phone
:
''
,
agent_name
:
''
,
/*每页显示多少条*/
id
:
''
,
house_id
:
''
,
type
:
''
,
valueCurrent
:
''
,
ajaxObj
:
''
,
stopstatus
:
true
,
ldHtml
:
$
(
'.phone_list'
),
boxphoto
:
''
,
exclusive_id
:
0
,
isFollowupSaving
:
false
,
detailTabIndex
:
0
,
//查看 弹出框 tab切换 初始化
all_shop
:
true
,
// false: 本人商铺,true:所有商铺
is_exclusive_type
:
0
,
//0非独家 1:独家
auth_edit_exclusive
:
0
,
//0:无独家权限 1:有独家权限
main_select
:
false
,
// true : 开启高级搜索 ,false :关闭高级搜索
file_id_str
:
''
,
file_id_arr
:[],
agent_id_choose
:
''
,
agent_id_choose_p
:
''
,
generalize_id
:
1
,
detailTabIndexTuiGuang
:
0
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
//初始化城市 区域筛选
// 商铺列表 默认显示求租房源
$
(
'#lease_state'
).
val
(
1
);
business
.
getList
(
1
);
business
.
event
();
//显示 隐藏城市 默认显示 当前账号 所在城市
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
city
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".shop_city_choose_site_list"
).
append
(
str
);
}
else
{
var
_city
=
user_info_obj
.
city
;
var
_str1
=
'<option value="">选择城市</option>'
;
var
_str
=
_str1
+
'<option value="'
+
_city
+
'">'
+
_city
+
'</option>'
;
$
(
".shop_city_choose_site_list"
).
append
(
_str
);
}
}
});
},
event
:
function
()
{
var
_doc
=
$
(
document
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
business
.
AuthToken
=
user_info_obj
.
AuthToken
;
business
.
agent_id
=
user_info_obj
.
id
;
business
.
phone
=
user_info_obj
.
phone
;
business
.
name
=
user_info_obj
.
name
;
//地铁 商圈 增加 减少
//详情弹出框,成交信息里的实收佣金相关的事件
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
_doc
.
on
(
'click'
,
'#bargaininfo_commission_add_btn>img'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
$
(
'.detail-modal-bargaininfo-commission-addarea>div'
).
length
>=
5
){
alert
(
'最多添加5条'
);
return
false
;
}
else
{
_iYJAAObj
.
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"></select><select class="form-control btn2-city" id="shop_area_id_line"><option value="" selected="selected">区域</option></select><input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" id="set_father_id2" 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>'
);
};
});
//详情弹出框,成交信息里的实收佣金相关的事件,点击x删除这条
_doc
.
on
(
'click'
,
'.detail-modal-bargaininfo-commission-cancel-pic'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
$
(
"#search"
).
click
(
function
()
{
checkLogin
();
business
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#business_circle_id'
).
html
(
''
);
business
.
agent_id_choose
=
''
;
business
.
agent_id_choose_p
=
''
;
});
$
(
".add"
).
click
(
function
()
{
//点击新增 获取城市
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
city
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".shop_city_choose_site_list_add"
).
append
(
str
);
}
else
{
var
_city
=
user_info_obj
.
city
;
var
_str1
=
'<option value="">选择城市</option>'
;
var
_str
=
_str1
+
'<option value="'
+
_city
+
'">'
+
_city
+
'</option>'
;
$
(
".shop_city_choose_site_list_add"
).
append
(
_str
);
}
}
});
//地铁
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
.
length
!=
0
)
{
var
str
=
'<option value="">选择地铁</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
city
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".shop_city_choose_site_list_line"
).
append
(
str
);
}
else
{
var
_city
=
user_info_obj
.
city
;
var
_str1
=
'<option value="">选择地铁</option>'
;
var
_str
=
_str1
+
'<option value="'
+
_city
+
'">'
+
_city
+
'</option>'
;
$
(
".shop_city_choose_site_list_line"
).
append
(
_str
);
}
}
});
});
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'.shop_city_choose_site_list'
,
function
()
{
$
(
'#shop_area_id'
).
val
(
''
);
$
(
'#business_circle_id'
).
val
(
''
);
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
$
(
'#shop_area_id'
).
html
(
''
);
//先清空
$
(
'#business_circle_id'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
name
+
'">'
+
item
.
name
+
'</option>'
;
});
$
(
'#shop_area_id'
).
html
(
_str
);
});
}
else
{};
});
//点击 区域 获取 商圈
_doc
.
on
(
'input'
,
'#shop_area_id'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
$
(
'#business_circle_id'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getBusinessCircle
(
_id
,
function
(
_data
)
{
console
.
log
(
22
)
var
_str
=
'<option value="">商圈</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
name
+
'</option>'
;
});
$
(
'#business_circle_id'
).
html
(
_str
);
});
}
else
{};
});
//城市 区域 二级联动 筛选(新增)
_doc
.
on
(
'input'
,
'.shop_city_choose_site_list_add'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
$
(
'#shop_area_id_add'
).
html
(
''
);
//先清空
$
(
'#business_circle_id_add'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
name
+
'">'
+
item
.
name
+
'</option>'
;
});
$
(
'#shop_area_id_add'
).
html
(
_str
);
});
}
else
{};
});
//地铁 区域
_doc
.
on
(
'input'
,
'.shop_city_choose_site_list_line'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
$
(
'#shop_area_id_line'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
name
+
'">'
+
item
.
name
+
'</option>'
;
});
$
(
'#shop_area_id_line'
).
html
(
_str
);
});
}
else
{};
});
//点击 区域 获取 商圈(新增)
_doc
.
on
(
'input'
,
'#shop_area_id_add'
,
function
()
{
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
$
(
'#business_circle_id'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getBusinessCircleAdd
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">商圈</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
name
+
'</option>'
;
});
console
.
log
(
_str
)
$
(
'#business_circle_id_add'
).
html
(
_str
);
});
}
else
{};
});
//添加图片
$
(
'#file_input_pic'
).
on
(
'change'
,
function
(){
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'image'
,
_this
[
0
].
files
[
0
]);
$
.
ajax
({
type
:
'post'
,
url
:
ServerHostImageLiu
+
'/index/uploadImg'
,
data
:
formData
,
dataType
:
'json'
,
contentType
:
false
,
cache
:
false
,
processData
:
false
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
_data
.
code
==
200
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del">删除</span></div>'
.
stringFormatObj
({
'0'
:
_data
.
data
.
img_path
,
'1'
:
_data
.
data
.
internet_img_name
?
urlDeal
(
_data
.
data
.
internet_img_name
):
_data
.
data
.
internet_img_name
}));
}
else
{
alert
(
_data
.
msg
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
//图片删除事件
_doc
.
on
(
'click'
,
'.span-del'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
});
//图片删除,已有的则调用接口删除 编辑
_doc
.
on
(
'click'
,
'.span-del2'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
confirm
(
'确认删除吗?'
)){
_this
.
parent
().
remove
();
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
});
//保存上传的图片
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
for
(
var
i
=
0
;
i
<
$
(
'.result'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
};
var
id_pic
=
that
.
house_fatherid
>
0
?
that
.
house_fatherid
:
that
.
house_id
;
var
_data
=
{
img_id
:
id_pic
};
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
return
};
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/addReceiptImg'
,
data
:
_data
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
alert
(
'保存成功'
);
$
(
'#container_body_img_area'
).
html
(
""
);
$
(
'.pic-con2'
).
show
();
$
(
'.pic-con1'
).
hide
();
$
(
'.active'
).
removeClass
(
"active"
);
$
(
'.shoukuanxiangqing'
).
addClass
(
"active"
);
that
.
getList
(
1
);
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
});
},
getList
:
function
(
pageNo
,
type
)
{
//商铺列表 搜索
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
business
.
pageNo
=
pageNo
;
var
params
=
{};
// 商铺列表 默认时间显示
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
params
.
agent_id
=
user_info_obj
.
id
;
params
.
pageNo
=
business
.
pageNo
;
params
.
pageSize
=
business
.
pageSize
;
params
.
is_carefully_chosen
=
$
(
'#is_carefully_chosen option:selected'
).
val
();
//首页显示
params
.
is_show
=
$
(
'#is_show option:selected'
).
val
();
//c端显示
params
.
shop_type
=
$
(
'#shop_type option:selected'
).
val
();
//商铺类型
// params.leased = $('#leased option:selected').val(); 商铺状态
params
.
status
=
$
(
'#leased option:selected'
).
val
();
//商铺状态 上架 下架
params
.
is_exclusive_type
=
-
1
;
//是否独家
params
.
id
=
$
(
'#id'
).
val
();
//商铺编号
params
.
internal_address
=
$
(
'#shop_address'
).
val
();
//商铺地址,即对内地址
params
.
internal_title
=
$
(
'#internal_title'
).
val
();
//对内商铺名称
params
.
external_title
=
$
(
'#internal_title_open'
).
val
();
//对外商铺名称
params
.
is_lock
=
-
1
;
//锁盘筛选
params
.
vip
=
-
1
;
//VIP盘筛选
//添加个人商铺和所有商铺选择功能
params
.
dish_id
=
business
.
all_shop
?
''
:
user_info_obj
.
id
;
params
.
city
=
$
(
'.shop_city_choose_site_list'
).
val
();
//城市筛选
params
.
disc
=
$
(
'#shop_area_id'
).
val
();
//区域筛选
params
.
business_id
=
$
(
'#business_circle_id'
).
val
();
//商圈筛选
params
.
industry_type
=
$
(
'#yetai_id'
).
val
();
//业态筛选
params
.
dish_phone
=
$
(
'#dish_phone'
).
val
();
//盘方手机号
params
.
landlord_phone
=
$
(
'#landlord_phone'
).
val
();
//房东手机号
params
.
start_date
=
$
(
'#start_date'
).
val
();
//时间1
params
.
end_date
=
$
(
'#end_date'
).
val
();
//时间2
params
.
dish_district_id
=
$
(
'#district_id_panfang'
).
val
();
//盘方 部门 id
params
.
dish_store_id
=
$
(
'#guest_stores_panfang'
).
val
();
//盘方 门店 id
params
.
dish_name
=
business
.
agent_id_choose
;
//盘方姓名 下拉式
params
.
area_start
=
$
(
'#area_start'
).
val
();
//面积开始
params
.
area_end
=
$
(
'#area_end'
).
val
();
//面积结束
params
.
price_start
=
$
(
'#price_start'
).
val
();
//月租金开始
params
.
price_end
=
$
(
'#price_end'
).
val
();
//月租金结束
params
.
fit_industry_type
=
$
(
'#suitable_yetai_input'
).
val
();
//适合业态
params
.
residue_type
=
1
;
//求租 已租 无效 筛选
$
.
ajax
({
url
:
'/index/getHouseList.html'
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'building_dictionary_list'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
//显示优化
var
_tempObj
=
$
(
'.btn-default-show-caozuo'
);
$
.
each
(
_tempObj
,
function
(
i
,
v
)
{
var
_$this
=
$
(
v
);
_$this
.
nextAll
().
hide
();
//默认按钮只显示两个
if
(
_$this
.
index
()
==
0
){
_$this
.
click
();
}
});
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
business
.
pageSize
,
business
.
getList
);
},
complete
:
function
(){
$
(
'#main_loading_pic'
).
hide
();
}
});
},
//获取图片 编辑
getaddPicList
:
function
(
id
)
{
//获取收款图片
$
(
'#container_body_img_area'
).
html
(
''
);
//每回先清空所有图片
var
id_pic
=
id
;
//follow.house_fatherid > 0?follow.house_fatherid:follow.house_id;
$
(
'.result2,.result'
).
remove
();
//删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/receiptImgList'
,
data
:
{
"id"
:
id_pic
,
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
//渲染已经有的列表
// <img src='[%= it[item]["agent_img"] %]' class="diagram-image J_preview"
// data-bimg='[%= it[item]["agent_img"] %]'>
for
(
i
=
0
;
i
<
data
.
data
.
length
;
i
++
)
{
$
(
'#container_body_img_area'
).
append
(
'<div class="result2"><img data-imgid="{0}" src="{1}" alt="" class="diagram-image J_preview" data-bimg="{1}"/> <span class="span-del2">删除</span></div>'
.
stringFormatObj
({
'0'
:
data
.
data
[
i
].
id
,
'1'
:
data
.
data
[
i
].
img_name
?
urlDeal
(
data
.
data
[
i
].
img_name
):
data
.
data
[
i
].
img_name
}));
};
}
else
{
alert
(
data
.
msg
)
}
}
});
},
//城市 区域 筛选
getDistrictStoreList
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getAllDisc'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'city'
:
id
,
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
//商圈 筛选
getBusinessCircle
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getBusinessAll'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'city'
:
$
(
'.shop_city_choose_site_list'
).
val
(),
'disc'
:
$
(
'#shop_area_id'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
//商圈 筛选
getBusinessCircleAdd
:
function
(
id
,
fn
)
{
$
.
ajax
({
url
:
'/index/getBusinessAll'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'city'
:
$
(
'.shop_city_choose_site_list_add'
).
val
(),
'disc'
:
$
(
'#shop_area_id_add'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
fn
&&
fn
(
data
.
data
);
}
}
});
},
};
return
business
;
});
\ No newline at end of file
public/resource/template/building_dictionary_list_template_tpl.html
0 → 100644
View file @
668a668f
<script
id=
"building_dictionary_list"
type=
"text/template"
>
[
%
var
sw
=
function
(
s
){
switch
(
Number
(
s
)){
case
2
:
return
"btn-info"
;
case
1
:
return
"btn-default"
}};
%
]
[
%
var
sw2
=
function
(
s
){
switch
(
Number
(
s
)){
case
0
:
return
"btn-info"
;
case
1
:
return
"btn-default"
}};
%
]
[
%
var
sw3
=
function
(
s
){
switch
(
Number
(
s
)){
case
0
:
return
"btn-info"
;
case
1
:
return
"btn-default"
}};
%
]
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
+
'-'
+
it
[
item
][
"shop_area_end"
]
%
]
㎡
[
%
}
else
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
%
]
㎡
[
%
}
%
]
<
/td
>
<
td
width
=
"10%"
>
[
%=
hideStr
(
it
[
item
][
'industry_type'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'dish_name'
]
%
]
<
/td
>
<
td
width
=
"10%"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"status"
]
==
0
)
{
%
]
审核
[
%
}
else
if
(
it
[
item
][
"status"
]
==
1
){
%
]
上架
[
%
}
else
if
(
it
[
item
][
"status"
]
==
2
){
%
]
下架
[
%
}
else
if
(
it
[
item
][
"status"
]
==
3
){
%
]
无效
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"residue_num"
]
==
0
)
{
%
]
已租
[
%
}
else
{
%
]
求租
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
是
[
%
}
else
if
(
it
[
item
][
"is_show"
]
==
1
)
{
%
]
否
[
%
}
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success"
href
=
"#modal_add_loupan"
data
-
toggle
=
"modal"
>
编辑
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"16"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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