合作提案- 照護線上-備份
合作免疫系統泌尿系統傳染表皮系統消化系統內分泌生殖系統呼吸系統循環系統備份 文章 參考資訊
";
/*顯示狀態圖示 start*/
html += "";
// 如果可掛號的話 顯示網掛圖示
if (response[i].CanReservation){
html += "
"; } // 如果休診的話 顯示休診圖示 if (!response[i].IsOnDuty){ html += ""; } html += ""; /*顯示狀態圖示 end*/ html += ""; html += "
"; } // 如果休診的話 顯示休診圖示 if (!response[i].IsOnDuty){ html += ""; } html += ""; /*顯示狀態圖示 end*/ html += ""; html += "
" + Address + "
"; html += "" + response[i].Tel + "
"; // 有診療科別才顯示 if (response[i].Department) { html += "診療科別:"; html += "" + departmentHtml + "
"; } html += "設施一覽:"; html += "" + facilityHtml + "
"; html += ""; } return html; } // 處理收藏 function myFavorite(clinicList) { var favoriteList = window.favoriteList; if (!favoriteList) { // 還沒有資料時 取得會員常用醫療機構 if (token) { // 身份為會員 取得會員常用醫療機構 getFavorite(); } else { // 非會員 前往登入頁面 var $favorite = $(".favoriteBtn"); $favorite.children("span").addClass("noTokenAddFavorite").html("加入收藏"); $favorite.children("i").removeClass("text-danger"); $favorite.click(function() { location.href = "//admin.careonline.com.tw"; }); } } else { // 有的時候 loop 收藏按鈕 loopFavorite(clinicList, favoriteList); } // 取得會員常用醫療機構 function getFavorite() { var apiUrl = "https://careonline.com.tw/api/UserCommonlyUsedHospital/Get"; //進動畫 $("#wait_gif").show(); $.ajax({ type: "GET", url: apiUrl, headers: { "authorization": "Bearer " + token }, success: function(response) { // 關動畫 $("#wait_gif").hide(); console.log(JSON.stringify(response)); // 存為全域變數 window.favoriteList = response; // 處理收藏按鈕 loopFavorite(clinicList, response); }, error: function(e) { // 關動畫 $("#wait_gif").hide(); console.log(JSON.stringify(e)); // 顯示失敗彈跳視窗 commErrorPopup(e); } }); } // 處理收藏按鈕 function loopFavorite(clinicList, favoriteClinic) { var i, HospID; for (i in clinicList) { HospID = clinicList[i].HospID; showFavorite(HospID, favoriteClinic); } } // 顯示收藏按鈕字串 function showFavorite(HospID, favoriteClinic) { // 檢查此機構是否在常用醫療機構之中 var $favorite = $("#" + HospID), i; for (i in favoriteClinic) { if (favoriteClinic[i].HospID == HospID) { $favorite.children("span").html("我的收藏"); $favorite.children("i").addClass("text-danger"); // 改為移除收藏按鈕 $favorite.removeClass("favoriteBtn").addClass("removeFavorite"); $favorite.click(function() { removeFavorite(HospID); }); return; } } // 不是常用醫療機的話 $favorite.children("span").html("加入收藏"); $favorite.children("i").removeClass("text-danger"); // 改為加入收藏按鈕 $favorite.removeClass("favoriteBtn").addClass("addFavorite"); $favorite.click(function() { addFavorite(HospID); }); } // 加入收藏 function addFavorite(HospID) { var apiUrl = "https://careonline.com.tw/api/UserCommonlyUsedHospital/Add", data = { "HospID": HospID }; //進動畫 $("#wait_gif").show(); $.ajax({ type: "POST", url: apiUrl, headers: { "authorization": "Bearer " + token }, data: data, success: function(response) { console.log(JSON.stringify(response)); var $favorite = $("#" + HospID); $favorite.children("span").html("我的收藏"); $favorite.children("i").addClass("text-danger"); // 改為移除收藏按鈕 $favorite.removeClass("addFavorite").addClass("removeFavorite").off("click"); $favorite.click(function() { removeFavorite(HospID); }); // 關動畫 $("#wait_gif").hide(); }, error: function(e) { // 關動畫 $("#wait_gif").hide(); console.log(JSON.stringify(e)); // 顯示失敗彈跳視窗 commErrorPopup(e); } }); } // 移除收藏 function removeFavorite(HospID) { var apiUrl = "https://careonline.com.tw/api/UserCommonlyUsedHospital/Delete", data = { "HospIDs": [HospID] }; //進動畫 $("#wait_gif").show(); $.ajax({ type: "POST", url: apiUrl, headers: { "authorization": "Bearer " + token }, data: data, success: function(response) { console.log(JSON.stringify(response)); var $favorite = $("#" + HospID); $favorite.children("span").html("加入收藏"); $favorite.children("i").removeClass("text-danger"); // 改為加入收藏按鈕 $favorite.removeClass("removeFavorite").addClass("addFavorite").off("click"); $favorite.click(function() { addFavorite(HospID); }); // 關動畫 $("#wait_gif").hide(); }, error: function(e) { // 關動畫 $("#wait_gif").hide(); console.log(JSON.stringify(e)); // 顯示失敗彈跳視窗 commErrorPopup(e); } }); } } // 點擊顯示更多新登錄診所 $("#new_clinic").on("click", ".moreNewClinicBtn", function() { // window.skip + 10 window.skip += 10; // 取得下 10 筆新登錄診所 GetNewClinic(10, window.skip); }); span.right{line-height: 26px;} .new_clinic_item .status_icon{height: 18px; width: auto;} .new_clinic_item .tableRow{line-height:18px} .clinic_name{font-size:inherit;line-height:22px} .clinic_address,.clinic_tel{font-size:11px;line-height:1.2} .new_clinic_item .department{max-height:36px} .new_clinic_item .facility{max-height:54px} .favorite_outer{display:none} .clinic_item{width:100%;margin-left:0;margin-right:0;font-size:14px} } ]]>[no_relate_sql.name;block=a]
2 週前
智庫警告稱肥胖問題拖累了英國經濟-FT中文網
智庫「公共政策研究所」(InstituteforPublicPolicyResearch)呼籲政府停止將肥胖問題視爲個人責任,並應解決「工作條件、建成...
2 個月前
國立東華大學再度榮獲健康職場認證標章|中央社訊息平台
首頁[1]中文稿[2]發稿時間:2024/03/1209:43:53(中央社訊息服務2024031209:43:53)國立東華大學於113年再次獲得衛生福利部國...
6 個月前
天冷防猝死!健保署12月起將「2系統」納健保初估每年破萬人次受惠
中央健康保險署為提升冠狀動脈心臟病治療品質,自112年12月1日起將「冠狀動脈斑塊切割氣球導管與旋磨切除系統」納入健保給付...
1 個月前
修復大腦系統、降心血管疾病午睡有益健康但4大NG行為別犯
2024-04-1717:05:56聯合報元氣中心記者廖靜清台北報導你有睡午覺的習慣嗎?你有睡午覺的習慣嗎?午餐之後昏昏欲睡是很正常的...
4 個月前
無疾病惡化存活期改善!FDA核准免疫藥物Pembrolizumab合併治療用於晚期子宮頸癌
潮健康/綜合報導FDA核准免疫藥物Pembrolizumab合併化放療用於晚期子宮頸癌FDA核准免疫藥物Pembrolizumab合併化放療用於晚期...
5 個月前
神經內分泌瘤新曙光「核素治療」基隆長庚成功治療寫下精準醫療里程碑
今(2023)年10月基隆長庚血液腫瘤科及核子醫學科共組照護團隊,成功執行「神經內分泌瘤肽受體放射性核素治療(PRRT)」。基...
6 個月前
床蝨爆發!甚麽是臭蟲?會傳染疾病嗎?食環署教11招防治-香港財經時報
政府發言人表示,資料顯示臭蟲(床蝨)不會傳播疾病,惟人類被叮咬後或會出現皮膚敏感及痕癢,感到不舒服。因此政府快速採取...