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
de0375cf
Commit
de0375cf
authored
Feb 10, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
連絡先DB追加
parent
5b30db8e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
9 deletions
+38
-9
public/index.html
+1
-1
public/js/chat-db.js
+11
-0
public/js/chat-ui.js
+8
-8
public/js/chat.js
+14
-0
public/js/constant.js
+4
-0
No files found.
public/index.html
View file @
de0375cf
...
@@ -362,7 +362,7 @@
...
@@ -362,7 +362,7 @@
<img
src=
"./icon/ic_communication_menu.png"
style=
"width: 35%;"
id=
"chatButton"
>
<img
src=
"./icon/ic_communication_menu.png"
style=
"width: 35%;"
id=
"chatButton"
>
</div>
</div>
<div
class=
"col-4"
>
<div
class=
"col-4"
>
<img
src=
"./
/
icon/home_common_content_icon_on.png"
style=
"width: 35%;"
id=
"archiveButton"
>
<img
src=
"./icon/home_common_content_icon_on.png"
style=
"width: 35%;"
id=
"archiveButton"
>
</div>
</div>
</nav>
</nav>
<script
id=
"message-template"
type=
"text/template"
>
<script
id=
"message-template"
type=
"text/template"
>
...
...
public/js/chat-db.js
View file @
de0375cf
...
@@ -11,3 +11,13 @@ CHAT_DB.getRoomList = function(input) {
...
@@ -11,3 +11,13 @@ CHAT_DB.getRoomList = function(input) {
return
JSON
.
parse
(
android
.
getRoomList
());
return
JSON
.
parse
(
android
.
getRoomList
());
}
}
};
};
//ロカールDBからログインしたユーザのデータを取得する。
CHAT_DB
.
getMyinfo
=
function
(
input
)
{
if
(
CHAT_UTIL
.
isIOS
())
{
//TODO IOS処理追加必要
}
else
if
(
CHAT_UTIL
.
isAndroid
())
{
//String形式をJsonに変更してReturn
return
JSON
.
parse
(
android
.
getMyinfo
());
}
};
\ No newline at end of file
public/js/chat-ui.js
View file @
de0375cf
...
@@ -793,27 +793,27 @@ $('#contactButton').on('click', function(event){
...
@@ -793,27 +793,27 @@ $('#contactButton').on('click', function(event){
//loadingIndicatorを表示
//loadingIndicatorを表示
CHAT_UI
.
showLoadingIndicator
();
CHAT_UI
.
showLoadingIndicator
();
$
(
'#pills-contact-tab'
).
tab
(
'show'
);
$
(
'#pills-contact-tab'
).
tab
(
'show'
);
//画面タイトル設定
//画面タイトル設定
let
contactListTitle
=
getLocalizedString
(
"contactListTitle"
);
let
contactListTitle
=
getLocalizedString
(
"contactListTitle"
);
$
(
'.titleRoomName'
).
text
(
contactListTitle
);
$
(
'.titleRoomName'
).
text
(
contactListTitle
);
// グループの様式を読み込む
// グループの様式を読み込む
const
groupTemplate
=
$
(
'#group-template'
).
html
();
const
groupTemplate
=
$
(
'#group-template'
).
html
();
// ユーザの様式を読み込む
// ユーザの様式を読み込む
const
userTemplate
=
$
(
'#user-template'
).
html
();
const
userTemplate
=
$
(
'#user-template'
).
html
();
var
myInfo
=
{
android
.
updateGroupInfo
();
"shopMemberId"
:
"1"
,
android
.
updateMyInfo
();
"shopMemberName"
:
"Test"
,
}
var
myInfo
=
CHAT
.
requestMyinfo
();
if
(
IS_ONLINE
==
'true'
)
{
}
myInfo
.
profileImagePath
=
CHAT
.
getProfileImgUrl
(
myInfo
.
profileImagePath
)
myInfo
.
profileImagePath
=
CHAT
.
getProfileImgUrl
(
myInfo
.
profileImagePath
)
//TODO get my Info
//TODO get my Info
...
...
public/js/chat.js
View file @
de0375cf
...
@@ -268,3 +268,16 @@ CHAT.leaveRoom = function() {
...
@@ -268,3 +268,16 @@ CHAT.leaveRoom = function() {
socket
.
emit
(
'leaveRoom'
,
function
()
{
socket
.
emit
(
'leaveRoom'
,
function
()
{
});
});
}
}
CHAT
.
requestMyinfo
=
function
()
{
jQuery
.
ajax
({
async
:
true
,
url
:
CMS_SERVER_URL
+
"/chatapi/user?sid="
+
CHAT
.
globalLoginParameter
.
sid
+
"&cmd="
+
userAPICmd
.
MYINFO
,
type
:
"get"
,
processData
:
false
,
contentType
:
false
}).
done
(
function
(
res
)
{
console
.
log
(
res
);
return
res
;
})
}
\ No newline at end of file
public/js/constant.js
View file @
de0375cf
...
@@ -16,3 +16,7 @@ const messageType = {
...
@@ -16,3 +16,7 @@ const messageType = {
SYSTEM
:
3
,
SYSTEM
:
3
,
COMMUNICATION
:
4
COMMUNICATION
:
4
}
}
const
userAPICmd
=
{
MYINFO
:
9
}
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