Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
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
esf
fenzhan_zsb
Commits
449e6680
Commit
449e6680
authored
May 30, 2023
by
梅玉龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '202305_remark' into release_preview
parents
b5fb36a0
c332c448
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
246 additions
and
46 deletions
+246
-46
ajax.php
new_admincp/applications/zsb/controllers/ajax.php
+6
-0
editor.php
new_admincp/applications/zsb/controllers/editor.php
+2
-0
sell.php
new_admincp/applications/zsb/controllers/sell.php
+34
-6
sell_ext.php
new_admincp/applications/zsb/models/sell_ext.php
+64
-0
editor.php
new_admincp/applications/zsb/views/nj/editor.php
+101
-38
sell_modify.php
new_admincp/applications/zsb/views/nj/sell_modify.php
+23
-0
house.js
new_admincp/source/zsb/js/v1.0/house.js
+16
-2
No files found.
new_admincp/applications/zsb/controllers/ajax.php
View file @
449e6680
...
@@ -1358,6 +1358,8 @@ class Ajax extends MY_Controller {
...
@@ -1358,6 +1358,8 @@ class Ajax extends MY_Controller {
public
function
banwords
()
{
public
function
banwords
()
{
$address
=
urldecode
(
$this
->
input
->
get
(
'address'
,
TRUE
));
$address
=
urldecode
(
$this
->
input
->
get
(
'address'
,
TRUE
));
$remark
=
urldecode
(
$this
->
input
->
get
(
'remark'
,
TRUE
));
$remark
=
urldecode
(
$this
->
input
->
get
(
'remark'
,
TRUE
));
$stand_remark
=
urldecode
(
$this
->
input
->
get
(
'stand_remark'
,
TRUE
));
$service_remark
=
urldecode
(
$this
->
input
->
get
(
'service_remark'
,
TRUE
));
$this
->
load
->
helper
(
'common_house_helper'
);
$this
->
load
->
helper
(
'common_house_helper'
);
$filename
=
STATIC_SOURCE_URL
.
'/common/banwords/banwords.txt'
;
$filename
=
STATIC_SOURCE_URL
.
'/common/banwords/banwords.txt'
;
$result
=
array
(
'status'
=>
1
);
$result
=
array
(
'status'
=>
1
);
...
@@ -1365,6 +1367,10 @@ class Ajax extends MY_Controller {
...
@@ -1365,6 +1367,10 @@ class Ajax extends MY_Controller {
$result
[
'status'
]
=
2
;
$result
[
'status'
]
=
2
;
}
else
if
(
publish_banwordCheck
(
$remark
,
$filename
))
{
}
else
if
(
publish_banwordCheck
(
$remark
,
$filename
))
{
$result
[
'status'
]
=
3
;
$result
[
'status'
]
=
3
;
}
else
if
(
publish_banwordCheck
(
$stand_remark
,
$filename
))
{
$result
[
'status'
]
=
4
;
}
else
if
(
publish_banwordCheck
(
$service_remark
,
$filename
))
{
$result
[
'status'
]
=
5
;
}
}
echo
$this
->
ajax_model
->
array_to_json
(
$result
);
echo
$this
->
ajax_model
->
array_to_json
(
$result
);
}
}
...
...
new_admincp/applications/zsb/controllers/editor.php
View file @
449e6680
...
@@ -34,6 +34,8 @@ class Editor extends MY_Controller
...
@@ -34,6 +34,8 @@ class Editor extends MY_Controller
'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|',
'hilitecolor', 'bold', 'italic', 'underline', 'removeformat', '|',
'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'wordpaste', '|', 'image'"
;
'insertunorderedlist', '|', 'wordpaste', '|', 'image'"
;
// 编辑器id
$edit_config
[
'edit_id'
]
=
$this
->
input
->
get
(
'id'
)
?
$this
->
input
->
get
(
'id'
)
:
'remark'
;
$this
->
load
->
view
(
'/editor'
,
$edit_config
);
$this
->
load
->
view
(
'/editor'
,
$edit_config
);
}
}
...
...
new_admincp/applications/zsb/controllers/sell.php
View file @
449e6680
...
@@ -67,7 +67,10 @@ class Sell extends MY_Controller {
...
@@ -67,7 +67,10 @@ class Sell extends MY_Controller {
* @var int
* @var int
*/
*/
private
$_total_count
=
0
;
private
$_total_count
=
0
;
const
STAND_REMARK_DEFAULT
=
'请输入业主心态,可从卖房原因、卖房紧迫度,是否可议价等方面进行描述'
;
const
SERVICE_REMARK_DEFAULT
=
'请输入服务优势,可从行业经验、服务内容等方面进行描述'
;
const
DEFAULT_REMARK
=
'请输入房源核心优势,可从【小区】、【户型】、【核心卖点】、【周边配套】等方面进行描述'
;
/**
/**
* 解析函数
* 解析函数
...
@@ -506,6 +509,7 @@ class Sell extends MY_Controller {
...
@@ -506,6 +509,7 @@ class Sell extends MY_Controller {
//360全景房源标签规则
//360全景房源标签规则
$address
=
$this
->
input
->
post
(
'address'
,
true
);
$address
=
$this
->
input
->
post
(
'address'
,
true
);
$remark
=
$this
->
input
->
post
(
'remark'
);
$remark
=
$this
->
input
->
post
(
'remark'
);
$remark
=
$remark
===
self
::
DEFAULT_REMARK
?
''
:
$remark
;
$p_sort_arr
=
$this
->
input
->
post
(
'p_sort'
,
true
);
$p_sort_arr
=
$this
->
input
->
post
(
'p_sort'
,
true
);
$is360
=
0
;
$is360
=
0
;
...
@@ -937,7 +941,7 @@ class Sell extends MY_Controller {
...
@@ -937,7 +941,7 @@ class Sell extends MY_Controller {
}
}
}
}
$fields_values
[
'remark'
]
=
check_word
(
$
this
->
input
->
post
(
'remark'
)
,
STATIC_BADWORD_URL
);
$fields_values
[
'remark'
]
=
check_word
(
$
remark
,
STATIC_BADWORD_URL
);
//房源特色
//房源特色
$fields_values
[
'feature'
]
=
''
;
$fields_values
[
'feature'
]
=
''
;
$feature
=
$this
->
input
->
post
(
'feature'
,
true
);
$feature
=
$this
->
input
->
post
(
'feature'
,
true
);
...
@@ -996,7 +1000,17 @@ class Sell extends MY_Controller {
...
@@ -996,7 +1000,17 @@ class Sell extends MY_Controller {
if
(
$house_id
)
if
(
$house_id
)
{
{
// 插入房源扩展信息
$standRemark
=
check_word
(
$this
->
input
->
post
(
'stand_remark'
),
STATIC_BADWORD_URL
);
$standRemark
=
$standRemark
===
self
::
STAND_REMARK_DEFAULT
?
''
:
$standRemark
;
$serviceRemark
=
check_word
(
$this
->
input
->
post
(
'service_remark'
),
STATIC_BADWORD_URL
);
$serviceRemark
=
$serviceRemark
===
self
::
SERVICE_REMARK_DEFAULT
?
''
:
$serviceRemark
;
$this
->
load
->
model
(
'sell_ext'
);
$this
->
sell_ext
->
dataModel
(
$house_id
,
array
(
'uid'
=>
$uid
,
'stand_remark'
=>
$standRemark
,
'service_remark'
=>
$serviceRemark
,
));
//判断房源价格是否在预警价格区间,仅对住宅类做判断
//判断房源价格是否在预警价格区间,仅对住宅类做判断
/*if ($fields_values['blockid'] && $fields_values['infotype']==1){
/*if ($fields_values['blockid'] && $fields_values['infotype']==1){
$_sell = $fields_values;
$_sell = $fields_values;
...
@@ -2253,7 +2267,11 @@ class Sell extends MY_Controller {
...
@@ -2253,7 +2267,11 @@ class Sell extends MY_Controller {
$data_page
[
'is_show_real'
]
=
$is_show_real
;
$data_page
[
'is_show_real'
]
=
$is_show_real
;
$this
->
load
->
model
(
'real_house_model'
);
$this
->
load
->
model
(
'real_house_model'
);
$data_page
[
'balance'
]
=
$this
->
real_house_model
->
getBrokerRealHouseMoney
(
$uid
);
//经纪人账号余额
$data_page
[
'balance'
]
=
$this
->
real_house_model
->
getBrokerRealHouseMoney
(
$uid
);
//经纪人账号余额
// 房源扩展信息
$this
->
load
->
model
(
'sell_ext'
);
$sellExt
=
$this
->
sell_ext
->
getSellExt
(
$id
);
$data_page
[
'house_detail'
][
'stand_remark'
]
=
isset
(
$sellExt
[
'stand_remark'
])
?
$sellExt
[
'stand_remark'
]
:
''
;
$data_page
[
'house_detail'
][
'service_remark'
]
=
isset
(
$sellExt
[
'service_remark'
])
?
$sellExt
[
'service_remark'
]
:
''
;
$this
->
render_publish
(
$data_page
);
$this
->
render_publish
(
$data_page
);
}
}
...
@@ -2281,6 +2299,7 @@ class Sell extends MY_Controller {
...
@@ -2281,6 +2299,7 @@ class Sell extends MY_Controller {
//360全景房源标签规则
//360全景房源标签规则
$address
=
$this
->
input
->
post
(
'address'
,
true
);
$address
=
$this
->
input
->
post
(
'address'
,
true
);
$remark
=
$this
->
input
->
post
(
'remark'
);
$remark
=
$this
->
input
->
post
(
'remark'
);
$remark
=
$remark
===
self
::
DEFAULT_REMARK
?
''
:
$remark
;
$p_sort_arr
=
$this
->
input
->
post
(
'p_sort'
,
true
);
$p_sort_arr
=
$this
->
input
->
post
(
'p_sort'
,
true
);
$is360
=
0
;
$is360
=
0
;
...
@@ -2723,7 +2742,7 @@ class Sell extends MY_Controller {
...
@@ -2723,7 +2742,7 @@ class Sell extends MY_Controller {
}
}
//$fields_values['remark'] = $this->input->post('remark');
//$fields_values['remark'] = $this->input->post('remark');
$fields_values
[
'remark'
]
=
check_word
(
$
this
->
input
->
post
(
'remark'
)
,
STATIC_BADWORD_URL
);
$fields_values
[
'remark'
]
=
check_word
(
$
remark
,
STATIC_BADWORD_URL
);
//房源特色
//房源特色
$fields_values
[
'feature'
]
=
''
;
$fields_values
[
'feature'
]
=
''
;
...
@@ -2999,7 +3018,16 @@ class Sell extends MY_Controller {
...
@@ -2999,7 +3018,16 @@ class Sell extends MY_Controller {
//更新房源信息
//更新房源信息
//update sell set esta = 5 where id in(33899521, 37700775) and uid = 10000040;
//update sell set esta = 5 where id in(33899521, 37700775) and uid = 10000040;
$affected_rows
=
$this
->
sell_model
->
update
(
$fields_values
,
$house_id
,
$uid
);
$affected_rows
=
$this
->
sell_model
->
update
(
$fields_values
,
$house_id
,
$uid
);
// 插入房源扩展信息
$standRemark
=
check_word
(
$this
->
input
->
post
(
'stand_remark'
),
STATIC_BADWORD_URL
);
$standRemark
=
$standRemark
===
self
::
STAND_REMARK_DEFAULT
?
''
:
$standRemark
;
$serviceRemark
=
check_word
(
$this
->
input
->
post
(
'service_remark'
),
STATIC_BADWORD_URL
);
$serviceRemark
=
$serviceRemark
===
self
::
SERVICE_REMARK_DEFAULT
?
''
:
$serviceRemark
;
$this
->
load
->
model
(
'sell_ext'
);
$this
->
sell_ext
->
dataModel
(
$house_id
,
array
(
'stand_remark'
=>
$standRemark
,
'service_remark'
=>
$serviceRemark
,
));
//添加房源发布价格日志信息
//添加房源发布价格日志信息
$this
->
load
->
model
(
'house_publish_rule_log_model'
);
$this
->
load
->
model
(
'house_publish_rule_log_model'
);
$housePublishRuleLogData
=
$this
->
house_publish_rule_log_model
->
getRow
(
$house_id
,
1
,
3
,
$uid
);
$housePublishRuleLogData
=
$this
->
house_publish_rule_log_model
->
getRow
(
$house_id
,
1
,
3
,
$uid
);
...
...
new_admincp/applications/zsb/models/sell_ext.php
0 → 100644
View file @
449e6680
<?php
/**
* Desc: 房源扩展信息
* User: mellon
* Date: 2023/5/11
* Time: 15:19
*/
class
sell_ext
extends
MY_Model
{
public
$table
=
'sell_ext'
;
public
function
__construct
()
{
parent
::
__construct
(
1
,
1
,
0
);
}
/**
* 更新插入数据
* @param $houseId
* @param $data
* @author mellon
*/
public
function
dataModel
(
$houseId
,
$data
)
{
$standRemark
=
$data
[
'stand_remark'
]
?
$data
[
'stand_remark'
]
:
''
;
$serviceRemark
=
$data
[
'service_remark'
]
?
$data
[
'service_remark'
]
:
''
;
// 查询数据
$this
->
dbback
->
from
(
$this
->
table
)
->
where
(
'house_id'
,
$houseId
);
$query
=
$this
->
dbback
->
get
()
->
row
();
if
(
!
empty
(
$query
))
{
// 更新
$this
->
db
->
where
(
'house_id'
,
$houseId
);
$this
->
db
->
update
(
$this
->
table
,
array
(
'stand_remark'
=>
$standRemark
,
'service_remark'
=>
$serviceRemark
,
));
}
else
{
// 插入
$insert_data
[
'house_id'
]
=
$houseId
;
$insert_data
[
'uid'
]
=
$data
[
'uid'
]
?
$data
[
'uid'
]
:
0
;
$insert_data
[
'telno'
]
=
$data
[
'telno'
]
?
$data
[
'telno'
]
:
''
;
$insert_data
[
'create_time'
]
=
date
(
'Y-m-d H:i:s'
);
$insert_data
[
'ip'
]
=
get_ip
();
$insert_data
[
'stand_remark'
]
=
$standRemark
;
$insert_data
[
'service_remark'
]
=
$serviceRemark
;
$this
->
db
->
insert
(
$this
->
table
,
$insert_data
);
}
}
/**
* 获取房源扩展信息
* @param $houseId
* @return mixed
* @author mellon
*/
public
function
getSellExt
(
$houseId
)
{
$this
->
dbback
->
from
(
$this
->
table
)
->
where
(
'house_id'
,
$houseId
);
return
$this
->
dbback
->
get
()
->
row_array
();
}
}
\ No newline at end of file
new_admincp/applications/zsb/views/nj/editor.php
View file @
449e6680
<?php
// 默认文字
switch
(
$edit_id
)
{
case
'stand_remark'
:
$defaultText
=
'请输入业主心态,可从卖房原因、卖房紧迫度,是否可议价等方面进行描述'
;
break
;
case
'service_remark'
:
$defaultText
=
'请输入服务优势,可从行业经验、服务内容等方面进行描述'
;
break
;
case
'remark'
:
default
:
$defaultText
=
'请输入房源核心优势,可从【小区】、【户型】、【核心卖点】、【周边配套】等方面进行描述'
;
break
;
}
?>
<html>
<html>
<head>
<head>
<style>
<style>
*
{
margin
:
0
;
padding
:
0
;}
*
{
</style>
margin
:
0
;
<script
charset=
'utf-8'
src=
'
<?=
STATIC_SOURCE_URL
?>
/common/js/kindeditor-4.1.10/kindeditor-min.js'
></script>
padding
:
0
;
<script
charset=
'gbk'
src=
'
<?=
STATIC_SOURCE_URL
?>
/common/js/kindeditor-4.1.10/lang/zh_CN.js'
></script>
}
</head>
</style>
<body
style=
"backgroud:none;"
>
<script
charset=
'gbk'
src=
'
<?=
STATIC_SOURCE_URL
?>
/common/js/jquery-1.8.3.min.js'
></script>
<textarea
name=
"remark"
id=
"remark"
cols=
"0"
rows=
"0"
style=
"width:835px;height:155px;display:none;"
></textarea>
<script
charset=
'utf-8'
src=
'
<?=
STATIC_SOURCE_URL
?>
/common/js/kindeditor-4.1.10/kindeditor-min.js'
></script>
<script>
<script
charset=
'gbk'
src=
'
<?=
STATIC_SOURCE_URL
?>
/common/js/kindeditor-4.1.10/lang/zh_CN.js'
></script>
document
.
getElementById
(
'remark'
).
value
=
window
.
parent
.
document
.
getElementById
(
'remark'
).
value
;
</head>
<body
style=
"backgroud:none;"
>
<textarea
name=
"remark"
id=
"
<?=
$edit_id
?>
"
cols=
"0"
rows=
"0"
style=
"width:835px;height:155px;display:none;"
></textarea>
<script>
document
.
getElementById
(
'
<?=
$edit_id
?>
'
).
value
=
window
.
parent
.
document
.
getElementById
(
'
<?=
$edit_id
?>
'
).
value
;
var
currText
=
$
(
"#
<?=
$edit_id
?>
"
,
window
.
parent
.
document
).
val
();
var
editor
;
var
defaultText
=
'
<?=
$defaultText
?>
'
;
var
editor
;
// 默认赋值
KindEditor
.
ready
(
function
(
K
)
{
$
(
"#
<?=
$edit_id
?>
"
).
val
(
currText
);
editor
=
K
.
create
(
'#remark'
,
{
width
:
'
<?=
$width
?>
px'
,
KindEditor
.
ready
(
function
(
K
)
{
height
:
'
<?=
$height
?>
px'
,
editor
=
K
.
create
(
'#
<?=
$edit_id
?>
'
,
{
resizeType
:
0
,
width
:
'
<?=
$width
?>
px'
,
allowPreviewEmoticons
:
false
,
height
:
'
<?=
$height
?>
px'
,
allowImageUpload
:
false
,
resizeType
:
0
,
items
:
[
<?=
$items
?>
],
allowPreviewEmoticons
:
false
,
//下面这行代码,当失去焦点时执行 this.sync();
allowImageUpload
:
false
,
afterBlur
:
function
()
{
items
:
[
<?=
$items
?>
],
this
.
sync
();
//下面这行代码,当失去焦点时执行 this.sync();
window
.
parent
.
document
.
getElementById
(
'remark'
).
value
=
document
.
getElementById
(
'remark'
).
value
;
afterBlur
:
function
()
{
//$("#jsErrorBox").html("");
this
.
sync
();
//$("#remark").blur();
if
(
editor
.
html
()
===
''
)
{
/*if($("#remark").val()!='<p> </p>' && $("#remark").val()!='<br />')
editor
.
html
(
defaultText
);
{
$
(
".ke-edit-iframe"
).
contents
().
find
(
".ke-content"
).
css
(
"color"
,
"#777"
);
alert("1")
//document.getElementsByClassName('ke-content')[0].style.color = '#777';
$("#remark2").val($("#remark").val());
//console.log(document.getElementsByClassName('ke-content'))
}else{
}
$("#remark2").val("");
//window.parent.document.getElementById('
<?=
$edit_id
?>
').value = document.getElementById('
<?=
$edit_id
?>
').value;
}*/
window.parent.document.getElementById('
<?=
$edit_id
?>
').value = currText;
}
// 赋值到父元素
});
//$("#
<?=
$edit_id
?>
", window.parent.document).val = currText;
});
//$("#jsErrorBox").html("");
</script>
//$("#remark").blur();
</body>
/*if($("#remark").val()!='
<
p
>
&
nbsp
;
<
/p>' && $
(
"#remark"
)
.val
()
!='<br /
>
')
{
alert("1")
$("#remark2").val($("#remark").val());
}else{
$("#remark2").val("");
}*/
},
afterFocus: function () {
if (editor.html() === defaultText) {
editor.html('');
$(".ke-edit-iframe").contents().find(".ke-content").css("color", "black");
}
},
afterCreate:function () {
//为编辑框赋值
setTimeout(function () {
var default_text = currText;
if(editor && default_text){
editor.html(default_text)
}
if(default_text === ''){
editor.html(defaultText);
$(".ke-edit-iframe").contents().find(".ke-content").css("color","#777");
}
},1000)
},
afterChange:function () {
if(editor){
this.sync();
currText = $.trim(editor.html());
//$("#
<?=
$edit_id
?>
", window.parent.document).val = currText;
//$("#
<?=
$edit_id
?>
", window.parent.document).css({"height":"333px;"});
window.parent.document.getElementById('
<?=
$edit_id
?>
').value = currText;
}
}
});
});
</script>
</body>
</html>
</html>
\ No newline at end of file
new_admincp/applications/zsb/views/nj/sell_modify.php
View file @
449e6680
...
@@ -576,6 +576,29 @@
...
@@ -576,6 +576,29 @@
<textarea
name=
"remark"
id=
"remark"
cols=
"0"
rows=
"0"
style=
"margin-top:5px; width:835px; height:155px; display:none;"
>
<?=
$house_detail
[
'remark'
]
?>
</textarea>
<textarea
name=
"remark"
id=
"remark"
cols=
"0"
rows=
"0"
style=
"margin-top:5px; width:835px; height:155px; display:none;"
>
<?=
$house_detail
[
'remark'
]
?>
</textarea>
<div
class=
"editorBox"
style=
"height: 400px;"
>
<iframe
id=
"remark_iframe"
frameborder=
"0"
scrolling=
"no"
src=
"/editor/house/"
style=
"margin-top:5px; width:830px; height:400px;"
></iframe></div>
<div
class=
"editorBox"
style=
"height: 400px;"
>
<iframe
id=
"remark_iframe"
frameborder=
"0"
scrolling=
"no"
src=
"/editor/house/"
style=
"margin-top:5px; width:830px; height:400px;"
></iframe></div>
</dd>
</dd>
<dd
class=
"list_item clearfix clear"
>
<label
class=
"label"
>
业主心态:
</label>
<div
class=
"fields "
>
<p
class=
"textFg textFg6"
>
业主的想法是购房人非常关注的信息之一,请介绍业主的卖房相关内容
</p>
</div>
</dd>
<dd
class=
"list_item list_item02 clearfix clear"
>
<textarea
name=
"stand_remark"
id=
"stand_remark"
cols=
"0"
rows=
"0"
style=
"margin-top:5px; width:835px; height:155px; display:none;"
>
<?=
$house_detail
[
'stand_remark'
]
?>
</textarea>
<div
class=
"editorBox"
style=
"height: 400px;"
>
<iframe
id=
"stand_remark_iframe"
frameborder=
"0"
scrolling=
"no"
src=
"/editor/house/?id=stand_remark"
style=
"margin-top:5px; width:830px; height:400px;"
></iframe></div>
</dd>
<dd
class=
"list_item clearfix clear"
>
<label
class=
"label"
>
服务优势:
</label>
<div
class=
"fields "
>
<p
class=
"textFg textFg6"
>
好的服务可以吸引用户咨询,请介绍公司的优质服务内容
</p>
</div>
</dd>
<dd
class=
"list_item list_item02 clearfix clear"
>
<textarea
name=
"service_remark"
id=
"service_remark"
cols=
"0"
rows=
"0"
style=
"margin-top:5px; width:835px; height:155px; display:none;"
>
<?=
$house_detail
[
'service_remark'
]
?>
</textarea>
<div
class=
"editorBox"
style=
"height: 400px;"
>
<iframe
id=
"service_remark_iframe"
frameborder=
"0"
scrolling=
"no"
src=
"/editor/house/?id=service_remark"
style=
"margin-top:5px; width:830px; height:400px;"
></iframe></div>
</dd>
<dd>
<dd>
<?php
<?php
if
(
$infotype
==
1
||
$infotype
==
2
||
$infotype
==
3
||
$infotype
==
4
)
{
if
(
$infotype
==
1
||
$infotype
==
2
||
$infotype
==
3
||
$infotype
==
4
)
{
...
...
new_admincp/source/zsb/js/v1.0/house.js
View file @
449e6680
...
@@ -1294,8 +1294,12 @@ $(function() {
...
@@ -1294,8 +1294,12 @@ $(function() {
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
'/ajax/banwords/'
,
url
:
'/ajax/banwords/'
,
data
:
{
address
:
encodeURI
(
encodeURI
(
$
(
'#address'
).
val
())),
data
:
{
remark
:
encodeURI
(
encodeURI
(
$
(
'#remark'
).
val
()))},
address
:
encodeURI
(
encodeURI
(
$
(
'#address'
).
val
())),
remark
:
encodeURI
(
encodeURI
(
$
(
'#remark'
).
val
())),
stand_remark
:
encodeURI
(
encodeURI
(
$
(
'#stand_remark'
).
val
())),
service_remark
:
encodeURI
(
encodeURI
(
$
(
'#service_remark'
).
val
())),
},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
errorCode
==
'401'
)
if
(
data
.
errorCode
==
'401'
)
...
@@ -1313,6 +1317,16 @@ $(function() {
...
@@ -1313,6 +1317,16 @@ $(function() {
$
(
'#remark'
).
focus
();
$
(
'#remark'
).
focus
();
openWin
(
'JS_noteHouse4'
);
openWin
(
'JS_noteHouse4'
);
return
false
;
return
false
;
}
else
if
(
data
.
status
==
4
)
{
$
(
'#banwords'
).
html
(
'您输入的业主心态描述中含有敏感词,请重新输入!'
);
$
(
'#stand_remark'
).
focus
();
openWin
(
'JS_noteHouse4'
);
return
false
;
}
else
if
(
data
.
status
==
5
)
{
$
(
'#banwords'
).
html
(
'您输入的服务优势描述中含有敏感词,请重新输入!'
);
$
(
'#service_remark'
).
focus
();
openWin
(
'JS_noteHouse4'
);
return
false
;
}
else
{
}
else
{
//均价不能小于小区价格的65%
//均价不能小于小区价格的65%
if
(
$
(
'#price'
).
val
()
!=
''
&&
$
(
'#buildarea'
).
val
()
!=
''
if
(
$
(
'#price'
).
val
()
!=
''
&&
$
(
'#buildarea'
).
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