Commit de0375cf by Lee Munkyeong

連絡先DB追加

parent 5b30db8e
......@@ -362,7 +362,7 @@
<img src="./icon/ic_communication_menu.png" style="width: 35%;" id="chatButton">
</div>
<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>
</nav>
<script id="message-template" type="text/template">
......
......@@ -11,3 +11,13 @@ CHAT_DB.getRoomList = function(input) {
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
......@@ -793,27 +793,27 @@ $('#contactButton').on('click', function(event){
//loadingIndicatorを表示
CHAT_UI.showLoadingIndicator();
$('#pills-contact-tab').tab('show');
//画面タイトル設定
let contactListTitle = getLocalizedString("contactListTitle");
$('.titleRoomName').text(contactListTitle);
// グループの様式を読み込む
const groupTemplate = $('#group-template').html();
// ユーザの様式を読み込む
const userTemplate = $('#user-template').html();
var myInfo = {
"shopMemberId":"1",
"shopMemberName":"Test",
}
android.updateGroupInfo();
android.updateMyInfo();
var myInfo = CHAT.requestMyinfo();
if (IS_ONLINE == 'true') {
}
myInfo.profileImagePath = CHAT.getProfileImgUrl(myInfo.profileImagePath)
//TODO get my Info
......
......@@ -268,3 +268,16 @@ CHAT.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
......@@ -16,3 +16,7 @@ const messageType = {
SYSTEM : 3 ,
COMMUNICATION : 4
}
const userAPICmd = {
MYINFO : 9
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment