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
a359ef7c
Commit
a359ef7c
authored
Jan 30, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增,暂存
parent
2148152a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
9 deletions
+36
-9
edit.html
application/index/view/houses/edit.html
+8
-6
edit.js
public/resource/js/edit.js
+28
-3
No files found.
application/index/view/houses/edit.html
View file @
a359ef7c
...
...
@@ -205,21 +205,23 @@
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<label
for=
"shangpuType"
>
商铺类型
</label>
<select
class=
"form-control"
name=
"shangpuType"
id=
"shangpuType"
>
<select
class=
"form-control"
name=
"shangpuType"
id=
"shangpuType"
data-alert=
"请选择商铺类型"
>
<option
value=
"0"
>
商场
</option>
<option
value=
"1"
>
街铺
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
for=
"show_all"
>
是否给商户公开
</label>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
data-alert=
"请选择是否给商户公开"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
for=
"exclusiveType"
>
是否独家
</label>
<select
class=
"form-control"
name=
"exclusiveType"
id=
"exclusiveType"
>
<select
class=
"form-control"
name=
"exclusiveType"
id=
"exclusiveType"
data-alert=
"请选择是否独家"
>
<option
value=
""
>
请选择
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
</select>
...
...
@@ -282,7 +284,7 @@
<label
for=
"internalName"
>
对内商铺名称
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"internalName"
id=
"internalName"
data-alert=
"请填写对内商铺名称!"
>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group
show-c-part
"
>
<label
for=
"foreignName"
>
对商户显示的商铺名称
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"foreignName"
id=
"foreignName"
data-alert=
"请填写对外商铺名称!"
>
</div>
...
...
@@ -368,7 +370,7 @@
<input
type=
"text"
class=
"form-control input-100-width"
readonly=
"readonly"
id=
"latitude"
name=
"latitude"
data-alert=
"请通过地址定位获取经纬度!"
>
</div>
</li>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item
show-c-part
"
>
<div
class=
"form-group"
>
<label
for=
""
>
对商户显示的地址
</label>
<input
type=
"text"
class=
"form-control input-100-width"
title=
"与对内地址一致,请通过修改对内地址,来改变此值"
readonly=
"readonly"
id=
"province_external"
value=
"上海"
/>
...
...
@@ -418,7 +420,7 @@
<label
for=
""
>
对内项目优势
</label>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"internalYoushi"
data-alert=
"请填写对内项目优势!"
></textarea>
</div>
<div
class=
"form-group full-width-100"
>
<div
class=
"form-group full-width-100
show-c-part
"
>
<label
for=
""
>
对商户显示的项目优势
</label>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"foreignYoushi"
data-alert=
"请填写对外项目优势!"
></textarea>
</div>
...
...
public/resource/js/edit.js
View file @
a359ef7c
...
...
@@ -430,12 +430,39 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
}
else
{
_jinchangPriceObj
.
parent
().
prev
().
html
(
'进场费'
);
$
(
'.shangchang-show-part'
).
show
();
}
};
});
_showCdObj
.
change
(
function
(){
if
(
$
(
this
).
val
()
==
'1'
){
//不显示给C端
$
(
'.show-c-part'
).
hide
();
}
else
{
//显示给C端
$
(
'.show-c-part'
).
show
();
};
});
$
(
'#saveBtn'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
//多个input输入框验证
var
_isBreakFlag
=
false
;
$
.
each
([
_showCdObj
,
//显示给C端用户看
_exclusiveTypeObj
,
//是否独家
],
function
(
i
,
item
)
{
if
(
$
.
trim
(
item
.
val
())
==
''
){
alert
(
item
.
data
(
'alert'
));
_isBreakFlag
=
true
;
return
false
;
};
});
if
(
_isBreakFlag
){
return
false
;
};
//独家里的选项验证
if
(
_exclusiveTypeObj
.
val
()
==
'1'
){
if
(
_exclusiveDate1Obj
.
val
()
==
''
||
_exclusiveDate2Obj
.
val
()
==
''
){
...
...
@@ -488,8 +515,6 @@ define (['ckfinder','ckfinderStart', 'bootstrapJs'], function () {
return
false
;
};
//多个input输入框验证
var
_isBreakFlag
=
false
;
$
.
each
([
_internalNameObj
,
//对内商铺名称
_foreignNameObj
,
//对外商铺名称
...
...
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