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
c453dd4a
Commit
c453dd4a
authored
Jun 10, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
33
parent
96aa8adf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
13 deletions
+36
-13
officeEdit.html
application/index/view/officeBuilding/officeEdit.html
+4
-6
officeEdit.js
public/resource/js/officeEdit.js
+32
-7
No files found.
application/index/view/officeBuilding/officeEdit.html
View file @
c453dd4a
...
@@ -174,14 +174,12 @@
...
@@ -174,14 +174,12 @@
<!--</div>-->
<!--</div>-->
</div>
</div>
<div
class=
"col-xs-4 p-t-10"
>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
免租时间:
</label>
<label
for=
""
>
免租时间
</label>
<label
class=
"checkbox-inline"
>
<label
class=
"checkbox-inline"
>
<input
type=
"checkbox"
id=
"
mianyi"
value=
"-1"
>
面议
<input
type=
"checkbox"
id=
"
foreignZhuanrangFace"
value=
"面议"
>
面议
</label>
</label>
<!--<div class="input-group">-->
<input
type=
"number"
class=
"form-control input-100-width"
id=
"foreignZhuanrangPrice"
placeholder=
"请输入"
data-alert=
"请填写免租时间!"
>
月
<input
type=
"number"
class=
"form-control input-100-width"
id=
"rent_free"
placeholder=
"请输入"
data-alert=
"请填写免租时间!"
>
月
</div>
<!--</div>-->
</div>
<div
class=
"col-xs-4 p-t-10"
>
<div
class=
"col-xs-4 p-t-10"
>
<label
class=
""
>
物业管理费:
</label>
<label
class=
""
>
物业管理费:
</label>
...
...
public/resource/js/officeEdit.js
View file @
c453dd4a
...
@@ -46,7 +46,9 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -46,7 +46,9 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_priceTotalObj
=
$
(
'#price_total'
),
//租金总价
_priceTotalObj
=
$
(
'#price_total'
),
//租金总价
_priceSingleObj
=
$
(
'#price_single'
),
//租金单价
_priceSingleObj
=
$
(
'#price_single'
),
//租金单价
_slottingFeeObj
=
$
(
'#slotting_fee'
),
//转让费
_slottingFeeObj
=
$
(
'#slotting_fee'
),
//转让费
_rentFreeObj
=
$
(
'#rent_free'
),
//免租时间
// _rentFreeObj = $('#rent_free'), //免租时间
_foreignZhuanrangPriceObj
=
$
(
'#foreignZhuanrangPrice'
),
//对商户显示的免租时间
_foreignZhuanrangFaceObj
=
$
(
'#foreignZhuanrangFace'
),
//对商户显示的免租时间面议
_feeRuleObj
=
$
(
'#fee_rule'
),
//佣金规则
_feeRuleObj
=
$
(
'#fee_rule'
),
//佣金规则
_managementFeeObj
=
$
(
'#management_fee'
),
//物业管理费
_managementFeeObj
=
$
(
'#management_fee'
),
//物业管理费
_stationStartObj
=
$
(
'#station_start'
),
//可容纳工位
_stationStartObj
=
$
(
'#station_start'
),
//可容纳工位
...
@@ -147,6 +149,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -147,6 +149,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
var
_data
=
data
[
'data'
];
var
_data
=
data
[
'data'
];
_roomTagObj
=
$
(
'.roomTag'
);
//商铺标签,重新获取一次
_roomTagObj
=
$
(
'.roomTag'
);
//商铺标签,重新获取一次
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
_data
[
'rent_free'
]
==
'-1'
){
_foreignZhuanrangFaceObj
.
attr
(
'checked'
,
'checked'
);
_foreignZhuanrangPriceObj
.
val
(
''
).
attr
(
'disabled'
,
'disabled'
);
}
else
{
_foreignZhuanrangPriceObj
.
val
(
_data
[
'rent_free'
]);
};
// 楼盘详情相关
// 楼盘详情相关
user
.
IDBuilding
=
_data
.
building_data
.
id
user
.
IDBuilding
=
_data
.
building_data
.
id
$
(
'.phone_loupan'
).
val
(
_data
.
building_data
.
title
);
$
(
'.phone_loupan'
).
val
(
_data
.
building_data
.
title
);
...
@@ -242,7 +250,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -242,7 +250,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_priceTotalObj
.
val
(
_data
[
'price_total'
]);
//租金总价
_priceTotalObj
.
val
(
_data
[
'price_total'
]);
//租金总价
_priceSingleObj
.
val
(
_data
[
'price'
]);
//租金单价
_priceSingleObj
.
val
(
_data
[
'price'
]);
//租金单价
_slottingFeeObj
.
val
(
_data
[
'slotting_fee'
]);
//转让费
_slottingFeeObj
.
val
(
_data
[
'slotting_fee'
]);
//转让费
_rentFreeObj
.
val
(
_data
[
'rent_free'
]);
//免租时间
//
_rentFreeObj.val(_data['rent_free']); //免租时间
_feeRuleObj
.
val
(
_data
[
'fee_rule'
])
;
//佣金规则
_feeRuleObj
.
val
(
_data
[
'fee_rule'
])
;
//佣金规则
_managementFeeObj
.
val
(
_data
[
'management_fee'
]);
//物业管理费
_managementFeeObj
.
val
(
_data
[
'management_fee'
]);
//物业管理费
_stationStartObj
.
val
(
_data
[
'station_start'
]);
//可容纳工位
_stationStartObj
.
val
(
_data
[
'station_start'
]);
//可容纳工位
...
@@ -928,6 +936,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -928,6 +936,15 @@ 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'
);
}
});
//保存按钮点击事件
//保存按钮点击事件
$
(
'#saveBtn'
).
click
(
function
(
e
)
{
//保存大讲堂
$
(
'#saveBtn'
).
click
(
function
(
e
)
{
//保存大讲堂
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -1028,7 +1045,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1028,7 +1045,6 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_priceTotalObj
,
//租金总价
_priceTotalObj
,
//租金总价
_priceSingleObj
,
//租金单价
_priceSingleObj
,
//租金单价
_slottingFeeObj
,
//转让费
_slottingFeeObj
,
//转让费
_rentFreeObj
,
//免租时间
_feeRuleObj
,
//佣金规则
_feeRuleObj
,
//佣金规则
_managementFeeObj
,
//物业管理费
_managementFeeObj
,
//物业管理费
_stationStartObj
,
//可容纳工位
_stationStartObj
,
//可容纳工位
...
@@ -1104,7 +1120,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1104,7 +1120,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
'price_total'
:
_priceTotalObj
.
val
(),
//租金总价
'price_total'
:
_priceTotalObj
.
val
(),
//租金总价
'price'
:
_priceSingleObj
.
val
(),
//租金单价
'price'
:
_priceSingleObj
.
val
(),
//租金单价
'slotting_fee'
:
_slottingFeeObj
.
val
(),
//转让费
'slotting_fee'
:
_slottingFeeObj
.
val
(),
//转让费
'rent_free'
:
_rentFreeObj
.
val
(),
//免租时间
//
'rent_free' :_rentFreeObj.val(), //免租时间
'fee_rule'
:
_feeRuleObj
.
val
(),
//佣金规则
'fee_rule'
:
_feeRuleObj
.
val
(),
//佣金规则
'management_fee'
:
_managementFeeObj
.
val
(),
//物业管理费
'management_fee'
:
_managementFeeObj
.
val
(),
//物业管理费
'station_start'
:
_stationStartObj
.
val
(),
//可容纳工位
'station_start'
:
_stationStartObj
.
val
(),
//可容纳工位
...
@@ -1121,10 +1137,19 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1121,10 +1137,19 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
'is_rent'
:
$
(
'#is_rent'
).
val
(),
//房源状态
'is_rent'
:
$
(
'#is_rent'
).
val
(),
//房源状态
'payment_month'
:
_guizeFuObj
.
val
(),
//签约规则,付
'payment_month'
:
_guizeFuObj
.
val
(),
//签约规则,付
'deposit_month'
:
_guizeYaObj
.
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)
};
};
//免租时间
if
(
_foreignZhuanrangFaceObj
.
is
(
':checked'
)){
_data
[
'rent_free'
]
=
-
1
;
}
else
{
_data
[
'rent_free'
]
=
$
.
trim
(
_foreignZhuanrangPriceObj
.
val
());
}
if
(
_data
[
'rent_free'
]
==
-
1
||
_data
[
'rent_free'
]
!=
''
){
}
else
{
alert
(
'请选择免租时间'
)
}
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