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
cf1e53a7
Commit
cf1e53a7
authored
Jun 15, 2018
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wx0604' of
https://gitee.com/zwyjjc/tl_estate
into wx0604
parents
66cb624e
e04dcd6f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
6 deletions
+37
-6
PushMessageService.php
application/api_broker/service/PushMessageService.php
+13
-0
Agent.php
application/index/controller/Agent.php
+2
-2
Notice.php
application/index/controller/Notice.php
+5
-1
agent.html
application/index/view/agent/agent.html
+8
-1
agent.js
public/resource/js/agent.js
+4
-2
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+5
-0
No files found.
application/api_broker/service/PushMessageService.php
View file @
cf1e53a7
...
...
@@ -138,6 +138,19 @@ class PushMessageService
return
;
}
/**
* 推送全部人员,带跳转。
*
* @param string $title
* @param string $content
* @param string $url
*/
public
function
pushAll
(
string
$title
=
''
,
string
$content
=
''
,
string
$url
=
''
)
{
$url
=
$this
->
push
->
http_host
()
.
'/'
.
$url
;
$this
->
push
->
push_message_for_all
(
$title
,
$content
,
$url
);
return
;
}
/**
* 普通消息推送
*
...
...
application/index/controller/Agent.php
View file @
cf1e53a7
...
...
@@ -102,8 +102,8 @@ class Agent extends Basic
$data
[
'list'
]
=
$table
->
getListJoin
(
$pageNo
,
$pageSize
,
$order
,
$field
,
$join
,
$where
);
foreach
(
$data
[
'list'
]
as
$k
=>
$v
)
{
//$data['list'][$k]['agent_img'] = $v['img'] ? AGENTHEADERIMGURL . $v['img'] : '' ; //https://pre2.tonglianjituan.com/static/user_header/20180615/6528100f422ffa6f7d1cb1293c1eaaed.jpg
$data
[
'list'
][
$k
][
'agent_img'
]
=
'https://pre2.tonglianjituan.com/static/user_header/20180615/6528100f422ffa6f7d1cb1293c1eaaed.jpg'
;
$data
[
'list'
][
$k
][
'agent_img'
]
=
$v
[
'img'
]
?
AGENTHEADERIMGURL
.
$v
[
'img'
]
:
''
;
//
$data['list'][$k]['agent_img'] = 'https://pre2.tonglianjituan.com/static/user_header/20180615/6528100f422ffa6f7d1cb1293c1eaaed.jpg' ;
}
$data
[
'total'
]
=
$table
->
getTotal2
(
$join
,
$where
);
return
$this
->
response
(
200
,
'成功'
,
$data
);
...
...
application/index/controller/Notice.php
View file @
cf1e53a7
...
...
@@ -9,6 +9,7 @@
namespace
app\index\controller
;
use
app\api_broker\service\PushMessageService
;
use
app\index\extend\Basic
;
use
app\model\PushFeed
;
use
think\Request
;
...
...
@@ -85,11 +86,14 @@ class Notice extends Basic
$data
[
'steel_phone'
]
=
0
;
$data
[
'type'
]
=
1
;
$num
=
$this
->
m_push
->
editData
(
$data
);
if
(
$num
<
1
)
{
return
$this
->
response
(
101
,
'新增公告失败!'
);
}
$service_push
=
new
PushMessageService
();
$url
=
'app/dist/index.html#/announcementDetails?id='
.
$this
->
m_push
->
id
;
$service_push
->
pushAll
(
$data
[
'title'
],
$data
[
'content'
],
$url
);
return
$this
->
response
(
200
,
'新增成功!'
);
}
...
...
application/index/view/agent/agent.html
View file @
cf1e53a7
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"agent"
/>
<!--关联经纪人列表liudanjs文件-->
<style>
.J_preview
{
width
:
30px
;
height
:
30px
;
border-radius
:
15px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -47,6 +53,7 @@
<tr>
<th>
注册时间
</th>
<th>
用户ID
</th>
<th>
用户头像
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
角色
</th>
...
...
public/resource/js/agent.js
View file @
cf1e53a7
define
([
'doT'
,
'text!temp/agent_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/agent_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
,
'ckfinder'
,
'ckfinderStart'
,
'blow-up'
],
function
(
doT
,
template
)
{
var
agent
=
{
pageNo
:
1
,
pageSize
:
15
,
...
...
@@ -246,7 +246,7 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
params
.
groupname
=
$
(
"input[name='groupname']"
).
val
();
params
.
store_name
=
$
(
"input[name='store_name']"
).
val
();
$
.
ajax
({
url
:
'/index/AgentList
.html
'
,
url
:
'/index/AgentList'
,
type
:
'GET'
,
async
:
true
,
data
:
params
,
...
...
@@ -257,6 +257,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'css!style/home.css', 'pagin
$
(
"#agentlist"
).
html
(
doTempl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
$
(
'.J_preview'
).
preview
();
}
})
},
...
...
public/resource/template/agent_template_tpl.html
View file @
cf1e53a7
...
...
@@ -4,6 +4,11 @@
<
tr
data
-
groupname
=
"[%= it[item]['groupname'] %]"
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"id"
]
%
]
<
/td
>
<
td
>
<
input
type
=
"hidden"
value
=
'[%= it[item]["agent_img"] %]'
>
<
img
src
=
'[%= it[item]["agent_img"] %]'
class
=
"diagram-image J_preview"
data
-
bimg
=
'[%= it[item]["agent_img"] %]'
>
<
/td
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"groupname"
]
%
]
<
/td
>
...
...
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