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
195ba5e9
Commit
195ba5e9
authored
Sep 19, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 编辑商铺修改
parent
8957bc54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
22 deletions
+25
-22
edit.html
application/index/view/houses/edit.html
+3
-2
shop_edit.js
public/resource/js/shop_edit.js
+22
-20
No files found.
application/index/view/houses/edit.html
View file @
195ba5e9
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
<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;"
>
<label
for=
"show_all"
>
是否给商户公开
</label>
<label
for=
"show_all"
>
是否给商户公开
</label>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
data-alert=
"请选择是否给商户公开"
>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
data-alert=
"请选择是否给商户公开"
>
<option
value=
""
>
请选择
</option>
<option
value=
""
>
请选择
</option>
...
@@ -434,7 +435,7 @@
...
@@ -434,7 +435,7 @@
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"traffic"
data-alert=
"请填写交通内容!"
placeholder=
"请输入"
></textarea>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"traffic"
data-alert=
"请填写交通内容!"
placeholder=
"请输入"
></textarea>
</div>
</div>
<div
class=
"form-group full-width-100"
>
<div
class=
"form-group full-width-100"
>
<label
for=
""
>
已入驻
</label>
<label
for=
""
class=
"has-housed"
>
已入驻
</label>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"hasMoved"
data-alert=
"请填写已入住内容!"
placeholder=
"请输入"
></textarea>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"hasMoved"
data-alert=
"请填写已入住内容!"
placeholder=
"请输入"
></textarea>
</div>
</div>
</li>
</li>
...
...
public/resource/js/shop_edit.js
View file @
195ba5e9
...
@@ -938,6 +938,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -938,6 +938,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_shangpuTypeObj
.
change
(
function
()
{
_shangpuTypeObj
.
change
(
function
()
{
if
(
$
(
this
).
val
()
==
'1'
)
{
if
(
$
(
this
).
val
()
==
'1'
)
{
//街铺
//街铺
$
(
'.has-housed'
).
html
(
'当前商铺业态'
);
//
_jinchangPriceObj
.
attr
(
'data-alert'
,
'请填写对内转让费!'
).
parent
().
prev
().
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
(
'建筑面积'
);
_businessAreaObj
.
attr
(
'data-alert'
,
'请填写建筑面积!'
).
parent
().
prev
().
html
(
'建筑面积'
);
...
@@ -945,13 +946,14 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -945,13 +946,14 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
$
.
trim
(
_roomAllNumObj
.
val
())
==
''
&&
_roomAllNumObj
.
val
(
1
);
$
.
trim
(
_roomAllNumObj
.
val
())
==
''
&&
_roomAllNumObj
.
val
(
1
);
$
.
trim
(
_roomShengyuNumObj
.
val
())
==
''
&&
_roomShengyuNumObj
.
val
(
1
);
$
.
trim
(
_roomShengyuNumObj
.
val
())
==
''
&&
_roomShengyuNumObj
.
val
(
1
);
//只有满足显示给C端看,且类型为街铺时,才显示对外转让费
//只有满足显示给C端看,且类型为街铺时,才显示对外转让费
if
(
_showCdObj
.
val
()
==
'0'
)
{
// if(_showCdObj.val() == '0') {//对外转让费 不受 是否对客户显示 影响
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
css
(
'display'
,
'block'
);
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
css
(
'display'
,
'block'
);
}
else
{
//
}else{
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
hide
();
//
_foreignZhuanrangPriceObj.closest('.form-group').hide();
}
//
}
}
else
{
}
else
{
//商场
//商场
$
(
'.has-housed'
).
html
(
'已入驻'
);
_jinchangPriceObj
.
attr
(
'data-alert'
,
'请填写进场费!'
).
parent
().
prev
().
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
(
'项目总面积'
);
_businessAreaObj
.
attr
(
'data-alert'
,
'请填写项目总面积!'
).
parent
().
prev
().
html
(
'项目总面积'
);
...
@@ -961,22 +963,22 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -961,22 +963,22 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
});
});
//是否显示给C端用户看变化事件
//是否显示给C端用户看变化事件
_showCdObj
.
change
(
function
()
{
//
_showCdObj.change(function() {
if
(
$
(
this
).
val
()
==
'1'
)
{
//
if($(this).val() == '1') {
//
不显示给C端
//
不显示给C端
$
(
'.show-c-part'
).
hide
();
//
$('.show-c-part').hide();
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
hide
();
//
_foreignZhuanrangPriceObj.closest('.form-group').hide();
}
else
{
//
} else {
//
显示给C端
//
显示给C端
$
(
'.show-c-part'
).
show
();
//
$('.show-c-part').show();
//
只有满足显示给C端看,且类型为街铺时,才显示对外转让费
//
只有满足显示给C端看,且类型为街铺时,才显示对外转让费
if
(
_shangpuTypeObj
.
val
()
==
'1'
)
{
//
if(_shangpuTypeObj.val() == '1') {
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
css
(
'display'
,
'block'
);
//
_foreignZhuanrangPriceObj.closest('.form-group').css('display', 'block');
}
else
{
//
}else{
_foreignZhuanrangPriceObj
.
closest
(
'.form-group'
).
hide
();
//
_foreignZhuanrangPriceObj.closest('.form-group').hide();
}
//
}
};
//
};
});
//
});
//对外转让费的选择事件
//对外转让费的选择事件
_foreignZhuanrangFaceObj
.
change
(
function
(){
_foreignZhuanrangFaceObj
.
change
(
function
(){
...
...
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