PageSourceSearch

https://www.common-room.hk/_nuxt/normal.25677804.js

js common-room.hk collected 2026-10-07 18:01:50 UTC 7,683 bytes, 1 lines download raw bytes

1import{_ as E}from"./featuredproperty.0674a9a1.js";import{u as O,g as P,r as l,h as R,j as F,E as H,Y as G,c as r,a as t,l as o,v as T,z as k,y as C,A as b,s as g,t as u,d as i,b as U,o as c,n as Z,aa as J}from"./entry.4ada9887.js";import{u as y}from"./fetch.1d770b6d.js";import{u as Q,a as Y}from"./useOgImage.6ef29ea1.js";import"./Property.b6e3a077.js";import"./badge2.922eb0eb.js";import"./spinner2.4deb6995.js";import"./datetime.70d2c772.js";const $={class:"bg-dark position-relative z-index-1 padding-top-xl padding-bottom-2xl"},q={class:"container max-width-adaptive-md"},W=t("h1",{class:"margin-bottom-lg text-center text-3xl"},"立即預訂",-1),K={class:"bg inner-glow shadow-xs radius-md overflow-hidden"},X={class:"grid"},tt={class:"height-2xl height-auto@md col-4@md"},st=["src"],et={key:0,class:"padding-md col-8@md"},ot=t("h2",{class:"mt0 text-2xl margin-bottom-xs"},"立即登入",-1),at=t("p",{class:"margin-bottom-md text-md"},[i("沒有帳號? "),t("a",{href:"/users/register"},"立即按此註冊")],-1),it={class:"margin-bottom-sm"},lt=t("label",{class:"form-label margin-bottom-3xs",for:"input-email"},"電郵",-1),nt={class:"margin-bottom-sm"},rt=t("div",{class:"flex justify-between margin-bottom-3xs"},[t("label",{class:"form-label",for:"input-password"},"密碼"),t("span",{class:"text-sm"},[t("a",{href:"/users/forgetpassword"},"忘記密碼?")])],-1),ct={class:"margin-bottom-sm"},dt=["onClick"],mt={key:1,class:"padding-md col-8@md"},ht=t("h2",{class:"mt0 margin-bottom-2xs text-2xl"},"請稍等,資料提交中。。。",-1),gt=[ht],ut={key:2,class:"padding-md col-8@md"},pt={class:"mt0 margin-bottom-2xs text-2xl"},_t={class:"text-base margin-bottom-sm text-black"},vt=t("img",{class:"smallicon",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIgMGMtNC4xOTggMC04IDMuNDAzLTggNy42MDIgMCA0LjE5OCAzLjQ2OSA5LjIxIDggMTYuMzk4IDQuNTMxLTcuMTg4IDgtMTIuMiA4LTE2LjM5OCAwLTQuMTk5LTMuODAxLTcuNjAyLTgtNy42MDJ6bTAgMTFjLTEuNjU3IDAtMy0xLjM0My0zLTNzMS4zNDMtMyAzLTMgMyAxLjM0MyAzIDMtMS4zNDMgMy0zIDN6Ii8+PC9zdmc+"},null,-1),xt={key:0,class:"positionrelative margin-top-xs margin-bottom-xs alert alert--warning alert--is-visible padding-sm text-sm radius-md js-alert",role:"alert"},ft={class:"flex items-center justify-between"},bt={class:"flex items-center"},yt={class:"text-base font-bold p29"},wt=t("svg",{class:"jj999",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[t("path",{d:"M14 13h-4v-4h4v4zm6-4h-4v4h4v-4zm-12 6h-4v4h4v-4zm6 0h-4v4h4v-4zm-6-6h-4v4h4v-4zm16-8v22h-24v-22h24zm-7.471 19.96c1.616-.863 4.35-3.572 5.471-5.058v-.018c-.962.658-2.978 1.207-4.479.856.165 1.087-.137 3.356-.992 4.22zm-14.529.04h11.589c3.328 0 2.331-5.903 2.331-5.903 2.14.529 6.08.278 6.08-1.942v-6.155h-20v14z"})],-1),Mt=["onClick"],Dt=t("a",{href:"/users/register"},"註冊",-1),zt=t("div",{class:"margin-top-xs alert alert--success alert--is-visible padding-sm text-sm radius-md js-alert",role:"alert"},[t("div",{class:"flex items-center justify-between"},[t("div",{class:"flex items-center"},[t("p",{class:"text-base"},[t("strong",{class:"font-bold"},"預訂提示:"),i("該酒店暫時不能網上預約。你需要致電去進行預訂。")])])])],-1),It=t("fieldset",{class:"margin-bottom-xs margin-top-md"},null,-1),Tt={class:"text-right padding-bottom-sm border-bottom"},kt=["onClick"],Ct=t("p",{class:"margin-top-sm text-sm"},"此場地資料來源自於網絡,並未進行認證。資料僅供參考之用,我們不保證內容的準確性或完整性,且不對依賴該等資訊所進行的行為承擔責任。",-1),jt=t("p",{class:"margin-top-sm text-sm"},[i("當你進行查詢,即表示你同意 "),t("a",{target:"_blank",href:"/terms",class:"color-contrast-high"},"使用條款"),i(" 及 "),t("a",{target:"_blank",href:"/privacypolicy",class:"color-contrast-high"},"隱私權政策"),i("。")],-1),Nt={key:3,class:"padding-md col-8@md"},St={class:"mt0 margin-bottom-md text-2xl"},At=["href"],Lt={class:"text-lg margin-bottom-sm"},Bt=["href"],Vt=t("p",{class:"text-lg"},"謝謝!",-1),Et={class:"padding-top-xl padding-bottom-xl"},Ot={class:"container max-width-lg"},Pt={class:"grid gap-md@md margin-bottom-lg"},Rt=t("div",{class:"col-12@md"},[t("div",{class:"text-center margin-bottom-xl"},[t("h3",{class:"text-2xl"},"其他熱門酒店")])],-1),Wt={__name:"normal",async setup(Ft){let p,w;O({titleTemplate:"立即預訂 - Common Room時鐘酒店平台"});const j=P().query.property,v=Z(),M=l(!1),x=l(!0),D=l(!1);R();const _=F();let d=l(!1);const N=async()=>{x.value=!1,M.value=!0},m=l(""),h=l(""),S=J;async function A(){if(m.value&&h.value){const{data:e,error:s}=await y(v.public.apiBase+"/auth/login",{method:"post",body:{email:m,password:h}},"$ayt17bMSeE");e.value&&(S(e.value),alert("你已經成功登入!"),window.location.reload()),s.value&&(
1alert("錯誤! 電郵或密碼不正確!"),console.log(s))}else alert("錯誤! 請輸入你的電郵及密碼!")}let z=new Date,L=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];for(let e=0;e<=13;e++){let s=new Date(z);s.setDate(z.getDate()+e),String(s.getDate()).padStart(2,"0"),String(s.getMonth()+1).padStart(2,"0"),s.getFullYear(),L[s.getDay()]}for(let e=0;e<24;e++)for(let s=0;s<60;s+=15){let n=e<12||e===24?e:e-12;n=n===0?12:n,String(n).padStart(2,"0"),String(s).padStart(2,"0")}l(_==null?void 0:_.user.email),l("default"),l("default");const{data:B}=([p,w]=H(()=>y(v.public.apiBase+"/properties/"+j,"$Kxz1yqVphP")),p=await p,w(),p),a=B.value[0];Q(Y(a)),(a.hide||a.closed)&&G("/");const V=async()=>{if(!d.value){d.value=!0;const{data:e,error:s}=await y(v.public.apiBase+"/bookings",{method:"post",body:{email:"-",property:a.id,propertyname:a.title}},"$ZeooNVwD4E");e&&(window.scrollTo(0,0),x.value=!1,D.value=!0),s.value&&(alert("錯誤!"),console.log(s))}d.value=!1};return(e,s)=>{var I;const n=E;return c(),r("div",null,[t("div",$,[t("div",q,[W,t("div",K,[t("div",X,[t("figure",tt,[t("img",{class:"height-100% width-100% object-cover",src:o(a).pictures[0]},null,8,st)]),o(M)?(c(),r("div",et,[t("form",null,[ot,at,t("div",it,[lt,T(t("input",{class:"form-control width-100%",type:"email","onUpdate:modelValue":s[0]||(s[0]=f=>C(m)?m.value=f:null),name:"input-email",id:"input-email",placeholder:"[email protected]"},null,512),[[k,o(m)]])]),t("div",nt,[rt,T(t("input",{"onUpdate:modelValue":s[1]||(s[1]=f=>C(h)?h.value=f:null),class:"form-control width-100%",type:"password",name:"input-password",id:"input-password"},null,512),[[k,o(h)]])]),t("div",ct,[t("button",{onClick:b(A,["prevent"]),class:"btn btn--primary text-md width-100%"},"登入",8,dt)])])])):g("",!0),o(d)?(c(),r("div",mt,gt)):g("",!0),o(x)&&!o(d)?(c(),r("div",ut,[t("form",null,[t("h2",pt,u(o(a).title),1),t("p",_t,[vt,i(" "+u(o(a).address),1)]),(I=o(_))!=null&&I.user.email?g("",!0):(c(),r("div",xt,[t("div",ft,[t("div",bt,[t("p",yt,[wt,i(" 登入後預約,可更好管理你的預約紀錄!立即 "),t("a",{href:"",onClick:b(N,["prevent"])},"登入",8,Mt),i(" 或 "),Dt])])])])),zt,It,t("div",Tt,[t("button",{onClick:b(V,["prevent"]),class:"btn btn--primary width-100%"},"查看預訂電話",8,kt)]),Ct,jt])])):g("",!0),o(D)?(c(),r("div",Nt,[t("h2",St,[i("請致電"),t("a",{href:"tel: "+o(a).contactno},u(o(a).contactno),9,At),i("去預訂")]),t("p",Lt,[t("strong",null,u(o(a).title),1),i("的聯絡電話為 : "),t("strong",null,[t("a",{href:"tel: "+o(a).contactno},u(o(a).contactno),9,Bt)]),i("。你可以立即致電這個電話去進行預訂!")]),Vt])):g("",!0)])])])]),t("section",Et,[t("div",Ot,[t("div",Pt,[Rt,U(n)])])])])}}};export{Wt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.