Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LuJin-Im
Project
Project
Details
Activity
Releases
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
yangzhaojun
LuJin-Im
Commits
f9c3bf9a
Commit
f9c3bf9a
authored
Jul 18, 2018
by
李博今
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化手机端
parent
e3e349bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
4 deletions
+35
-4
layimmobile.jsp
src/main/webapp/WEB-INF/page/layimmobile.jsp
+35
-4
No files found.
src/main/webapp/WEB-INF/page/layimmobile.jsp
View file @
f9c3bf9a
...
@@ -343,11 +343,42 @@ layui.config({
...
@@ -343,11 +343,42 @@ layui.config({
};
};
}
}
createWebSocket
(
websocketurl
,
initEventHandle
);
createWebSocket
(
websocketurl
,
initEventHandle
);
});
//客服登陆后获得用户信息
window
.
onload
=
function
(){
var
cache
=
layim
.
cache
();
var
username
=
""
,
avatar
=
""
,
friend
=
false
;
if
(
findNum
>
0
){
$
.
ajax
({
url
:
"getusers2"
,
type
:
"post"
,
data
:
{
mineId
:
cache
.
mine
.
id
},
dataType
:
"json"
,
success
:
function
(
data
){
if
(
data
.
data
.
deptId
!=
2
){
cache
.
friend
=
data
.
data
.
friend
;
}
}
});
}
findNum
++
;
layui
.
each
(
cache
.
friend
,
function
(
index1
,
item1
){
layui
.
each
(
item1
.
list
,
function
(
index
,
item
){
if
(
item
.
id
==
msg
.
getSender
()){
username
=
item
.
username
;
avatar
=
item
.
avatar
;
return
friend
=
true
;
}
});
if
(
friend
)
return
true
;
});
}
});
</script>
</script>
</body>
</body>
</html>
</html>
\ No newline at end of file
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