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
af81717f
Commit
af81717f
authored
Jan 14, 2019
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
cea87642
9aa48e68
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
14 deletions
+4
-14
AppChat.php
application/chat/controller/AppChat.php
+1
-11
agentIndex.html
application/index/view/cell_phone/agentIndex.html
+1
-1
agentIndex.js
public/resource/js/agentIndex.js
+2
-2
No files found.
application/chat/controller/AppChat.php
View file @
af81717f
...
@@ -613,20 +613,10 @@ class AppChat extends Basic
...
@@ -613,20 +613,10 @@ class AppChat extends Basic
}
}
//todo 先获取是否有店铺或客户修改消息是否为0,大于0返回true,否则查询聊天消息是否有未读
//todo 先获取是否有店铺或客户修改消息是否为0,大于0返回true,否则查询聊天消息是否有未读
$param
[
"addressee_id"
]
=
$params
[
"agent_id"
];
$param
[
"addressee_id"
]
=
$params
[
"agent_id"
];
$param
[
"type"
]
=
2
;
$param
[
"is_read"
]
=
0
;
$param
[
"is_read"
]
=
0
;
//TODO 获取未读个数
//TODO 获取未读个数
$msgModel
=
new
MPushMessage
();
$msgModel
=
new
MPushMessage
();
$user_count
=
$msgModel
->
getListCountByWhere
(
$param
);
$param
[
"type"
]
=
array
(
"in"
,
"1,2,3,7"
);
if
(
$user_count
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show_red"
=>
true
]);
}
$param
[
"type"
]
=
array
(
"in"
,
"1,3,7"
);
$shop_count
=
$msgModel
->
getListCountByWhere
(
$param
);
if
(
$shop_count
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show_red"
=>
true
]);
}
$param
[
"type"
]
=
8
;
$shop_count
=
$msgModel
->
getListCountByWhere
(
$param
);
$shop_count
=
$msgModel
->
getListCountByWhere
(
$param
);
if
(
$shop_count
>
0
)
{
if
(
$shop_count
>
0
)
{
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show_red"
=>
true
]);
return
$this
->
response
(
"200"
,
"success"
,
[
"is_show_red"
=>
true
]);
...
...
application/index/view/cell_phone/agentIndex.html
View file @
af81717f
{layout name="global/frame_tpl" /}
{layout name="global/frame_t
wo_t
pl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"agentIndex"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"agentIndex"
/>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
...
public/resource/js/agentIndex.js
View file @
af81717f
...
@@ -24,10 +24,10 @@ define (['doT', 'text!temp/agentIndex_template_tpl.html', 'css!style/home.css','
...
@@ -24,10 +24,10 @@ define (['doT', 'text!temp/agentIndex_template_tpl.html', 'css!style/home.css','
var
n
=
myDate
.
getMonth
()
var
n
=
myDate
.
getMonth
()
var
day_start
=
y
+
'-'
+
(
n
<
10
?
(
'0'
+
n
)
:
n
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
var
day_start
=
y
+
'-'
+
(
n
<
10
?
(
'0'
+
n
)
:
n
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
$
(
'#start_date'
).
val
(
day_start
);
$
(
'#start_date'
).
val
(
getBeforeDate
(
30
)
);
$
(
'#end_date'
).
val
(
day_end
);
//客户跟进 添加 默认时间一天
$
(
'#end_date'
).
val
(
day_end
);
//客户跟进 添加 默认时间一天
agentIndex
.
getList
();
agentIndex
.
getList
();
agentIndex
.
event
();
agentIndex
.
event
(
$
(
'#start_date'
).
val
()
);
},
},
event
:
function
()
{
event
:
function
()
{
$
(
"#search"
).
click
(
function
()
{
$
(
"#search"
).
click
(
function
()
{
...
...
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