Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2d27e461
authored
Sep 29, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1111
parent
9beec063
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
9 deletions
Application/Index/View/Index/index.html
dist/images/lb2.png
dist/images/lb3.png
dist/images/mlb3.png
dist/js/chat/index.js
Application/Index/View/Index/index.html
View file @
2d27e461
...
...
@@ -53,7 +53,7 @@
</div>
</div>
<div
class=
"lb_item fl"
>
<img
src=
"__PUBLIC__/images/lb
2
.png"
alt=
""
>
<img
src=
"__PUBLIC__/images/lb
3
.png"
alt=
""
>
<div
class=
"btn_div boxsiz ios"
>
<span
class=
"icon iconfont iconjuxing25"
></span>
<p
class=
"phone_type bold"
>
iPhone
</p>
...
...
@@ -192,7 +192,7 @@
<img
src=
"__PUBLIC__/images/mlb2.png"
alt=
""
>
</div>
<div
class=
"lb_item fl"
>
<img
src=
"__PUBLIC__/images/mlb
2
.png"
alt=
""
>
<img
src=
"__PUBLIC__/images/mlb
3
.png"
alt=
""
>
</div>
</div>
</div>
...
...
dist/images/lb2.png
View file @
2d27e461
422 KB
|
W:
|
H:
114 KB
|
W:
|
H:
2-up
Swipe
Onion skin
dist/images/lb3.png
0 → 100644
View file @
2d27e461
422 KB
dist/images/mlb3.png
0 → 100644
View file @
2d27e461
84 KB
dist/js/chat/index.js
View file @
2d27e461
...
...
@@ -84,7 +84,7 @@ $(function () {
if
(
res
.
errcode
===
0
)
{
}
else
{
console
.
log
(
'添加聊天成员失败'
)
//
console.log('添加聊天成员失败')
}
},
false
);
},
...
...
@@ -504,7 +504,7 @@ $(function () {
// listern,添加回调函数;
self
.
conn
.
listen
({
onOpened
:
function
(
message
)
{
console
.
log
(
'登入成功'
)
//
console.log('登入成功')
self
.
isLoginSuccess
=
true
;
self
.
customerChat
();
self
.
singleChat
();
...
...
@@ -621,8 +621,14 @@ $(function () {
},
//本机网络掉线;
onError
:
function
(
message
)
{
// console.log('Error', WebIM.utils.stringify(message));
console
.
log
(
'onError: '
,
message
);
//
console.log('onError: ', message);
if
(
message
.
type
==
206
)
{
try
{
WebIM
.
conn
.
close
();
//断开im重新登入
}
catch
(
e
){
console
.
log
(
e
)
}
layer
.
open
({
title
:
'提示'
,
content
:
'您的聊天账号被迫下线!'
...
...
@@ -774,7 +780,7 @@ $(function () {
delete
params
.
targetId
;
delete
params
.
userImg
;
delete
params
.
userName
;
console
.
log
(
params
)
//
console.log(params)
if
(
status
==
2
)
{
layer
.
msg
(
'该用户已被拉黑'
);
self
.
scrollToTop
(
userId
)
...
...
@@ -837,7 +843,7 @@ $(function () {
console
.
log
(
'失败'
)
},
onFileUploadComplete
:
function
()
{
console
.
log
(
'消息上传成功'
)
//
console.log('消息上传成功')
},
success
:
function
()
{
var
htmlStr
=
'<img src ="'
+
file
.
url
+
'" class="edit_img"/>'
;
...
...
@@ -978,7 +984,7 @@ $(function () {
}
},
fail
:
function
(
e
)
{
console
.
log
(
e
)
//
console.log(e)
layer
.
msg
(
'获取历史纪录失败'
);
if
(
isTemplate
)
{
self
.
sendCmd
(
self
.
templateObj
);
...
...
@@ -994,7 +1000,7 @@ $(function () {
})
},
rendHistoryMessage
:
function
(
id
,
data
,
isTemplate
)
{
console
.
log
(
data
)
//
console.log(data)
var
position
=
$
(
".notice_classify[userid="
+
id
+
"]"
).
attr
(
'position'
);
if
(
position
)
{
$
(
".notice_classify[userid="
+
id
+
"]"
).
removeAttr
(
'position'
)
...
...
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