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
3dcb5972
Commit
3dcb5972
authored
Jun 03, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5de72c91
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
358 additions
and
596 deletions
+358
-596
office_detail_pc.html
application/app_broker/view/index/office_detail_pc.html
+27
-26
officeEdit.html
application/index/view/officeBuilding/officeEdit.html
+44
-43
office_detail_pc.js
public/app/js/office_detail_pc.js
+3
-3
officeBuildingList.js
public/resource/js/officeBuildingList.js
+1
-33
officeEdit.js
public/resource/js/officeEdit.js
+248
-437
office_building_list_template_tpl.html
.../resource/template/office_building_list_template_tpl.html
+35
-54
No files found.
application/app_broker/view/index/office_detail_pc.html
View file @
3dcb5972
...
...
@@ -20,16 +20,16 @@
<table>
<tbody>
<tr>
<td>
所属楼盘:{{d.
id
}}
</td>
<td>
楼盘地址:{{
(d.shop_type==1)?'街铺':'商场'
}}
</td>
<td>
所属商圈:{{
(d.is_show==1)?'否':'是'
}}
</td>
<td>
总层数:{{
(d.is_exclusive_type==1)?'是':'否'
}}
</td>
<td>
所属楼盘:{{d.
building_data.title
}}
</td>
<td>
楼盘地址:{{
d.building_data.address
}}
</td>
<td>
所属商圈:{{
d.building_data.business_name
}}
</td>
<td>
总层数:{{
d.building_data.floor_total
}}
</td>
</tr>
<tr>
<td>
类型:{{d.
id
}}
</td>
<td>
交通:{{
(d.shop_type==1)?'街铺':'商场'
}}
</td>
<td>
简介:{{
(d.is_show==1)?'否':'是'
}}
</td>
<td>
楼盘图片:{{
(d.is_exclusive_type==1)?'是':'否'
}}
</td>
<td>
类型:{{d.
building_data.type
}}
</td>
<td>
交通:{{
d.building_data.traffic
}}
</td>
<td>
简介:{{
d.building_data.intro
}}
</td>
<td>
楼盘图片:{{
d.building_data.intro
}}
</td>
</tr>
<tr>
<td>
所在楼层:{{d.id}}
</td>
...
...
@@ -38,32 +38,33 @@
<td>
是否独家:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
</tr>
<tr>
<td>
租金总价:{{d.id}}
</td>
<td>
租金单价:{{(d.shop_type==1)?'街铺':'商场'}}
</td>
<td>
转让费:{{(d.is_show==1)?'否':'是'}}
</td>
<td>
物业管理费:{{(d.is_exclusive_type==1)?'是':'否'}}
</td>
<td>
租金总价:{{d.price_total}}
</td>
<td>
租金单价:{{d.price}}
</td>
<td>
转让费:{{d.slotting_fee}}
</td>
<!--<td>转让费:{{(d.is_show==1)?'否':'是'}}</td>-->
<td>
物业管理费:{{d.management_fee}}
</td>
</tr>
<tr>
<td>
可容纳工位:{{d.
i
d}}
</td>
<td>
面积:{{
(d.shop_type==1)?'街铺':'商场'
}}
</td>
<td>
所属楼层:{{
(d.is_show==1)?'否':'是'
}}
</td>
<td>
入驻时间:{{
(d.is_exclusive_type==1)?'是':'否'
}}
</td>
<td>
可容纳工位:{{d.
station_start}}-{{d.station_en
d}}
</td>
<td>
面积:{{
d.area
}}
</td>
<td>
所属楼层:{{
d.floor_tag
}}
</td>
<td>
入驻时间:{{
d.enter_time
}}
</td>
</tr>
<tr>
<td>
付款规则:{{d.
id
}}
</td>
<td>
签约年限:{{
(d.shop_type==1)?'街铺':'商场'
}}
</td>
<td>
可注册公司:{{(d.is_
show
==1)?'否':'是'}}
</td>
<td>
是否可分割:{{(d.is_
exclusive_type
==1)?'是':'否'}}
</td>
<td>
付款规则:{{d.
payment_month}}-{{d.deposit_month
}}
</td>
<td>
签约年限:{{
d.age_limit_start}}-{{d.age_limit_end
}}
</td>
<td>
可注册公司:{{(d.is_
register
==1)?'否':'是'}}
</td>
<td>
是否可分割:{{(d.is_
partition
==1)?'是':'否'}}
</td>
</tr>
<tr>
<td>
车位情况:{{d.
id
}}
</td>
<
td>
免租时间:{{(d.shop_type==1)?'街铺':'商场'}}
</td
>
<td>
来源:{{
(d.is_show==1)?'否':'是'
}}
</td>
<td>
是否对客户展示:{{(d.is_
exclusive_type==1
)?'是':'否'}}
</td>
<td>
车位情况:{{d.
carport
}}
</td>
<
!--<td>免租时间:{{(d.rent_free == -1)?'面议':d.rent_free}}</td>--
>
<td>
来源:{{
d.source
}}
</td>
<td>
是否对客户展示:{{(d.is_
show==0
)?'是':'否'}}
</td>
</tr>
<tr>
<td>
交付装修:{{d.
id
}}
</td>
<td>
办公楼标签:{{
(d.shop_type==1)?'街铺':'商场'
}}
</td>
<td>
交付装修:{{d.
decoration
}}
</td>
<td>
办公楼标签:{{
d.shop_sign
}}
</td>
<td></td>
<td></td>
</tr>
...
...
application/index/view/officeBuilding/officeEdit.html
View file @
3dcb5972
...
...
@@ -32,40 +32,44 @@
<form
class=
"form-inline"
id=
"main_form"
>
<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=
""
/>
<li
class=
"list-group-item"
id=
"li_loupan"
>
<div
class=
"form-group phone-list-container"
style=
"width: 70px;"
>
<label
for=
""
>
所属楼盘
</label>
</div>
<div
class=
"form-group phone-list-container"
id=
"loupan"
>
<input
type=
"text"
class=
"form-control phone_loupan"
placeholder=
"请输入"
>
<ul></ul>
</div>
</li>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<label
for=
"shangpuType"
>
楼盘地址:
</label>
<span>
上海市徐汇区云锦路500号
</span>
<span
class=
"address-list"
>
上海市徐汇区云锦路500号
</span>
</div>
<div
class=
"form-group"
style=
"display: none;"
>
<label
for=
"show_all"
>
所属商圈:
</label>
<span>
龙华
</span>
<span
class=
"business_name-list"
>
龙华
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
总层数:
</label>
<span>
23
</span>
<span
class=
"floor_total-list"
>
23
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
类型:
</label>
<span>
写字楼
</span>
<span
class=
"type-list"
>
写字楼
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
交通:
</label>
<span>
靠近11号线南京东路地铁站100米
</span>
<span
class=
"traffic-list"
>
靠近11号线南京东路地铁站100米
</span>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
简介:
</label>
<span>
巴拉巴拉了喇叭狼来了
</span>
<span
class=
"intro-list"
>
巴拉巴拉了喇叭狼来了
</span>
</div>
<br
/>
...
...
@@ -75,15 +79,16 @@
</li>
<li
class=
"list-group-item"
>
<
!--<
div class="form-group">
<label for="shangpuType">房源
类型
</label>
<select class="form-control" name="
shangpuType" id="shangpuType
" data-alert="请选择商铺类型">
<div
class=
"form-group"
>
<label
for=
"shangpuType"
>
房源
状态
</label>
<select
class=
"form-control"
name=
"
"
id=
"is_rent
"
data-alert=
"请选择商铺类型"
>
<option
value=
""
>
请选择
</option>
<option value="1">
街铺
</option>
<option value="0">
商场
</option>
<option
value=
"1"
>
已租
</option>
<option
value=
"0"
>
未租
</option>
</select>
</div>
-->
</div>
<!--<div class="form-group">-->
<!--新增时 不显示是否对客户展示-->
<div
class=
"form-group"
style=
"display: none;"
>
<label
for=
"show_all"
>
是否对客户展示
</label>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
disabled=
"disabled"
>
...
...
@@ -156,72 +161,68 @@
<div
class=
"col-xs-12 form-group"
>
<div
class=
"col-xs-4 p-t-10"
>
<label
>
租金总价:
</label>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
miankuan
"
placeholder=
"请输入"
data-alert=
"请输入租金总价!"
>
元/月
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
price_total
"
placeholder=
"请输入"
data-alert=
"请输入租金总价!"
>
元/月
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
租金单价:
</label>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
jinshen
"
placeholder=
"请输入"
data-alert=
"请输入租金单价!"
>
元/m/天
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
price_single
"
placeholder=
"请输入"
data-alert=
"请输入租金单价!"
>
元/m/天
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
是否有转让费:
</label>
<label
class=
"checkbox-inline"
>
<input
type=
"checkbox"
id=
"foreignZhuanrangFace"
value=
"面议"
>
是
</label>
<!--<div class="input-group">-->
<input
type=
"number"
class=
"form-control input-100-width"
id=
""
placeholder=
"请输入"
data-alert=
"请填写转让费!"
>
元
<label
class=
""
>
转让费:
</label>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"slotting_fee"
placeholder=
"请输入"
data-alert=
"请填写转让费!"
>
元
<!--</div>-->
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
免租时间:
</label>
<label
class=
"checkbox-inline"
>
<input
type=
"checkbox"
id=
"
foreignZhuanrangFace
"
value=
"面议"
>
面议
<input
type=
"checkbox"
id=
""
value=
"面议"
>
面议
</label>
<!--<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=
"
rent_free"
placeholder=
"请输入"
data-alert=
"请填写免租时间
!"
>
元
<!--</div>-->
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
佣金规则:
</label>
<input
type=
"text"
class=
"form-control input-100-width"
id=
"
dianliang"
placeholder=
"请输入"
data-alert=
"请输入物业管理费
!"
>
<input
type=
"text"
class=
"form-control input-100-width"
id=
"
fee_rule"
placeholder=
"请输入"
data-alert=
"请输入佣金规则
!"
>
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
物业管理费:
</label>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入物业管理费!"
>
元/m/天
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
management_fee
"
placeholder=
"请输入"
data-alert=
"请输入物业管理费!"
>
元/m/天
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
可容纳工位:
</label>
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
station_start
"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
-
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
station_end
"
placeholder=
"请输入"
data-alert=
"请输入可容纳工位!"
>
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
面积:
</label>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入面积!"
>
m
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
area
"
placeholder=
"请输入"
data-alert=
"请输入面积!"
>
m
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
所在楼层:
</label>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入楼层!"
>
楼
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
floor
"
placeholder=
"请输入"
data-alert=
"请输入楼层!"
>
楼
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
房号:
</label>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入房号!"
>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"
room_number
"
placeholder=
"请输入"
data-alert=
"请输入房号!"
>
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
所属楼层 :
</label>
<select
class=
"form-control input-100-width"
name=
"dianya"
id=
"
dianya
"
data-alert=
"请选择所属楼层"
>
<select
class=
"form-control input-100-width"
name=
"dianya"
id=
"
floor_tag
"
data-alert=
"请选择所属楼层"
>
<option
value=
""
>
请选择
</option>
<option
value=
"
220
"
>
底层
</option>
<option
value=
"
380
"
>
中层
</option>
<option
value=
"3
80
"
>
高层
</option>
<option
value=
"
1
"
>
底层
</option>
<option
value=
"
2
"
>
中层
</option>
<option
value=
"3"
>
高层
</option>
</select>
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
入驻时间:
</label>
<input
type=
"date"
class=
"form-control input-100-width"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入入驻时间!"
>
<input
type=
"date"
class=
"form-control input-100-width"
id=
"
enter_date
"
placeholder=
"请输入"
data-alert=
"请输入入驻时间!"
>
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
for=
"shangpuType"
>
付款规则
</label>
...
...
@@ -260,14 +261,14 @@
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
签约年限:
</label>
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入签约年限!"
>
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
qianyueNianxian
"
placeholder=
"请输入"
data-alert=
"请输入签约年限!"
>
-
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入签约年限!"
>
年
<input
type=
"number"
class=
"form-control"
style=
"width: 100px!important;"
id=
"
qianyueNianxian2
"
placeholder=
"请输入"
data-alert=
"请输入签约年限!"
>
年
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
可注册公司:
</label>
<select
class=
" form-control input-100-width"
id=
"
hasGas"
data-alert=
"请选择燃气
!"
>
<select
class=
" form-control input-100-width"
id=
"
is_register"
data-alert=
"请选择注册公司
!"
>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
...
...
@@ -276,7 +277,7 @@
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
是否可分割:
</label>
<select
class=
" form-control input-100-width"
id=
"
yanguandao"
data-alert=
"请选择烟管道
!"
>
<select
class=
" form-control input-100-width"
id=
"
is_partition"
data-alert=
"请选择是否可分割
!"
>
<option
value=
""
selected=
"selected"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
...
...
@@ -284,7 +285,7 @@
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
车位情况:
</label>
<input
type=
"text"
class=
"form-control input-100-width"
id=
"
dianliang
"
placeholder=
"请输入"
data-alert=
"请输入车位情况!"
>
<input
type=
"text"
class=
"form-control input-100-width"
id=
"
carport
"
placeholder=
"请输入"
data-alert=
"请输入车位情况!"
>
</div>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
交付装修 :
</label>
...
...
public/app/js/office_detail_pc.js
View file @
3dcb5972
...
...
@@ -25,7 +25,7 @@ require(['vue','css!style/office_detail_pc.css','jquery0325', 'common'], functio
content
:
''
,
//跟进的内容,填写
select_public
:
''
,
//c端公开选择
select_public_var
:
''
,
//记录c端公开 的变量
d
:
{}
d
:
{}
,
//房源详情
},
created
:
function
()
{
var
_this
=
this
;
...
...
@@ -262,10 +262,10 @@ require(['vue','css!style/office_detail_pc.css','jquery0325', 'common'], functio
var
_this
=
this
;
$
.
ajax
({
type
:
'get'
,
url
:
'/
broker/getShopDetail
'
,
url
:
'/
office/houseEdit
'
,
data
:
{
'id'
:
shop_id
,
'site_area'
:
4
,
//pc后台固定传4
//
'site_area': 4, //pc后台固定传4
'AuthToken'
:
_this
.
user_info_obj
.
AuthToken
},
timeout
:
30000
,
...
...
public/resource/js/officeBuildingList.js
View file @
3dcb5972
...
...
@@ -1315,40 +1315,8 @@ if(data.code == 200) {
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
=
$
(
'#is_exclusive_type option:selected'
).
val
();
//是否独家
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
=
$
(
'#is_lock_plate'
).
val
();
//锁盘筛选
params
.
vip
=
$
(
'#is_vip_plate'
).
val
();
//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
=
$
(
'#lease_state'
).
val
();
//求租 已租 无效 筛选
$
.
ajax
({
url
:
'/
index/getHouseList.html
'
,
//获取列表
url
:
'/
office_index/getRoomList
'
,
//获取列表
type
:
'GET'
,
async
:
true
,
data
:
params
,
...
...
public/resource/js/officeEdit.js
View file @
3dcb5972
define
([
'doT'
,
'css!style/shop_edit.css'
,
'ckfinder'
,
'ckfinderStart'
],
function
(
doT
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user
=
{
urlBuilding
:
''
,
del_value_panfang
:
''
,
del_value_anchang
:
''
,
initShopRong
:
false
,
//判断是否是需要加载商圈
...
...
@@ -16,81 +17,43 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
_objThis
=
this
,
//user对象
_id
=
getUrlParam
(
'id'
),
//地址栏获取的商铺或者街铺id
_source
=
getUrlParam
(
'source'
),
_sublet_id
=
getUrlParam
(
'sublet_id'
),
_sublet_id
=
getUrlParam
(
'sublet_id'
),
//对页面不影响
_doc
=
$
(
document
),
_tpl_landlord_phone1
=
$
(
'#my_tpl_landlord_phone1'
).
html
(),
//手机号码添加的位置模板
_urlCut
=
ServerHostImageLiu
+
'/resource/lib/Attachments/images/'
,
//要截取的部分url
_loadMainItem
=
$
(
'#main_loading_pic'
),
//整个页面的加载图标
_
showCdObj
=
$
(
'#showCd'
),
//显示给C端用户看
_
laiyuanObj
=
$
(
'#laiyuan'
),
//来源
_exclusiveTypeObj
=
$
(
'#exclusiveType'
),
//是否独家
_yetaiObj
=
$
(
'.yetai'
),
//业态
_miankuanObj
=
$
(
'#miankuan'
),
//面宽
_loucengfloorObj
=
$
(
'#loucengfloor'
),
//楼层
_jinshenObj
=
$
(
'#jinshen'
),
//进深
_dianliangObj
=
$
(
'#dianliang'
),
//电量
_dianyaObj
=
$
(
'#dianya'
),
//电压
_hasGasObj
=
$
(
'#hasGas'
),
//是否有燃气
_yanguandaoObj
=
$
(
'#yanguandao'
),
//是否有烟管道
_shangshuiObj
=
$
(
'#shangshui'
),
//是否有上水
_xiashuiObj
=
$
(
'#xiashui'
),
//是否有下水
_zuhangxiuObj
=
$
(
'#zuhangxiu'
),
//交付装修状态
_idRunRoundObj
=
$
(
'#id_run_round'
),
//目前证照经营范围
_roomTagObj
,
//商铺标签,初始化
_landlordPhoneObj
=
$
(
'.li_landlord_phone input'
),
//房东手机号
_internalNameObj
=
$
(
'#internalName'
),
//对内商铺名称
_suitableYetaiInputObj1
=
$
(
'.suitable-yetai-input:nth-of-type(1)'
),
//最适合业态
_suitableYetaiInputObj2
=
$
(
'.suitable-yetai-input:nth-of-type(2)'
),
//最适合业态
_suitableYetaiInputObj3
=
$
(
'.suitable-yetai-input:nth-of-type(3)'
),
//最适合业态
_projectNameObj
=
$
(
'#projectName'
),
//项目(大厦)名称
_zujinTypeObj
=
$
(
'#zujinType'
),
//租金模式
_moonPriceObj
=
$
(
'#moonPrice'
),
//月租均价
_wuyePriceObj
=
$
(
'#wuyePrice'
),
//物业管理费
_jinchangPriceObj
=
$
(
'#jinchangPrice'
),
//进场费,对内转让费
_foreignZhuanrangPriceObj
=
$
(
'#foreignZhuanrangPrice'
),
//对商户显示的转让费
_foreignZhuanrangFaceObj
=
$
(
'#foreignZhuanrangFace'
),
//对商户显示的转让费面议
_roomShengyuNumObj
=
$
(
'#roomShengyuNum'
),
//剩余铺数
_roomAllNumObj
=
$
(
'#roomAllNum'
),
//总铺数
_roomArea1Obj
=
$
(
'#roomArea1'
),
//商铺面积起始值
_roomArea2Obj
=
$
(
'#roomArea2'
),
//商铺面积结束值
_businessAreaObj
=
$
(
'#businessArea'
),
//商业面积,项目总面积,建筑面积
_provinceInternalObj
=
$
(
'#province_internal'
),
//对内地址省
_cityInternalObj
=
$
(
'#city_internal'
),
//对内地址市
_discInternalObj
=
$
(
'#disc_internal'
),
//对内地址区
_addressInternalObj
=
$
(
'#address_internal'
),
//对内地址详细地址
_longitudeObj
=
$
(
'#longitude'
),
//经度
_latitudeObj
=
$
(
'#latitude'
),
//纬度
_trafficObj
=
$
(
'#traffic'
),
//交通
// _hasMovedObj = $('#hasMoved'), 已入住
_yingyeTimeObj
=
$
(
'#yingyeTime'
),
//营业时间
_kaipanTimeObj
=
$
(
'#kaipanTime'
),
//开盘时间,即招商时间
_kaiyeTimeObj
=
$
(
'#kaiyeTime'
),
//开业时间
_yongjinRuleObj
=
$
(
'#yongjinRule'
),
//佣金规则
_guizeFuObj
=
$
(
'#guizeFu'
),
//签约规则,付
_guizeYaObj
=
$
(
'#guizeYa'
),
//签约规则,押
_qianyueNianxianObj
=
$
(
'#qianyueNianxian'
),
//签约年限
_qianyueNianxian2Obj
=
$
(
'#qianyueNianxian2'
),
//签约年限下限
_foreignYoushiObj
=
$
(
'#zhoubianpeitao'
),
//周边配套,以前的对外项目优势
_suoshudiduanObj
=
$
(
'#suoshudiduan'
),
//所处地段
_fujinrenliuObj
=
$
(
'#fujinrenliu'
),
//附近人流
_qitabuchongObj
=
$
(
'#qitabuchong'
),
//其他补充
_qianyueRuleObj
=
$
(
'#qianyueRule'
),
//签约规则
//_imgUploadLiebiao = $('#liebiao_pic_ul'), //列表页封面图ul
_imgUploadLunbo
=
$
(
'#xiangqing_pic_ul'
),
//详情页轮播图ul
_imgUploadLouceng
=
$
(
'#louceng_pic_ul'
),
//楼层平面图ul
_pdfUploadFujian
=
$
(
'#fujian_ul'
),
//附件ul
_weilouLinkObj
=
$
(
'#weilouLink'
),
//微楼书
_dajiangtangObj
=
$
(
'#dajiangtang'
),
//大讲堂
_exclusiveDate1Obj
=
$
(
'#exclusiveDate1'
),
//独家代理有效期开始时间
_exclusiveDate2Obj
=
$
(
'#exclusiveDate2'
),
//独家代理有效期结束时间
_exclusiveTelObj
=
$
(
'#exclusiveTel'
),
//独家方电话
_imgUploadDujia
=
$
(
'#dujia_pic_ul'
),
//独家合同ul
_imgMaskObj
=
$
(
'#img_mask_area'
),
//预览大图的mask
_laiyuanObj
=
$
(
'#laiyuan'
),
// 来源
_isshowshopDetailObj
=
$
(
'#isShowShopDetail'
),
// 对内显示详情图
_repeatShopList
=
$
(
'#address_internal_input_text_box>ul'
);
//搜索有无重铺的显示列表
//对商户显示的装让费默认隐藏
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
hide
();
_priceTotalObj
=
$
(
'#price_total'
),
//租金总价
_priceSingleObj
=
$
(
'#price_single'
),
//租金单价
_slottingFeeObj
=
$
(
'#slotting_fee'
),
//转让费
_rentFreeObj
=
$
(
'#rent_free'
),
//免租时间
_feeRuleObj
=
$
(
'#fee_rule'
),
//佣金规则
_managementFeeObj
=
$
(
'#management_fee'
),
//物业管理费
_stationStartObj
=
$
(
'#station_start'
),
//可容纳工位
_stationEndObj
=
$
(
'#station_end'
),
//可容纳工位
_areaObj
=
$
(
'#area'
),
//面积
_floorObj
=
$
(
'#floor'
),
//所在楼层
_roomNumberObj
=
$
(
'#room_number'
),
//房号
_floorTagObj
=
$
(
'#floor_tag'
),
//所属楼层
_enterDateObj
=
$
(
'#enter_date'
),
//入驻时间
_isRegisterObj
=
$
(
'#is_register'
),
//是否可注册公司
_isPartitionObj
=
$
(
'#is_partition'
),
//是否可分割
_carportObj
=
$
(
'#carport'
),
//车位情况
_isRegisterObj
=
$
(
'#is_register'
)
//入驻时间
//处理文件名,长度过长时处理
function
dealFileName
(
str
)
{
//如果文件超过30的长度,则用*代替
...
...
@@ -105,7 +68,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
function
getShangpuTags
(
fn
)
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getLabelsList'
,
url
:
'/
office_
index/getLabelsList'
,
data
:
{
'pageNo'
:
1
,
'pageSize'
:
500
...
...
@@ -159,10 +122,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_data
[
'source'
]
=
_source
;
_data
[
'sublet_id'
]
=
_sublet_id
;
}
else
{};
checkLogin
();
_data
[
'AuthToken'
]
=
user_info_obj
.
AuthToken
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/
index/houseEdit'
,
url
:
'/
office/houseEdit'
,
//获取楼盘详情
data
:
_data
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -174,32 +138,18 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
_data
=
data
[
'data'
];
_roomTagObj
=
$
(
'.roomTag'
);
//商铺标签,重新获取一次
if
(
data
.
code
==
200
)
{
_foreignYoushiObj
.
val
(
_data
[
'rim_mating'
]);
//对外项目优势
_suoshudiduanObj
.
val
(
_data
[
'section'
]);
//所属地段
_fujinrenliuObj
.
val
(
_data
[
'crowd'
]);
//附近人流
_qitabuchongObj
.
val
(
_data
[
'other'
]);
//其他补充
_objThis
.
upload_id
=
_data
[
'upload_id'
];
// _showCdObj.val(_data['is_show']).parent().show();
_exclusiveTypeObj
.
val
(
_data
[
'is_exclusive_type'
]).
change
();
if
(
_data
[
'shop_type'
]
==
'0'
)
{
//如果是商场
_roomArea2Obj
.
val
(
_data
[
'shop_area_end'
]);
//商铺面积范围上限值
_projectNameObj
.
val
(
_data
[
'project_name'
]);
//项目(大厦)名称
};
if
(
_data
[
'shop_type'
]
==
'1'
){
//如果是街铺,且对商户公开
if
(
_data
[
'external_slotting_fee'
]
==
'-1'
){
_foreignZhuanrangFaceObj
.
attr
(
'checked'
,
'checked'
);
_foreignZhuanrangPriceObj
.
val
(
''
).
attr
(
'disabled'
,
'disabled'
);
}
else
{
_foreignZhuanrangPriceObj
.
val
(
_data
[
'external_slotting_fee'
]);
};
};
if
(
_data
[
'is_exclusive_type'
]
==
'1'
)
{
//如果是独家
if
(
_data
[
'agent_start_time'
]){
_exclusiveDate1Obj
.
val
(
_data
[
'agent_start_time'
].
split
(
' '
)[
0
]);
}
if
(
_data
[
'agent_end_time'
]){
_exclusiveDate2Obj
.
val
(
_data
[
'agent_end_time'
].
split
(
' '
)[
0
]);
}
//独家方
for
(
var
i
in
_data
[
'exclusive_name'
])
{
_exclusiveTelObj
.
val
(
_data
[
'exclusive_name'
][
i
]).
attr
(
'data-id'
,
_data
[
'exclusive_name'
][
i
].
split
(
'-'
)[
0
]);
...
...
@@ -208,7 +158,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
exclusive_img_str
=
''
;
for
(
var
i
in
_data
[
'exclusive_img'
])
{
exclusive_img_str
+=
'<li data-imgid="{id}"><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
_urlCut
+
_data
[
'exclusive_img'
][
i
][
'
img_name
'
],
'0'
:
_urlCut
+
_data
[
'exclusive_img'
][
i
][
'
save_path
'
],
'id'
:
_data
[
'exclusive_img'
][
i
][
'id'
]
});
};
...
...
@@ -245,10 +195,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
_acqxNum
++
;
};
$
.
each
(
_yetaiObj
,
function
(
i
,
item
)
{
~
_data
[
'industry_type'
].
indexOf
(
item
.
value
)
&&
(
item
.
checked
=
'checked'
);
});
_data
[
'shop_sign'
]
&&
$
.
each
(
_roomTagObj
,
function
(
i
,
item
)
{
~
_data
[
'shop_sign'
].
indexOf
(
item
.
value
)
&&
(
item
.
checked
=
'checked'
);
});
...
...
@@ -269,128 +215,52 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
});
$
.
ajax
({
type
:
'GET'
,
url
:
'getBusinessAll'
,
data
:
{
"disc"
:
_data
[
'disc'
]},
timeout
:
30000
,
// traditional: true,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
tag
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
target
){
if
(
target
.
id
==
_data
[
'business_district_id'
]){
tag
+=
'<option value="'
+
target
.
id
+
'" selected>'
+
target
.
name
+
'</option>'
}
else
{
tag
+=
'<option value="'
+
target
.
id
+
'">'
+
target
.
name
+
'</option>'
}
});
$
(
'#business_rong'
).
append
(
tag
);
user
.
initShopRong
=
false
;
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
_loadMainItem
.
hide
();
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
user
.
del_value_anchang
=
''
;
user
.
del_value_panfang
=
''
;
_landlordPhoneObj
.
val
(
_data
[
'landlord_phone'
]);
//房东手机号
_internalNameObj
.
val
(
_data
[
'internal_title'
]);
//对内商铺名称
var
_fit_industry_type
=
_data
[
'fit_industry_type'
].
split
(
','
);
_suitableYetaiInputObj1
.
val
(
_fit_industry_type
[
0
]);
//最适合业态
_suitableYetaiInputObj2
.
val
(
_fit_industry_type
[
1
]);
//最适合业态
_suitableYetaiInputObj3
.
val
(
_fit_industry_type
[
2
]);
//最适合业态
_zujinTypeObj
.
val
(
_data
[
'rent_type'
]);
//租金模式
_zujinTypeObj
.
change
();
//触发change事件
_moonPriceObj
.
val
(
_data
[
'rent_price'
]);
//月租均价
_wuyePriceObj
.
val
(
_data
[
'management_fee'
]);
//物业管理费
_jinchangPriceObj
.
val
(
_data
[
'slotting_fee'
]);
//进场费(对内转让费)
_roomShengyuNumObj
.
val
(
_data
[
'residue_num'
]);
//剩余铺数
_roomAllNumObj
.
val
(
_data
[
'total'
]);
//总铺数
_roomArea1Obj
.
val
(
_data
[
'shop_area_start'
]);
//商铺面积起始值
_businessAreaObj
.
val
(
_data
[
'market_area'
]);
//商业面积
_provinceInternalObj
.
val
(
_data
[
'province'
]);
//对内省
_cityInternalObj
.
val
(
_data
[
'city'
]);
//对内市
_discInternalObj
.
val
(
_data
[
'disc'
]);
//对内区
_addressInternalObj
.
val
(
_data
[
'internal_address'
]);
//对内详细地址
_longitudeObj
.
val
(
_data
[
'longitude'
]),
//经度
_latitudeObj
.
val
(
_data
[
'latitude'
]),
//纬度
_trafficObj
.
val
(
_data
[
'traffic'
]);
//交通
// _hasMovedObj.val(_data['enter_num']); //已入住
_yingyeTimeObj
.
val
(
_data
[
'do_business_date'
]);
//营业时间
_data
[
'opening_date'
]
&&
_kaipanTimeObj
.
val
(
_data
[
'opening_date'
].
split
(
' '
)[
0
]);
//开盘时间
_data
[
'start_business_date'
]
&&
_kaiyeTimeObj
.
val
(
_data
[
'start_business_date'
].
split
(
' '
)[
0
]);
//开业时间
_hasGasObj
.
val
(
_data
[
'is_has_gas'
]);
//是否有燃气
_yongjinRuleObj
.
val
(
_data
[
'fee_rule'
]);
//佣金规则
_guizeFuObj
.
val
(
_data
[
'payment_month'
]);
//签约规则,付
_guizeYaObj
.
val
(
_data
[
'deposit_month'
]);
//签约规则,押
_qianyueNianxianObj
.
val
(
_data
[
'age_limit'
].
split
(
'-'
)[
0
]);
//签约年限上限
_qianyueNianxian2Obj
.
val
(
_data
[
'age_limit'
].
split
(
'-'
)[
1
]);
//签约年限下限
_weilouLinkObj
.
val
(
_data
[
'tiny_brochure_url'
]);
//微楼书
_miankuanObj
.
val
(
_data
[
'area_width'
]);
//面宽
_loucengfloorObj
.
val
(
_data
[
'floor'
]);
//楼层
_jinshenObj
.
val
(
_data
[
'depth'
]);
//进深
_dianliangObj
.
val
(
_data
[
'electric_quantity'
]);
//电量
_dianyaObj
.
val
((
_data
[
'voltage'
]
==
220
||
_data
[
'voltage'
]
==
380
)?
_data
[
'voltage'
]:
''
);
//电压
_yanguandaoObj
.
val
(
_data
[
'exhaust_fume'
]);
//是否有烟管道
_shangshuiObj
.
val
(
_data
[
'running_water'
]);
//是否有上水
_xiashuiObj
.
val
(
_data
[
'downriver'
]);
//是否有下水
_zuhangxiuObj
.
val
(
_data
[
'decoration'
]);
//交付装修状态
_idRunRoundObj
.
val
(
_data
[
'business_scope'
]);
//目前证照经营范围
_laiyuanObj
.
val
(
_data
[
'source'
]);
//来源
_isshowshopDetailObj
.
val
(
_data
[
'is_show_image'
]);
// 是否对客户展示对内详情图
//大讲堂调用共用方法赋值与取值
setCKeditorValue
(
'da_jiang_tang'
,
_data
[
'auditorium'
]);
//大讲堂
//列表页封面图
/*if(_data['cover']){
_imgUploadLiebiao.html('<li><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
'0': _urlCut + _data['cover']
}));
};*/
_qianyueNianxianObj
.
val
(
_data
[
'age_limit_start'
]);
//签约年限上限
_qianyueNianxian2Obj
.
val
(
_data
[
'age_limit_end'
]);
//签约年限下限
_priceTotalObj
.
val
(
_data
[
'price_total'
]);
//租金总价
_priceSingleObj
.
val
(
_data
[
'price'
]);
//租金单价
_slottingFeeObj
.
val
(
_data
[
'slotting_fee'
]);
//转让费
_rentFreeObj
.
val
(
_data
[
'rent_free'
]);
//免租时间
_feeRuleObj
.
val
(
_data
[
'fee_rule'
])
;
//佣金规则
_managementFeeObj
.
val
(
_data
[
'management_fee'
]);
//物业管理费
_stationStartObj
.
val
(
_data
[
'station_start'
]);
//可容纳工位
_stationEndObj
.
val
(
_data
[
'station_end'
]);
//可容纳工位
_areaObj
.
val
(
_data
[
'area'
]);
//面积
_floorObj
.
val
(
_data
[
'floor'
]);
//所在楼层
_roomNumberObj
.
val
(
_data
[
'room_number'
]);
//房号
_floorTagObj
.
val
(
_data
[
'floor_tag'
]);
//所属楼层
_enterDateObj
.
val
(
_data
[
'enter_date'
]);
//入驻时间
_isRegisterObj
.
val
(
_data
[
'is_register'
]);
//是否可注册公司
_isPartitionObj
.
val
(
_data
[
'carport'
]);
//是否可分割
_carportObj
.
val
(
_data
[
''
]);
//车位情况
_isRegisterObj
.
val
(
_data
[
'is_register'
]);
//入驻时间
_laiyuanObj
.
val
(
_data
[
'source'
]);
//详情页轮播图
for
(
var
i
in
_data
[
'slide_show'
])
{
_imgUploadLunbo
.
append
(
'<li data-imgid="{id}"><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
_urlCut
+
_data
[
'slide_show'
][
i
][
'
img_name
'
],
'0'
:
_urlCut
+
_data
[
'slide_show'
][
i
][
'
save_path
'
],
'id'
:
_data
[
'slide_show'
][
i
][
'id'
]
}));
};
//楼层平面图
for
(
var
i
in
_data
[
'plan'
])
{
_imgUploadLouceng
.
append
(
'<li data-imgid="{id}"><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
_urlCut
+
_data
[
'plan'
][
i
][
'img_name'
],
'id'
:
_data
[
'plan'
][
i
][
'id'
]
}));
};
//
for(var i in _data['plan']) {
//
_imgUploadLouceng.append('<li data-imgid="{id}"><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
//
'0': _urlCut + _data['plan'][i]['img_name'],
//
'id': _data['plan'][i]['id']
//
}));
//
};
//附件
_data
[
'file_path'
]
&&
_pdfUploadFujian
.
html
(
'<li class="pdf-pre-li"><a class="pdf-pre-a" href="{0}" target="_blank" title="点击查看">{1}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'
.
stringFormatObj
({
'0'
:
_urlCut
+
_data
[
'file_path'
],
'1'
:
dealFileName
(
decodeURI
(
_data
[
'file_path'
].
slice
(
_data
[
'file_path'
].
lastIndexOf
(
'/'
)
+
1
)))
}));
//
_data['file_path'] && _pdfUploadFujian.html('<li class="pdf-pre-li"><a class="pdf-pre-a" href="{0}" target="_blank" title="点击查看">{1}</a><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
//
'0': _urlCut + _data['file_path'],
//
'1': dealFileName(decodeURI(_data['file_path'].slice(_data['file_path'].lastIndexOf('/') + 1)))
//
}));
}
else
{
alert
(
data
[
'msg'
]);
};
...
...
@@ -688,30 +558,30 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//对内地址输入后,比对有无重复商铺
var
_addressTimer
=
null
;
_addressInternalObj
.
on
(
'input'
,
function
(
e
){
var
_$this
=
$
(
this
);
var
_valCity
=
$
.
trim
(
_cityInternalObj
.
val
());
//市
if
(
!
_valCity
){
alert
(
'需要先地址定位'
);
_$this
.
val
(
''
);
return
false
;
};
var
_val
=
$
.
trim
(
_$this
.
val
());
if
(
_val
.
length
>
3
){
_addressTimer
&&
clearTimeout
(
_addressTimer
);
// 清除未执行的代码,重置回初始化状态
_addressTimer
=
setTimeout
(
searchRepeatShop
,
200
);
}
else
{
_repeatShopList
.
parent
().
hide
();
}
});
//
_addressInternalObj.on('input', function(e){
//
var _$this = $(this);
//
var _valCity = $.trim(_cityInternalObj.val());//市
//
if(!_valCity){
//
alert('需要先地址定位');
//
_$this.val('');
//
return false;
//
};
//
var _val = $.trim(_$this.val());
//
if(_val.length>3){
//
_addressTimer && clearTimeout(_addressTimer); // 清除未执行的代码,重置回初始化状态
//
_addressTimer = setTimeout(searchRepeatShop, 200);
//
}else{
//
_repeatShopList.parent().hide();
//
}
//
});
//点击确认无重盘,可关闭
_repeatShopList
.
parent
().
find
(
'button'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_$this
=
$
(
this
);
_repeatShopList
.
parent
().
hide
();
});
//
_repeatShopList.parent().find('button').click(function(e){
//
e.preventDefault();
//
e.stopPropagation();
//
var _$this = $(this);
//
_repeatShopList.parent().hide();
//
});
//搜索有无重铺的接口调用
var
_ajaxObjSearchRepeatShop
=
null
;
//所调用的ajax对象
...
...
@@ -838,6 +708,20 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
});
//动态搜索出来的电话列表的,点击事件(楼盘搜索)
_doc
.
on
(
'click'
,
'#loupan>ul>li'
,
function
()
{
var
_this
=
$
(
this
);
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
$
(
'.address-list'
).
html
(
_this
.
attr
(
'data-address'
));
$
(
'.business_name-list'
).
html
(
_this
.
attr
(
'data-businessName'
));
$
(
'.traffic-list'
).
html
(
_this
.
attr
(
'data-traffic'
));
$
(
'.type-list'
).
html
(
_this
.
attr
(
'data-type'
));
$
(
'.intro-list'
).
html
(
_this
.
attr
(
'data-intro'
));
$
(
'.floor_total-list'
).
html
(
_this
.
attr
(
'data-floorTotal'
));
});
//动态搜索电话列表,请求事件
var
_ajaxObjTel
=
null
;
...
...
@@ -896,6 +780,75 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
});
//动态搜索楼盘,请求事件
var
_ajaxObjLoupan
=
null
;
_doc
.
on
(
'input'
,
'.phone_loupan'
,
function
()
{
var
_this
=
$
(
this
),
_thisVal
=
$
.
trim
(
_this
.
val
());
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_thisVal
!=
''
)
{
_ajaxObjLoupan
&&
_ajaxObjLoupan
.
abort
();
_ajaxObjLoupan
=
$
.
ajax
({
type
:
'GET'
,
url
:
'/office_index/getBuildingSearch'
,
data
:
{
'pageNo'
:
1
,
"pageSize"
:
20
,
"title"
:
_thisVal
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
[
'data'
].
length
>
0
)
{
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li data-id="{3}" data-address="{4}" data-businessName="{5}" data-traffic="{6}" data-type="{7}" data-intro="{8}" data-floorTotal="{9}">{0}-{1}<li>'
.
stringFormatObj
({
'0'
:
item
[
'title'
],
'1'
:
item
[
'address'
],
'3'
:
item
[
'id'
],
'4'
:
item
[
'address'
],
'5'
:
item
[
'businessName'
],
'6'
:
item
[
'traffic'
],
'7'
:
item
[
'type'
],
'8'
:
item
[
'intro'
],
'9'
:
item
[
'floorTotal'
],
});
});
_this
.
next
().
show
().
html
(
_htmlTemp
);
//渲染楼盘详情
$
()
}
else
{
_this
.
next
().
html
(
''
);
};
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
}
else
{
_this
.
next
().
hide
();
}
});
/***************************************************电话号码输入相关交互处理***************************************************/
/*********************************************是否独家************************************************************/
...
...
@@ -911,43 +864,42 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//对外转让费的选择事件
_foreignZhuanrangFaceObj
.
change
(
function
(){
var
_this
=
$
(
this
);
if
(
_this
.
is
(
':checked'
)){
_foreignZhuanrangPriceObj
.
val
(
''
).
attr
(
'disabled'
,
'disabled'
);
}
else
{
_foreignZhuanrangPriceObj
.
removeAttr
(
'disabled'
);
}
});
//
_foreignZhuanrangFaceObj.change(function(){
//
var _this = $(this);
//
if(_this.is(':checked')){
//
_foreignZhuanrangPriceObj.val('').attr('disabled', 'disabled');
//
}else{
//
_foreignZhuanrangPriceObj.removeAttr('disabled');
//
}
//
});
//月租均价文件变化事件
_zujinTypeObj
.
change
(
function
()
{
var
_this
=
$
(
this
);
if
(
_this
.
val
()
==
'1'
)
{
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/月'
);
}
else
if
(
_this
.
val
()
==
'2'
)
{
_moonPriceObj
.
prev
().
show
();
_moonPriceObj
.
next
().
html
(
'%'
);
}
else
if
(
_this
.
val
()
==
'3'
)
{
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/天/㎡'
);
}
else
if
(
_this
.
val
()
==
'4'
)
{
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/年'
);
}
else
if
(
_this
.
val
()
==
'5'
)
{
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/月/㎡'
);
}
else
{
console
.
log
(
'other value租金模式'
);
};
});
//
_zujinTypeObj.change(function() {
//
var _this = $(this);
//
if(_this.val() == '1') {
//
_moonPriceObj.prev().hide();
//
_moonPriceObj.next().html('元/月');
//
} else if(_this.val() == '2') {
//
_moonPriceObj.prev().show();
//
_moonPriceObj.next().html('%');
//
} else if(_this.val() == '3') {
//
_moonPriceObj.prev().hide();
//
_moonPriceObj.next().html('元/天/㎡');
//
} else if(_this.val() == '4') {
//
_moonPriceObj.prev().hide();
//
_moonPriceObj.next().html('元/年');
//
} else if(_this.val() == '5') {
//
_moonPriceObj.prev().hide();
//
_moonPriceObj.next().html('元/月/㎡');
//
}else {
//
console.log('other value租金模式');
//
};
//
});
//保存按钮点击事件
$
(
'#saveBtn'
).
click
(
function
(
e
)
{
//保存大讲堂
e
.
preventDefault
();
e
.
stopPropagation
();
checkLogin
();
//多个input输入框验证标记
var
_isBreakFlag
=
false
;
//是否给商户公开,是否独家验证是否选择
...
...
@@ -969,11 +921,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
alert
(
"请选择来源"
);
return
false
;
}
//验证显示对内详情图是否选择
if
(
$
(
'#isShowShopDetail'
).
val
()
==
-
1
){
alert
(
"请选择是否对客户展示对内详情图"
);
return
false
;
}
//验证盘方是否填写
var
_pfPhoneArr
=
[];
...
...
@@ -1001,16 +948,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
return
false
;
};
//业态验证
var
_yetaiArr
=
[];
$
.
each
(
$
(
'.yetai'
),
function
(
i
,
item
)
{
item
.
checked
&&
_yetaiArr
.
push
(
item
.
value
);
});
if
(
_yetaiArr
.
length
<
1
)
{
alert
(
'业态至少需要填写一个!'
);
return
false
;
};
//商铺标签验证
var
_roomTagArr
=
[];
$
.
each
(
$
(
'.roomTag'
),
function
(
i
,
item
)
{
...
...
@@ -1020,27 +957,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
alert
(
'商铺标签至少需要填写一个!'
);
return
false
;
};
//多个input输入框验证
$
.
each
([
_loucengfloorObj
,
//楼层
_miankuanObj
,
//面宽
_jinshenObj
,
//进深
_dianliangObj
,
//电量
_dianyaObj
,
//电压
_hasGasObj
,
//是否有燃气
_yanguandaoObj
,
//是否有烟管道
_shangshuiObj
,
//是否有上水
_xiashuiObj
,
//是否有下水
_zuhangxiuObj
,
//交付装修状态
_idRunRoundObj
//目前证照经营范围
],
function
(
i
,
item
)
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
alert
(
item
.
attr
(
'data-alert'
));
_isBreakFlag
=
true
;
return
false
;
};
});
if
(
_isBreakFlag
)
{
return
false
;
};
...
...
@@ -1072,42 +988,30 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//多个input输入框验证
$
.
each
([
_internalNameObj
,
//对内商铺名称
_suitableYetaiInputObj1
,
//最适合业态
_suitableYetaiInputObj2
,
//最适合业态
_suitableYetaiInputObj3
,
//最适合业态
_moonPriceObj
,
//月租均价
_wuyePriceObj
,
//物业管理费
_jinchangPriceObj
,
//进场费
_foreignZhuanrangPriceObj
,
//对外转让费
_roomShengyuNumObj
,
//剩余铺数
_roomAllNumObj
,
//总铺数
_roomArea1Obj
,
//商铺面积起始值
_roomArea2Obj
,
//商铺面积结束值
_projectNameObj
,
//项目(大厦)名称
_businessAreaObj
,
//商业面积
_addressInternalObj
,
//对内地址详细地址
_longitudeObj
,
//经度
_latitudeObj
,
//纬度
_trafficObj
,
//交通
// _hasMovedObj, //已入住
_yingyeTimeObj
,
//营业时间
_yongjinRuleObj
,
//佣金规则
_foreignYoushiObj
,
//周边配套,对外项目优势
_suoshudiduanObj
,
//所属地段
_fujinrenliuObj
,
//附近人流
_qitabuchongObj
,
//其他补充为必填项
_laiyuanObj
,
_guizeFuObj
,
_guizeYaObj
,
_qianyueNianxianObj
,
_qianyueNianxian2Obj
_qianyueNianxian2Obj
,
_priceTotalObj
,
//租金总价
_priceSingleObj
,
//租金单价
_slottingFeeObj
,
//转让费
_rentFreeObj
,
//免租时间
_feeRuleObj
,
//佣金规则
_managementFeeObj
,
//物业管理费
_stationStartObj
,
//可容纳工位
_stationEndObj
,
//可容纳工位
_areaObj
,
//面积
_floorObj
,
//所在楼层
_roomNumberObj
,
//房号
_floorTagObj
,
//所属楼层
_enterDateObj
,
//入驻时间
_isRegisterObj
,
//是否可注册公司
_isPartitionObj
,
//是否可分割
_carportObj
,
//车位情况
_isRegisterObj
//入驻时间
],
function
(
i
,
item
)
{
if
(
item
===
_foreignZhuanrangPriceObj
){
}
else
if
(
item
===
_roomArea2Obj
)
{
}
else
if
(
item
===
_projectNameObj
)
{
}
else
if
(
item
===
_qianyueNianxian2Obj
)
{
if
(
item
===
_qianyueNianxian2Obj
)
{
if
(
_qianyueNianxian2Obj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
...
...
@@ -1123,78 +1027,19 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_isBreakFlag
=
true
;
return
false
;
};
if
(
item
===
_addressInternalObj
)
{
if
(
$
.
trim
(
item
.
val
()).
length
<
4
){
alert
(
'详细地址不能少于4个字'
);
_isBreakFlag
=
true
;
return
false
;
}
};
if
(
item
===
_moonPriceObj
){
if
(
_zujinTypeObj
.
val
()
==
1
&&
$
.
trim
(
item
.
val
())
<
1000
){
alert
(
'月租金模式不能小于1000'
);
_isBreakFlag
=
true
;
return
false
;
}
else
if
(
_zujinTypeObj
.
val
()
==
2
&&
$
.
trim
(
item
.
val
())
>
100
){
alert
(
'营业额扣点不能超过100'
);
_isBreakFlag
=
true
;
return
false
;
}
else
if
(
_zujinTypeObj
.
val
()
==
3
&&
$
.
trim
(
item
.
val
())
>
300
){
alert
(
'每天每平米租金不能超过300'
);
_isBreakFlag
=
true
;
return
false
;
}
else
if
(
_zujinTypeObj
.
val
()
==
4
&&
$
.
trim
(
item
.
val
())
<
1000
){
alert
(
'年租金模式不能小于1000'
);
_isBreakFlag
=
true
;
return
false
;
}
else
{}
};
// if(item === _addressInternalObj){
// var _vv = $.trim(item.val());
// var _index1 = _vv.indexOf('路');
// var _index2 = _vv.indexOf('号');
// if(_index1>0 && _index2>2){
//
// }else{
// alert(item.attr('data-alert'));
// _isBreakFlag = true;
// return false;
// }
// };
}
});
if
(
_isBreakFlag
)
{
return
false
;
};
if
(
$
(
'#business_rong'
).
val
()
==
-
1
){
alert
(
"请选择商圈"
);
return
false
;
}
if
(
_idRunRoundObj
.
val
().
length
>
20
){
alert
(
"目前证照经营范围不得超过20个字符"
);
return
false
;
}
//列表页封面图验证是否上传
/*var _liebiaoPicObj = _imgUploadLiebiao.find('li>img');
if(_liebiaoPicObj.length < 1) {
alert('列表页封面图需要上传');
return false;
};*/
//详情页轮播图验证是否上传
var
_xiangqingPicObj
=
_imgUploadLunbo
.
find
(
'li>img'
);
if
(
_xiangqingPicObj
.
length
<
2
)
{
alert
(
'详情页轮播图至少需要2张'
);
return
false
;
};
var
_loucengPicObj
=
_imgUploadLouceng
.
find
(
'li>img'
);
var
_fujianObj
=
_pdfUploadFujian
.
find
(
'li>a.pdf-pre-a'
);
//附件看的是删除按钮的个数
var
_dujiaPicObj
=
_imgUploadDujia
.
find
(
'li>img'
);
//大讲堂验证, 大讲堂调用共用方法赋值与取值
var
_dajiangtangVal
=
getCKeditorValue
(
'da_jiang_tang'
);
var
_dujiaPicObj
=
_imgUploadDujia
.
find
(
'li>img'
);
//如果选择了独家,验证独家代理有效期,独家方是否填写,独家合同是否上传
if
(
_exclusiveTypeObj
.
val
()
==
'1'
)
{
...
...
@@ -1219,64 +1064,34 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
'is_exclusive_type'
:
_exclusiveTypeObj
.
val
(),
'agent_dish'
:
_pfPhoneArr
.
join
(
','
),
'agent_data'
:
_acqxPhoneArr
.
join
(
','
),
'internal_title'
:
$
.
trim
(
_internalNameObj
.
val
()),
'fit_industry_type'
:
[
$
.
trim
(
_suitableYetaiInputObj1
.
val
()),
$
.
trim
(
_suitableYetaiInputObj2
.
val
()),
$
.
trim
(
_suitableYetaiInputObj3
.
val
())].
join
(
','
),
'rent_type'
:
_zujinTypeObj
.
val
(),
'rent_price'
:
_moonPriceObj
.
val
(),
'management_fee'
:
_wuyePriceObj
.
val
(),
'slotting_fee'
:
_jinchangPriceObj
.
val
(),
'residue_num'
:
_roomShengyuNumObj
.
val
(),
'total'
:
_roomAllNumObj
.
val
(),
'shop_area_start'
:
_roomArea1Obj
.
val
(),
'market_area'
:
_businessAreaObj
.
val
(),
'province'
:
_provinceInternalObj
.
val
(),
'city'
:
_cityInternalObj
.
val
(),
'disc'
:
_discInternalObj
.
val
(),
'internal_address'
:
$
.
trim
(
_addressInternalObj
.
val
()),
'longitude'
:
_longitudeObj
.
val
(),
'latitude'
:
_latitudeObj
.
val
(),
'traffic'
:
$
.
trim
(
_trafficObj
.
val
()),
// 'enter_num': $.trim(_hasMovedObj.val()),
'do_business_date'
:
$
.
trim
(
_yingyeTimeObj
.
val
()),
'opening_date'
:
_kaipanTimeObj
.
val
(),
'start_business_date'
:
_kaiyeTimeObj
.
val
(),
'is_has_gas'
:
_hasGasObj
.
val
(),
'fee_rule'
:
$
.
trim
(
_yongjinRuleObj
.
val
()),
'payment_month'
:
_guizeFuObj
.
val
(),
'deposit_month'
:
_guizeYaObj
.
val
(),
'age_limit'
:
_qianyueNianxianObj
.
val
()
+
'-'
+
_qianyueNianxian2Obj
.
val
(),
'sign_rule'
:
$
.
trim
(
_qianyueRuleObj
.
val
()),
'tiny_brochure_url'
:
$
.
trim
(
_weilouLinkObj
.
val
()),
'auditorium'
:
_dajiangtangVal
,
'industry_type'
:
_yetaiArr
.
join
(
','
),
'label'
:
_yetaiArr
.
join
(
','
),
'age_limit_start'
:
_qianyueNianxianObj
.
val
(),
'age_limit_end'
:
_qianyueNianxian2Obj
.
val
(),
'shop_sign'
:
_roomTagArr
.
join
(
','
),
'area_width'
:
_miankuanObj
.
val
(),
'floor'
:
_loucengfloorObj
.
val
(),
//楼层
'depth'
:
_jinshenObj
.
val
(),
'electric_quantity'
:
_dianliangObj
.
val
(),
'voltage'
:
_dianyaObj
.
val
(),
'exhaust_fume'
:
_yanguandaoObj
.
val
(),
'running_water'
:
_shangshuiObj
.
val
(),
'downriver'
:
_xiashuiObj
.
val
(),
'decoration'
:
_zuhangxiuObj
.
val
(),
'business_scope'
:
_idRunRoundObj
.
val
(),
'source'
:
_laiyuanObj
.
val
(),
'is_show_image'
:
_isshowshopDetailObj
.
val
(),
//是否显示 对内详情
'del_agent_data'
:
user
.
del_value_anchang
.
substr
(
0
,
user
.
del_value_anchang
.
length
-
1
),
'business_district_id'
:
$
(
'#business_rong'
).
val
(),
'business_name'
:
$
(
'#business_rong'
).
find
(
'option:selected'
).
text
(),
'del_agent_dish'
:
user
.
del_value_panfang
.
substr
(
0
,
user
.
del_value_panfang
.
length
-
1
)
'price_total'
:
_priceTotalObj
.
val
(),
//租金总价
'price'
:
_priceSingleObj
.
val
(),
//租金单价
'slotting_fee'
:
_slottingFeeObj
.
val
(),
//转让费
'rent_free'
:
_rentFreeObj
.
val
(),
//免租时间
'fee_rule'
:
_feeRuleObj
.
val
(),
//佣金规则
'management_fee'
:
_managementFeeObj
.
val
(),
//物业管理费
'station_start'
:
_stationStartObj
.
val
(),
//可容纳工位
'station_end'
:
_stationEndObj
.
val
(),
//可容纳工位
'area'
:
_areaObj
.
val
(),
//面积
'floor'
:
_floorObj
.
val
(),
//所在楼层
'room_number'
:
_roomNumberObj
.
val
(),
//房号
'floor_tag'
:
_floorTagObj
.
val
(),
//所属楼层
'enter_date'
:
_enterDateObj
.
val
(),
//入驻时间
'is_register'
:
_isRegisterObj
.
val
(),
//是否可注册公司
'is_partition'
:
_isPartitionObj
.
val
(),
//是否可分割
'carport'
:
_carportObj
.
val
(),
//车位情况
'is_rent'
:
$
(
'#is_rent'
).
val
(),
//房源状态
'payment_month'
:
_guizeFuObj
.
val
(),
//签约规则,付
'deposit_month'
:
_guizeYaObj
.
val
(),
//签约规则,押
// 'del_agent_data' : user.del_value_anchang.substr(0 ,user.del_value_anchang.length-1),
// 'del_agent_dish' : user.del_value_panfang.substr(0 ,user.del_value_panfang.length-1)
};
//_data['external_item_advantage'] = $.trim(_foreignYoushiObj.val());
_data
[
'rim_mating'
]
=
$
.
trim
(
_foreignYoushiObj
.
val
());
_data
[
'section'
]
=
$
.
trim
(
_suoshudiduanObj
.
val
());
_data
[
'crowd'
]
=
$
.
trim
(
_fujinrenliuObj
.
val
());
_data
[
'other'
]
=
$
.
trim
(
_qitabuchongObj
.
val
());
if
(
_exclusiveTypeObj
.
val
()
==
'1'
)
{
_data
[
'agent_start_time'
]
=
_exclusiveDate1Obj
.
val
();
_data
[
'agent_end_time'
]
=
_exclusiveDate2Obj
.
val
();
...
...
@@ -1287,26 +1102,22 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
_data
[
'landlord_phone'
]
=
_landlordPhoneArr
;
/*$.each(_liebiaoPicObj, function(i, item) {
_data['cover[' + i + ']'] = item.src.replace(_urlCut, '');
});*/
$
.
each
(
_xiangqingPicObj
,
function
(
i
,
item
)
{
_data
[
'slide_show['
+
i
+
']'
]
=
item
.
src
.
replace
(
_urlCut
,
''
);
});
$
.
each
(
_loucengPicObj
,
function
(
i
,
item
)
{
_data
[
'plan['
+
i
+
']'
]
=
item
.
src
.
replace
(
_urlCut
,
''
);
});
if
(
_fujianObj
.
length
===
1
)
{
_data
[
'file_path'
]
=
_fujianObj
[
0
].
href
.
replace
(
_urlCut
,
''
);
//附件取得是herf值
};
//当为编辑时,要传入id
if
(
_id
!=
null
)
{
_data
[
'id'
]
=
_id
;
_data
[
'upload_id'
]
=
_objThis
.
upload_id
;
user
.
urlBuilding
=
"/office/houseEdit"
;
//编辑接口
}
else
{
_data
[
'id'
]
=
''
;
//新增时id传空
// _data['id'] = '';//新增时id传空
user
.
urlBuilding
=
"/office/houseAdd"
;
//新增接口
}
_data
[
'AuthToken'
]
=
user_info_obj
.
AuthToken
;
_data
[
'building_id'
]
=
1
;
//当为委托转铺新增时,需要传这两个参数
if
(
_source
)
{
_data
[
'source'
]
=
_source
;
...
...
@@ -1314,7 +1125,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
$
.
ajax
({
type
:
'POST'
,
url
:
'/index/houseEdit'
,
url
:
user
.
urlBuilding
,
data
:
_data
,
timeout
:
30000
,
// traditional: true,
...
...
public/resource/template/office_building_list_template_tpl.html
View file @
3dcb5972
...
...
@@ -6,52 +6,30 @@
[
%
if
(
it
&&
it
.
length
!=
0
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
[
%
if
(
it
[
item
][
"is_lock"
]
==
1
)
{
%
]
<
span
class
=
"btn1 btn-warning btn-xs"
>
锁盘
<
/span
>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_vip"
]
==
1
)
{
%
]
<
span
class
=
"btn1 btn-warning btn-xs"
>
VIP
盘
<
/span
>
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
商场
[
%
}
else
{
%
]
街铺
[
%
if
(
it
[
item
][
'type'
]
==
1
)
{
%
]
写字楼
[
%
}
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
>
[
%=
it
[
item
][
'disc'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'floor'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'rent_type'
]
==
1
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
2
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
%
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
3
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
/
天
/
㎡
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
4
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
/
年
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
5
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
/
月
/
㎡
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"slotting_fee"
]
/
100
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"slotting_fee"
]
/
100
%
]
<
/td
>
<
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
>
[
%=
it
[
item
][
'business_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'title'
]
%
]
<
/td
>
<
td
>
楼层
<
/td
>
<
td
>
[
%=
it
[
item
][
"price_total"
]
%
]
<
/td
>
<
td
>
租金单价
<
/td
>
<
td
>
[
%=
it
[
item
][
"area"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"station_start"
]
%
]
-
[
%=
it
[
item
][
"station_end"
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"status"
]
==
0
)
{
%
]
审核
...
...
@@ -77,17 +55,20 @@
否
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'dish_name'
]
%
]
<
/td
>
<
td
width
=
"10%"
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_lock"
]
==
0
||
check_auth
(
'index/lockHouse'
)
||
it
[
item
][
"auth_edit_exclusive"
]
==
1
||
it
[
item
][
"auth_edit_house"
]
==
1
)
{
%
]
<
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 is_show_shoucang [%= sw(it[item]['is_collect']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
!--<
a
class
=
"btn1 is_show_shoucang [%= sw(it[item]['is_collect']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%
if
(
it
[
item
][
"is_collect"
]
==
1
)
{
%
]
取消收藏
[
%
}
else
if
(
it
[
item
][
"is_collect"
]
==
2
)
{
%
]
收藏
[
%
}
%
]
<
/a
>
<
/a>
--
>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_vip"
]
==
1
)
{
%
]
...
...
@@ -104,7 +85,7 @@
[
%
if
(
check_auth
(
'index/houseEdit'
))
{
%
]
<
a
class
=
"btn1 btn-success is_show btn-default-hide-display"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
!--<
a
class
=
"btn1 btn-success is_show btn-default-hide-display"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%
if
(
it
[
item
][
"is_carefully_chosen"
]
==
0
)
{
%
]
推荐至首页
[
%
}
else
if
(
it
[
item
][
"is_carefully_chosen"
]
==
1
)
{
%
]
...
...
@@ -112,39 +93,39 @@
[
%
}
%
]
<
/a
>
<
/a>
--
>
[
%
}
%
]
[
%
if
(
check_auth
(
'index/lockHouse'
))
{
%
]
<
a
class
=
"btn1 is_show_lock_plate btn-default-hide-display [%= sw2(it[item]['is_lock']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
!--<
a
class
=
"btn1 is_show_lock_plate btn-default-hide-display [%= sw2(it[item]['is_lock']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%
if
(
it
[
item
][
"is_lock"
]
==
1
)
{
%
]
已锁盘
[
%
}
else
{
%
]
锁盘
[
%
}
%
]
<
/a
>
<
/a>
--
>
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_can_edit_only_contract"
]
==
0
)
{
%
]
<
a
class
=
"btn1 btn-success dujia btn-default-hide-display"
href
=
"#modal-dujia"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
exclusive
=
'[%= it[item]["auth_edit_exclusive"] %]'
>
是否独家
<
/a
>
[
%
}
%
]
<
!--<
a
class
=
"btn1 btn-success dujia btn-default-hide-display"
href
=
"#modal-dujia"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
exclusive
=
'[%= it[item]["auth_edit_exclusive"] %]'
>
是否独家
<
/a
>
-->
[
%
}
%
]
[
%
if
(
check_auth
(
'index/houseDel'
))
{
%
]
[
%
if
((
it
[
item
][
"status"
]
!=
3
)){
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-delete"
class
=
"btn1 btn-danger add_applies del_modal btn-default-hide-display"
>
无效
<
/a
>
<
!--<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-delete"
class
=
"btn1 btn-danger add_applies del_modal btn-default-hide-display"
>
无效
<
/a
>
[
%
}
else
{
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
class
=
"btn1 btn-default add_applies del_modal btn-default-hide-display"
>
已无效
<
/a
>
[
%
}
%
]
[
%
}
%
]
-->
[
%
}
%
]
[
%
if
(
check_auth
(
'index/vipHouse'
))
{
%
]
<
a
class
=
"btn1 is_vip_plate btn-default-hide-display [%= sw3(it[item]['is_vip']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
!--<
a
class
=
"btn1 is_vip_plate btn-default-hide-display [%= sw3(it[item]['is_vip']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%
if
(
it
[
item
][
"is_vip"
]
==
1
)
{
%
]
取消
VIP
盘
[
%
}
else
{
%
]
VIP
盘
[
%
}
%
]
<
/a
>
<
/a>
--
>
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/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