PageSourceSearch

https://www.joinchill.com.tw/_nuxt/_prodId_.iOEQnjaw.js

js joinchill.com.tw collected 2026-10-07 21:54:30 UTC 8,405 bytes, 1 lines download raw bytes

1import{b as K,c as O,E as X,_ as Y,a as oo}from"./InfoList.ltf8xZ3s.js";import{_ as to}from"./nuxt-link.HqqB88gd.js";import{E as eo,a as so}from"./el-collapse.exugB-vw.js";import{d as no,s as G,e as ao,E as W,a as J,b as io}from"./entry.hmncxJ-8.js";import{u as ro}from"./useToolHelper.xxZ4ISKh.js";import{u as co}from"./useGtag.ar74v53o.js";import{u as lo}from"./cart.fZVTrwb5.js";import{j as H,a as F,I as n,J as r,L as o,S as I,T as N,W as l,a1 as B,ah as z,u as _,$ as q,x as _o,Z as R,V as po,ae as uo,af as mo,an as M,ag as fo}from"./swiper-vue.-zqls-4w.js";import{_ as Z}from"./_plugin-vue_export-helper.x3n3nnut.js";import{u as vo}from"./fetch.X1d0tcdk.js";import{u as ho}from"./privatestore.jYxaDPPa.js";import"./event.vOXeFsAk.js";import"./error.tBjRQryL.js";import"./castArray.JlbFdRkW.js";const p=f=>(uo("data-v-f8d9ac38"),f=f(),mo(),f),Io={key:0,class:"store-with-solution"},yo={class:"flex flex-col"},bo={class:"store-logo"},go=["src"],xo={class:"store-info"},wo={class:"flex justify-between items-start"},ko={class:"store-info-title"},Vo={class:"store-info-city flex items-center"},So=p(()=>o("img",{class:"location-icon",src:K},null,-1)),Co={class:"city-name"},$o={class:"store-info-description"},Qo=p(()=>o("div",{class:"redirect-icon"},null,-1)),Eo={class:"product-descriptions"},To={class:"description"},No={class:"ticket-solution-info"},Bo={class:"header-bar"},Ro={class:"price-wrap"},Uo={class:"sell-price"},Po=p(()=>o("span",{class:"sell-price-suffix"},"起",-1)),jo={class:"original-price"},zo=p(()=>o("div",{class:"share-link-bar flex items-center"},null,-1)),Ao={class:"content-wrap"},Do={key:0,class:"min-[426px]:flex items-center min-[426px]:mb-4"},Lo=M('<div class="feature-item" data-v-f8d9ac38><div class="icon-img mail-icon" data-v-f8d9ac38></div><div class="feature-item-text" data-v-f8d9ac38>購票後寄出</div></div><div class="feature-item min-[426px]:ml-3" data-v-f8d9ac38><div class="icon-img ticket-icon" data-v-f8d9ac38></div><div class="feature-item-text" data-v-f8d9ac38>實體票券|請攜帶票券前往消費</div></div>',2),Wo=[Lo],Fo={key:1,class:"min-[426px]:flex items-center min-[426px]:mb-4"},qo=M('<div class="feature-item" data-v-f8d9ac38><div class="icon-img used-immediately-icon" data-v-f8d9ac38></div><div class="feature-item-text" data-v-f8d9ac38>可立即使用</div></div><div class="feature-item min-[426px]:ml-3" data-v-f8d9ac38><div class="icon-img phone-icon" data-v-f8d9ac38></div><div class="feature-item-text" data-v-f8d9ac38>電子票券|現場出示QR code</div></div>',2),Go=[qo],Jo={class:"soluctions"},Ho=p(()=>o("div",{id:"soluction-targe",class:"title"},"方案說明",-1)),Mo={class:"selector"},Zo={class:"flex flex-col w-full"},Ko={class:"header-bar"},Oo={class:"soluction-name"},Xo={key:0,class:"radio-icon selected-radio"},Yo={key:1,class:"radio-icon unselected-radio"},ot={class:"footer-bar"},tt={class:"intro-bar"},et={class:"intro"},st={class:"counter-bar"},nt=p(()=>o("hr",null,null,-1)),at={class:"flex justify-between items-center pt-8 pb-8"},it=p(()=>o("div",{class:"selector-title"},"選擇數量",-1)),dt={key:0,class:"selector-title"},rt=p(()=>o("hr",null,null,-1)),ct={class:"footer-bar"},lt=p(()=>o("span",{class:"text"},"立即購買",-1)),_t=p(()=>o("div",{class:"cart-icon"},null,-1)),pt=[lt,_t],ut=p(()=>o("hr",{class:"mt-10 mb-12"},null,-1)),mt=H({__name:"StoreWithSolution",props:{prodInfo:{}},setup(f){var C,$;const v=lo(),V=no(),m=J(),{gtag:S}=co(),{purchaseProduct:U}=G(v),s=f,{FormatCurrency:u}=ro();let d=F("");const P=t=>{var a;(a=s.prodInfo)==null||a.productplanlist.forEach(h=>{h.buyQty=0})};s.prodInfo!=null&&((C=s.prodInfo)==null?void 0:C.productplanlist.length)>0&&(d.value=($=s.prodInfo)==null?void 0:$.productplanlist[0].planid,P(d.value));const A=ao(),D=()=>{var h,y,b,Q,E,g,x,w,k,i,e,c;if(!V.CheckLogined())return;if(d.value==""){W({message:"請選擇方案",type:"warning"});return}const t=(h=s.prodInfo)==null?void 0:h.productplanlist.find(T=>T.planid==d.value);if((t==null?void 0:t.buyQty)==0){W({message:"請選擇數量",type:"warning"});return}U.value={orderId:"",storeId:((y=s.prodInfo)==null?void 0:y.storeid)??"",productId:((b=s.prodInfo)==null?void 0:b.productid)??"",planId:d.value,buyQty:(t==null?void 0:t.buyQty)??0};var a=F(0);a.value=(((Q=s.prodInfo)==null?void 0:Q.sellingprice)??0)*((t==null?void 0:t.buyQty)??0),S("event","add_to_cart",{send_to:m.public.ga_code,currency:"TWD",value:a.value,items:[{item_id:(E=s.prodInfo)==null?void 0:E.productid,item_name:(g=s.prodInfo)==null?void 0:g.productname,item_brand:"揪巧",item_category:(x=s.prodInfo)==null?void 0:x.productclassname,price:(w=s.prodInfo)==null?void 0:w.sellingprice,quantity:t==null?void 0:t.buyQty}]}),S("event","view_cart",{send_to:m.public.ga_code,currency:"TWD",value:a.value,items:[{item_id:(k=s.prodInfo)==null?void 0:k.productid,item_name:(i=s.prodInfo)==null?void 0:i.productname,item_brand:"揪巧",item_category:(e=s.prodInfo)==null?void 0:e.productclassname,price:(c=s.prodInfo)==null?void 0:c.sellingprice,quantity:t==null?void 0:t.buyQty}]}),A.push("/privatestore/order")},j=()=>{var t=document.getElementById("soluction-targe");t&&window.scrollTo({top:t.offsetTop-130,behavior:"smooth"})};return(t,a)=>{var g,x,w,k;const h=to,y=O,b=X,Q=so,E=eo;return n(),r(B,null,[t.prodInfo?(n(),r("div",Io,[o("div",yo,[I(h,{to:`/privatestore/store/${(g=t.prodInfo)==null?void 0:g.storeid}`,class:"store-wrap"},{default:N(()=>{var i,e,c,T,L;return[o("div",bo,[o("img",{src:(i=t.prodInfo)==null?void 0:i.storelogo},null,8,go)]),o("div",xo,[o("div",wo,[o("h3",ko,l((e=t.prodInfo)==null?void 0:e.storename),1),o("div",Vo,[So,o("div",Co,l((c=t.prodInfo)==null?void 0:c.storecity)+"-"+l((T=t.prodInfo)==null?void 0:T.storetown),1)])]),o("div",$o,l((L=t.prodInfo)==null?void 0:L.storeintro),1),Qo])]}),_:1},8,["to"]),o("ul",Eo,[(n(!0),r(B,null,z((x=t.prodInfo)==null?void 0:x.productintro,i=>(n(),r("li",To,l(i.text),1))),256))])]),o("div",No,[o("div",Bo,[o("div",Ro,[o("span",Uo,"$"+l(_(u)(((w=t.prodInfo)==null?void 0:w.sellingprice)??0)),1),Po,o("del",jo,"$"+l(_(u)(((k=t.prodInfo)==null?void 0:k.unitprice)??0)),1)]),zo]),o("div",Ao,[t.prodInfo.producttype==6?(n(),r("div",Do,Wo)):(n(),r("div",Fo,Go)),o("div",{onClick:j,class:"redirect-solution-btn"}
1,"查看方案")])])])):q("",!0),o("div",Jo,[Ho,o("div",Mo,[I(E,{modelValue:_(d),"onUpdate:modelValue":a[1]||(a[1]=i=>_o(d)?d.value=i:d=i),onChange:a[2]||(a[2]=i=>P(_(d))),accordion:""},{default:N(()=>{var i;return[(n(!0),r(B,null,z((i=t.prodInfo)==null?void 0:i.productplanlist,e=>(n(),R(Q,{key:e.planid,class:"selector-item",name:e.planid},{title:N(()=>[o("div",Zo,[o("div",Ko,[o("div",Oo,l(e.planname),1),_(d)==e.planid?(n(),r("div",Xo)):(n(),r("div",Yo))]),o("div",ot,[_(d)!=e.planid?(n(),R(y,{key:0,item:e},null,8,["item"])):q("",!0)])])]),default:N(()=>[o("ul",tt,[(n(!0),r(B,null,z(e.planintro,c=>(n(),r("li",et,l(c.text),1))),256))]),o("div",null,[o("div",st,[nt,o("div",at,[it,e.leftnum==0?(n(),r("div",dt,"暫無庫存")):e.leftnum==-1?(n(),R(b,{key:1,modelValue:e.buyQty,"onUpdate:modelValue":c=>e.buyQty=c,min:1,size:"large"},null,8,["modelValue","onUpdate:modelValue"])):(n(),R(b,{key:2,modelValue:e.buyQty,"onUpdate:modelValue":c=>e.buyQty=c,max:e.leftnum,min:1,size:"large"},null,8,["modelValue","onUpdate:modelValue","max"]))]),rt]),o("div",ct,[I(y,{item:e},null,8,["item"]),o("div",{onClick:a[0]||(a[0]=c=>D()),class:po(["buy-btn flex justify-center items-center",`${e.leftnum==0?"buy-btn-disabled":""}`])},pt,2)])])]),_:2},1032,["name"]))),128))]}),_:1},8,["modelValue"])]),ut])],64)}}}),ft=Z(mt,[["__scopeId","data-v-f8d9ac38"]]),vt={id:"main-wrap"},ht={class:"carousel-title"},It={class:"store-name"},yt={class:"prod-name"},bt=H({__name:"[prodId]",async setup(f){let v,V;const m=io(),S=J(),U=ho(),{prodId:s}=G(U);s.value=Array.isArray(m.params.prodId)?m.params.prodId[0]:m.params.prodId;const{data:u,pending:d,error:P}=([v,V]=fo(()=>vo(`${S.public.baseUrl}/v1/Joinchill/GetProductDetail`,{params:{prodId:m.params.prodId}},"$cVz8vEtIwb")),v=await v,V(),v);return(A,D)=>{var t,a;const j=Y,C=ft,$=oo;return n(),r("div",vt,[o("div",ht,[o("div",It,l((t=_(u))==null?void 0:t.productclassname),1),o("div",yt,l((a=_(u))==null?void 0:a.productname),1)]),I(j,{prodInfo:_(u)},null,8,["prodInfo"]),I(C,{prodInfo:_(u)},null,8,["prodInfo"]),I($,{prodInfo:_(u)},null,8,["prodInfo"])])}}}),Ut=Z(bt,[["__scopeId","data-v-e5caf828"]]);export{Ut 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.