issue #11 Going on amenity renewering.
This commit is contained in:
@@ -182,89 +182,11 @@
|
|||||||
<div class="owl-carousel owl-theme" id="lst_hotkey_mm_blue"></div>
|
<div class="owl-carousel owl-theme" id="lst_hotkey_mm_blue"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="amenity">
|
<div class="amenity">
|
||||||
<div class="menu">
|
<div class="bg">
|
||||||
<div id="title"></div>
|
<div class="owl-carousel owl-theme" id="lst_ctgbg"></div>
|
||||||
<div id="usage"></div>
|
|
||||||
<div id="items">
|
|
||||||
<table class="tbl_header">
|
|
||||||
<tbody id="hdr">
|
|
||||||
<tr>
|
|
||||||
<th id="type"></th>
|
|
||||||
<th id="quantity"></th>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<table class="tbl_record">
|
|
||||||
<tbody id="record"></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div id="summary">
|
|
||||||
<div id="title"></div>
|
|
||||||
<div id="value"></div>
|
|
||||||
<div id="quantity"></div>
|
|
||||||
</div>
|
|
||||||
<div id="buttons">
|
|
||||||
<div id="order"></div>
|
|
||||||
<div id="details"></div>
|
|
||||||
<div id="cancel"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="description">
|
|
||||||
<div id="title"></div>
|
|
||||||
<div id="comment"></div>
|
|
||||||
<div id="thumb"></div>
|
|
||||||
</div>
|
|
||||||
<div class="cart-list">
|
|
||||||
<div id="title"></div>
|
|
||||||
<div id="usage"></div>
|
|
||||||
<div id="items">
|
|
||||||
<table class="tbl_header">
|
|
||||||
<tbody id="hdr">
|
|
||||||
<tr>
|
|
||||||
<th id="type"></th>
|
|
||||||
<th id="quantity"></th>
|
|
||||||
<th id="amount"></th>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<table class="tbl_record">
|
|
||||||
<tbody id="record"></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div id="summary">
|
|
||||||
<div id="title"></div>
|
|
||||||
<div id="quantity"></div>
|
|
||||||
<div id="amount"></div>
|
|
||||||
</div>
|
|
||||||
<div id="notice"></div>
|
|
||||||
<div id="buttons">
|
|
||||||
<div>
|
|
||||||
<div id="confirm"></div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div id="cancel"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="order-details">
|
|
||||||
<div id="title"></div>
|
|
||||||
<div id="usage"></div>
|
|
||||||
<div id="orders">
|
|
||||||
<table class="order_list">
|
|
||||||
<tbody id="record"></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div id="summary">
|
|
||||||
<div id="title"></div>
|
|
||||||
<div id="quantity"></div>
|
|
||||||
<div id="amount"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="alert">
|
|
||||||
<div id="order-complete">
|
|
||||||
<div id="title"></div>
|
|
||||||
<div id="message"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="slider">
|
||||||
|
<div class="owl-carousel owl-theme" id="lst_ctgsel"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="roomservice">
|
<div class="roomservice">
|
||||||
|
|||||||
@@ -87,6 +87,8 @@ HotelTV.api = (function() {
|
|||||||
"get_site_info": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/info",
|
"get_site_info": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/info",
|
||||||
"get_guest_info": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/guest",
|
"get_guest_info": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/guest",
|
||||||
"get_opening_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/opening",
|
"get_opening_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/opening",
|
||||||
|
"get_amenity_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/requests/amentity",
|
||||||
|
"get_roomservice_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/requests/roomService",
|
||||||
"get_widget_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/widget",
|
"get_widget_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/widget",
|
||||||
"get_program_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/program",
|
"get_program_ctz": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/program",
|
||||||
"get_epg_info": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/epg",
|
"get_epg_info": __apifxn_get_base_url() + "/api/" + _api_ver + "/assets/" + _dev_familly + "/" + _serial_num + "/epg",
|
||||||
@@ -330,6 +332,32 @@ HotelTV.api = (function() {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
GetAmenityCtz: function() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
let sz_api_url = __apifxn_get_api_url("get_amenity_ctz");
|
||||||
|
__apifxn_CallCmsApi("GET", sz_api_url, "GetAmenityCtz", null).then(_result => {
|
||||||
|
//console.log(`Success::>${_result.data}`);
|
||||||
|
resolve(JSON.parse(_result.data));
|
||||||
|
}).catch(_error => {
|
||||||
|
console.error(`Failure::>${_error.reason}`);
|
||||||
|
reject(_error.reason);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
GetRoomServiceCtz: function() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
let sz_api_url = __apifxn_get_api_url("get_roomservice_ctz");
|
||||||
|
__apifxn_CallCmsApi("GET", sz_api_url, "GetRoomServiceCtz", null).then(_result => {
|
||||||
|
//console.log(`Success::>${_result.data}`);
|
||||||
|
resolve(JSON.parse(_result.data));
|
||||||
|
}).catch(_error => {
|
||||||
|
console.error(`Failure::>${_error.reason}`);
|
||||||
|
reject(_error.reason);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
GetWeather: function() {
|
GetWeather: function() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let sz_api_url = __apifxn_get_api_url("get_weather");
|
let sz_api_url = __apifxn_get_api_url("get_weather");
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user