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
c1af500c
Commit
c1af500c
authored
Mar 02, 2018
by
zfc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc后台添加跟进
parent
4629bb0e
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 @
c1af500c
...
@@ -3,8 +3,9 @@
...
@@ -3,8 +3,9 @@
namespace
app\index\controller
;
namespace
app\index\controller
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\Users
;
use
app\model\Users
;
use
app\model\UPhoneFollowPp
;
use
think\Request
;
use
think\Request
;
use
think\session
;
/**
/**
* Description of Member
* Description of Member
...
@@ -129,6 +130,30 @@ class Member extends Basic{
...
@@ -129,6 +130,30 @@ class Member extends Basic{
return
$this
->
response
(
$status
,
$msg
,
$data
);
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
* @return \think\Response
...
...
application/model/UPhoneFollowPp.php
View file @
c1af500c
...
@@ -15,6 +15,12 @@ class UPhoneFollowPp extends BaseModel
...
@@ -15,6 +15,12 @@ class UPhoneFollowPp extends BaseModel
$this
->
UPhoneFollowPp
=
Db
(
$this
->
table
);
$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
()
public
function
getall
()
{
{
return
$this
->
UPhoneFollowPp
->
find
();
return
$this
->
UPhoneFollowPp
->
find
();
...
@@ -25,8 +31,10 @@ class UPhoneFollowPp extends BaseModel
...
@@ -25,8 +31,10 @@ class UPhoneFollowPp extends BaseModel
* @param int $pageSize
* @param int $pageSize
* @param string $order_
* @param string $order_
* @param $field
* @param $field
* @param $join
* @param $where
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @param $group
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
...
@@ -64,7 +72,11 @@ class UPhoneFollowPp extends BaseModel
...
@@ -64,7 +72,11 @@ class UPhoneFollowPp extends BaseModel
return
$result
;
return
$result
;
}
}
/**
* @param $user_id
* @param $searchdate
* @return mixed
*/
public
function
select_useraction_search
(
$user_id
,
$searchdate
)
public
function
select_useraction_search
(
$user_id
,
$searchdate
)
{
{
if
(
$searchdate
){
if
(
$searchdate
){
...
...
application/route.php
View file @
c1af500c
...
@@ -47,6 +47,7 @@ Route::group('index', [
...
@@ -47,6 +47,7 @@ Route::group('index', [
'users_list'
=>
[
'index/member/index'
],
'users_list'
=>
[
'index/member/index'
],
'user_add'
=>
[
'index/member/user_add'
,[
'method'
=>
'post'
]],
'user_add'
=>
[
'index/member/user_add'
,[
'method'
=>
'post'
]],
'del_user'
=>
[
'index/member/delUser'
,[
'method'
=>
'post'
]],
'del_user'
=>
[
'index/member/delUser'
,[
'method'
=>
'post'
]],
'pcAddFollow'
=>
[
'index/member/pcAddFollow'
,[
'method'
=>
'post'
]],
//transfer转铺列表
//transfer转铺列表
'transfer_list'
=>
[
'index/transfer/index'
,
[
'method'
=>
'get'
]],
'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