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
f3571816
Commit
f3571816
authored
Dec 28, 2017
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页分数细节调整
parent
8adce2e0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
23 deletions
+16
-23
more_pingjia.html
application/app/view/index/more_pingjia.html
+0
-5
agent_detail.js
public/app/js/agent_detail.js
+10
-11
more_pingjia.js
public/app/js/more_pingjia.js
+6
-7
No files found.
application/app/view/index/more_pingjia.html
View file @
f3571816
...
@@ -9,11 +9,6 @@
...
@@ -9,11 +9,6 @@
<meta
name=
"Description"
content=
""
/>
<meta
name=
"Description"
content=
""
/>
<link
rel=
"stylesheet"
href=
"/app/css/common.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/common.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/agent_detail.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/agent_detail.css"
>
<style
type=
"text/css"
>
body
{
display
:
block
!important
;
}
</style>
</head>
</head>
<body>
<body>
<header
id=
"header"
>
<header
id=
"header"
>
...
...
public/app/js/agent_detail.js
View file @
f3571816
...
@@ -48,10 +48,10 @@ $(function() {
...
@@ -48,10 +48,10 @@ $(function() {
$
(
'#time_ruzhi'
).
html
(
data
[
'data'
][
'created'
]);
$
(
'#time_ruzhi'
).
html
(
data
[
'data'
][
'created'
]);
$
(
'#name_store'
).
html
(
data
[
'data'
][
'sub_shopname'
]);
$
(
'#name_store'
).
html
(
data
[
'data'
][
'sub_shopname'
]);
$
(
'.portrait-area>img'
).
attr
(
'src'
,
data
[
'data'
][
'head_portrait'
]);
$
(
'.portrait-area>img'
).
attr
(
'src'
,
data
[
'data'
][
'head_portrait'
]);
var
_fenNum
=
parseInt
(
Number
(
data
[
'data'
][
'evaluate_
num'
])
==
0
?
'0'
:
Number
(
data
[
'data'
][
'evaluate_grade'
])
/
Number
(
data
[
'data'
][
'evaluate_num
'
]));
var
_fenNum
=
parseInt
(
Number
(
data
[
'data'
][
'evaluate_
grade
'
]));
var
_pingNum
=
Number
(
data
[
'data'
][
'evaluate_num'
])
>
99
?
'99+'
:
Number
(
data
[
'data'
][
'evaluate_num'
]);
var
_pingNum
=
Number
(
data
[
'data'
][
'evaluate_num'
])
>
99
?
'99+'
:
Number
(
data
[
'data'
][
'evaluate_num'
]);
$
(
'#pingjia_fen'
).
html
(
_fenNum
);
$
(
'#pingjia_fen'
).
html
(
_fenNum
);
$
(
'.pingfen-area-large'
).
html
(
dealStar
(
Number
(
data
[
'data'
][
'evaluate_grade'
]),
Number
(
data
[
'data'
][
'evaluate_num'
])
));
$
(
'.pingfen-area-large'
).
html
(
dealStar
(
_fenNum
));
$
(
'#pingjia_shu'
).
html
(
_pingNum
).
attr
(
'data-num'
,
Number
(
data
[
'data'
][
'evaluate_num'
]));
$
(
'#pingjia_shu'
).
html
(
_pingNum
).
attr
(
'data-num'
,
Number
(
data
[
'data'
][
'evaluate_num'
]));
$
(
'#chengjiao_lishi'
).
html
(
data
[
'data'
][
'JournalAccounts'
]);
$
(
'#chengjiao_lishi'
).
html
(
data
[
'data'
][
'JournalAccounts'
]);
$
(
'#daikan_30'
).
html
(
data
[
'data'
][
'watch_shop'
]);
$
(
'#daikan_30'
).
html
(
data
[
'data'
][
'watch_shop'
]);
...
@@ -73,13 +73,12 @@ $(function() {
...
@@ -73,13 +73,12 @@ $(function() {
}
}
});
});
function
dealStar
(
_fen
,
_renNum
)
{
function
dealStar
(
_fen
)
{
var
_fen
=
parseInt
(
_renNum
==
0
?
_fen
:
_fen
/
_renNum
);
var
_htmlTemp
=
''
;
var
_htmlTemp
=
''
;
for
(
var
i
=
1
;
i
<
6
;
i
++
)
{
for
(
var
i
=
1
;
i
<
6
;
i
++
)
{
if
(
i
<
_fen
/
2
+
0.5
)
{
if
(
i
<
_fen
+
0.5
)
{
_htmlTemp
+=
'<small class="small-active"></small>'
;
_htmlTemp
+=
'<small class="small-active"></small>'
;
}
else
if
(
i
==
_fen
/
2
+
0.5
)
{
}
else
if
(
i
==
_fen
+
0.5
)
{
_htmlTemp
+=
'<small class="small-active-guodu"></small>'
;
_htmlTemp
+=
'<small class="small-active-guodu"></small>'
;
}
else
{
}
else
{
_htmlTemp
+=
'<small></small>'
;
_htmlTemp
+=
'<small></small>'
;
...
@@ -89,13 +88,13 @@ $(function() {
...
@@ -89,13 +88,13 @@ $(function() {
};
};
function
dealStarText
(
_fen
)
{
function
dealStarText
(
_fen
)
{
if
(
_fen
>=
8
)
{
if
(
_fen
>=
4
)
{
return
'非常推荐'
;
return
'非常推荐'
;
}
else
if
(
_fen
>=
6
)
{
}
else
if
(
_fen
>=
3
)
{
return
'很好'
;
return
'很好'
;
}
else
if
(
_fen
>=
4
)
{
return
'一般'
;
}
else
if
(
_fen
>=
2
)
{
}
else
if
(
_fen
>=
2
)
{
return
'一般'
;
}
else
if
(
_fen
>=
1
)
{
return
'很差'
;
return
'很差'
;
}
else
{
}
else
{
return
'非常差'
;
return
'非常差'
;
...
@@ -165,7 +164,7 @@ $(function() {
...
@@ -165,7 +164,7 @@ $(function() {
if
(
i
<
2
)
{
if
(
i
<
2
)
{
_html
+=
'<li><div class="li-top-area oh"><figure class="li-top-area-left fl"><div class="oh fl"><img src="{6}" onerror="javascript:this.src=
\'
{7}
\'
" class="fl"></div><figcaption class="oh fl"><p>{0}</p><div class="oh"><div class="pingfen-area fl">{1}</div><p class="fl">{2}</p></div></figcaption></figure><div class="li-top-area-right fr">{3}</div></div><div class="li-bottom-area"><h3>{4}</h3><p>{5}</p></div></li>'
.
stringFormatObj
({
_html
+=
'<li><div class="li-top-area oh"><figure class="li-top-area-left fl"><div class="oh fl"><img src="{6}" onerror="javascript:this.src=
\'
{7}
\'
" class="fl"></div><figcaption class="oh fl"><p>{0}</p><div class="oh"><div class="pingfen-area fl">{1}</div><p class="fl">{2}</p></div></figcaption></figure><div class="li-top-area-right fr">{3}</div></div><div class="li-bottom-area"><h3>{4}</h3><p>{5}</p></div></li>'
.
stringFormatObj
({
'0'
:
$
.
trim
(
item
[
'user_nick'
])
==
''
?
'昵称暂无'
:
item
[
'user_nick'
],
'0'
:
$
.
trim
(
item
[
'user_nick'
])
==
''
?
'昵称暂无'
:
item
[
'user_nick'
],
'1'
:
dealStar
(
item
[
'evaluate_grade'
]
,
1
),
'1'
:
dealStar
(
item
[
'evaluate_grade'
]),
'2'
:
dealStarText
(
item
[
'evaluate_grade'
]),
'2'
:
dealStarText
(
item
[
'evaluate_grade'
]),
'3'
:
item
[
'created'
],
'3'
:
item
[
'created'
],
'4'
:
(
item
[
'receptiontime'
]
!=
''
||
item
[
'houserAddress'
]
!=
''
)?(
item
[
'receptiontime'
]
+
'在'
+
item
[
'houserAddress'
][
'address'
]
+
'看房'
):
'暂无看房数据'
,
'4'
:
(
item
[
'receptiontime'
]
!=
''
||
item
[
'houserAddress'
]
!=
''
)?(
item
[
'receptiontime'
]
+
'在'
+
item
[
'houserAddress'
][
'address'
]
+
'看房'
):
'暂无看房数据'
,
...
...
public/app/js/more_pingjia.js
View file @
f3571816
...
@@ -22,12 +22,11 @@ $(function() {
...
@@ -22,12 +22,11 @@ $(function() {
ajaxUl
(
scroll
);
ajaxUl
(
scroll
);
function
dealStar
(
_fen
)
{
function
dealStar
(
_fen
)
{
var
_fen
=
parseInt
(
_fen
);
var
_htmlTemp
=
''
;
var
_htmlTemp
=
''
;
for
(
var
i
=
1
;
i
<
6
;
i
++
)
{
for
(
var
i
=
1
;
i
<
6
;
i
++
)
{
if
(
i
<
_fen
/
2
+
0.5
)
{
if
(
i
<
_fen
+
0.5
)
{
_htmlTemp
+=
'<small class="small-active"></small>'
;
_htmlTemp
+=
'<small class="small-active"></small>'
;
}
else
if
(
i
==
_fen
/
2
+
0.5
)
{
}
else
if
(
i
==
_fen
+
0.5
)
{
_htmlTemp
+=
'<small class="small-active-guodu"></small>'
;
_htmlTemp
+=
'<small class="small-active-guodu"></small>'
;
}
else
{
}
else
{
_htmlTemp
+=
'<small></small>'
;
_htmlTemp
+=
'<small></small>'
;
...
@@ -37,13 +36,13 @@ $(function() {
...
@@ -37,13 +36,13 @@ $(function() {
};
};
function
dealStarText
(
_fen
)
{
function
dealStarText
(
_fen
)
{
if
(
_fen
>=
8
)
{
if
(
_fen
>=
4
)
{
return
'非常推荐'
;
return
'非常推荐'
;
}
else
if
(
_fen
>=
6
)
{
}
else
if
(
_fen
>=
3
)
{
return
'很好'
;
return
'很好'
;
}
else
if
(
_fen
>=
4
)
{
return
'一般'
;
}
else
if
(
_fen
>=
2
)
{
}
else
if
(
_fen
>=
2
)
{
return
'一般'
;
}
else
if
(
_fen
>=
1
)
{
return
'很差'
;
return
'很差'
;
}
else
{
}
else
{
return
'非常差'
;
return
'非常差'
;
...
...
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