Commit de0375cf by Lee Munkyeong

連絡先DB追加

parent 5b30db8e
...@@ -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">
......
...@@ -10,4 +10,14 @@ CHAT_DB.getRoomList = function(input) { ...@@ -10,4 +10,14 @@ CHAT_DB.getRoomList = function(input) {
//String形式をJsonに変更してReturn //String形式をJsonに変更してReturn
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
...@@ -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
......
...@@ -267,4 +267,17 @@ getLoginParameter = function(sid, loginId, shopName, roomId = undefined, roomNam ...@@ -267,4 +267,17 @@ getLoginParameter = function(sid, loginId, shopName, roomId = undefined, roomNam
CHAT.leaveRoom = function() { 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
...@@ -16,3 +16,7 @@ const messageType = { ...@@ -16,3 +16,7 @@ const messageType = {
SYSTEM : 3 , SYSTEM : 3 ,
COMMUNICATION : 4 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