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
9bd10f26
Commit
9bd10f26
authored
Dec 28, 2017
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人详情调整1
parent
51ad8e25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
89 deletions
+93
-89
agent_detail.css
public/app/css/agent_detail.css
+3
-0
common.css
public/app/css/common.css
+7
-0
agent_detail.js
public/app/js/agent_detail.js
+83
-89
No files found.
public/app/css/agent_detail.css
View file @
9bd10f26
...
...
@@ -283,6 +283,9 @@ body{
.chengjiao-list-area
p
.zuji-price
>
span
{
font-size
:
.34rem
;
}
.chengjiao-list-area
p
.sp-text
{
height
:
.32rem
;
}
.chengjiao-list-area
p
.sp-text
>
span
{
float
:
left
;
height
:
.32rem
;
...
...
public/app/css/common.css
View file @
9bd10f26
...
...
@@ -18,6 +18,13 @@ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
a
,
a
:hover
,
a
:active
,
a
:visited
,
a
:link
,
a
:focus
{
-webkit-tap-highlight-color
:
rgba
(
0
,
0
,
0
,
0
);
-webkit-tap-highlight-color
:
transparent
;
outline
:
none
;
background
:
none
;
text-decoration
:
none
;
}
input
{
outline
:
none
;
-webkit-appearance
:
none
;
/*解决苹果机上input的内阴影*/
...
...
public/app/js/agent_detail.js
View file @
9bd10f26
...
...
@@ -48,11 +48,14 @@ $(function() {
$
(
'#time_ruzhi'
).
html
(
data
[
'data'
][
'created'
]);
$
(
'#name_store'
).
html
(
data
[
'data'
][
'sub_shopname'
]);
$
(
'.portrait-area>img'
).
attr
(
'src'
,
data
[
'data'
][
'head_portrait'
]);
$
(
'#pingjia_fen'
).
html
(
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_num'
])
==
0
?
'0'
:
Number
(
data
[
'data'
][
'evaluate_grade'
])
/
Number
(
data
[
'data'
][
'evaluate_num'
]));
var
_pingNum
=
Number
(
data
[
'data'
][
'evaluate_num'
])
>
99
?
'99+'
:
Number
(
data
[
'data'
][
'evaluate_num'
]);
$
(
'#pingjia_fen'
).
html
(
_fenNum
);
$
(
'.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
(
_pingNum
).
attr
(
'data-num'
,
Number
(
data
[
'data'
][
'evaluate_num'
]));
$
(
'#chengjiao_lishi'
).
html
(
data
[
'data'
][
'JournalAccounts'
]);
$
(
'#daikan_30'
).
html
(
data
[
'data'
][
'watch_shop'
]);
loadList
(
_fenNum
,
_pingNum
);
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
...
...
@@ -135,97 +138,87 @@ $(function() {
return
''
;
}
};
_doc
.
on
(
'click'
,
'.pingjia-list-area .see-all-area>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_pingNum
=
$
(
'#pingjia_shu'
).
attr
(
'data-num'
);
var
_fenNum
=
$
(
"#pingjia_fen"
).
html
();
if
(
_pingNum
!==
undefined
&&
_fenNum
!==
undefined
){
location
.
href
=
'more_pingjia?agentId='
+
_agentId
+
'&fenNum='
+
_fenNum
+
'&pingNum='
+
_pingNum
;
}
else
{
layerTipsX
(
'点击太快,请稍后再试'
);
}
});
$
.
ajax
({
type
:
'get'
,
url
:
ServerHost
+
'/api/commentAndDeal'
,
timeout
:
30000
,
dataType
:
'json'
,
data
:
{
'agent_id'
:
_agentId
,
'type'
:
0
,
'pageNo'
:
1
,
'pageSize'
:
3
,
'AuthToken'
:
_token
},
beforeSend
:
function
()
{
loadItem
.
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'code'
]
==
200
)
{
//评价列表
if
(
data
[
'data'
][
'evaluate'
]
&&
data
[
'data'
][
'evaluate'
].
length
>
0
)
{
var
_html
=
""
;
$
.
each
(
data
[
'data'
][
'evaluate'
],
function
(
i
,
item
)
{
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
({
'0'
:
$
.
trim
(
item
[
'user_nick'
])
==
''
?
'昵称暂无'
:
item
[
'user_nick'
],
'1'
:
dealStar
(
item
[
'evaluate_grade'
],
1
),
'2'
:
dealStarText
(
item
[
'evaluate_grade'
]),
'3'
:
item
[
'created'
],
'4'
:
(
item
[
'receptiontime'
]
!=
''
||
item
[
'houserAddress'
]
!=
''
)?(
item
[
'receptiontime'
]
+
'在'
+
item
[
'houserAddress'
][
'address'
]
+
'看房'
):
'暂无看房数据'
,
'5'
:
item
[
'evaluate_content'
],
'6'
:
location
.
protocol
+
'//'
+
item
[
'user_pic'
],
'7'
:
ServerHost
+
'/app/images/ic_default_headpic.png'
});
};
});
$
(
'.pingjia-list-area>ul'
).
html
(
_html
);
data
[
'data'
][
'evaluate'
]
&&
data
[
'data'
][
'evaluate'
].
length
>
2
&&
$
(
'.pingjia-list-area .see-all-area'
).
show
();
}
else
{
$
(
'.pingjia-list-area .zanwu_data'
).
show
();
};
//成交列表
if
(
data
[
'data'
][
'journalAccounts'
]
&&
data
[
'data'
][
'journalAccounts'
].
length
>
0
)
{
var
_html2
=
""
;
$
.
each
(
data
[
'data'
][
'journalAccounts'
],
function
(
i
,
item
)
{
if
(
i
<
2
)
{
_html2
+=
'<li class="oh"><div class="fl oh"><img src="{5}" onerror="javascript:this.src=
\'
{6}
\'
"></div><div class="fl"><h3 class="shangpu-name ellipsis">{0}</h3><p class="qianyue-time">签约时间:{1}</p><p class="mianji-scale">{2}</p><p class="zuji-price">租金均价:<span>{3}</span>元/月</p><p class="sp-text ellipsis oh">{4}</p></div></li>'
.
stringFormatObj
({
'0'
:
item
[
'title'
],
'1'
:
item
[
'singntime'
],
'2'
:
dealScale
(
item
),
'3'
:
item
[
'price'
],
'4'
:
dealTags
(
item
[
'shangpu_tags'
]),
'5'
:
location
.
protocol
+
'//'
+
item
[
'img'
],
'6'
:
ServerHost
+
'/resource/image/pzz_.jpg'
});
};
});
$
(
'.chengjiao-list-area>ul'
).
html
(
_html2
);
data
[
'data'
][
'journalAccounts'
]
&&
data
[
'data'
][
'journalAccounts'
].
length
>
2
&&
$
(
'.chengjiao-list-area .see-all-area'
).
show
().
find
(
'a'
).
attr
(
'href'
,
'more_chengjiao?agentId='
+
_agentId
);
function
loadList
(
_fenNum
,
_pingNum
){
$
.
ajax
({
type
:
'get'
,
url
:
ServerHost
+
'/api/commentAndDeal'
,
timeout
:
30000
,
dataType
:
'json'
,
data
:
{
'agent_id'
:
_agentId
,
'type'
:
0
,
'pageNo'
:
1
,
'pageSize'
:
3
,
'AuthToken'
:
_token
},
beforeSend
:
function
()
{
loadItem
.
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'code'
]
==
200
)
{
//评价列表
if
(
data
[
'data'
][
'evaluate'
]
&&
data
[
'data'
][
'evaluate'
].
length
>
0
)
{
var
_html
=
""
;
$
.
each
(
data
[
'data'
][
'evaluate'
],
function
(
i
,
item
)
{
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
({
'0'
:
$
.
trim
(
item
[
'user_nick'
])
==
''
?
'昵称暂无'
:
item
[
'user_nick'
],
'1'
:
dealStar
(
item
[
'evaluate_grade'
],
1
),
'2'
:
dealStarText
(
item
[
'evaluate_grade'
]),
'3'
:
item
[
'created'
],
'4'
:
(
item
[
'receptiontime'
]
!=
''
||
item
[
'houserAddress'
]
!=
''
)?(
item
[
'receptiontime'
]
+
'在'
+
item
[
'houserAddress'
][
'address'
]
+
'看房'
):
'暂无看房数据'
,
'5'
:
item
[
'evaluate_content'
],
'6'
:
location
.
protocol
+
'//'
+
item
[
'user_pic'
],
'7'
:
ServerHost
+
'/app/images/ic_default_headpic.png'
});
};
});
$
(
'.pingjia-list-area>ul'
).
html
(
_html
);
data
[
'data'
][
'evaluate'
]
&&
data
[
'data'
][
'evaluate'
].
length
>
2
&&
$
(
'.pingjia-list-area .see-all-area'
).
show
().
find
(
'a'
).
attr
(
'href'
,
'more_pingjia?agentId='
+
_agentId
+
'&fenNum='
+
_fenNum
+
'&pingNum='
+
_pingNum
);
}
else
{
$
(
'.pingjia-list-area .zanwu_data'
).
show
();
};
//成交列表
if
(
data
[
'data'
][
'journalAccounts'
]
&&
data
[
'data'
][
'journalAccounts'
].
length
>
0
)
{
var
_html2
=
""
;
$
.
each
(
data
[
'data'
][
'journalAccounts'
],
function
(
i
,
item
)
{
if
(
i
<
2
)
{
_html2
+=
'<li class="oh"><div class="fl oh"><img src="{5}" onerror="javascript:this.src=
\'
{6}
\'
"></div><div class="fl"><h3 class="shangpu-name ellipsis">{0}</h3><p class="qianyue-time">签约时间:{1}</p><p class="mianji-scale">{2}</p><p class="zuji-price">租金均价:<span>{3}</span>元/月</p><p class="sp-text ellipsis oh">{4}</p></div></li>'
.
stringFormatObj
({
'0'
:
item
[
'title'
],
'1'
:
item
[
'singntime'
],
'2'
:
dealScale
(
item
),
'3'
:
item
[
'price'
],
'4'
:
dealTags
(
item
[
'shangpu_tags'
]),
'5'
:
location
.
protocol
+
'//'
+
item
[
'img'
],
'6'
:
ServerHost
+
'/resource/image/pzz_.jpg'
});
};
});
$
(
'.chengjiao-list-area>ul'
).
html
(
_html2
);
data
[
'data'
][
'journalAccounts'
]
&&
data
[
'data'
][
'journalAccounts'
].
length
>
2
&&
$
(
'.chengjiao-list-area .see-all-area'
).
show
().
find
(
'a'
).
attr
(
'href'
,
'more_chengjiao?agentId='
+
_agentId
);
}
else
{
$
(
'.chengjiao-list-area .zanwu_data'
).
show
();
};
}
else
{
$
(
'.chengjiao-list-area .zanwu_data'
).
show
(
);
layerTipsX
(
data
[
'msg'
]
);
};
}
else
{
layerTipsX
(
data
[
'msg'
]
);
layerTipsX
(
'数据错误'
);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
loadItem
.
hide
();
if
(
textStatus
===
'timeout'
)
{
layerTipsX
(
'请求超时'
);
};
}
});
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
loadItem
.
hide
();
if
(
textStatus
===
'timeout'
)
{
layerTipsX
(
'请求超时'
);
};
}
});
};
};
});
\ 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