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
f0053a48
Commit
f0053a48
authored
Jun 13, 2023
by
zhangtao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租房面积提示文字修改
parent
b1e079eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
18 deletions
+20
-18
rent_modify.php
new_admincp/applications/zsb/views/nj/rent_modify.php
+20
-18
No files found.
new_admincp/applications/zsb/views/nj/rent_modify.php
View file @
f0053a48
...
@@ -226,7 +226,8 @@
...
@@ -226,7 +226,8 @@
foreach
(
$house
[
'renttype'
]
as
$k
=>
$v
)
{
?>
foreach
(
$house
[
'renttype'
]
as
$k
=>
$v
)
{
?>
<div
class=
"fgInput"
>
<div
class=
"fgInput"
>
<label
class=
"textFg3"
>
<label
class=
"textFg3"
>
<input
type=
"radio"
name=
"renttype"
class=
"jsInput_rRadio input_r"
value=
"
<?=
$k
?>
"
<?php
if
(
$k
==
$house_detail
[
'renttype'
])
echo
"checked"
;
?>
>
<input
type=
"radio"
name=
"renttype"
onchange=
"areaName()"
class=
"jsInput_rRadio input_r"
value=
"
<?=
$k
?>
"
<?php
if
(
$k
==
$house_detail
[
'renttype'
])
echo
"checked"
;
?>
>
<?=
$v
?>
</label>
<?=
$v
?>
</label>
</div>
</div>
<?php
<?php
...
@@ -831,7 +832,7 @@ if (isset($publish_block) && !empty($publish_block)) {
...
@@ -831,7 +832,7 @@ if (isset($publish_block) && !empty($publish_block)) {
}
}
}
}
var
renttype
=
$
(
this
).
val
();
var
renttype
=
$
(
'input[name=renttype]:checked'
).
val
();
if
(
infotype
==
1
){
if
(
infotype
==
1
){
if
(
renttype
==
'整租'
){
if
(
renttype
==
'整租'
){
$
(
".areaName"
).
html
(
'总面积:'
);
$
(
".areaName"
).
html
(
'总面积:'
);
...
@@ -890,22 +891,6 @@ if (isset($publish_block) && !empty($publish_block)) {
...
@@ -890,22 +891,6 @@ if (isset($publish_block) && !empty($publish_block)) {
}
}
});
});
$
(
input
:
radio
[
name
=
'renttype'
]).
change
(
function
(){
var
renttype
=
$
(
this
).
val
();
var
infotype
=
$
(
'input[name=infotype]'
).
val
();
if
(
infotype
==
1
){
if
(
renttype
==
'整租'
){
$
(
".areaName"
).
html
(
'总面积:'
);
}
else
{
$
(
".areaName"
).
html
(
'房屋面积:'
);
}
}
else
{
$
(
".areaName"
).
html
(
'面积:'
);
}
})
$
(
"#blockshowname"
).
autocomplete
({
$
(
"#blockshowname"
).
autocomplete
({
source
:
function
(
request
,
response
)
{
source
:
function
(
request
,
response
)
{
var
infotype
=
$
(
'input[name=infotype]'
).
val
();
var
infotype
=
$
(
'input[name=infotype]'
).
val
();
...
@@ -990,4 +975,20 @@ if (isset($publish_block) && !empty($publish_block)) {
...
@@ -990,4 +975,20 @@ if (isset($publish_block) && !empty($publish_block)) {
});
});
});
});
function
areaName
(){
var
renttype
=
$
(
'input[name=renttype]:checked'
).
val
();
console
.
log
(
renttype
);
var
infotype
=
$
(
'input[name=infotype]'
).
val
();
if
(
infotype
==
1
){
if
(
renttype
==
'整租'
){
$
(
".areaName"
).
html
(
'总面积:'
);
}
else
{
$
(
".areaName"
).
html
(
'房屋面积:'
);
}
}
else
{
$
(
".areaName"
).
html
(
'面积:'
);
}
}
</script>
</script>
\ 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