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
3b540eeb
Commit
3b540eeb
authored
Sep 27, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺编辑
parent
19d1fff0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
edit.html
application/index/view/houses/edit.html
+4
-2
shop_edit.js
public/resource/js/shop_edit.js
+18
-8
No files found.
application/index/view/houses/edit.html
View file @
3b540eeb
...
...
@@ -304,6 +304,8 @@
<label
for=
""
>
签约年限
</label>
<div
class=
"input-group"
>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"qianyueNianxian"
placeholder=
"请填写"
data-alert=
"请填写签约年限!"
>
<div
class=
"input-group-addon shangchang-show-part"
>
至
</div>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"qianyueNianxian2"
placeholder=
"请输入"
data-alert=
"请填写签约年限!"
>
<div
class=
"input-group-addon"
>
年
</div>
</div>
</div>
...
...
@@ -466,10 +468,10 @@
<label
for=
""
>
佣金规则
</label>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"yongjinRule"
data-alert=
"请填写佣金规则!"
placeholder=
"请输入"
></textarea>
</div>
<div
class=
"form-group full-width-100"
>
<
!--<
div class="form-group full-width-100">
<label for="">对内项目优势</label>
<textarea class="form-control textarea-500-width" rows="3" id="internalYoushi" data-alert="请输入该商铺周边配套、所处地段和该商铺的优势!" placeholder="请输入"></textarea>
</div>
</div>
-->
<div
class=
"form-group full-width-100"
>
<label
for=
""
>
经纪人对本铺的评价
</label>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"foreignYoushi"
data-alert=
"请输入该商铺周边配套、所处地段和该商铺的优势!"
placeholder=
"1、商铺周边配套(附近有什么) 2、商铺所处地段怎么样 3、商铺附近的人流怎么样"
></textarea>
...
...
public/resource/js/shop_edit.js
View file @
3b540eeb
...
...
@@ -62,8 +62,8 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_yongjinRuleObj
=
$
(
'#yongjinRule'
),
//佣金规则
_guizeFuObj
=
$
(
'#guizeFu'
),
//签约规则,付
_guizeYaObj
=
$
(
'#guizeYa'
),
//签约规则,押
_qianyueNianxianObj
=
$
(
'#qianyueNianxian'
),
//签约年限
_
internalYoushiObj
=
$
(
'#internalYoushi'
),
//对内项目优势
_qianyueNianxianObj
=
$
(
'#qianyueNianxian'
),
//签约年限
上限
_
qianyueNianxian2Obj
=
$
(
'#qianyueNianxian2'
),
//签约年限下限
_foreignYoushiObj
=
$
(
'#foreignYoushi'
),
//对外项目优势
_qianyueRuleObj
=
$
(
'#qianyueRule'
),
//签约规则
//_imgUploadLiebiao = $('#liebiao_pic_ul'), //列表页封面图ul
...
...
@@ -327,10 +327,10 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_data
[
'start_business_date'
]
&&
_kaiyeTimeObj
.
val
(
_data
[
'start_business_date'
].
split
(
' '
)[
0
]);
//开业时间
_hasGasObj
.
val
(
_data
[
'is_has_gas'
]);
//是否有燃气
_yongjinRuleObj
.
val
(
_data
[
'fee_rule'
]);
//佣金规则
_internalYoushiObj
.
val
(
_data
[
'internal_item_advantage'
]);
//对内项目优势
_guizeFuObj
.
val
(
_data
[
'payment_month'
]);
//签约规则,付
_guizeYaObj
.
val
(
_data
[
'deposit_month'
]);
//签约规则,押
_qianyueNianxianObj
.
val
(
_data
[
'age_limit'
]);
//签约年限
_qianyueNianxianObj
.
val
(
_data
[
'age_limit'
]);
//签约年限上限
_qianyueNianxian2Obj
.
val
(
_data
[
'age_limit2'
]);
//签约年限下限
_weilouLinkObj
.
val
(
_data
[
'tiny_brochure_url'
]);
//微楼书
_miankuanObj
.
val
(
_data
[
'area_width'
]);
//面宽
...
...
@@ -788,7 +788,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
//街铺
$
(
'.has-housed'
).
html
(
'当前商铺业态'
);
//
_jinchangPriceObj
.
attr
(
'data-alert'
,
'请填写对内转让费!'
).
parent
().
prev
().
html
(
'对内转让费'
);
_roomArea1Obj
.
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
);
...
...
@@ -972,11 +972,11 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_hasMovedObj
,
//已入住
_yingyeTimeObj
,
//营业时间
_yongjinRuleObj
,
//佣金规则
_internalYoushiObj
,
//对内项目优势
_foreignYoushiObj
,
//对外项目优势
_guizeFuObj
,
_guizeYaObj
,
_qianyueNianxianObj
_qianyueNianxianObj
,
_qianyueNianxian2Obj
],
function
(
i
,
item
)
{
if
(
item
===
_foreignZhuanrangPriceObj
){
if
((
_shangpuTypeObj
.
val
()
==
'1'
)){
...
...
@@ -1005,6 +1005,16 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
}
else
{
console
.
log
(
'所选为街铺时,商铺面积上限值不需要验证'
);
}
}
else
if
(
item
===
_qianyueNianxian2Obj
)
{
if
(
_qianyueNianxian2Obj
.
val
()
==
''
)
{
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
return
false
;
}
else
if
(
Number
(
_qianyueNianxianObj
.
val
())
>
Number
(
_qianyueNianxian2Obj
.
val
()))
{
alert
(
'签约年限范围下限不能大于上限'
);
_isBreakFlag
=
true
;
return
false
;
};
}
else
{
if
(
$
.
trim
(
item
.
val
())
==
''
)
{
alert
(
item
.
attr
(
'data-alert'
));
...
...
@@ -1123,10 +1133,10 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
'start_business_date'
:
_kaiyeTimeObj
.
val
(),
'is_has_gas'
:
_hasGasObj
.
val
(),
'fee_rule'
:
$
.
trim
(
_yongjinRuleObj
.
val
()),
'internal_item_advantage'
:
$
.
trim
(
_internalYoushiObj
.
val
()),
'payment_month'
:
_guizeFuObj
.
val
(),
'deposit_month'
:
_guizeYaObj
.
val
(),
'age_limit'
:
_qianyueNianxianObj
.
val
(),
'age_limit2'
:
_qianyueNianxian2Obj
.
val
(),
'sign_rule'
:
$
.
trim
(
_qianyueRuleObj
.
val
()),
'tiny_brochure_url'
:
$
.
trim
(
_weilouLinkObj
.
val
()),
'auditorium'
:
_dajiangtangVal
,
...
...
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