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
384a4a77
Commit
384a4a77
authored
Oct 15, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
2896d7e9
bfeb8e36
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
6 deletions
+41
-6
Broker.php
application/api/controller/Broker.php
+8
-3
privacy.html
public/privacy.html
+33
-3
No files found.
application/api/controller/Broker.php
View file @
384a4a77
...
...
@@ -55,7 +55,7 @@ class Broker extends Basic
$m_report
=
new
OReportModel
();
$report_fields
=
'COUNT( a.report_agent_id ) AS num,a.report_agent_id '
;
$report_where
[
'b.house_id'
]
=
$params
[
'house_id'
];
$report_where
[
'a.create_time'
]
=
[
'between'
,
[
date
(
'Y-m-d'
,
strtotime
(
"-30 day"
))
,
date
(
'Y-m-d'
)
]];
$report_where
[
'a.create_time'
]
=
[
'between'
,
[
date
(
'Y-m-d'
,
strtotime
(
"-30 day"
))
.
' 00:00:00'
,
date
(
'Y-m-d'
)
.
' 23:59:59'
]];
$report_agent_id
=
$m_report
->
getMaxReportAgent
(
$report_fields
,
$report_where
);
if
(
!
empty
(
$report_agent_id
[
'report_agent_id'
]))
{
...
...
@@ -67,12 +67,17 @@ class Broker extends Basic
$where
[
'a.status'
]
=
0
;
$list
=
$agents
->
getUser
(
$pageNo
,
$pageSize
,
'evaluate desc'
,
$fields
,
$where
);
if
(
!
empty
(
$agent_client
[
'id'
]))
{
$agent_id
=
[];
foreach
(
$list
as
$v
)
{
$agent_id
[]
=
$v
[
'id'
];
//下面去重
}
if
(
!
empty
(
$agent_client
[
'id'
])
&&
!
in_array
(
$agent_client
[
'id'
],
$agent_id
))
{
$agent_client
[
'show_content'
]
=
'帮助客户找更多,善于了解客户需求'
;
array_unshift
(
$list
,
$agent_client
);
}
if
(
!
empty
(
$report_agent
[
0
][
'id'
]))
{
if
(
!
empty
(
$report_agent
[
0
][
'id'
])
&&
!
in_array
(
$report_agent
[
0
][
'id'
],
$agent_id
)
)
{
$report_agent
[
0
][
'show_content'
]
=
'我对本铺非常了解,最近带看本铺多次'
;
array_unshift
(
$list
,
$report_agent
[
0
]);
}
...
...
public/privacy.html
View file @
384a4a77
...
...
@@ -3,19 +3,49 @@
<head>
<meta
charset=
"UTF-8"
>
<title></title>
<script
type=
text/javascript
>
(
function
(
doc
,
win
)
{
var
docEl
=
doc
.
documentElement
,
resizeEvt
=
'orientationchange'
in
window
?
'orientationchange'
:
'resize'
,
recalc
=
function
()
{
var
clientWidth
=
docEl
.
clientWidth
;
if
(
!
clientWidth
)
return
;
if
(
clientWidth
>=
640
)
{
docEl
.
style
.
fontSize
=
'100px'
;
}
else
{
docEl
.
style
.
fontSize
=
100
*
(
clientWidth
/
750
)
+
'px'
;
var
div
=
document
.
createElement
(
'div'
);
div
.
style
.
width
=
'1.4rem'
;
div
.
style
.
height
=
'0'
;
document
.
body
.
appendChild
(
div
);
var
ideal
=
140
*
clientWidth
/
750
;
var
rmd
=
(
div
.
clientWidth
/
ideal
);
if
(
rmd
>
1.2
||
rmd
<
0.8
)
{
docEl
.
style
.
fontSize
=
100
*
(
clientWidth
/
750
)
/
rmd
+
'px'
;
}
document
.
body
.
removeChild
(
div
);
};
};
if
(
!
doc
.
addEventListener
)
return
;
win
.
addEventListener
(
resizeEvt
,
recalc
,
false
);
doc
.
addEventListener
(
'DOMContentLoaded'
,
recalc
,
false
);
})(
document
,
window
);
</script>
<style
type=
"text/css"
>
body
{
padding
:
10px
15px
;
padding
:
.1rem
.15rem
;
box-sizing
:
border-box
;
margin-bottom
:
1
00px
;
margin-bottom
:
1
rem
;
}
p
{
color
:
#666
;
line-height
:
36px
;
font-size
:
.24rem
;
}
h4
{
font-size
:
.32rem
;
}
.text-two
{
text-indent
:
2em
;
}
</style>
</head>
<body>
...
...
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