issue #2 Done room service feature.

This commit is contained in:
Paul Kim
2022-08-30 00:38:43 +09:00
parent 05f5d61c84
commit 08dda21fcd
6 changed files with 61 additions and 60 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
procentric/application/.vscode/bookmarks.json
procentric/.vscode/
procentric/system/*.epk

View File

@@ -1,14 +0,0 @@
{
"files": [
{
"path": "lib/hoteltv.ui_appfull.js",
"bookmarks": [
{
"line": 538,
"column": 22,
"label": ""
}
]
}
]
}

View File

@@ -683,9 +683,9 @@
.popup .roomservice .description>#comment { .popup .roomservice .description>#comment {
width: 100%; width: 100%;
height: 89px; height: 89px;
line-height: 22px; line-height: 24px;
overflow: hidden; overflow: hidden;
font-size: 18px; font-size: 22px;
padding: 5px 10px 5px 15px; padding: 5px 10px 5px 15px;
white-space: pre-line; white-space: pre-line;
} }
@@ -1178,6 +1178,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgb(36, 44, 56); background-color: rgb(36, 44, 56);
border: 1px solid rgb(255, 255, 255);
} }
.popup .roomservice .alert>div#order-complete>div#title { .popup .roomservice .alert>div#order-complete>div#title {
@@ -1192,7 +1193,7 @@
} }
.popup .roomservice .alert>div#order-complete>div#message { .popup .roomservice .alert>div#order-complete>div#message {
width: 100%; width: 95%;
float: left; float: left;
margin: 40px 20px 5px 20px; margin: 40px 20px 5px 20px;
font-size: 22px; font-size: 22px;

View File

@@ -34,7 +34,7 @@ body {
padding: 0px; padding: 0px;
background-color: rgba(0, 0, 0, 1); background-color: rgba(0, 0, 0, 1);
background-image: none; background-image: none;
background-size: contain; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
display: none; display: none;
} }
@@ -46,9 +46,10 @@ body {
width: 884px; width: 884px;
height: 648px; height: 648px;
padding: 0px; padding: 0px;
background-image: url(./images/bg_language_welcome_box.png); /* background-image: url(./images/bg_language_welcome_box.png);
background-size: cover; background-size: cover; */
background-repeat: no-repeat; background-repeat: no-repeat;
background: linear-gradient(rgba(45,45,45,0.6),rgba(16,16,16,0.7));
border-radius: 11px; border-radius: 11px;
filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)); filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
} }
@@ -63,20 +64,23 @@ body {
background-image: none; background-image: none;
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; /* background-position: center; */
background-position: top;
} }
.welcome .frame .msgwin #guestname { .welcome .frame .msgwin #guestname {
position: absolute; position: absolute;
top: 486px; top: 424px;
left: 0px; left: 0px;
width: 884px; width: 804px;
height: 65px; height: 65px;
padding: 0px; padding: 0px 0px 5px 0px;
margin: 0px 40px 0px 40px;
background-image: none; background-image: none;
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
border-bottom: solid rgb(192,192,192) 3px;
font-size: 65px; font-size: 65px;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
@@ -88,11 +92,12 @@ body {
.welcome .frame .msgwin #welcomemsg { .welcome .frame .msgwin #welcomemsg {
position: absolute; position: absolute;
top: 584px; top: 516px;
left: 0px; left: 0px;
width: 884px; width: 804px;
height: 44px; height: 44px;
padding: 0px; /* padding: 0px; */
margin: 0px 40px 0px 40px;
background-image: none; background-image: none;
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;

View File

@@ -539,39 +539,39 @@ HotelTV.LoadAppFull = async function() {
//STEP#03: INIT HCAP for HotelTV FullAPP //STEP#03: INIT HCAP for HotelTV FullAPP
// let tmrAppAuth = setInterval(async function() { let tmrAppAuth = setInterval(async function() {
// let _foundNetflix = false; let _foundNetflix = false;
// let _hcapAppInfo = await HotelTV.hcap.PreAppGetInfo(false); let _hcapAppInfo = await HotelTV.hcap.PreAppGetInfo(false);
// HotelTV.state['hcap_app'] = _hcapAppInfo.applist; HotelTV.state['hcap_app'] = _hcapAppInfo.applist;
// for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) { for (_i = 0; _i < HotelTV.state['hcap_app'].length; _i++) {
// if (HotelTV.state['hcap_app'][_i].title == "Netflix") { if (HotelTV.state['hcap_app'][_i].title == "Netflix") {
// console.log("Found out netflix among of pre hcap app-list.") console.log("Found out netflix among of pre hcap app-list.")
// clearInterval(tmrAppAuth); clearInterval(tmrAppAuth);
// } }
// } }
// if (_foundNetflix == false) { if (_foundNetflix == false) {
// try { try {
// let siAppToken = null; let siAppToken = null;
// let siAppName = null; let siAppName = null;
// // siApp Token Authentication // siApp Token Authentication
// let _progam = HotelTV.tvguide.program; let _progam = HotelTV.tvguide.program;
// for (let _i = 1; _i <= _progam.length; _i++) { for (let _i = 1; _i <= _progam.length; _i++) {
// if (_progam[_i].type == "application" && _progam[_i].service == "netflix") { if (_progam[_i].type == "application" && _progam[_i].service == "netflix") {
// siAppToken = await HotelTV.api.DownloadData(_progam[_i].license.file.download); siAppToken = await HotelTV.api.DownloadData(_progam[_i].license.file.download);
// siAppName = _progam[_i].service; siAppName = _progam[_i].service;
// //siAppToken = _progam[_i].service; //siAppToken = _progam[_i].service;
// if (siAppName && siAppToken) { if (siAppName && siAppToken) {
// HotelTV.hcap.siAppAuth(siAppName, siAppToken, false); HotelTV.hcap.siAppAuth(siAppName, siAppToken, false);
// } }
// } }
// } }
// } catch (_error) { } catch (_error) {
// console.log("Display Error page for get siApp Auth"); console.log("Display Error page for get siApp Auth");
// } }
// } }
// }, 5000); }, 5000);
//STEP#05: Set Display size //STEP#05: Set Display size

View File

@@ -495,7 +495,7 @@ HotelTV.ui_appfull = (function() {
_elDiv_OdItmesRec.className = "oditem"; _elDiv_OdItmesRec.className = "oditem";
var _elDiv_OdItmesRecName = document.createElement('div'); var _elDiv_OdItmesRecName = document.createElement('div');
_elDiv_OdItmesRecName.setAttribute("id", "name"); _elDiv_OdItmesRecName.setAttribute("id", "name");
_elDiv_OdItmesRecName.textContent = __fxn_getRsItemValue(_roomservice.children, "title", _elDiv_OdItmesRecName.textContent =`[${_j}] ` + __fxn_getRsItemValue(_roomservice.children, "title",
_OdItem.itemId)[_state.lang]; _OdItem.itemId)[_state.lang];
_elDiv_OdItmesRec.appendChild(_elDiv_OdItmesRecName); _elDiv_OdItmesRec.appendChild(_elDiv_OdItmesRecName);
@@ -860,6 +860,9 @@ HotelTV.ui_appfull = (function() {
} }
const __fxn_close_RsPopup = function(_fxn_post_process) { const __fxn_close_RsPopup = function(_fxn_post_process) {
// 아이템 디스크립션(메뉴 오른쪽) 하이드
__uifxn_AppFull_DrawRoomservceItemDescription(false);
_elRsPupRoot.animate({ top: 96, left: -560 }, 500, () => { _elRsPupRoot.animate({ top: 96, left: -560 }, 500, () => {
// 아이탬 테이블 스크롤 맨 위로 이동 // 아이탬 테이블 스크롤 맨 위로 이동
_elRsMnItmTbl.animate({ scrollTop: 0 }, 200); _elRsMnItmTbl.animate({ scrollTop: 0 }, 200);
@@ -942,6 +945,7 @@ HotelTV.ui_appfull = (function() {
_state.hotkey.mm[_roomservice.button].status.button.idx = null; _state.hotkey.mm[_roomservice.button].status.button.idx = null;
_state.hotkey.mm[_roomservice.button].status.focus = "menu"; _state.hotkey.mm[_roomservice.button].status.focus = "menu";
_elRsMnItmTbl.children('tr').eq(_state.hotkey.mm[_roomservice.button].status.menu.idx).addClass('active'); _elRsMnItmTbl.children('tr').eq(_state.hotkey.mm[_roomservice.button].status.menu.idx).addClass('active');
__uifxn_AppFull_DrawRoomservceItemDescription(true);
} }
} else { } else {
_state.hotkey.mm[_roomservice.button].status.button.idx = null; _state.hotkey.mm[_roomservice.button].status.button.idx = null;