Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈轩
8 years ago
Commit
c0903ef0bd70afa46ee6a4f63b7ee0cf02550e3d
1 parent
61b5005e
im add robot avatar
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
public/img/service/chat/im-rebot.png → public/img/service/chat/im-robot.png
public/js/service/chat/index.js
public/js/service/chat/socket-config.js
public/img/service/chat/im-r
e
bot.png → public/img/service/chat/im-r
o
bot.png
View file @
c0903ef
3.58 KB
public/js/service/chat/index.js
View file @
c0903ef
...
...
@@ -381,7 +381,7 @@ var chat = {
break
;
case
allTypes
.
ROBOT_SEND
:
viewData
.
from
=
'rebot'
;
viewData
.
avatar
=
socketConf
.
defaul
tUserHead
;
viewData
.
avatar
=
socketConf
.
rebo
tUserHead
;
break
;
default
:
...
...
public/js/service/chat/socket-config.js
View file @
c0903ef
/* global gDomains */
/* global gDomains
, gAssetURI
*/
/**
* socket config
*
...
...
@@ -9,6 +9,7 @@
var
config
=
{
servers
:
[
gDomains
.
imSocket
],
defaultUserHead
:
'//img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif'
,
rebotUserHead
:
`
$
{
gAssetURI
}
/img/
service
/
chat
/
im
-
robot
.
png
`
,
recType
:
{
ENTER
:
1
,
// 用户进入
LINK_SUCCESS
:
2
,
// 连线人工客服回应
...
...
Please
register
or
login
to post a comment