Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chat_webview
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abookCommunication
chat_webview
Commits
fcfa41f3
Commit
fcfa41f3
authored
Apr 08, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSごとに処理分離
parent
42b78026
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
49 deletions
+40
-49
public_new/chat.html
+9
-6
public_new/contact.html
+9
-30
public_new/js/chat-ui.js
+22
-13
No files found.
public_new/chat.html
View file @
fcfa41f3
...
...
@@ -126,12 +126,15 @@
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
saveSelectedUserList
(
""
);
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
saveSelectedUserList
(
""
);
}
if
(
typeof
(
webkit
)
!=
"undefined"
)
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
}
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
CHAT_SERVER_URL
=
chatServerUrl
;
CMS_SERVER_URL
=
cmsServerUrl
;
...
...
public_new/contact.html
View file @
fcfa41f3
...
...
@@ -129,31 +129,7 @@
</div>
</a>
</li>
<div
id=
"childGroupListArea"
>
<li
class=
"d-flex align-items-center"
>
<a
href=
"chat_room.html"
class=
"w-100"
>
<div
class=
"chat_item d-flex flex-row align-items-center"
>
<div
class=
"chat_item_l"
>
<div
class=
"thumbnail"
>
<img
src=
"icon/icon_folder.png"
alt=
"フォルダ"
/>
</div>
</div>
<div
class=
"chat_item_m px-0"
>
<div
class=
"d-flex flex-column"
>
<div
class=
"chat_item_t"
>
<span
class=
"chat_item_ttl"
>
子どもグループ
</span>
</div>
</div>
</div>
</div>
</a>
<div
class=
"chat_item_r"
>
<div
class=
"d-flex flex-column"
>
<span
class=
"star disable"
></span>
</div>
</div>
</li>
</div>
<div
id=
"childGroupListArea"
></div>
<div
id=
"userInGroupList"
></div>
</ul>
</div>
...
...
@@ -227,11 +203,14 @@
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
$
(
"#loadingArea"
).
load
(
"./loading.html"
);
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
}
if
(
typeof
(
webkit
)
!=
"undefined"
)
{
webkit
.
messageHandlers
.
loginInfoRequestMessageHandlerId
.
postMessage
({});
webkit
.
messageHandlers
.
getGlobalParameter
.
postMessage
({});
}
function
getGlobalParam
(
chatServerUrl
,
cmsServerUrl
,
platform
,
isMobile
,
isOnline
)
{
CHAT_SERVER_URL
=
chatServerUrl
;
CMS_SERVER_URL
=
cmsServerUrl
;
...
...
public_new/js/chat-ui.js
View file @
fcfa41f3
...
...
@@ -941,15 +941,18 @@ CHAT_UI.refreshContactScreen = function() {
});
if
(
IS_ONLINE
==
'true'
)
{
android
.
updateGroupInfo
(
'0'
);
android
.
updateMyInfo
();
android
.
updateGroupUser
();
android
.
updateFavorite
();
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
({
'0'
});
webkit
.
messageHandlers
.
updateMyInfo
.
postMessage
({});
webkit
.
messageHandlers
.
updateGroupUser
.
postMessage
({});
webkit
.
messageHandlers
.
updateFavorite
.
postMessage
({});
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
updateGroupInfo
(
'0'
);
android
.
updateMyInfo
();
android
.
updateGroupUser
();
android
.
updateFavorite
();
}
if
(
typeof
(
webkit
)
!=
"undefined"
)
{
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
({
"groupId"
:
"0"
});
webkit
.
messageHandlers
.
updateMyInfo
.
postMessage
({});
webkit
.
messageHandlers
.
updateGroupUser
.
postMessage
({});
webkit
.
messageHandlers
.
updateFavorite
.
postMessage
({});
}
}
var
myInfo
=
CHAT_DB
.
getMyInfo
();
...
...
@@ -1024,8 +1027,11 @@ CHAT_UI.refreshRoomList = function(roomType) {
}
if
(
IS_ONLINE
==
'true'
)
{
android
.
updateRoomList
();
webkit
.
messageHandlers
.
updateRoomList
.
postMessage
({});
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
updateRoomList
.
postMessage
({});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
updateRoomList
();
}
}
var
rooms
=
CHAT_DB
.
getRoomList
(
roomType
,
null
);
CHAT
.
globalIsInvite
=
false
;
...
...
@@ -1372,8 +1378,11 @@ CHAT_UI.refreshAllGroupSearch = function(paramGroupId) {
//オンライン状態であればサーバから情報更新。
if
(
IS_ONLINE
==
'true'
)
{
android
.
updateGroupInfo
(
groupId
);
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
({
groupId
});
if
(
CHAT_UTIL
.
isIOS
())
{
webkit
.
messageHandlers
.
updateGroupInfo
.
postMessage
({
groupId
});
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
android
.
updateGroupInfo
(
groupId
);
}
}
//画面エリアを初期化。
...
...
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