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
2824234e
Commit
2824234e
authored
Jun 15, 2021
by
Kim Peace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed to recoginze non-attendee in archive
parent
5b99c4f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
30 deletions
+28
-30
public_new/archive_detail.html
+16
-15
public_new/js/chat-db.js
+1
-0
public_new/js/chat-ui.js
+11
-15
No files found.
public_new/archive_detail.html
View file @
2824234e
...
@@ -18,19 +18,20 @@
...
@@ -18,19 +18,20 @@
</head>
</head>
<script>
<script>
var
archiveId
;
var
archiveId
;
window
.
addEventListener
(
'DOMContentLoaded'
,
function
(){
window
.
addEventListener
(
'DOMContentLoaded'
,
function
()
{
var
urlPrm
=
new
Object
;
var
urlPrm
=
new
Object
;
var
urlSearch
=
location
.
search
.
substring
(
1
).
split
(
'&'
);
var
urlSearch
=
location
.
search
.
substring
(
1
).
split
(
'&'
);
var
kv
=
urlSearch
[
0
].
split
(
'='
);
var
kv
=
urlSearch
[
0
].
split
(
'='
);
urlPrm
[
kv
[
0
]]
=
kv
[
1
];
urlPrm
[
kv
[
0
]]
=
kv
[
1
];
archiveId
=
urlPrm
.
archiveId
archiveId
=
urlPrm
.
archiveId
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
}
else
{
CHAT_UI
.
refreshArchiveDetailScreen
(
urlPrm
.
archiveId
);
}
else
{
}
CHAT_UI
.
refreshArchiveDetailScreen
(
urlPrm
.
archiveId
);
});
}
</script>
});
</script>
<body>
<body>
<!-- ナビメニュー -->
<!-- ナビメニュー -->
...
@@ -126,7 +127,7 @@
...
@@ -126,7 +127,7 @@
<
p
>
{{
userName
}}
<
/p
>
<
p
>
{{
userName
}}
<
/p
>
<
/li
>
<
/li
>
</script>
</script>
<script
id=
"archive-namecard-template"
type=
"text/template"
>
<script
id=
"archive-namecard-template"
type=
"text/template"
>
<
div
class
=
"modal fade profile_modal"
id
=
"userNameCard"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"userNameCard"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade profile_modal"
id
=
"userNameCard"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"userNameCard"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
...
@@ -195,7 +196,7 @@
...
@@ -195,7 +196,7 @@
let
IS_MOBILE
=
true
;
let
IS_MOBILE
=
true
;
let
IS_ONLINE
=
false
;
let
IS_ONLINE
=
false
;
if
(
typeof
(
android
)
!=
"undefined"
)
{
if
(
typeof
(
android
)
!=
"undefined"
)
{
android
.
getLoginParameter
();
android
.
getLoginParameter
();
android
.
getGlobalParameter
();
android
.
getGlobalParameter
();
}
else
{
}
else
{
...
...
public_new/js/chat-db.js
View file @
2824234e
...
@@ -291,6 +291,7 @@ CHAT_DB.getMyGroupUsersNotInRoom = function () {
...
@@ -291,6 +291,7 @@ CHAT_DB.getMyGroupUsersNotInRoom = function () {
};
};
CHAT_DB
.
getUserInfo
=
function
(
shopMemberId
)
{
CHAT_DB
.
getUserInfo
=
function
(
shopMemberId
)
{
if
(
shopMemberId
==
""
)
{
return
;
}
if
(
CHAT_UTIL
.
isIOS
())
{
if
(
CHAT_UTIL
.
isIOS
())
{
return
JSON
.
parse
(
return
JSON
.
parse
(
callNativeApp
(
NATIVE_KEY_IOS
.
getUserInfo
,
{
shopMemberId
:
shopMemberId
})
callNativeApp
(
NATIVE_KEY_IOS
.
getUserInfo
,
{
shopMemberId
:
shopMemberId
})
...
...
public_new/js/chat-ui.js
View file @
2824234e
...
@@ -1525,9 +1525,6 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
...
@@ -1525,9 +1525,6 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
// アーカイブ詳細取得
// アーカイブ詳細取得
var archive = CHAT_DB.getArchiveDetail(archiveId);
var archive = CHAT_DB.getArchiveDetail(archiveId);
// チャットルーム情報を取得
var roomId = archive.roomId;
//保存ユーザ情報を取得
//保存ユーザ情報を取得
var userInfo = CHAT_DB.getUserInfo(archive.saveUserId);
var userInfo = CHAT_DB.getUserInfo(archive.saveUserId);
userInfo.profileUrl = CHAT.getProfileImgUrl(userInfo.profileUrl);
userInfo.profileUrl = CHAT.getProfileImgUrl(userInfo.profileUrl);
...
@@ -1642,27 +1639,24 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
...
@@ -1642,27 +1639,24 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
CHAT_UI
.
refreshArchiveDetailScreen
=
function
(
archiveId
)
{
CHAT_UI
.
refreshArchiveDetailScreen
=
function
(
archiveId
)
{
// loadingIndicatorを表示
// loadingIndicatorを表示
CHAT_UI
.
showLoadingIndicator
();
CHAT_UI
.
showLoadingIndicator
();
// 初期化
// 初期化
$
(
"#archiveDetail"
).
html
(
""
);
$
(
"#archiveDetail"
).
html
(
""
);
// アーカイブ詳細の様式を読み込む
// アーカイブ詳細の様式を読み込む
const
archiveDetailTemplate
=
$
(
"#archive-detail-template"
).
html
();
const
archiveDetailTemplate
=
$
(
"#archive-detail-template"
).
html
();
if
(
IS_ONLINE
==
"true"
)
{
if
(
IS_ONLINE
==
"true"
)
{
CHAT_DB
.
updateArchiveDetail
(
archiveId
);
CHAT_DB
.
updateArchiveDetail
(
archiveId
);
}
}
// アーカイブ詳細取得
// アーカイブ詳細取得
var
archive
=
CHAT_DB
.
getArchiveDetail
(
archiveId
);
const
archive
=
CHAT_DB
.
getArchiveDetail
(
archiveId
);
// チャットルーム情報を取得
var
roomId
=
archive
.
roomId
;
//保存ユーザ情報を取得
//
保存ユーザ情報を取得
var
userInfo
=
CHAT_DB
.
getUserInfo
(
archive
.
saveUserId
);
const
userInfo
=
CHAT_DB
.
getUserInfo
(
archive
.
saveUserId
);
userInfo
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
userInfo
.
profileUrl
);
userInfo
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
userInfo
.
profileUrl
);
// アーカイブ情報を表示
// アーカイブ情報を表示
var
html
=
Mustache
.
render
(
archiveDetailTemplate
,
{
const
html
=
Mustache
.
render
(
archiveDetailTemplate
,
{
fileName
:
archive
.
archiveName
,
fileName
:
archive
.
archiveName
,
insertDate
:
archive
.
archiveDate
,
insertDate
:
archive
.
archiveDate
,
chatRoomName
:
archive
.
roomName
,
chatRoomName
:
archive
.
roomName
,
...
@@ -1672,11 +1666,12 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
...
@@ -1672,11 +1666,12 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
userId
:
userInfo
.
shopMemberId
,
userId
:
userInfo
.
shopMemberId
,
});
});
var
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
"click"
,
function
()
{});
var
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
"click"
,
function
()
{});
$
(
"#archiveDetail"
).
append
(
obj
);
$
(
"#archiveDetail"
).
append
(
obj
);
// プレイヤーの切り替え
// プレイヤーの切り替え
var
archiveFilePath
=
CHAT
.
createGetDataUrl
(
archive
.
filePath
,
archive
.
roomId
);
const
archiveFilePath
=
CHAT
.
createGetDataUrl
(
archive
.
filePath
,
archive
.
roomId
);
switch
(
archive
.
archiveType
)
{
switch
(
archive
.
archiveType
)
{
case
"0"
:
// 画像
case
"0"
:
// 画像
...
@@ -1747,14 +1742,15 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
...
@@ -1747,14 +1742,15 @@ CHAT_UI.refreshArchiveDetailScreen = function (archiveId) {
}
}
attendUserList
.
forEach
(
function
(
user
)
{
attendUserList
.
forEach
(
function
(
user
)
{
if
(
user
==
""
)
{
return
;
}
var
userInfo
=
CHAT_DB
.
getUserInfo
(
user
);
var
userInfo
=
CHAT_DB
.
getUserInfo
(
user
);
userInfo
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
userInfo
.
profileUrl
);
userInfo
.
profileUrl
=
CHAT
.
getProfileImgUrl
(
userInfo
.
profileUrl
);
var
html
=
Mustache
.
render
(
archiveUserTemplate
,
{
const
html
=
Mustache
.
render
(
archiveUserTemplate
,
{
profileImage
:
userInfo
.
profileUrl
,
profileImage
:
userInfo
.
profileUrl
,
userName
:
userInfo
.
shopMemberName
,
userName
:
userInfo
.
shopMemberName
,
});
});
var
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
"click"
,
function
()
{
const
obj
=
$
(
jQuery
.
parseHTML
(
html
)).
on
(
"click"
,
function
()
{
// ネームカード表示
// ネームカード表示
CHAT_UI
.
makeNameCard
(
user
);
CHAT_UI
.
makeNameCard
(
user
);
});
});
...
...
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