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
664fbf84
Commit
664fbf84
authored
Jun 03, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
楼盘字典
parent
6389985a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
410 additions
and
179 deletions
+410
-179
buildingDictionary.html
...ication/index/view/officeBuilding/buildingDictionary.html
+107
-46
officeEdit.html
application/index/view/officeBuilding/officeEdit.html
+4
-4
buildingDictionary.js
public/resource/js/buildingDictionary.js
+293
-50
officeEdit.js
public/resource/js/officeEdit.js
+6
-79
No files found.
application/index/view/officeBuilding/buildingDictionary.html
View file @
664fbf84
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#file_input_pic
{
#file_input_pic
{
opacity
:
0
;
opacity
:
0
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
8px
;
/*left: 145px;*/
/*left: 145px;*/
height
:
35px
;
height
:
35px
;
width
:
80px
;
width
:
80px
;
...
@@ -256,6 +256,9 @@
...
@@ -256,6 +256,9 @@
z-index
:
6
;
z-index
:
6
;
}
}
.inlineBlock
{
display
:
inline-block
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -289,11 +292,15 @@
...
@@ -289,11 +292,15 @@
<option
value=
""
selected=
"selected"
>
商圈
</option>
<option
value=
""
selected=
"selected"
>
商圈
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"shop_type"
>
<select
class=
"form-control btn2"
id=
"shop_type"
>
<option
value=
"-1"
>
楼盘类型
</option>
<option
value=
""
>
楼盘类型
</option>
<option
value=
"0"
>
商场
</option>
<option
value=
"1"
>
写字楼
</option>
<option
value=
"1"
>
街铺
</option>
<option
value=
"2"
>
商住两用
</option>
<option
value=
"3"
>
园区
</option>
<option
value=
"4"
>
洋房
</option>
<option
value=
"5"
>
联合办公
</option>
<option
value=
"6"
>
厂房
</option>
</select>
</select>
<input
type=
"text"
class=
"form-control btn2"
id=
"shop_t
yp
e"
placeholder=
"楼盘名称"
/>
<input
type=
"text"
class=
"form-control btn2"
id=
"shop_t
itl
e"
placeholder=
"楼盘名称"
/>
</div>
</div>
<div
class=
"col-xs-12"
style=
"padding : 0px;"
>
<div
class=
"col-xs-12"
style=
"padding : 0px;"
>
...
@@ -334,7 +341,7 @@
...
@@ -334,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:
80
0px;"
>
<div
class=
"modal-dialog"
style=
"width:
96
0px;"
>
<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"
>
...
@@ -351,16 +358,21 @@
...
@@ -351,16 +358,21 @@
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<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"
>
<input
type=
"text"
class=
"form-control"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
<span
style=
"margin-top: 6px;display: inline-block;"
>
6666
</span>
<!--<input type="text" class="form-control" name="user_name" id="inputEmail3" placeholder="请输入楼盘编号">-->
</div>
</div>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<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=
"user_sex"
>
<select
class=
"form-control"
id=
"loupan_type"
>
<option
value=
""
class=
"successModel"
>
请选择
</option>
<option
value=
""
>
请选择
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"1"
>
写字楼
</option>
<option
value=
"2"
>
女
</option>
<option
value=
"2"
>
商住两用
</option>
<option
value=
"3"
>
园区
</option>
<option
value=
"4"
>
洋房
</option>
<option
value=
"5"
>
联合办公
</option>
<option
value=
"6"
>
厂房
</option>
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -369,39 +381,57 @@
...
@@ -369,39 +381,57 @@
<div
class=
"col-sm-6"
>
<div
class=
"col-sm-6"
>
<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"
>
<input
type=
"text"
class=
"form-control"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入楼盘名称"
>
<input
type=
"text"
class=
"form-control"
id=
"loupan_title"
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>
</div>
</div>
<ul
class=
"list-group"
>
<div
class=
"form-group form-group-bottom"
>
<li
class=
"list-group-item address-relate-area"
style=
"border: 0;"
>
<label
class=
"col-sm-3 control-label"
>
所在城市/区域/商圈:
</label>
<div
class=
"col-sm-9"
>
<div>
<select
class=
"form-control btn2-city shop_city_choose_site_list_add"
></select>
<label
for=
""
style=
"margin-left: 50px;"
>
楼盘地址:
</label>
<select
class=
"form-control btn2-city"
id=
"shop_area_id_add"
>
<option
value=
""
selected=
"selected"
>
区域
</option>
</div>
</select>
<div
style=
"width: 100%;"
>
<select
class=
"form-control btn2-city"
id=
"business_circle_id_add"
>
<div
class=
"form-group"
style=
"width: 460px;float: left;margin-left: 40px;"
>
<option
value=
""
selected=
"selected"
>
商圈
</option>
<button
type=
"button"
class=
"btn btn-primary area-choose-btn-modal"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
id=
"position_btn"
>
选择地址定位
</button>
</select>
<input
type=
"text"
class=
"input-100-width address-relate area-choose-btn-modal"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"province_internal"
/>
</div>
<input
type=
"text"
class=
"input-100-width address-relate area-choose-btn-modal"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"city_internal"
/>
</div>
<input
type=
"text"
class=
"input-100-width address-relate area-choose-btn-modal"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"disc_internal"
/>
</div>
<div
class=
"form-group"
style=
"width: 164px;float: left;"
>
<label
for=
"longitude"
>
经度
</label>
<input
type=
"text"
class=
"input-100-width address-relate"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"longitude"
name=
"longitude"
data-alert=
"请通过地址定位获取经纬度!"
>
</div>
<div
class=
"form-group"
style=
"width: 164px;float: left;"
>
<label
for=
""
>
纬度
</label>
<input
type=
"text"
class=
"input-100-width address-relate"
data-toggle=
"modal"
data-target=
".bs-example-modal-lg"
title=
"通过地址定位获取"
readonly=
"readonly"
id=
"latitude"
name=
"latitude"
data-alert=
"请通过地址定位获取经纬度!"
>
</div>
<div
class=
"form-group"
style=
"width: 164px;float: left;"
>
<label
for=
""
>
商圈
</label>
<select
id=
"business_rong"
>
<option
value=
"-1"
>
请选择商圈
</option>
</select>
</div>
</div>
<div
style=
"width: 100%;"
>
<div
class=
"form-group"
style=
"margin-left: 40px;"
>
<input
type=
"text"
class=
"form-control area-choose-btn-modal"
id=
"address_internal"
placeholder=
"详细地址(格式xx路xx号xx)"
data-alert=
"请填写正确格式的对内详细地址(xx路xx号xx)!"
>
<div
id=
"address_internal_input_text_box"
>
<ul></ul>
<p>
<span>
存在的相似商铺
</span>
<button
type=
"button"
class=
"btn btn-primary"
>
确认无重盘
</button>
</p>
</div>
</div>
</div>
</li>
</ul>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
周边交通:
</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"
>
...
@@ -424,17 +454,17 @@
...
@@ -424,17 +454,17 @@
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
总层数:
</label>
<label
class=
"col-sm-3 control-label"
>
总层数:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<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=
"
loucengOffice
"
placeholder=
"请输入"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
楼盘简介:
</label>
<label
class=
"col-sm-3 control-label"
style=
"margin-top: 10px;"
>
楼盘简介:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<textarea
name=
""
rows=
""
cols=
""
style=
"width: 366px;height: 100px;"
></textarea>
<textarea
name=
""
rows=
""
cols=
""
style=
"width: 366px;height: 100px;"
id=
"introOffice"
></textarea>
</div>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
楼盘图片:
</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=
"form-group full-width-100 full-pic-area"
>
<div
class=
"form-group full-width-100 full-pic-area"
>
<!--input上传图片-->
<!--input上传图片-->
...
@@ -471,4 +501,35 @@
...
@@ -471,4 +501,35 @@
<!--加载图标-->
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
</div>
\ No newline at end of file
<!--百度定位的弹出框更改-->
<div
class=
"modal fade bs-example-modal-lg"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myLargeModalLabel"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
>
<div
class=
"modal-content"
style=
"width: 780px;"
>
<div
class=
"modal-header address-search-head-div"
>
<div
class=
"address-header-bar"
>
<div
id=
"address_city_title"
>
上海市
</div>
<div
class=
"crile"
>
<input
class=
"main-input"
id=
"search_input"
type=
"search"
placeholder=
"请输入地址"
/>
<img
src=
"/resource/image/search_gb.png"
class=
"cancel-pic"
/>
</div>
</div>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
style=
"font-size: 42px;"
><span
aria-hidden=
"true"
>
×
</span></button>
</div>
<div
class=
"modal-body"
style=
"height: 780px;"
>
<div
id=
"position_box"
>
<div
id=
"main_ul"
>
<ul></ul>
</div>
<div
id=
"loading_pic"
class=
"loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
/>
<p>
正在加载...
</p>
</div>
<div
id=
"no_more"
class=
"no_more"
>
没有更多了
</div>
</div>
</div>
</div>
</div>
</div>
<script
type=
"text/javascript"
src=
"https://api.map.baidu.com/api?v=2.0&ak=RTimRTxtj23AYTCkSsPvNDuQkGpR2fPX"
></script>
\ No newline at end of file
application/index/view/officeBuilding/officeEdit.html
View file @
664fbf84
...
@@ -75,18 +75,18 @@
...
@@ -75,18 +75,18 @@
</li>
</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>
<select class="form-control" name="shangpuType" id="shangpuType" data-alert="请选择商铺类型">
<select class="form-control" name="shangpuType" id="shangpuType" data-alert="请选择商铺类型">
<option value="">请选择</option>
<option value="">请选择</option>
<option value="1">街铺</option>
<option value="1">街铺</option>
<option value="0">商场</option>
<option value="0">商场</option>
</select>
</select>
</div>
</div>
-->
<!--<div class="form-group">-->
<!--<div class="form-group">-->
<div
class=
"form-group"
style=
"display: none;"
>
<div
class=
"form-group"
style=
"display: none;"
>
<label
for=
"show_all"
>
是否对客户展示
</label>
<label
for=
"show_all"
>
是否对客户展示
</label>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
disabled=
""
>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
disabled=
"
disabled
"
>
<option
value=
""
>
请选择
</option>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"1"
>
否
</option>
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
来源
</label>
<label
for=
"exclusiveType"
>
来源
</label>
<select
class=
"form-control"
name=
"exclusiveType"
id=
"laiyuan"
data-alert=
"请选择
是否独家
"
>
<select
class=
"form-control"
name=
"exclusiveType"
id=
"laiyuan"
data-alert=
"请选择
来源
"
>
<option
value=
"-1"
>
请选择
</option>
<option
value=
"-1"
>
请选择
</option>
<option
value=
"0"
>
无
</option>
<option
value=
"0"
>
无
</option>
<option
value=
"1"
>
网络
</option>
<option
value=
"1"
>
网络
</option>
...
...
public/resource/js/buildingDictionary.js
View file @
664fbf84
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* Created by 刘丹 on 2017/12/11.
* 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
)
{
define
([
'doT'
,
'text!temp/building_dictionary_list_template_tpl.html'
,
'css!style/shop_edit.css'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
],
function
(
doT
,
template
)
{
//处理文件名,长度过长时处理
//处理文件名,长度过长时处理
function
dealFileName
(
str
)
{
function
dealFileName
(
str
)
{
//如果文件超过30的长度,则用*代替
//如果文件超过30的长度,则用*代替
...
@@ -15,6 +15,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
...
@@ -15,6 +15,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
);
console
.
log
(
user_info_obj
);
business
=
{
business
=
{
initShopRong
:
false
,
//判断是否是需要加载商圈
pageNo
:
1
,
pageNo
:
1
,
/*第几页*/
/*第几页*/
pageSize
:
10
,
pageSize
:
10
,
...
@@ -103,18 +104,13 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
...
@@ -103,18 +104,13 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
$
(
this
).
parent
().
remove
();
$
(
this
).
parent
().
remove
();
});
});
$
(
"#search"
).
click
(
function
()
{
$
(
"#search"
).
click
(
function
()
{
checkLogin
();
business
.
getList
(
1
);
business
.
getList
(
1
);
});
});
$
(
"#reset"
).
click
(
function
()
{
//重置
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#business_circle_id'
).
html
(
''
);
$
(
'#business_circle_id'
).
html
(
''
);
business
.
agent_id_choose
=
''
;
business
.
agent_id_choose_p
=
''
;
});
});
$
(
".add"
).
click
(
function
()
{
//点击新增 获取城市
$
(
".add"
).
click
(
function
()
{
//点击新增 获取城市
$
.
ajax
({
$
.
ajax
({
...
@@ -201,7 +197,268 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
...
@@ -201,7 +197,268 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
});
});
}
else
{};
}
else
{};
});
});
//楼盘字典 百度地图相关
/************************************************百度地址定位相关*************************************************************/
var
_provinceInternalObj
=
$
(
'#province_internal'
),
//对内地址省
_cityInternalObj
=
$
(
'#city_internal'
),
//对内地址市
_discInternalObj
=
$
(
'#disc_internal'
),
//对内地址区
_addressInternalObj
=
$
(
'#address_internal'
),
//对内地址详细地址
_longitudeObj
=
$
(
'#longitude'
),
//经度
_latitudeObj
=
$
(
'#latitude'
),
//纬度
_repeatShopList
=
$
(
'#address_internal_input_text_box>ul'
);
//搜索有无重铺的显示列表
var
ulHtml
=
$
(
'#main_ul>ul'
),
loadItem
=
$
(
"#loading_pic"
),
noMoreItem
=
$
(
"#no_more"
),
_inputObj
=
$
(
'#search_input'
),
valueCurrent
=
''
;
//初始化,百度地图相关对象
var
LocalSearch
=
new
BMap
.
LocalSearch
(),
myGeo
=
new
BMap
.
Geocoder
();
$
(
'#position_btn'
).
click
(
function
()
{
});
//搜索地址的回调
LocalSearch
.
setSearchCompleteCallback
(
function
(
data
)
{
if
(
LocalSearch
.
getStatus
()
==
BMAP_STATUS_SUCCESS
)
{
console
.
log
(
data
);
var
_html
=
""
;
for
(
var
i
=
0
;
i
<
data
.
getCurrentNumPois
();
i
++
)
{
_html
+=
'<li data-city="{2}" data-lat="{3}" data-lng="{4}" data-dismiss="modal"><p>{0}</p><p>{1}</p></li>'
.
stringFormatObj
({
'0'
:
data
.
getPoi
(
i
)[
"title"
],
'1'
:
data
.
getPoi
(
i
)[
"address"
],
'2'
:
data
.
getPoi
(
i
)[
"city"
],
'3'
:
data
.
getPoi
(
i
)[
"point"
][
"lat"
],
'4'
:
data
.
getPoi
(
i
)[
"point"
][
"lng"
]
});
};
ulHtml
.
html
(
_html
);
loadItem
.
hide
();
noMoreItem
.
show
();
};
});
_inputObj
.
on
(
'input'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
valueCurrent
=
$
(
this
).
val
();
if
(
valueCurrent
!=
''
)
{
addressResetLoad
();
addressLoadMain
(
valueCurrent
);
}
else
{
ulHtml
.
html
(
''
);
loadItem
.
hide
();
noMoreItem
.
show
();
return
false
;
}
});
//输入框的取消图标点击事件
$
(
'.cancel-pic'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
_inputObj
.
val
(
''
).
focus
();
addressResetLoad
();
});
_doc
.
on
(
'click'
,
'#main_ul>ul>li'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
),
_city
=
_this
.
data
(
'city'
),
_lng
=
Number
(
_this
.
data
(
'lng'
)),
//经度
_lat
=
Number
(
_this
.
data
(
'lat'
));
//纬度
getDistrict
(
_lng
,
_lat
,
function
(
data
)
{
console
.
log
(
data
);
if
(
data
[
'city'
])
{
_provinceInternalObj
.
val
(
data
[
'province'
]);
_cityInternalObj
.
val
(
data
[
'city'
]);
_discInternalObj
.
val
(
data
[
'district'
]);
var
_htmlOri
=
_this
.
find
(
'p:nth-of-type(2)'
).
html
(),
_htmlDeal
=
''
,
_index1
=
_htmlOri
.
indexOf
(
'市'
),
_index2
=
_htmlOri
.
indexOf
(
'区'
);
if
((
_index1
>
0
)
&&
(
_index2
>
2
)
&&
(
_index2
>
_index1
))
{
_htmlDeal
=
_htmlOri
.
slice
(
_index2
+
1
);
}
else
{
_htmlDeal
=
_htmlOri
;
}
_addressInternalObj
.
val
(
_htmlDeal
);
_longitudeObj
.
val
(
_lng
);
_latitudeObj
.
val
(
_lat
);
searchRepeatShop
();
//调用搜索有无重盘的接口
// $('#position_box').hide();
}
else
{
alert
(
'请重新选择地址'
);
return
false
;
}
});
//根据经纬度获取城市区域名
});
$
(
'.area-choose-btn-modal'
).
click
(
function
(){
business
.
initShopRong
=
true
;
});
$
(
'.bs-example-modal-lg'
).
on
(
'hidden.bs.modal'
,
function
(){
//定位后 调取商圈
if
(
business
.
initShopRong
){
if
(
$
(
'#disc_internal'
).
val
()
){
$
.
ajax
({
type
:
'GET'
,
url
:
'getBusinessAll'
,
data
:
{
"disc"
:
$
(
'#disc_internal'
).
val
()},
timeout
:
30000
,
// traditional: true,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
$
(
'#business_rong'
).
html
(
''
);
//置空 商圈列表 重新渲染
var
tag
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
target
){
tag
+=
'<option value="'
+
target
.
id
+
'">'
+
target
.
name
+
'</option>'
});
$
(
'#business_rong'
).
append
(
tag
);
business
.
initShopRong
=
false
;
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
// _loadMainItem.hide();
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
}
}
else
{
business
.
initShopRong
=
false
;
}
});
function
addressResetLoad
()
{
ulHtml
.
html
(
''
);
loadItem
.
hide
();
noMoreItem
.
show
();
};
function
addressLoadMain
(
keyword
)
{
loadItem
.
show
();
noMoreItem
.
hide
();
LocalSearch
.
setLocation
(
'上海市'
);
LocalSearch
.
search
(
keyword
);
};
function
getDistrict
(
str1
,
str2
,
fn
)
{
myGeo
.
getLocation
(
new
BMap
.
Point
(
str1
,
str2
),
function
(
result
)
{
if
(
result
)
{
console
.
log
(
result
);
fn
(
result
[
'addressComponents'
]);
}
});
};
/************************************************百度地址定位相关****结束*************************************************************/
/***************************************************省市区选择处理结束************************************************************/
//对内地址输入后,比对有无重复商铺
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
();
}
});
//点击确认无重盘,可关闭
_repeatShopList
.
parent
().
find
(
'button'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_$this
=
$
(
this
);
_repeatShopList
.
parent
().
hide
();
});
//搜索有无重铺的接口调用
var
_ajaxObjSearchRepeatShop
=
null
;
//所调用的ajax对象
function
searchRepeatShop
()
{
var
_valAddress
=
$
.
trim
(
_addressInternalObj
.
val
());
//输入的地址
if
(
_valAddress
.
length
<
4
){
_repeatShopList
.
parent
().
hide
();
return
false
;
};
var
_valCity
=
$
.
trim
(
_cityInternalObj
.
val
());
//市
if
(
!
_valCity
){
alert
(
'需要先地址定位'
);
return
false
;
};
_ajaxObjSearchRepeatShop
&&
_ajaxObjSearchRepeatShop
.
abort
();
_ajaxObjSearchRepeatShop
=
$
.
ajax
({
type
:
'GET'
,
url
:
'/broker/getHouseAddress'
,
data
:
{
'address'
:
_valAddress
,
'city'
:
_valCity
,
'AuthToken'
:
user_info_obj
.
AuthToken
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
_repeatShopList
.
parent
().
show
();
//区域显示出来
if
(
data
.
data
&&
data
.
data
.
length
&&
data
.
data
.
length
>
0
){
var
_htmlTemp
=
''
;
var
_arrTemp
=
data
.
data
.
length
<
6
?
data
.
data
:
data
.
data
.
slice
(
0
,
5
);
$
.
each
(
_arrTemp
,
function
(
i
,
v
)
{
_htmlTemp
+=
'<li><span class="ellipsis">{0}</span><span>ID:{1}</span></li>'
.
stringFormatObj
({
'0'
:
v
.
address
,
'1'
:
v
.
id
});
});
_repeatShopList
.
html
(
_htmlTemp
);
}
else
{
_repeatShopList
.
html
(
'<li>暂无相似商铺</li>'
).
show
();
}
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
}
//楼盘字典 百度地图相关
//城市 区域 二级联动 筛选(新增)
//城市 区域 二级联动 筛选(新增)
_doc
.
on
(
'input'
,
'.shop_city_choose_site_list_add'
,
function
()
{
_doc
.
on
(
'input'
,
'.shop_city_choose_site_list_add'
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
...
@@ -301,7 +558,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
...
@@ -301,7 +558,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
that
.
spandelList
(
_this
.
prev
().
attr
(
'data-imgid'
));
};
};
});
});
//
保存上传的图片
//
新增楼盘
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -310,19 +567,34 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
...
@@ -310,19 +567,34 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
for
(
var
i
=
0
;
i
<
$
(
'.result'
).
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
$
(
'.result'
).
length
;
i
++
)
{
imgname
[
i
]
=
$
(
'.result>img'
).
eq
(
i
).
attr
(
'data-imgname'
);
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
(
','
))
{
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
var
imgOffice
=
imgname
.
join
(
','
);
}
else
{
}
else
{
return
return
};
};
var
_data
=
{
// id: id_pic//新增 不传id
'title'
:
$
(
'#loupan_title'
).
val
(),
'type'
:
$
(
'#loupan_type'
).
val
(),
'building_images'
:
imgOffice
,
'intro'
:
$
(
'#introOffice'
).
val
(),
// 'intro': $('#loucengOffice').val(),
// 'add_building_stations': id_pic,//交通 暂无
'province'
:
_provinceInternalObj
.
val
(),
'city'
:
_cityInternalObj
.
val
(),
'disc'
:
_discInternalObj
.
val
(),
'address'
:
$
.
trim
(
_addressInternalObj
.
val
()),
'longitude'
:
_longitudeObj
.
val
(),
'latitude'
:
_latitudeObj
.
val
(),
'business_district_id'
:
$
(
'#business_rong'
).
val
(),
// del_building_stations:id_pic//编辑
};
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/
index/addReceiptImg
'
,
url
:
'/
office_index/houseDictionaryAdd
'
,
data
:
_data
,
data
:
_data
,
dataType
:
'json'
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{},
...
@@ -334,7 +606,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
...
@@ -334,7 +606,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
$
(
'.pic-con1'
).
hide
();
$
(
'.pic-con1'
).
hide
();
$
(
'.active'
).
removeClass
(
"active"
);
$
(
'.active'
).
removeClass
(
"active"
);
$
(
'.shoukuanxiangqing'
).
addClass
(
"active"
);
$
(
'.shoukuanxiangqing'
).
addClass
(
"active"
);
that
.
getList
(
1
);
business
.
getList
(
1
);
}
else
{
}
else
{
alert
(
'数据错误'
);
alert
(
'数据错误'
);
};
};
...
@@ -358,45 +630,16 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
...
@@ -358,45 +630,16 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html', 'css!styl
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
business
.
pageNo
=
pageNo
;
business
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
// 商铺列表 默认时间显示
// 楼盘字典列表
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
params
.
agent_id
=
user_info_obj
.
id
;
params
.
pageNo
=
business
.
pageNo
;
params
.
pageNo
=
business
.
pageNo
;
params
.
pageSize
=
business
.
pageSize
;
params
.
pageSize
=
business
.
pageSize
;
params
.
is_carefully_chosen
=
$
(
'#is_carefully_chosen option:selected'
).
val
();
//首页显示
params
.
title
=
$
(
'#shop_title'
).
val
();
params
.
is_show
=
$
(
'#is_show option:selected'
).
val
();
//c端显示
params
.
type
=
$
(
'#shop_type'
).
val
();
params
.
shop_type
=
$
(
'#shop_type option:selected'
).
val
();
//商铺类型
params
.
city
=
$
(
'.shop_city_choose_site_list'
).
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
.
disc
=
$
(
'#shop_area_id'
).
val
();
//区域筛选
params
.
business_id
=
$
(
'#business_circle_id'
).
val
();
//商圈筛选
params
.
business_district_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
({
$
.
ajax
({
url
:
'/
index/getHouseList.html'
,
//获取
列表
url
:
'/
office_index/getBuildingList'
,
//获取楼盘字典
列表
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
data
:
params
,
data
:
params
,
...
...
public/resource/js/officeEdit.js
View file @
664fbf84
...
@@ -21,7 +21,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -21,7 +21,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_tpl_landlord_phone1
=
$
(
'#my_tpl_landlord_phone1'
).
html
(),
//手机号码添加的位置模板
_tpl_landlord_phone1
=
$
(
'#my_tpl_landlord_phone1'
).
html
(),
//手机号码添加的位置模板
_urlCut
=
ServerHostImageLiu
+
'/resource/lib/Attachments/images/'
,
//要截取的部分url
_urlCut
=
ServerHostImageLiu
+
'/resource/lib/Attachments/images/'
,
//要截取的部分url
_loadMainItem
=
$
(
'#main_loading_pic'
),
//整个页面的加载图标
_loadMainItem
=
$
(
'#main_loading_pic'
),
//整个页面的加载图标
_shangpuTypeObj
=
$
(
'#shangpuType'
),
//商铺类型
_showCdObj
=
$
(
'#showCd'
),
//显示给C端用户看
_showCdObj
=
$
(
'#showCd'
),
//显示给C端用户看
_exclusiveTypeObj
=
$
(
'#exclusiveType'
),
//是否独家
_exclusiveTypeObj
=
$
(
'#exclusiveType'
),
//是否独家
_yetaiObj
=
$
(
'.yetai'
),
//业态
_yetaiObj
=
$
(
'.yetai'
),
//业态
...
@@ -180,14 +179,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -180,14 +179,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_fujinrenliuObj
.
val
(
_data
[
'crowd'
]);
//附近人流
_fujinrenliuObj
.
val
(
_data
[
'crowd'
]);
//附近人流
_qitabuchongObj
.
val
(
_data
[
'other'
]);
//其他补充
_qitabuchongObj
.
val
(
_data
[
'other'
]);
//其他补充
_objThis
.
upload_id
=
_data
[
'upload_id'
];
_objThis
.
upload_id
=
_data
[
'upload_id'
];
if
(
_data
[
'shop_type'
]
!==
undefined
)
{
// _showCdObj.val(_data['is_show']).parent().show();
//.change()之后,自动执行相关显示隐藏操作
_shangpuTypeObj
.
val
(
_data
[
'shop_type'
]).
change
().
attr
({
'disabled'
:
'disabled'
,
'title'
:
'商铺类型暂不支持修改'
});
}
_showCdObj
.
val
(
_data
[
'is_show'
]).
parent
().
show
();
_exclusiveTypeObj
.
val
(
_data
[
'is_exclusive_type'
]).
change
();
_exclusiveTypeObj
.
val
(
_data
[
'is_exclusive_type'
]).
change
();
if
(
_data
[
'shop_type'
]
==
'0'
)
{
if
(
_data
[
'shop_type'
]
==
'0'
)
{
//如果是商场
//如果是商场
...
@@ -916,28 +908,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -916,28 +908,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
}
}
});
});
//商铺类型选择变化事件
_shangpuTypeObj
.
change
(
function
()
{
if
(
$
(
this
).
val
()
==
'1'
)
{
//街铺
// $('.has-housed').html('当前经营');
_jinchangPriceObj
.
attr
(
'data-alert'
,
'请填写对内转让费!'
).
parent
().
prev
().
html
(
'对内转让费'
);
_roomArea1Obj
.
attr
(
'data-alert'
,
'请填写建筑面积!'
).
parent
().
prev
().
html
(
'建筑面积'
);
_businessAreaObj
.
attr
(
'data-alert'
,
'请填写使用面积!'
).
parent
().
prev
().
html
(
'使用面积'
);
$
(
'.shangchang-show-part'
).
hide
();
$
.
trim
(
_roomAllNumObj
.
val
())
==
''
&&
_roomAllNumObj
.
val
(
1
);
$
.
trim
(
_roomShengyuNumObj
.
val
())
==
''
&&
_roomShengyuNumObj
.
val
(
1
);
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
css
(
'display'
,
'block'
);
}
else
{
//商场
// $('.has-housed').html('已入驻');
_jinchangPriceObj
.
attr
(
'data-alert'
,
'请填写进场费!'
).
parent
().
prev
().
html
(
'进场费'
);
_roomArea1Obj
.
attr
(
'data-alert'
,
'请填写商铺面积!'
).
parent
().
prev
().
html
(
'商铺面积'
);
_businessAreaObj
.
attr
(
'data-alert'
,
'请填写项目总面积!'
).
parent
().
prev
().
html
(
'项目总面积'
);
$
(
'.shangchang-show-part'
).
show
();
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
hide
();
};
});
//对外转让费的选择事件
//对外转让费的选择事件
_foreignZhuanrangFaceObj
.
change
(
function
(){
_foreignZhuanrangFaceObj
.
change
(
function
(){
...
@@ -981,7 +952,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -981,7 +952,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
_isBreakFlag
=
false
;
var
_isBreakFlag
=
false
;
//是否给商户公开,是否独家验证是否选择
//是否给商户公开,是否独家验证是否选择
$
.
each
([
$
.
each
([
_shangpuTypeObj
,
//商铺类型是否选择
_exclusiveTypeObj
,
//是否独家
_exclusiveTypeObj
,
//是否独家
],
function
(
i
,
item
)
{
],
function
(
i
,
item
)
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
...
@@ -1133,43 +1103,10 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1133,43 +1103,10 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_qianyueNianxian2Obj
_qianyueNianxian2Obj
],
function
(
i
,
item
)
{
],
function
(
i
,
item
)
{
if
(
item
===
_foreignZhuanrangPriceObj
){
if
(
item
===
_foreignZhuanrangPriceObj
){
if
((
_shangpuTypeObj
.
val
()
==
'1'
)){
if
(
_foreignZhuanrangFaceObj
.
is
(
':checked'
)){
}
else
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
alert
(
item
.
attr
(
'data-alert'
));
_isBreakFlag
=
true
;
return
false
;
};
}
}
}
else
if
(
item
===
_roomArea2Obj
)
{
}
else
if
(
item
===
_roomArea2Obj
)
{
if
(
_shangpuTypeObj
.
val
()
==
'0'
)
{
//0为商场
if
(
_roomArea2Obj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
return
false
;
}
else
if
(
Number
(
_roomArea1Obj
.
val
())
>
Number
(
_roomArea2Obj
.
val
()))
{
alert
(
'商铺面积范围下限不能大于上限'
);
_isBreakFlag
=
true
;
return
false
;
};
}
else
{
console
.
log
(
'所选为街铺时,商铺面积上限值不需要验证'
);
}
}
else
if
(
item
===
_projectNameObj
)
{
}
else
if
(
item
===
_projectNameObj
)
{
if
(
_shangpuTypeObj
.
val
()
==
'0'
)
{
//0为商场
if
(
_projectNameObj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
return
false
;
};
}
else
{
console
.
log
(
'所选为街铺时,项目(大厦)名不需要验证'
);
}
}
else
if
(
item
===
_qianyueNianxian2Obj
)
{
}
else
if
(
item
===
_qianyueNianxian2Obj
)
{
if
(
_qianyueNianxian2Obj
.
val
()
==
''
)
{
if
(
_qianyueNianxian2Obj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
alert
(
item
.
data
(
'alert'
));
...
@@ -1279,7 +1216,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1279,7 +1216,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
};
var
_data
=
{
var
_data
=
{
'shop_type'
:
_shangpuTypeObj
.
val
(),
'is_exclusive_type'
:
_exclusiveTypeObj
.
val
(),
'is_exclusive_type'
:
_exclusiveTypeObj
.
val
(),
'agent_dish'
:
_pfPhoneArr
.
join
(
','
),
'agent_dish'
:
_pfPhoneArr
.
join
(
','
),
'agent_data'
:
_acqxPhoneArr
.
join
(
','
),
'agent_data'
:
_acqxPhoneArr
.
join
(
','
),
...
@@ -1334,22 +1270,13 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1334,22 +1270,13 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
'business_name'
:
$
(
'#business_rong'
).
find
(
'option:selected'
).
text
(),
'business_name'
:
$
(
'#business_rong'
).
find
(
'option:selected'
).
text
(),
'del_agent_dish'
:
user
.
del_value_panfang
.
substr
(
0
,
user
.
del_value_panfang
.
length
-
1
)
'del_agent_dish'
:
user
.
del_value_panfang
.
substr
(
0
,
user
.
del_value_panfang
.
length
-
1
)
};
};
if
(
_shangpuTypeObj
.
val
()
==
'0'
)
{
_data
[
'shop_area_end'
]
=
_roomArea2Obj
.
val
();
_data
[
'project_name'
]
=
$
.
trim
(
_projectNameObj
.
val
());
};
//_data['external_item_advantage'] = $.trim(_foreignYoushiObj.val());
//_data['external_item_advantage'] = $.trim(_foreignYoushiObj.val());
_data
[
'rim_mating'
]
=
$
.
trim
(
_foreignYoushiObj
.
val
());
_data
[
'rim_mating'
]
=
$
.
trim
(
_foreignYoushiObj
.
val
());
_data
[
'section'
]
=
$
.
trim
(
_suoshudiduanObj
.
val
());
_data
[
'section'
]
=
$
.
trim
(
_suoshudiduanObj
.
val
());
_data
[
'crowd'
]
=
$
.
trim
(
_fujinrenliuObj
.
val
());
_data
[
'crowd'
]
=
$
.
trim
(
_fujinrenliuObj
.
val
());
_data
[
'other'
]
=
$
.
trim
(
_qitabuchongObj
.
val
());
_data
[
'other'
]
=
$
.
trim
(
_qitabuchongObj
.
val
());
if
(
_shangpuTypeObj
.
val
()
==
'1'
){
if
(
_foreignZhuanrangFaceObj
.
is
(
':checked'
)){
_data
[
'external_slotting_fee'
]
=
-
1
;
}
else
{
_data
[
'external_slotting_fee'
]
=
$
.
trim
(
_foreignZhuanrangPriceObj
.
val
());
}
};
if
(
_exclusiveTypeObj
.
val
()
==
'1'
)
{
if
(
_exclusiveTypeObj
.
val
()
==
'1'
)
{
_data
[
'agent_start_time'
]
=
_exclusiveDate1Obj
.
val
();
_data
[
'agent_start_time'
]
=
_exclusiveDate1Obj
.
val
();
_data
[
'agent_end_time'
]
=
_exclusiveDate2Obj
.
val
();
_data
[
'agent_end_time'
]
=
_exclusiveDate2Obj
.
val
();
...
...
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