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
c9ad8744
Commit
c9ad8744
authored
Jan 29, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0129修改
parent
70fa10bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
9 deletions
+81
-9
edit.html
application/index/view/houses/edit.html
+6
-6
edit.js
public/resource/js/edit.js
+58
-1
public.js
public/resource/js/public.js
+17
-2
No files found.
application/index/view/houses/edit.html
View file @
c9ad8744
...
@@ -211,7 +211,7 @@
...
@@ -211,7 +211,7 @@
</select>
</select>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"show_all"
>
显示给C端用户看
</label>
<label
for=
"show_all"
>
是否给商户公开
</label>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
>
<select
class=
"form-control"
name=
"showCd"
id=
"showCd"
>
<option
value=
"0"
>
是
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"1"
>
否
</option>
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"internalName"
id=
"internalName"
data-alert=
"请填写对内商铺名称!"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"internalName"
id=
"internalName"
data-alert=
"请填写对内商铺名称!"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"foreignName"
>
对
外
商铺名称
</label>
<label
for=
"foreignName"
>
对
商户显示的
商铺名称
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"foreignName"
id=
"foreignName"
data-alert=
"请填写对外商铺名称!"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入"
name=
"foreignName"
id=
"foreignName"
data-alert=
"请填写对外商铺名称!"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
@@ -335,8 +335,8 @@
...
@@ -335,8 +335,8 @@
<label
for=
""
>
商铺面积
</label>
<label
for=
""
>
商铺面积
</label>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"roomArea1"
placeholder=
"请输入"
data-alert=
"请填写商铺面积!"
>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"roomArea1"
placeholder=
"请输入"
data-alert=
"请填写商铺面积!"
>
<div
class=
"input-group-addon"
>
至
</div>
<div
class=
"input-group-addon
shangchang-show-part
"
>
至
</div>
<input
type=
"number"
class=
"form-control input-100-width"
id=
"roomArea2"
placeholder=
"请输入"
data-alert=
"请填写商铺面积!"
>
<input
type=
"number"
class=
"form-control input-100-width
shangchang-show-part
"
id=
"roomArea2"
placeholder=
"请输入"
data-alert=
"请填写商铺面积!"
>
<div
class=
"input-group-addon"
>
m²
</div>
<div
class=
"input-group-addon"
>
m²
</div>
</div>
</div>
</div>
</div>
...
@@ -370,7 +370,7 @@
...
@@ -370,7 +370,7 @@
</li>
</li>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
""
>
对
外
地址
</label>
<label
for=
""
>
对
商户显示的
地址
</label>
<input
type=
"text"
class=
"form-control input-100-width"
title=
"与对内地址一致,请通过修改对内地址,来改变此值"
readonly=
"readonly"
id=
"province_external"
value=
"上海"
/>
<input
type=
"text"
class=
"form-control input-100-width"
title=
"与对内地址一致,请通过修改对内地址,来改变此值"
readonly=
"readonly"
id=
"province_external"
value=
"上海"
/>
<input
type=
"text"
class=
"form-control input-100-width"
title=
"与对内地址一致,请通过修改对内地址,来改变此值"
readonly=
"readonly"
id=
"city_external"
value=
"上海"
/>
<input
type=
"text"
class=
"form-control input-100-width"
title=
"与对内地址一致,请通过修改对内地址,来改变此值"
readonly=
"readonly"
id=
"city_external"
value=
"上海"
/>
<input
type=
"text"
class=
"form-control input-100-width"
title=
"与对内地址一致,请通过修改对内地址,来改变此值"
readonly=
"readonly"
id=
"disc_external"
value=
"黄浦"
/>
<input
type=
"text"
class=
"form-control input-100-width"
title=
"与对内地址一致,请通过修改对内地址,来改变此值"
readonly=
"readonly"
id=
"disc_external"
value=
"黄浦"
/>
...
@@ -419,7 +419,7 @@
...
@@ -419,7 +419,7 @@
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"internalYoushi"
data-alert=
"请填写对内项目优势!"
></textarea>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"internalYoushi"
data-alert=
"请填写对内项目优势!"
></textarea>
</div>
</div>
<div
class=
"form-group full-width-100"
>
<div
class=
"form-group full-width-100"
>
<label
for=
""
>
对外
项目优势
</label>
<label
for=
""
>
对商户显示的
项目优势
</label>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"foreignYoushi"
data-alert=
"请填写对外项目优势!"
></textarea>
<textarea
class=
"form-control textarea-500-width"
rows=
"3"
id=
"foreignYoushi"
data-alert=
"请填写对外项目优势!"
></textarea>
</div>
</div>
<div
class=
"form-group full-width-100"
>
<div
class=
"form-group full-width-100"
>
...
...
public/resource/js/edit.js
View file @
c9ad8744
define
([
'c
ss!style/home.css'
,
'c
kfinder'
,
'ckfinderStart'
,
'bootstrapJs'
],
function
()
{
define
([
'ckfinder'
,
'ckfinderStart'
,
'bootstrapJs'
],
function
()
{
var
user
=
{
var
user
=
{
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
user
.
event
();
user
.
event
();
},
},
event
:
function
()
{
event
:
function
()
{
// $("#liebiao_pic_btn").click(function(){
// BrowseServer ('liebiao_pic_pre', function(url){
// console.log(url);
// //$("#sss").attr("src",url);
// });
// });
var
_id
=
getUrlParam
(
'id'
);
if
(
_id
!=
null
){
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/houseEdit'
,
data
:
{
'id'
:
_id
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
//fn(data);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
}
else
{
//fn();
};
var
_doc
=
$
(
document
),
var
_doc
=
$
(
document
),
_shangpuTypeObj
=
$
(
'#shangpuType'
),
//商铺类型
_shangpuTypeObj
=
$
(
'#shangpuType'
),
//商铺类型
_showCdObj
=
$
(
'#showCd'
),
//显示给C端用户看
_showCdObj
=
$
(
'#showCd'
),
//显示给C端用户看
...
@@ -369,6 +414,7 @@ define (['css!style/home.css','ckfinder','ckfinderStart', 'bootstrapJs'], functi
...
@@ -369,6 +414,7 @@ define (['css!style/home.css','ckfinder','ckfinderStart', 'bootstrapJs'], functi
/***************************************************电话号码输入相关交互处理***************************************************/
/***************************************************电话号码输入相关交互处理***************************************************/
/*********************************************是否独家************************************************************/
_exclusiveTypeObj
.
change
(
function
(){
_exclusiveTypeObj
.
change
(
function
(){
if
(
$
(
this
).
val
()
==
'1'
){
if
(
$
(
this
).
val
()
==
'1'
){
$
(
'#li_dujia_area'
).
slideDown
().
css
(
'display'
,
'block'
);
$
(
'#li_dujia_area'
).
slideDown
().
css
(
'display'
,
'block'
);
...
@@ -377,6 +423,16 @@ define (['css!style/home.css','ckfinder','ckfinderStart', 'bootstrapJs'], functi
...
@@ -377,6 +423,16 @@ define (['css!style/home.css','ckfinder','ckfinderStart', 'bootstrapJs'], functi
}
}
});
});
_shangpuTypeObj
.
change
(
function
(){
if
(
$
(
this
).
val
()
==
'1'
){
_jinchangPriceObj
.
parent
().
prev
().
html
(
'转让费'
);
$
(
'.shangchang-show-part'
).
hide
();
}
else
{
_jinchangPriceObj
.
parent
().
prev
().
html
(
'进场费'
);
$
(
'.shangchang-show-part'
).
show
();
}
});
$
(
'#saveBtn'
).
click
(
function
(
e
){
$
(
'#saveBtn'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
...
@@ -542,6 +598,7 @@ define (['css!style/home.css','ckfinder','ckfinderStart', 'bootstrapJs'], functi
...
@@ -542,6 +598,7 @@ define (['css!style/home.css','ckfinder','ckfinderStart', 'bootstrapJs'], functi
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
();
_data
[
'exclusive_ids'
]
=
_exclusiveTelObj
.
attr
(
'data-id'
);
};
};
$
.
each
(
_acrPhoneArr
,
function
(
i
,
item
)
{
$
.
each
(
_acrPhoneArr
,
function
(
i
,
item
)
{
_data
[
'phone['
+
i
+
']'
]
=
item
;
_data
[
'phone['
+
i
+
']'
]
=
item
;
...
...
public/resource/js/public.js
View file @
c9ad8744
...
@@ -32,6 +32,20 @@ function getUrlParam(name) {
...
@@ -32,6 +32,20 @@ function getUrlParam(name) {
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
if
(
r
!=
null
)
return
unescape
(
r
[
2
]);
return
null
;
return
null
;
}
}
//字符串格式化
String
.
prototype
.
stringFormat
=
function
(){
var
formatted
=
this
;
for
(
var
i
=
0
;
i
<
arguments
.
length
;
i
++
){
formatted
=
formatted
.
replace
(
new
RegExp
(
'
\\
{'
+
i
+
'
\\
}'
,
'gi'
),
arguments
[
i
]);
};
return
formatted
;
}
//字符串格式化,参数为对象的形式 by xishifeng 2017-07-14
String
.
prototype
.
stringFormatObj
=
function
(){
var
formatted
=
this
;
for
(
var
i
in
arguments
[
0
]){
formatted
=
formatted
.
replace
(
new
RegExp
(
'
\\
{'
+
i
+
'
\\
}'
,
'gi'
),
arguments
[
0
][
i
]);
};
return
formatted
;
};
\ No newline at end of file
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