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
9b48d670
Commit
9b48d670
authored
Dec 27, 2017
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人详情修改
parent
56eac069
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
agent_detail.js
public/app/js/agent_detail.js
+9
-9
more_pingjia.js
public/app/js/more_pingjia.js
+3
-3
No files found.
public/app/js/agent_detail.js
View file @
9b48d670
...
@@ -48,8 +48,8 @@ $(function() {
...
@@ -48,8 +48,8 @@ $(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'
]);
$
(
'#pingjia_fen'
).
html
(
parseInt
(
data
[
'data'
][
'evaluate_grade'
]
));
$
(
'#pingjia_fen'
).
html
(
parseInt
(
Number
(
data
[
'data'
][
'evaluate_num'
])
==
0
?
'0'
:
Number
(
data
[
'data'
][
'evaluate_grade'
])
/
Number
(
data
[
'data'
][
'evaluate_num'
])
));
$
(
'.pingfen-area-large'
).
html
(
dealStar
(
parseInt
(
data
[
'data'
][
'evaluate_grade
'
])));
$
(
'.pingfen-area-large'
).
html
(
dealStar
(
Number
(
data
[
'data'
][
'evaluate_grade'
]),
Number
(
data
[
'data'
][
'evaluate_num
'
])));
$
(
'#pingjia_shu'
).
html
(
Number
(
data
[
'data'
][
'evaluate_num'
])
>
99
?
'99+'
:
Number
(
data
[
'data'
][
'evaluate_num'
])).
attr
(
'data-num'
,
Number
(
data
[
'data'
][
'evaluate_num'
]));
$
(
'#pingjia_shu'
).
html
(
Number
(
data
[
'data'
][
'evaluate_num'
])
>
99
?
'99+'
:
Number
(
data
[
'data'
][
'evaluate_num'
])).
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'
]);
...
@@ -70,8 +70,8 @@ $(function() {
...
@@ -70,8 +70,8 @@ $(function() {
}
}
});
});
function
dealStar
(
_fen
)
{
function
dealStar
(
_fen
,
_renNum
)
{
var
_fen
=
parseInt
(
_
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
/
2
+
0.5
)
{
...
@@ -172,19 +172,19 @@ $(function() {
...
@@ -172,19 +172,19 @@ $(function() {
$
.
each
(
data
[
'data'
][
'evaluate'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
][
'evaluate'
],
function
(
i
,
item
)
{
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'
:
item
[
'user_nick'
],
'0'
:
$
.
trim
(
item
[
'user_nick'
])
==
''
?
'昵称暂无'
:
item
[
'user_nick'
],
'1'
:
dealStar
(
item
[
'evaluate_grade'
]),
'1'
:
dealStar
(
item
[
'evaluate_grade'
]
,
1
),
'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'
]
+
'看房'
):
'暂无看房数据'
,
'5'
:
item
[
'evaluate_content'
],
'5'
:
item
[
'evaluate_content'
],
'6'
:
location
.
protocol
+
'//'
+
item
[
'user_pic'
],
'6'
:
location
.
protocol
+
'//'
+
item
[
'user_pic'
],
'7'
:
ServerHost
+
'/app/images/
temp/photo
.png'
'7'
:
ServerHost
+
'/app/images/
ic_default_headpic
.png'
});
});
};
};
});
});
$
(
'.pingjia-list-area>ul'
).
html
(
_html
);
$
(
'.pingjia-list-area>ul'
).
html
(
_html
);
data
[
'data'
][
'evaluate'
].
length
>
2
&&
$
(
'.pingjia-list-area .see-all-area'
).
show
();
data
[
'data'
][
'evaluate'
]
&&
data
[
'data'
][
'evaluate'
]
.
length
>
2
&&
$
(
'.pingjia-list-area .see-all-area'
).
show
();
}
else
{
}
else
{
$
(
'.pingjia-list-area .zanwu_data'
).
show
();
$
(
'.pingjia-list-area .zanwu_data'
).
show
();
};
};
...
@@ -206,7 +206,7 @@ $(function() {
...
@@ -206,7 +206,7 @@ $(function() {
};
};
});
});
$
(
'.chengjiao-list-area>ul'
).
html
(
_html2
);
$
(
'.chengjiao-list-area>ul'
).
html
(
_html2
);
data
[
'data'
][
'
evaluate
'
].
length
>
2
&&
$
(
'.chengjiao-list-area .see-all-area'
).
show
().
find
(
'a'
).
attr
(
'href'
,
'more_chengjiao?agentId='
+
_agentId
);
data
[
'data'
][
'
journalAccounts'
]
&&
data
[
'data'
][
'journalAccounts
'
].
length
>
2
&&
$
(
'.chengjiao-list-area .see-all-area'
).
show
().
find
(
'a'
).
attr
(
'href'
,
'more_chengjiao?agentId='
+
_agentId
);
}
else
{
}
else
{
$
(
'.chengjiao-list-area .zanwu_data'
).
show
();
$
(
'.chengjiao-list-area .zanwu_data'
).
show
();
};
};
...
...
public/app/js/more_pingjia.js
View file @
9b48d670
...
@@ -78,14 +78,14 @@ $(function() {
...
@@ -78,14 +78,14 @@ $(function() {
var
_html
=
""
;
var
_html
=
""
;
$
.
each
(
data
[
'data'
][
'evaluate'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
][
'evaluate'
],
function
(
i
,
item
)
{
_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'
:
item
[
'user_nick'
],
'0'
:
$
.
trim
(
item
[
'user_nick'
])
==
''
?
'昵称暂无'
:
item
[
'user_nick'
],
'1'
:
dealStar
(
item
[
'evaluate_grade'
]),
'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'
]
+
'看房'
):
'暂无看房数据'
,
'5'
:
item
[
'evaluate_content'
],
'5'
:
item
[
'evaluate_content'
],
'6'
:
location
.
protocol
+
'//'
+
item
[
'user_pic'
],
'6'
:
location
.
protocol
+
'//'
+
item
[
'user_pic'
],
'7'
:
ServerHost
+
'/app/images/
temp/photo
.png'
'7'
:
ServerHost
+
'/app/images/
ic_default_headpic
.png'
});
});
});
});
$
(
'.pingjia-list-area>ul'
).
append
(
_html
);
$
(
'.pingjia-list-area>ul'
).
append
(
_html
);
...
...
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