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
8aea3078
Commit
8aea3078
authored
Nov 14, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人评价
parent
71d6b7e5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
314 additions
and
5 deletions
+314
-5
Index.php
application/app_broker/controller/Index.php
+5
-0
agent_pingjia.html
application/app_broker/view/index/agent_pingjia.html
+73
-0
route.php
application/route.php
+1
-0
agent_detail.css
public/app/css/agent_detail.css
+4
-0
customerinfo_details_new.css
public/app/css/customerinfo_details_new.css
+5
-3
agent_pingjia.js
public/app/js/agent_pingjia.js
+211
-0
customerinfo_details_new.js
public/app/js/customerinfo_details_new.js
+15
-2
No files found.
application/app_broker/controller/Index.php
View file @
8aea3078
...
...
@@ -204,6 +204,11 @@ class Index
{
return
view
(
'index/customerinfo_details_new'
);
}
public
function
agent_pingjia
()
{
return
view
(
'index/agent_pingjia'
);
}
public
function
customerinfo_customer_add
()
{
...
...
application/app_broker/view/index/agent_pingjia.html
0 → 100644
View file @
8aea3078
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title>
同联商业
</title>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
<meta
name=
"Keywords"
content=
""
/>
<meta
name=
"Description"
content=
""
/>
<link
rel=
"stylesheet"
href=
"/app/css/common.css"
>
<link
rel=
"stylesheet"
href=
"/app/css/agent_detail.css"
>
<style>
/*因为一些新页面用了vue实现,所以很多这样的元素默认是隐藏的,在common.css里。但原来的文件是需要默认隐藏的*/
.loading_pic_new
,
.no_more
,
.zanwu_data
,
.loading_pic_samll_new
{
display
:
none
;
}
</style>
</head>
<body>
<!--<header id="header">
<a class="ps-back" href="javascript:(history.length>1?history.go(-1):window.location='/');" id="back_btn"></a>
<h2 id="title">同联经纪人店铺</h2>
</header>
<div class="header_seat"></div>-->
<div
class=
"pingjia-fen-header"
>
<div>
<p
class=
"tc"
>
推荐度
</p>
<div>
<p
class=
"tc"
><span
id=
"pingjia_fen"
></span>
分
</p>
<div
class=
"pingfen-area-large pingfen-area-large-subpage"
></div>
<p
class=
"tc"
>
(共
<span
id=
"pingjia_shu"
></span>
人评价)
</p>
</div>
</div>
</div>
<div
class=
"pingjia-list-area sub-page-list"
>
<ul>
</ul>
<div
id=
"loading_pic"
class=
"loading_pic"
><img
src=
"/app/images/jz2.gif"
/><p>
正在加载...
</p></div>
<div
id=
"no_more"
class=
"no_more"
>
没有更多了
</div>
<div
class=
"zanwu_data"
>
暂无数据...
</div>
</div>
<script
id=
"tpl_list"
type=
"text/template"
>
<
li
data
-
orderid
=
"{8}"
data
-
houseid
=
"{9}"
>
<
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
>
</script>
<script
src=
"/app/js/jquery-1122-min.js"
charset=
"UTF-8"
></script>
<script
src=
"/app/js/common.js"
charset=
"UTF-8"
></script>
<script
src=
"/app/js/agent_pingjia.js"
charset=
"UTF-8"
></script>
</body>
</html>
application/route.php
View file @
8aea3078
...
...
@@ -51,6 +51,7 @@ Route::group('app_broker', [
'bargaininfo_detail_static_pc'
=>
[
'app_broker/index/bargaininfo_detail_static_pc'
,
[
'method'
=>
'get'
]],
'customerinfo_customer_add'
=>
[
'app_broker/index/customerinfo_customer_add'
,
[
'method'
=>
'get'
]],
'customerinfo_details_new'
=>
[
'app_broker/index/customerinfo_details_new'
,
[
'method'
=>
'get'
]],
'agent_pingjia'
=>
[
'app_broker/index/agent_pingjia'
,
[
'method'
=>
'get'
]],
'download_b'
=>
[
'app_broker/index/download_b'
,
[
'method'
=>
'get'
]],
'imagebody'
=>
[
'app_broker/index/imagebody'
,
[
'method'
=>
'get'
]],
'edit_modal'
=>
[
'app_broker/index/edit_modal'
,
[
'method'
=>
'get'
]],
...
...
public/app/css/agent_detail.css
View file @
8aea3078
...
...
@@ -157,6 +157,10 @@ body{
.pingjia-list-area.sub-page-list
{
margin-top
:
0
;
}
.sub-page-list
li
{
cursor
:
pointer
;
-webkit-tap-highlight-color
:
transparent
;
}
.pingjia-list-area
>
section
{
border-bottom
:
1px
solid
#e6e6e6
;
font-size
:
.34rem
;
...
...
public/app/css/customerinfo_details_new.css
View file @
8aea3078
...
...
@@ -10,7 +10,8 @@ header .icon-link{
.info-area
{
/*overflow: hidden;*/
display
:
flex
;
height
:
2.5rem
;
/*height: 2.5rem;*/
min-height
:
2.5rem
;
box-sizing
:
border-box
;
background-color
:
white
;
/*padding: .5rem .3rem;*/
...
...
@@ -90,7 +91,7 @@ header .icon-link{
color
:
#FA903F
;
border
:
1px
solid
#FA903F
;
border-radius
:
.17rem
;
height
:
.34rem
;
/*height: .34rem;*/
padding
:
0
.12rem
;
}
.info-area
>
div
:nth-of-type
(
2
)>
p
:nth-of-type
(
3
)>
span
:nth-of-type
(
2
)
{
...
...
@@ -103,7 +104,8 @@ header .icon-link{
font-size
:
.24rem
;
color
:
#b2b2b2
;
background-color
:
#f5f5f5
;
height
:
.34rem
;
/*height: .34rem;*/
line-height
:
.34rem
;
padding
:
.02rem
.1rem
;
border-radius
:
.05rem
;
}
...
...
public/app/js/agent_pingjia.js
0 → 100644
View file @
8aea3078
$
(
function
()
{
$
(
document
.
body
).
show
();
var
_doc
=
$
(
document
);
var
_agentId
=
getUrlParam
(
'agentId'
);
var
_token
=
getUrlParam
(
'token'
);
var
loadItem
=
$
(
'#loading_pic'
);
var
noMoreItem
=
$
(
'#no_more'
);
var
zanWuItem
=
$
(
'#zanwu_data'
);
var
pageInit
=
1
;
//要从第一页开始
var
stopstatus
=
true
;
var
_zanwuFlag
=
true
;
//暂无是否应该出现
var
_loadOverFlag
=
false
;
//一个搜索(包含分页)是否结束
if
(
_token
!==
null
)
{
h5PageC
(
_token
,
function
(
data
)
{
if
(
Number
(
localStorage
.
getItem
(
'userid'
))){
loadMain
();
}
else
{
layerTipsX
(
'登录信息有误,请重新登录'
);
}
});
}
else
{
layerTipsX
(
'参数错误,请重新登录'
);
};
function
loadMain
()
{
ajaxUl
(
scroll
);
//请求列表数据及分页
_doc
.
on
(
'click'
,
'.sub-page-list li'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_$this
=
$
(
this
);
var
_orderid
=
_$this
.
attr
(
'data-orderid'
);
var
_houseid
=
_$this
.
attr
(
'data-houseid'
);
Compatible
({
paraIos
:
{
'route'
:
'toOrderClick'
,
'orderId'
:
Number
(
_orderid
),
'houseId'
:
Number
(
_houseid
)
},
fnAndroid
:
function
()
{
window
.
android
.
toOrderClick
(
String
(
_orderid
),
String
(
_houseid
));
},
fn
:
function
()
{
console
.
warn
(
'error'
);
}
});
});
};
function
dealStar
(
_fen
)
{
var
_htmlTemp
=
''
;
for
(
var
i
=
1
;
i
<
6
;
i
++
)
{
if
(
i
<
_fen
+
0.5
)
{
_htmlTemp
+=
'<small class="small-active"></small>'
;
}
else
if
(
i
==
_fen
+
0.5
)
{
_htmlTemp
+=
'<small class="small-active-guodu"></small>'
;
}
else
{
_htmlTemp
+=
'<small></small>'
;
}
};
return
_htmlTemp
;
};
function
dealStarText
(
_fen
)
{
if
(
_fen
>=
4
)
{
return
'非常推荐'
;
}
else
if
(
_fen
>=
3
)
{
return
'很好'
;
}
else
if
(
_fen
>=
2
)
{
return
'一般'
;
}
else
if
(
_fen
>=
1
)
{
return
'很差'
;
}
else
{
return
'非常差'
;
};
};
function
dealTimeKf
(
str
){
if
(
str
===
''
||
str
===
null
||
str
===
undefined
){
return
''
;
}
else
{
return
str
.
split
(
'-'
)[
0
]
+
'-'
+
str
.
split
(
'-'
)[
1
];
}
};
//获取评分相关
$
.
ajax
({
type
:
'get'
,
url
:
ServerHost
+
'/api/brokerDetail'
,
timeout
:
30000
,
dataType
:
'json'
,
data
:
{
'agent_id'
:
_agentId
,
'AuthToken'
:
_token
},
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'code'
]
==
200
)
{
var
_fenNum
=
parseInt
(
Number
(
data
[
'data'
][
'evaluate_grade'
]));
var
_pingNum
=
Number
(
data
[
'data'
][
'evaluate_num'
])
>
99
?
'99+'
:
Number
(
data
[
'data'
][
'evaluate_num'
]);
$
(
'#pingjia_fen'
).
html
(
_fenNum
);
$
(
'.pingfen-area-large'
).
html
(
dealStar
(
_fenNum
));
$
(
'#pingjia_shu'
).
html
(
_pingNum
>
99
?
'99+'
:
_pingNum
).
attr
(
'data-num'
,
_pingNum
);
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
layerTipsX
(
'请求超时'
);
};
}
});
//获取评分相关结束
function
ajaxUl
(
fn
){
$
.
ajax
({
type
:
'get'
,
url
:
ServerHost
+
'/broker/commentAndDeal'
,
timeout
:
30000
,
dataType
:
'json'
,
data
:
{
'agent_id'
:
_agentId
,
'type'
:
1
,
'pageNo'
:
pageInit
,
'pageSize'
:
10
,
'AuthToken'
:
_token
},
beforeSend
:
function
()
{
loadItem
.
show
();
noMoreItem
.
hide
();
zanWuItem
.
hide
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
[
'code'
]
==
200
)
{
//成交列表
if
(
data
[
'data'
][
'evaluate'
]
&&
data
[
'data'
][
'evaluate'
].
length
>
0
)
{
_zanwuFlag
=
false
;
stopstatus
=
true
;
pageInit
++
;
//页数+1
var
_html
=
""
;
var
_tpl
=
$
(
'#tpl_list'
).
html
();
$
.
each
(
data
[
'data'
][
'evaluate'
],
function
(
i
,
item
)
{
_html
+=
_tpl
.
stringFormatObj
({
'0'
:
$
.
trim
(
item
[
'user_nick'
])
==
''
?
'昵称暂无'
:
item
[
'user_nick'
],
'1'
:
dealStar
(
item
[
'evaluate_grade'
]),
'2'
:
dealStarText
(
item
[
'evaluate_grade'
]),
'3'
:
item
[
'created'
],
'4'
:
(
item
[
'receptiontime'
]
!=
''
||
item
[
'houserAddress'
]
!=
''
)?(
dealTimeKf
(
item
[
'receptiontime'
])
+
'在'
+
item
[
'houserAddress'
]
+
'看房'
):
'暂无看房数据'
,
'5'
:
item
[
'evaluate_content'
],
'6'
:
item
[
'user_pic'
],
'7'
:
ServerHost
+
'/app/images/ic_default_headpic.png'
,
'8'
:
item
[
'record_id'
],
'9'
:
item
[
'house_id'
]
});
});
$
(
'.pingjia-list-area>ul'
).
append
(
_html
);
if
(
data
[
'data'
][
'evaluate'
].
length
<
10
)
{
stopstatus
=
false
;
_loadOverFlag
=
true
;
};
fn
&&
fn
();
}
else
{
};
}
else
{
layerTipsX
(
data
[
'msg'
]);
};
}
else
{
layerTipsX
(
'数据错误'
);
};
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
layerTipsX
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
(
textStatus
===
'timeout'
)
&&
layerTipsX
(
'请求超时'
);
loadItem
.
hide
();
if
(
_zanwuFlag
)
{
zanWuItem
.
show
();
}
else
{
_loadOverFlag
&&
noMoreItem
.
show
();
};
}
});
};
//滚动加载更多,目前没有启用
function
scroll
(){
$
(
window
).
scroll
(
function
(){
var
_this
=
$
(
this
);
if
(
Math
.
max
(
$
(
document
).
height
()
-
_this
.
scrollTop
()
-
_this
.
height
())
<
100
&&
stopstatus
==
true
)
{
stopstatus
=
false
;
ajaxUl
();
};
});
};
});
\ No newline at end of file
public/app/js/customerinfo_details_new.js
View file @
8aea3078
...
...
@@ -16,6 +16,18 @@ bargain 成交报告
$
(
function
(){
$
(
document
.
body
).
show
();
if
(
_token
!==
null
)
{
h5PageC
(
_token
,
function
(
data
)
{
if
(
Number
(
localStorage
.
getItem
(
'userid'
))){
loadMain
();
}
else
{
layerTipsX
(
'登录信息有误,请重新登录'
);
}
});
}
else
{
layerTipsX
(
'参数错误,请重新登录'
);
};
if
(
_token
!==
null
)
{
h5PageC
(
_token
,
function
(
data
)
{
...
...
@@ -206,9 +218,10 @@ function loadMain(){
}
};
$
(
'#add_city_type_area'
).
html
(
'<span class="flex-center site-span">{0}</span><span class="flex-center">{1}</span>'
.
stringFormatObj
({
$
(
'#add_city_type_area'
).
html
(
'<span class="flex-center site-span">{0}</span><span class="flex-center">{1}</span>
{2}
'
.
stringFormatObj
({
'0'
:
dealSiteName
(
data
[
'data'
][
'user_info'
][
'site_name'
]),
'1'
:
landlordType
(
data
[
'data'
][
'user_info'
][
'user_label'
])
'1'
:
landlordType
(
data
[
'data'
][
'user_info'
][
'user_label'
]),
'2'
:
(
data
[
'data'
][
'user_info'
][
'vip'
]
==
1
)?
'<span class="flex-center site-span">VIP</span>'
:
''
}));
//处理返回的站点名字
...
...
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