issue #8 Add new balloon message for new guest message.
This commit is contained in:
@@ -2806,10 +2806,10 @@ HotelTV.ui_appfull = (function() {
|
||||
});
|
||||
|
||||
$('#lst_mypagesel').on('translate.owl.carousel', function(event) {
|
||||
const __fxn_getMyPaggeItemValue = function(_object, _key, _itemType) {
|
||||
const __fxn_getMyPaggeItemIndex = function(_object, _type) {
|
||||
for (__j = 1; __j <= _object.length; __j++) {
|
||||
if (_object[__j].type == _itemType) {
|
||||
return _object[__j][_key];
|
||||
if (_object[__j].type == _type) {
|
||||
return __j;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2827,11 +2827,11 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
if (_mp_sm == "mpsel_accommodation") {
|
||||
// MYPAGE서브 메뉴 인덱스 갱신
|
||||
_state.menu.main[_mmIdx].cur = 'accommodation';
|
||||
_state.menu.main[_mmIdx].cur = __fxn_getMyPaggeItemIndex(_mpinfo,'accommodation');
|
||||
} else if (_mp_sm == "mpsel_message") {
|
||||
let __curMsgDspIdx = 0;
|
||||
// MYPAGE서브 메뉴 인덱스 갱신
|
||||
_state.menu.main[_mmIdx].cur = 'message';
|
||||
_state.menu.main[_mmIdx].cur = __fxn_getMyPaggeItemIndex(_mpinfo,'message');
|
||||
|
||||
// 메시지 포커싱
|
||||
if ('message' in Object.keys(_state.menu.main[_mmIdx])) {
|
||||
@@ -2853,7 +2853,7 @@ HotelTV.ui_appfull = (function() {
|
||||
'power': true,
|
||||
'location':
|
||||
{
|
||||
'conId':__fxn_getMyPaggeItemValue(_mpinfo,'id', _state.menu.main[_mmIdx].cur)
|
||||
'conId': _mpinfo[_state.menu.main[_mmIdx].cur].id
|
||||
}
|
||||
}])
|
||||
}
|
||||
@@ -4399,7 +4399,6 @@ HotelTV.ui_appfull = (function() {
|
||||
* @param {boolean} uri_img background image url
|
||||
*/
|
||||
function __uifxn_AppFull_BldPage_Main() {
|
||||
let _opening = HotelTV.tvguide.opening;
|
||||
let _program = HotelTV.tvguide.program;
|
||||
let _weather = HotelTV.weather;
|
||||
let _state = HotelTV.state;
|
||||
@@ -4567,6 +4566,7 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
$(document).on('keydown', function(_evt) { //attach event listener
|
||||
let _opening = HotelTV.opening;
|
||||
let _trTbl = HotelTV.translation;
|
||||
|
||||
if (_state.menu.stage == "main") {
|
||||
console.log(`MM KEY EVENT::> ${_evt.keyCode}, UINT=>${parseInt(_evt.keyCode)}`);
|
||||
@@ -4619,7 +4619,7 @@ HotelTV.ui_appfull = (function() {
|
||||
if (_foundNetflix == true) {
|
||||
HotelTV.hcap.LaunchPreApp(_program[Number(_state.menu.main.cur)].service, { "hotel_name": HotelTV.hotelinfo.name });
|
||||
} else {
|
||||
HotelTV.ui_utils.ShowNotificationMsgBalloon("서비스를 중비 중입니다. 잠시후에 이용해 주세요.", 5);
|
||||
HotelTV.ui_utils.ShowNotificationMsgBalloon(_trTbl.system.ott_service_not_ready[_state.lang], 5);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -5044,6 +5044,9 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
//widjet 상단 메시지(unread)개수 표시
|
||||
__uifxn_AppFull_TopWidjet_BuildMsgCnt();
|
||||
|
||||
//
|
||||
HotelTV.ui_utils.ShowNotificationMsgBalloon(_guest.name + _trTbl.ui.mypage.message.title.title_widget[_state.lang].replace("_XX", _msg_unread_cnt.toString()), 10);
|
||||
}).catch(_error => {
|
||||
console.log("Fail to get Message info");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user