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
1c485758
Commit
1c485758
authored
Jun 11, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
928bca5a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
87 additions
and
34 deletions
+87
-34
index.html
application/index/view/office/index.html
+4
-4
buildingDictionary.js
public/resource/js/buildingDictionary.js
+35
-2
my_collection_office_template_tpl.html
.../resource/template/my_collection_office_template_tpl.html
+48
-28
No files found.
application/index/view/office/index.html
View file @
1c485758
...
@@ -341,7 +341,7 @@
...
@@ -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 fade"
id=
"modal_add_loupan"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"width: 9
60px;
"
>
<div
class=
"modal-dialog"
style=
"width: 9
88px; height:600px;overflow:scroll
"
>
<div
class=
"modal-content modal-body-new-user"
>
<div
class=
"modal-content modal-body-new-user"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
...
@@ -366,7 +366,7 @@
...
@@ -366,7 +366,7 @@
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
楼盘类型:
</label>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
楼盘类型:
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<select
class=
"form-control"
id=
"loupan_type"
>
<select
class=
"form-control"
id=
"loupan_type"
>
<option
value=
""
>
请选择
</option>
<option
value=
"
-1
"
>
请选择
</option>
<option
value=
"1"
>
写字楼
</option>
<option
value=
"1"
>
写字楼
</option>
<option
value=
"2"
>
商住两用
</option>
<option
value=
"2"
>
商住两用
</option>
<option
value=
"3"
>
园区
</option>
<option
value=
"3"
>
园区
</option>
...
@@ -434,7 +434,7 @@
...
@@ -434,7 +434,7 @@
<label
class=
"col-sm-3 control-label"
style=
"margin-top: 10px;"
>
周边交通:
</label>
<label
class=
"col-sm-3 control-label"
style=
"margin-top: 10px;"
>
周边交通:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<div
class=
"detail-modal-bargaininfo-commission-addarea"
>
<div
class=
"detail-modal-bargaininfo-commission-addarea"
>
<div
class=
"detail-modal-bargaininfo-commission-sec form-group"
>
<
!--<
div class="detail-modal-bargaininfo-commission-sec form-group">
<label class="control-label" style="float: left;">距离</label>
<label class="control-label" style="float: left;">距离</label>
<select class="form-control btn2-city shop_city_choose_site_list_line">
<select class="form-control btn2-city shop_city_choose_site_list_line">
<option value="" selected="selected">请选择</option>
<option value="" selected="selected">请选择</option>
...
@@ -444,7 +444,7 @@
...
@@ -444,7 +444,7 @@
</select>
</select>
<input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" id="set_father_id2" placeholder="请输入">
<input type="number" class="form-control btn2-city" name="user_phone" autocomplete="off" id="set_father_id2" placeholder="请输入">
<label class="control-label">米</label>
<label class="control-label">米</label>
</div>
</div>
-->
</div>
</div>
...
...
public/resource/js/buildingDictionary.js
View file @
1c485758
...
@@ -106,6 +106,23 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -106,6 +106,23 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
$
(
".add"
).
click
(
function
(
e
)
{
//点击新增 置空数据
$
(
".add"
).
click
(
function
(
e
)
{
//点击新增 置空数据
business
.
isAdd
=
1
;
business
.
isAdd
=
1
;
$
(
'.isshowLou'
).
hide
();
$
(
'.isshowLou'
).
hide
();
//置空新增数据
$
(
'#loupan_type'
).
val
(
-
1
);
$
(
'#loupan_title'
).
val
(
''
);
$
(
'#province_internal'
).
val
(
''
);
$
(
'#city_internal'
).
val
(
''
);
$
(
'#disc_internal'
).
val
(
''
);
$
(
'#longitude'
).
val
(
''
);
$
(
'#latitude'
).
val
(
''
);
$
(
'#address_internal'
).
val
(
''
);
$
(
'#business_rong'
).
val
(
-
1
);
$
(
'#loucengOffice'
).
val
(
''
);
$
(
'#introOffice'
).
val
(
''
);
$
(
'#container_body_img_area'
).
html
(
''
);
$
(
'.detail-modal-bargaininfo-commission-addarea'
).
html
(
''
);
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
_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">'
+
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>'
);
});
});
_doc
.
on
(
'click'
,
'.edit'
,
function
(
e
)
{
//点击编辑 获取数据
_doc
.
on
(
'click'
,
'.edit'
,
function
(
e
)
{
//点击编辑 获取数据
...
@@ -282,7 +299,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -282,7 +299,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
if
(
$
(
'#disc_internal'
).
val
()
){
if
(
$
(
'#disc_internal'
).
val
()
){
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'getBusinessAll'
,
url
:
'
/index/
getBusinessAll'
,
data
:
{
"disc"
:
$
(
'#disc_internal'
).
val
()},
data
:
{
"disc"
:
$
(
'#disc_internal'
).
val
()},
timeout
:
30000
,
timeout
:
30000
,
// traditional: true,
// traditional: true,
...
@@ -589,6 +606,22 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -589,6 +606,22 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
}
else
{
}
else
{
business
.
url
=
'/office_index/houseDictionaryAdd'
;
business
.
url
=
'/office_index/houseDictionaryAdd'
;
}
}
//验证必填项
if
(
$
(
'#loupan_title'
).
val
()
==
''
){
alert
(
'楼盘名称必填'
);
}
if
(
$
(
'#loupan_type'
).
val
()
==
-
1
){
alert
(
'楼盘类型必选'
);
}
if
(
$
(
'#introOffice'
).
val
()
==
''
){
alert
(
'楼盘简介必选'
);
}
if
(
$
(
'#loucengOffice'
).
val
()
==
''
){
alert
(
'楼盘楼层必选'
);
}
if
(
_cityInternalObj
.
val
()
==
''
){
alert
(
'请选择楼盘地址'
);
}
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
...
@@ -745,7 +778,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
...
@@ -745,7 +778,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
$
(
'#business_rong'
).
html
(
''
);
$
(
'#business_rong'
).
html
(
''
);
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'getBusinessAll'
,
url
:
'
/index/
getBusinessAll'
,
data
:
{
"disc"
:
data
.
data
.
disc
},
data
:
{
"disc"
:
data
.
data
.
disc
},
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
...
public/resource/template/my_collection_office_template_tpl.html
View file @
1c485758
...
@@ -3,44 +3,64 @@
...
@@ -3,44 +3,64 @@
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
商场
写字楼
[
%
}
else
{
%
]
[
%
}
else
if
(
it
[
item
][
'type'
]
==
2
)
{
%
]
街铺
商住两用
[
%
}
else
if
(
it
[
item
][
'type'
]
==
3
)
{
%
]
园区
[
%
}
else
if
(
it
[
item
][
'type'
]
==
4
)
{
%
]
洋房
[
%
}
else
if
(
it
[
item
][
'type'
]
==
5
)
{
%
]
联合办公
[
%
}
else
if
(
it
[
item
][
'type'
]
==
6
)
{
%
]
厂房
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'disc'
]
%
]
<
/td
>
<
td
>
[
%=
hideStr
(
it
[
item
][
'disc'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'business_name'
]
%
]
<
/td
>
<
td
>
[
%=
hideStr
(
it
[
item
][
'title'
])
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'title'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'floor_tag'
]
==
1
)
{
%
]
底层
[
%
}
else
if
(
it
[
item
][
'floor_tag'
]
==
2
)
{
%
]
中层
[
%
}
else
if
(
it
[
item
][
'floor_tag'
]
==
3
)
{
%
]
高层
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"price_total"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"price"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"area"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"station_start"
]
%
]
-
[
%=
it
[
item
][
"station_end"
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
'rent_type'
]
==
1
)
{
%
]
[
%
if
(
it
[
item
][
"status"
]
==
0
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
元
审核
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
2
)
{
%
]
[
%
}
else
if
(
it
[
item
][
"status"
]
==
1
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
%
上架
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
3
)
{
%
]
[
%
}
else
if
(
it
[
item
][
"status"
]
==
2
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
元
/
天
/
㎡
下架
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
4
)
{
%
]
[
%
}
else
if
(
it
[
item
][
"status"
]
==
3
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
元
/
年
无效
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
"shop_type
"
]
==
0
)
{
%
]
[
%
if
(
it
[
item
][
"is_rent
"
]
==
0
)
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
+
'-'
+
it
[
item
][
"shop_area_end"
]
%
]
㎡
未租
[
%
}
else
{
%
]
[
%
}
else
{
%
]
[
%=
it
[
item
][
"shop_area_start"
]
%
]
㎡
已租
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
是
[
%
}
else
if
(
it
[
item
][
"is_show"
]
==
1
)
{
%
]
否
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'industry_type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'dish_name'
]
%
]
<
/td
>
<
td
width
=
"10%"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
class
=
"btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]"
href
=
"#modal_shop_detail"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"modal"
>
跟进
/
查看
<
/a
>
<
a
class
=
"btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]"
href
=
"#modal_shop_detail"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"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