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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
83 deletions
+10
-83
buildingDictionary.html
...ication/index/view/officeBuilding/buildingDictionary.html
+0
-0
officeEdit.html
application/index/view/officeBuilding/officeEdit.html
+4
-4
buildingDictionary.js
public/resource/js/buildingDictionary.js
+0
-0
officeEdit.js
public/resource/js/officeEdit.js
+6
-79
No files found.
application/index/view/officeBuilding/buildingDictionary.html
View file @
664fbf84
This diff is collapsed.
Click to expand it.
application/index/view/officeBuilding/officeEdit.html
View file @
664fbf84
...
...
@@ -75,18 +75,18 @@
</li>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<
!--<
div class="form-group">
<label for="shangpuType">房源类型</label>
<select class="form-control" name="shangpuType" id="shangpuType" data-alert="请选择商铺类型">
<option value="">请选择</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=
""
>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
disabled=
"
disabled
"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
...
...
@@ -102,7 +102,7 @@
</div>
<div
class=
"form-group"
>
<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=
"0"
>
无
</option>
<option
value=
"1"
>
网络
</option>
...
...
public/resource/js/buildingDictionary.js
View file @
664fbf84
This diff is collapsed.
Click to expand it.
public/resource/js/officeEdit.js
View file @
664fbf84
...
...
@@ -21,7 +21,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_tpl_landlord_phone1
=
$
(
'#my_tpl_landlord_phone1'
).
html
(),
//手机号码添加的位置模板
_urlCut
=
ServerHostImageLiu
+
'/resource/lib/Attachments/images/'
,
//要截取的部分url
_loadMainItem
=
$
(
'#main_loading_pic'
),
//整个页面的加载图标
_shangpuTypeObj
=
$
(
'#shangpuType'
),
//商铺类型
_showCdObj
=
$
(
'#showCd'
),
//显示给C端用户看
_exclusiveTypeObj
=
$
(
'#exclusiveType'
),
//是否独家
_yetaiObj
=
$
(
'.yetai'
),
//业态
...
...
@@ -180,14 +179,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_fujinrenliuObj
.
val
(
_data
[
'crowd'
]);
//附近人流
_qitabuchongObj
.
val
(
_data
[
'other'
]);
//其他补充
_objThis
.
upload_id
=
_data
[
'upload_id'
];
if
(
_data
[
'shop_type'
]
!==
undefined
)
{
//.change()之后,自动执行相关显示隐藏操作
_shangpuTypeObj
.
val
(
_data
[
'shop_type'
]).
change
().
attr
({
'disabled'
:
'disabled'
,
'title'
:
'商铺类型暂不支持修改'
});
}
_showCdObj
.
val
(
_data
[
'is_show'
]).
parent
().
show
();
// _showCdObj.val(_data['is_show']).parent().show();
_exclusiveTypeObj
.
val
(
_data
[
'is_exclusive_type'
]).
change
();
if
(
_data
[
'shop_type'
]
==
'0'
)
{
//如果是商场
...
...
@@ -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
(){
...
...
@@ -981,7 +952,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
_isBreakFlag
=
false
;
//是否给商户公开,是否独家验证是否选择
$
.
each
([
_shangpuTypeObj
,
//商铺类型是否选择
_exclusiveTypeObj
,
//是否独家
],
function
(
i
,
item
)
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
...
...
@@ -1133,43 +1103,10 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_qianyueNianxian2Obj
],
function
(
i
,
item
)
{
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
)
{
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
)
{
if
(
_shangpuTypeObj
.
val
()
==
'0'
)
{
//0为商场
if
(
_projectNameObj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
return
false
;
};
}
else
{
console
.
log
(
'所选为街铺时,项目(大厦)名不需要验证'
);
}
}
else
if
(
item
===
_qianyueNianxian2Obj
)
{
if
(
_qianyueNianxian2Obj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
...
...
@@ -1279,7 +1216,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
};
var
_data
=
{
'shop_type'
:
_shangpuTypeObj
.
val
(),
'is_exclusive_type'
:
_exclusiveTypeObj
.
val
(),
'agent_dish'
:
_pfPhoneArr
.
join
(
','
),
'agent_data'
:
_acqxPhoneArr
.
join
(
','
),
...
...
@@ -1334,22 +1270,13 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
'business_name'
:
$
(
'#business_rong'
).
find
(
'option:selected'
).
text
(),
'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
[
'rim_mating'
]
=
$
.
trim
(
_foreignYoushiObj
.
val
());
_data
[
'section'
]
=
$
.
trim
(
_suoshudiduanObj
.
val
());
_data
[
'crowd'
]
=
$
.
trim
(
_fujinrenliuObj
.
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'
)
{
_data
[
'agent_start_time'
]
=
_exclusiveDate1Obj
.
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