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
78fc8173
Commit
78fc8173
authored
Mar 02, 2018
by
zfc
Committed by
hujun
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc后台添加跟进
parent
eac956b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
3 deletions
+41
-3
Member.php
application/index/controller/Member.php
+26
-1
UPhoneFollowPp.php
application/model/UPhoneFollowPp.php
+14
-2
route.php
application/route.php
+1
-0
No files found.
application/index/controller/Member.php
View file @
78fc8173
...
...
@@ -3,8 +3,9 @@
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\model\Users
;
use
app\model\UPhoneFollowPp
;
use
think\Request
;
use
think\session
;
/**
* Description of Member
...
...
@@ -132,6 +133,30 @@ class Member extends Basic{
return
$this
->
response
(
$status
,
$msg
,
$data
);
}
/**
* 添加跟进
* @return \think\Response
*/
public
function
pcAddFollow
(){
$status
=
200
;
$msg
=
'成功!'
;
$table
=
new
UPhoneFollowPp
;
$params
=
$this
->
request
->
param
();
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
//当前时间
if
(
!
empty
(
$params
[
'content'
])
&&!
empty
(
$params
[
'user_id'
])){
$params
[
'id'
]
=
''
;
$params
[
'labels_id'
]
=
0
;
$params
[
'agent_id'
]
=
Session
::
get
(
"userinfo.id"
);
$params
[
'type'
]
=
2
;
$params
[
'create_time'
]
=
$time
;
$params
[
'update_time'
]
=
$time
;
$table
->
save
(
$params
);
return
$this
->
response
(
$status
,
$msg
,
$params
);
}
else
{
return
$this
->
response
(
101
,
$msg
=
'缺少参数'
,
$params
);
}
}
/**
* 删除用户
* @return \think\Response
...
...
application/model/UPhoneFollowPp.php
View file @
78fc8173
...
...
@@ -15,6 +15,12 @@ class UPhoneFollowPp extends BaseModel
$this
->
UPhoneFollowPp
=
Db
(
$this
->
table
);
}
/**
* @return array|false|\PDOStatement|string|\think\Model
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getall
()
{
return
$this
->
UPhoneFollowPp
->
find
();
...
...
@@ -25,8 +31,10 @@ class UPhoneFollowPp extends BaseModel
* @param int $pageSize
* @param string $order_
* @param $field
* @param $join
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @param $group
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
...
...
@@ -64,7 +72,11 @@ class UPhoneFollowPp extends BaseModel
return
$result
;
}
/**
* @param $user_id
* @param $searchdate
* @return mixed
*/
public
function
select_useraction_search
(
$user_id
,
$searchdate
)
{
if
(
$searchdate
){
...
...
application/route.php
View file @
78fc8173
...
...
@@ -47,6 +47,7 @@ Route::group('index', [
'users_list'
=>
[
'index/member/index'
],
'user_add'
=>
[
'index/member/user_add'
,[
'method'
=>
'post'
]],
'del_user'
=>
[
'index/member/delUser'
,[
'method'
=>
'post'
]],
'pcAddFollow'
=>
[
'index/member/pcAddFollow'
,[
'method'
=>
'post'
]],
//transfer转铺列表
'transfer_list'
=>
[
'index/transfer/index'
,
[
'method'
=>
'get'
]],
...
...
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