| 1 |
- var Ze=Object.defineProperty,Qe=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var Ve=Object.getOwnPropertySymbols;var et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable;var Pe=(v,w,r)=>w in v?Ze(v,w,{enumerable:!0,configurable:!0,writable:!0,value:r}):v[w]=r,be=(v,w)=>{for(var r in w||(w={}))et.call(w,r)&&Pe(v,r,w[r]);if(Ve)for(var r of Ve(w))tt.call(w,r)&&Pe(v,r,w[r]);return v},_e=(v,w)=>Qe(v,Xe(w));var te=(v,w,r)=>new Promise((m,h)=>{var g=y=>{try{$(r.next(y))}catch(o){h(o)}},N=y=>{try{$(r.throw(y))}catch(o){h(o)}},$=y=>y.done?m(y.value):Promise.resolve(y.value).then(g,N);$((r=r.apply(v,w)).next())});import{b as at,m as je,c as z,aq as Le,a as ve,ac as rt,aa as st,bb as lt,d as $e,r as k,e as Ne,w as re,bc as we,an as E,f as C,o as _,g as t,h as e,J as se,j as de,a7 as ye,a4 as ke,_ as Se,a8 as nt,n as q,b6 as We,q as Be,W as Ee,F as n,l as He,P as De,L as x,M as b,ai as Ue,B as G,D as R,G as H,H as U,I as J,R as Z,s as it,bd as ot,u as ut,v as ct,z as pt,Y as dt,U as ft,E as ce,Q as pe,K as Me,b9 as mt,ba as xt,be as ht,bf as Ae,Z as Oe,aU as gt,ay as bt}from"./index-C2C--_0G.js";import{_ as _t}from"./wd-navbar.DDwpvwje.js";import{_ as vt}from"./wd-skeleton.CwefQvse.js";import{_ as wt}from"./wd-swiper.BKvsOzen.js";import{_ as yt}from"./z-paging.CAp4nDA0.js";import{_ as kt}from"./wd-action-sheet.GONoA57N.js";import{u as Nt}from"./useZPaging.DVknNCkP.js";import{g as St,h as $t}from"./mine.Blm2TwBc.js";import{i as Dt}from"./order.DLzFa84U.js";import{c as It,b as Ct,p as Tt}from"./product.ByBr3O5S.js";import{_ as Ft}from"./wd-img.CsYflkzc.js";const Vt=_e(be({},at),{modelValue:rt(st),min:ve(1),max:ve(Number.MAX_SAFE_INTEGER),step:ve(1),stepStrictly:z(!1),precision:Le(0),disabled:z(!1),disableInput:z(!1),disableMinus:z(!1),disablePlus:z(!1),withoutInput:z(!1),inputWidth:Le(36),allowNull:z(!1),placeholder:je(""),adjustPosition:z(!0),beforeChange:Function,longPress:z(!1),immediateChange:z(!0),updateOnInit:z(!0),inputType:je("digit")});function Pt(){}function ze(v,{args:w=[],done:r,canceled:m,error:h}){if(v){const g=v.apply(null,w);lt(g)?g.then(N=>{N?r():m&&m()}).catch(h||Pt):g?r():m&&m()}else r()}const jt={name:"wd-input-number",options:{virtualHost:!0,addGlobalClass:!0,styleIsolation:"shared"}},Lt=$e(_e(be({},jt),{props:Vt,emits:["change","focus","blur","update:modelValue"],setup(v,{emit:w}){const r=v,m=w,h=k(y());let g=null;const N=Ne(()=>{const s=M(h.value);return r.disabled||s<=r.min||K(s,-r.step)<r.min}),$=Ne(()=>{const s=M(h.value);return r.disabled||s>=r.max||K(s,r.step)>r.max});re(()=>r.modelValue,s=>{h.value=j(s)}),re([()=>r.max,()=>r.min,()=>r.precision],()=>{const s=M(h.value);h.value=j(s)});function y(){if(!r.updateOnInit)return A(r.modelValue);const s=j(r.modelValue);return we(String(s),String(r.modelValue))||m("update:modelValue",s),s}function o(s){if(!E(s))return 0;const a=s.toString(),c=a.indexOf(".");return c===-1?0:a.length-c-1}function S(s){const a=Number(r.precision);return Math.round(s*Math.pow(10,a))/Math.pow(10,a)}function M(s){if(r.allowNull&&(!E(s)||s===""))return NaN;if(!E(s)||s==="")return r.min;let a=String(s);if(a.endsWith(".")&&(a=a.slice(0,-1)),a.startsWith(".")&&(a="0"+a),a.startsWith("-.")&&(a="-0"+a.substring(1)),a==="-"||a==="")return r.min;let c=Number(a);return isNaN(c)&&(c=r.min),T(c)}function T(s){let a=s;if(r.stepStrictly){const c=o(r.step),P=Math.pow(10,c);a=Math.round(a/r.step)*P*r.step/P}return r.stepStrictly?a=ae(a,r.min,r.max):a=Math.min(Math.max(a,r.min),r.max),E(r.precision)&&(a=S(a)),a}function ae(s,a,c){if(s>=a&&s<=c)return s;const P=o(r.step),d=Math.pow(10,P);if(s<a){const X=Math.ceil(a*d/(r.step*d)),Y=S(X*r.step*d/d);if(Y>c){const ie=Math.floor(c*d/(r.step*d));return S(ie*r.step*d/d)}return Y}if(s>c){const X=Math.floor(c*d/(r.step*d)),Y=S(X*r.step*d/d);if(Y<a){const ie=Math.ceil(a*d/(r.step*d));return S(ie*r.step*d/d)}return Y}return s}function j(s){if(r.allowNull&&(!E(s)||s===""))return"";const a=M(s),c=Number(r.precision);return E(r.precision)?c===0?Number(a.toFixed(0)):a.toFixed(c):a}function A(s){if(r.allowNull&&(!E(s)||s===""))return"";if(!E(s)||s==="")return r.min;let a=Number(s);if(isNaN(a))return r.min;const c=Number(r.precision);return E(r.precision)?c===0?Number(a.toFixed(0)):a.toFixed(c):a}function F(s){if(!s)return!1;const a=String(s);return a.endsWith(".")||a.startsWith(".")||a.startsWith("-.")||a==="-"||Number(r.precision)>0&&a.indexOf(".")===-1}function L(s){if(!s)return"";let a=s.replace(/[^\d.-]/g,"");const c=a.startsWith("-");if(a=a.replace(/-/g,""),c&&(a="-"+a),Number(r.precision)>0){const d=a.split(".");d.length>2&&(a=d[0]+"."+d.slice(1).join(""))}else a=a.split(".")[0];return a.startsWith(".")?"0"+a:a.startsWith("-.")?"-0"+a.substring(1):a}function O(s){if(r.allowNull&&(!E(s)||s==="")){if(we("",String(r.modelValue))){h.value="";return}const d=()=>{h.value="",m("update:modelValue",""),m("change",{value:""})};ze(r.beforeChange,{args:[""],done:d});return}const a=M(s),c=j(s);if(we(String(a),String(r.modelValue))){h.value=c;return}const P=()=>{h.value=c,m("update:modelValue",a),m("change",{value:a})};ze(r.beforeChange,{args:[a],done:P})}function K(s,a){const c=Number(s);if(isNaN(c))return T(r.min);const P=Math.max(o(c),o(a)),d=Math.pow(10,P),X=(c*d+a*d)/d;return T(X)}function D(s){const a=s==="add"?r.step:-r.step;if(a<0&&(N.value||r.disableMinus)||a>0&&($.value||r.disablePlus))return;const c=K(h.value,a);O(c)}function W(s){const a=s.detail.value||"";h.value=a,We(()=>{if(a===""){h.value="",r.immediateChange&&r.allowNull&&O("");return}const c=L(a);if(Number(r.precision)>0&&F(c)){h.value=c;return}h.value=c,r.immediateChange&&O(c)})}function fe(s){const a=s.detail.value||"";O(a),m("blur",{value:a})}function me(s){m("focus",s.detail)}function le(s){ne(),g=setTimeout(()=>{D(s),le(s)},250)}function Q(s){r.longPress&&(ne(),g=setTimeout(()=>{D(s),le(s)},600))}function oe(){r.longPress&&ne()}function ne(){g&&(clearTimeout(g),g=null)}return(s,a)=>{const c=de,P=nt;return _(),C(c,{class:ke(`wd-input-number ${s.customClass} ${s.disabled?"is-disabled":""} ${s.withoutInput?"is-without-input":""}`),style:q(s.customStyle)},{default:t(()=>[e(c,{class:ke(`wd-input-number__action ${N.value||s.disableMinus?"is-disabled":""}`),onClick:a[0]||(a[0]=d=>D("sub")),onTouchstart:a[1]||(a[1]=d=>Q("sub")),onTouchend:ye(oe,["stop"])},{default:t(()=>[e(Se,{name:"decrease","custom-class":"wd-input-number__action-icon"})]),_:1},8,["class"]),s.withoutInput?se("",!0):(_(),C(c,{key:0,class:"wd-input-number__inner",onClick:a[2]||(a[2]=ye(()=>{},["stop"]))},{default:t(()=>[e(P,{class:"wd-input-number__input",style:q(`${s.inputWidth?"width: "+s.inputWidth:""}`),type:s.inputType,"input-mode":s.precision?"decimal":"numeric",disabled:s.disabled||s.disableInput,value:String(h.value),placeholder:s.placeholder,"adjust-position":s.adjustPosition,onInput:W,onFocus:me,onBlur:fe},null,8,["style","type","input-mode","disabled","value","placeholder","adjust-position"]),e(c,{class:"wd-input-number__input-border"})]),_:1})),e(c,{class:ke(`wd-input-number__action ${$.value||s.disablePlus?"is-disabled":""}`),onClick:a[3]||(a[3]=d=>D("add")),onTouchstart:a[4]||(a[4]=d=>Q("add")),onTouchend:ye(oe,["stop"])},{default:t(()=>[e(Se,{name:"add","custom-class":"wd-input-number__action-icon"})]),_:1},8,["class"])]),_:1},8,["class","style"])}}})),Mt=Be(Lt,[["__scopeId","data-v-1b2eacc1"]]),At="/static/images/buy-flow.png",Ot="/static/icons/go-home.png",zt="/static/icons/favorite-active.png",Wt="/static/icons/favorite.png",Bt=$e({__name:"CustomTooltip",props:{visible:{type:Boolean,default:!1},autoHide:{type:Boolean,default:!0},autoHideDelay:{default:1e4},icon:{default:"/static/icons/gift.png"},iconSize:{},width:{default:"600rpx"}},emits:["update:visible","hide"],setup(v,{expose:w,emit:r}){const m=v,h=r,g=k(m.visible);let N=null;re(()=>m.visible,T=>{g.value=T,T&&m.autoHide?$():y()}),re(g,T=>{h("update:visible",T),T||(h("hide"),y())});function $(){y(),m.autoHide&&m.autoHideDelay>0&&(N=setTimeout(()=>{S()},m.autoHideDelay))}function y(){N&&(clearTimeout(N),N=null)}function o(){g.value=!0,m.autoHide&&$()}function S(){g.value=!1}function M(){g.value?S():o()}return Ee(()=>{y()}),w({show:o,hide:S,toggle:M}),(T,ae)=>{const j=He,A=De,F=de;return n(g)?(_(),C(F,{key:0,class:"absolute bottom-full left-1/2 mb-20rpx transform rounded-full bg-black bg-opacity-80 px-20rpx py-12rpx text-24rpx text-white -translate-x-1/2",style:q({width:T.width})},{default:t(()=>[e(F,{class:"flex items-end justify-center"},{default:t(()=>[T.icon?(_(),C(j,{key:0,src:T.icon,class:"mr-12rpx h-35rpx w-32rpx flex-shrink-0"},null,8,["src"])):se("",!0),e(F,{class:"text-center"},{default:t(()=>[e(A,null,{default:t(()=>[x(b(T.$t("productDetail.fullRefundText")),1)]),_:1})]),_:1})]),_:1}),e(F,{class:"absolute left-445rpx top-full h-0 w-0 -translate-x-1/2",style:{"border-left":"16rpx solid transparent","border-right":"16rpx solid transparent","border-top":"16rpx solid rgba(0, 0, 0, 0.8)"}})]),_:1},8,["style"])):se("",!0)}}}),Et={__name:"NotificationCarousel",props:{notifications:{type:Array,default:()=>[]},interval:{type:Number,default:3e3},top:{type:String,default:"0px"}},setup(v,{expose:w}){const r=v,m=k(0),h=k(!1);let g=null;function N(){return(m.value+1)%r.notifications.length}function $(){r.notifications.length<=1||(h.value=!0,m.value=N(),setTimeout(()=>{h.value=!1},500))}function y(){r.notifications.length<=1||(g=setInterval($,r.interval))}function o(){g&&(clearInterval(g),g=null)}function S(){o(),m.value=0,h.value=!1,We(()=>{y()})}return re(()=>r.notifications,S,{deep:!0}),re(()=>r.interval,S),Ue(()=>{y()}),Ee(()=>{o()}),w({start:y,stop:o,restart:S}),(M,T)=>{const ae=G(R("wd-img"),Ft),j=De,A=de;return v.notifications.length>0?(_(),C(A,{key:0,class:"absolute left-24rpx h-56rpx w-70% overflow-hidden rounded-full",style:q({top:v.top})},{default:t(()=>[(_(!0),H(U,null,J(v.notifications,(F,L)=>(_(),C(A,{key:`${F.id}-${L}`,class:"absolute inset-0 flex items-center justify-start rounded-full bg-#000000/60 py-8rpx pl-8rpx pr-14rpx transition-all duration-500 ease-out",style:q({opacity:L===n(m)?1:0,transform:L===n(m)?"translateY(0)":n(h)&&L===(n(m)-1+v.notifications.length)%v.notifications.length?"translateY(-100%)":"translateY(100%)",zIndex:L===n(m)?2:1})},{default:t(()=>[e(ae,{width:"40rpx",round:"",height:"40rpx",src:F.headPic},null,8,["src"]),e(j,{class:"ml-12rpx flex-1 truncate text-24rpx text-white"},{default:t(()=>[x(b(n(Z)("productDetail.notification.message",{name:F.name,action:F.kId===0?n(Z)("productDetail.notification.opened"):n(Z)("productDetail.notification.joined"),time:F.time})),1)]),_:2},1024)]),_:2},1032,["style"]))),128))]),_:1},8,["style"])):se("",!0)}}},Ht=300,Ut=$e({name:"ProductDetail",__name:"productDetail",setup(v){const r=it().safeAreaInsets,m=k(null);Nt(m);function h(){ht({url:"/pages/index/index"})}const g=k("transparent"),N=k(!1);ot(i=>{i.scrollTop>Ht?g.value="#ffffff":g.value="transparent"});const $=k(""),y=k(!0),o=k({sliderImage:"",flatPattern:""}),S=k([]),M=k([{id:1,name:"Aamir Khan",time:"10s"},{id:2,name:"John Smith",time:"30s"},{id:3,name:"Maria Garcia",time:"1m"}]);function T(){return te(this,null,function*(){const i=yield It($.value);M.value=i.data})}function ae(){N.value&&(N.value=!1)}Ue(()=>{N.value=!0});const j=k(0),A=k("open"),F=k(""),L=k(""),O=k(!1);function K(i,u,p){A.value=i,i==="join"&&u&&p?(F.value=u,L.value=p):(F.value="",L.value=""),O.value=!0}const D=k({productNum:1,selectedSpecs:{}}),W=k({}),fe=Ne(()=>{if(!D.value.selectedSpecs||Object.keys(D.value.selectedSpecs).length===0)return"";const i=[];return o.value.attr&&o.value.attr.forEach(u=>{const p=D.value.selectedSpecs[u.attrName];p&&i.push(`${u.attrName}: ${p}`)}),i.length>0?` ${i.join(",")}`:""});function me(i,u){D.value.selectedSpecs[i]=u;const p={};o.value.attr&&o.value.attr.forEach(V=>{D.value.selectedSpecs[V.attrName]&&(p[V.attrName]=D.value.selectedSpecs[V.attrName])}),JSON.stringify(p);const l=o.value.attr?o.value.attr.length:0;Object.keys(p).length===l&&l>0&&(W.value=le(p),W.value)}function le(i){return!o.value.attrValue||!Array.isArray(o.value.attrValue)?null:o.value.attrValue.find(u=>{const p={};if(u.suk){const V=u.suk.split(",");o.value.attr&&V.length===o.value.attr.length&&o.value.attr.forEach((xe,I)=>{p[xe.attrName]=V[I]})}const l=Object.keys(i),ue=Object.keys(p);return l.length!==ue.length?!1:l.every(V=>i[V]===p[V])})}function Q(){return te(this,null,function*(){const i=yield Ct({id:$.value});o.value=i.data,ne(),m.value.complete()})}function oe(){return te(this,null,function*(){const i=yield Tt({cid:o.value.cid});if(i.code==="200"){const u=[];for(let p=0;p<i.data.list.length;p+=3){const l=i.data.list.slice(p,p+3);u.push(l)}S.value=u}})}function ne(){if(o.value.attr&&o.value.attr.length>0){const i={};o.value.attr.forEach(p=>{p.attrImgValues&&p.attrImgValues.length>0&&(i[p.attrName]=p.attrImgValues[0].name)}),D.value.selectedSpecs=i;const u={};o.value.attr.forEach(p=>{D.value.selectedSpecs[p.attrName]&&(u[p.attrName]=D.value.selectedSpecs[p.attrName])}),W.value=le(u),W.value}}function s(){return te(this,null,function*(){if(Ae())try{o.value.favoriteFlag?(yield St({id:o.value.favoriteId})).code==="200"&&(yield Q(),Oe.success(Z("productDetail.unfavoriteSuccess"))):(yield $t({productIdList:[$.value]})).code==="200"&&(yield Q(),Oe.success(Z("productDetail.favoriteSuccess")))}catch(i){}})}const a=k(!1);function c(){return te(this,null,function*(){if(Ae()){a.value=!0;try{const i={orderDetails:{attrValueId:W.value.id,productId:$.value,cid:o.value.cid,productNum:D.value.productNum},preOrderType:"buyNow"},u=yield Dt(i);u.code==="200"&&(O.value=!1,Me({url:"/pages/productDetail/checkOut",params:{preOrderId:u.data,joinOrderId:L.value,pinkId:F.value,cid:o.value.cid,groupType:A.value}}))}finally{a.value=!1}}})}const P=k([{name:"copyLink",label:"Copy Link",icon:"/static/icons/copy-link.png"},{name:"facebook",label:"Facebook",icon:"/static/icons/facebook.png"},{name:"whatsapp",label:"Whatsapp",icon:"/static/icons/whatsapp.png"},{name:"instagram",label:"Instagram",icon:"/static/icons/instagram.png"},{name:"twitter",label:"Twitter",icon:"/static/icons/twitter.png"}]),d=k(!1),X="https://www.bandhubuy.com/#";function Y(){const i=`${X}/pages/productDetail/productDetail?productId=${$.value}`,u=o.value.storeName,p=Z("share.productShareText",{url:i,productName:u});return{url:i,text:p}}function ie(){const{text:i}=Y();bt({data:i,success:()=>{}})}function Ge(i){if(i==="copyLink"){ie();return}const u=Y();gt(i,u),d.value=!1}return ut(i=>{$.value=i.productId||""}),ct(()=>te(this,null,function*(){try{y.value=!0,T(),yield Q(),yield oe()}finally{y.value=!1}})),(i,u)=>{const p=He,l=de,ue=G(R("wd-navbar"),_t),V=G(R("wd-skeleton"),vt),xe=G(R("wd-swiper"),wt),I=De,Ie=G(R("wd-icon"),Se),Ce=G(R("wd-button"),dt),Re=xt,qe=mt,Ke=G(R("z-paging"),yt),Ye=G(R("wd-input-number"),Mt),Te=G(R("wd-action-sheet"),kt),Je=pt("layout-default-uni");return _(),C(Je,null,{default:t(()=>[e(Ke,{ref_key:"paging",ref:m,"use-page-scroll":!n(O)&&!n(d),"refresher-only":"",onOnRefresh:Q,onClick:ae},{bottom:t(()=>[e(l,{class:"flex bg-white/60 px-28rpx py-30rpx backdrop-blur-20"},{default:t(()=>[e(l,{class:"mr-30rpx flex flex-1 items-center justify-around gap-20rpx"},{default:t(()=>[e(l,{class:"flex flex-col items-center justify-center"},{default:t(()=>[e(p,{src:Ot,class:"h-40rpx w-40rpx",onClick:h}),e(I,{class:"text-18rpx text-#757575"},{default:t(()=>[x(b(i.$t("productDetail.home")),1)]),_:1})]),_:1}),e(l,{class:"flex flex-col items-center justify-center",onClick:s},{default:t(()=>[n(o).favoriteFlag?(_(),C(p,{key:0,src:zt,class:"h-40rpx w-40rpx"})):(_(),C(p,{key:1,src:Wt,class:"h-40rpx w-40rpx"})),e(I,{class:"text-18rpx text-#757575"},{default:t(()=>[x(b(i.$t("productDetail.favorite")),1)]),_:1})]),_:1})]),_:1}),e(l,{class:"flex items-center justify-end text-32rpx"},{default:t(()=>[e(l,{class:"relative"},{default:t(()=>[e(l,{class:"rounded-l-full bg-#2F2D31 px-34rpx py-18rpx text-white",onClick:u[5]||(u[5]=f=>K("open"))},{default:t(()=>[x(b(i.$t("productDetail.openGroup")),1)]),_:1}),e(Bt,{visible:n(N),"onUpdate:visible":u[6]||(u[6]=f=>ce(N)?N.value=f:null)},null,8,["visible"])]),_:1}),e(l,{class:"rounded-r-full bg-[var(--wot-color-theme)] px-34rpx py-18rpx text-white",onClick:u[7]||(u[7]=f=>K("join"))},{default:t(()=>[x(b(i.$t("productDetail.joinGroup")),1)]),_:1})]),_:1})]),_:1})]),default:t(()=>[e(ue,{bordered:!1,"safe-area-inset-top":"",fixed:"","left-arrow":!1,"custom-style":`background: ${n(g)}; transition: background 0.3s;`,"custom-class":"h-auto!"},{title:t(()=>[e(l,{class:"box-border h-full flex items-center justify-between p-24rpx"},{default:t(()=>[e(p,{src:`/static/icons/left-icon${n(g)==="#ffffff"?"-tr":""}.png`,class:"h-56rpx w-56rpx",onClick:u[0]||(u[0]=()=>n(ft)())},null,8,["src"]),e(p,{src:`/static/icons/share-icon${n(g)==="#ffffff"?"-tr":""}.png`,class:"h-56rpx w-56rpx",onClick:u[1]||(u[1]=f=>d.value=!0)},null,8,["src"])]),_:1})]),_:1},8,["custom-style"]),n(y)?(_(),H(U,{key:0},[e(V,{"row-col":[{height:"750rpx"}],animation:"gradient"}),e(l,{class:"relative -top-24rpx"},{default:t(()=>[e(l,{class:"rounded-t-24rpx bg-white px-24rpx pb-24rpx pt-18rpx"},{default:t(()=>[e(V,{"row-col":[{width:"200rpx",height:"40rpx"},{width:"300rpx",height:"60rpx",marginTop:"12rpx"},{width:"150rpx",height:"32rpx",marginTop:"16rpx"}],animation:"gradient"})]),_:1}),e(l,{class:"bg-white px-24rpx pb-24rpx pt-20rpx"},{default:t(()=>[e(V,{"row-col":[{width:"100%",height:"60rpx"},{width:"200rpx",height:"40rpx",marginTop:"16rpx"}],animation:"gradient"})]),_:1})]),_:1}),e(l,{class:"mb-20rpx bg-white p-24rpx"},{default:t(()=>[e(V,{"row-col":[{width:"200rpx",height:"40rpx"},{width:"100%",height:"200rpx",marginTop:"20rpx"}],animation:"gradient"})]),_:1}),e(l,{class:"mb-20rpx bg-white px-24rpx pt-24rpx"},{default:t(()=>[e(V,{"row-col":[{width:"200rpx",height:"40rpx"},[[{width:"56rpx",height:"56rpx",type:"circle"},{width:"56rpx",height:"56rpx",type:"circle",marginLeft:"8rpx"},{width:"56rpx",height:"56rpx",type:"circle",marginLeft:"8rpx"}],{width:"200rpx",height:"28rpx",marginLeft:"16rpx"},{width:"120rpx",height:"60rpx",marginLeft:"auto"}],[[{width:"56rpx",height:"56rpx",type:"circle"},{width:"56rpx",height:"56rpx",type:"circle",marginLeft:"8rpx"}],{width:"200rpx",height:"28rpx",marginLeft:"16rpx"},{width:"120rpx",height:"60rpx",marginLeft:"auto"}]],animation:"gradient"})]),_:1}),e(l,{class:"bg-white p-24rpx"},{default:t(()=>[e(V,{"row-col":[{width:"200rpx",height:"40rpx"},{width:"100%",height:"400rpx",marginTop:"20rpx"},{width:"100%",height:"400rpx",marginTop:"20rpx"},{width:"100%",height:"400rpx",marginTop:"20rpx"}],animation:"gradient"})]),_:1})],64)):(_(),H(U,{key:1},[e(l,{class:"relative"},{default:t(()=>{var f;return[e(xe,{current:n(j),"onUpdate:current":u[2]||(u[2]=B=>ce(j)?j.value=B:null),list:n(o).sliderImage.split(","),autoplay:"",height:"750rpx","custom-indicator-class":"bottom-40rpx!",indicator:{type:"fraction"},"indicator-position":"bottom-right","image-mode":"aspectFit"},null,8,["current","list"]),e(Et,{notifications:n(M),top:`${((f=n(r))==null?void 0:f.top)+52}px`},null,8,["notifications","top"])]}),_:1}),e(l,{class:"relative -top-24rpx"},{default:t(()=>[e(l,{class:"flex items-center justify-between rounded-t-24rpx from-[#FF3779] to-[#FF334A] bg-gradient-to-br px-24rpx pb-24rpx pt-18rpx text-white"},{default:t(()=>[e(l,null,{default:t(()=>[e(l,{class:"mb-12rpx flex items-baseline"},{default:t(()=>[e(I,{class:"text-28rpx"},{default:t(()=>[x(b(i.$t("productDetail.price")),1)]),_:1}),e(l,{class:"ml-8rpx rounded-t-18rpx rounded-br-18rpx bg-#202221 px-12rpx text-24rpx"},{default:t(()=>[x(b(n(o).people||0)+"GB ",1)]),_:1})]),_:1}),e(l,null,{default:t(()=>[e(I,{class:"text-48rpx"},{default:t(()=>[e(I,{class:"text-28rpx"},{default:t(()=>[x(" ৳ ")]),_:1}),x(b(n(pe)(n(o).price)),1)]),_:1}),e(I,{class:"ml-22rpx text-28rpx line-through"},{default:t(()=>[x(" ৳"+b(n(pe)(n(o).otPrice)),1)]),_:1})]),_:1})]),_:1}),e(I,{class:"text-28rpx"},{default:t(()=>[x(b(n(Z)("productDetail.sold",[n(o).ficti])),1)]),_:1})]),_:1}),e(l,{class:"bg-white px-24rpx pb-24rpx pt-20rpx text-32rpx"},{default:t(()=>[e(l,{class:"line-clamp-2font-bold mb-16rpx"},{default:t(()=>[x(b(n(o).storeName),1)]),_:1}),e(l,{class:"flex items-center justify-between",onClick:u[3]||(u[3]=f=>K("open"))},{default:t(()=>[e(l,null,{default:t(()=>[e(I,{class:"text-28rpx text-#757575"},{default:t(()=>[x(b(n(fe)),1)]),_:1})]),_:1}),e(Ie,{name:"arrow-right",color:"#7D7D7D",size:"36rpx"})]),_:1})]),_:1})]),_:1}),e(l,{class:"mb-20rpx bg-white p-24rpx"},{default:t(()=>[e(l,{class:"mb-20rpx flex items-center justify-between"},{default:t(()=>[e(l,{class:"flex items-center before:h-45rpx before:w-8rpx before:rounded-4rpx before:bg-#FF3778 before:content-empty"},{default:t(()=>[e(I,{class:"ml-10rpx text-32rpx"},{default:t(()=>[x(b(i.$t("productDetail.groupRules")),1)]),_:1})]),_:1}),e(l,{class:"flex items-center",onClick:u[4]||(u[4]=f=>n(Me)({url:"/pages/webLink/webLink",params:{title:n(Z)("productDetail.viewRulesLinkTitle"),link:"https://www.aisoco.net/groupRules.html"}}))},{default:t(()=>[e(I,{class:"mr-8rpx text-24rpx text-#3A444C"},{default:t(()=>[x(b(i.$t("productDetail.viewRules")),1)]),_:1}),e(Ie,{name:"arrow-right",color:"#7D7D7D",size:"24rpx"})]),_:1})]),_:1}),e(p,{src:At,class:"w-full",mode:"widthFix"})]),_:1}),n(S)&&n(S).length?(_(),C(l,{key:0,class:"mb-20rpx bg-white px-24rpx pt-24rpx"},{default:t(()=>[e(l,{class:"mb-20rpx flex items-center before:h-45rpx before:w-8rpx before:rounded-4rpx before:bg-#FF3778 before:content-empty"},{default:t(()=>[e(I,{class:"ml-10rpx text-32rpx"},{default:t(()=>[x(b(i.$t("productDetail.ongoingGroup")),1)]),_:1})]),_:1}),e(qe,{autoplay:"",vertical:"",circular:"",class:"py-10rpx",style:q({height:n(S)[0].length<=3?`${n(S)[0].length*80}rpx`:"240rpx"})},{default:t(()=>[(_(!0),H(U,null,J(n(S),(f,B)=>(_(),C(Re,{key:B},{default:t(()=>[e(l,{class:"flex flex-col gap-24rpx"},{default:t(()=>[(_(!0),H(U,null,J(f,(ee,Fe)=>(_(),C(l,{key:Fe,class:"flex items-center justify-between"},{default:t(()=>[e(l,{class:"flex items-center"},{default:t(()=>[e(l,null,{default:t(()=>[e(l,{class:"mr-16rpx min-w-220rpx flex items-center"},{default:t(()=>[(_(!0),H(U,null,J(ee.successAvatar.slice(0,5),(he,ge)=>(_(),C(l,{key:ge,style:q({marginLeft:ge!==0?"-20rpx":"0",zIndex:10-ge}),class:"h-56rpx w-56rpx overflow-hidden border-2rpx border-white rounded-full border-solid"},{default:t(()=>[e(p,{src:he||"/static/images/default-avatar.png",class:"h-full w-full",mode:"aspectFill"},null,8,["src"])]),_:2},1032,["style"]))),128))]),_:2},1024)]),_:2},1024),e(l,null,{default:t(()=>[e(l,{class:"text-28rpx"},{default:t(()=>[x(b(i.$t("productDetail.need"))+" ",1),e(I,{class:"text-[var(--wot-color-theme)]"},{default:t(()=>[x(b(ee.totalNum-ee.remainNum),1)]),_:2},1024),x(" "+b(i.$t("productDetail.more")),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),e(Ce,{size:"small",onClick:he=>K("join",ee.id,ee.orderId)},{default:t(()=>[x(b(i.$t("productDetail.joinGroup")),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["style"])]),_:1})):se("",!0),e(l,{class:"bg-white p-24rpx"},{default:t(()=>[e(l,{class:"mb-20rpx flex items-center before:h-45rpx before:w-8rpx before:rounded-4rpx before:bg-#FF3778 before:content-empty"},{default:t(()=>[e(I,{class:"ml-10rpx text-32rpx"},{default:t(()=>[x(b(i.$t("productDetail.details")),1)]),_:1})]),_:1}),(_(!0),H(U,null,J(n(o).flatPattern.split(","),f=>(_(),C(l,{key:f},{default:t(()=>[e(p,{src:f,mode:"widthFix",class:"w-full"},null,8,["src"])]),_:2},1024))),128))]),_:1})],64))]),_:1},8,["use-page-scroll"]),e(Te,{modelValue:n(O),"onUpdate:modelValue":u[9]||(u[9]=f=>ce(O)?O.value=f:null),"z-index":999},{default:t(()=>[e(l,{class:"px-24rpx"},{default:t(()=>[e(l,{class:"mb-16rpx flex items-center gap-24rpx border-b-1 border-b-color-#e8e8e8 border-b-solid py-24rpx"},{default:t(()=>{var f;return[e(p,{src:n(W).image||((f=n(o))==null?void 0:f.image),class:"h-160rpx w-160rpx shrink-0",mode:"aspectFit"},null,8,["src"]),e(l,{class:"flex-1"},{default:t(()=>[e(l,{class:"line-clamp-2 mb-32rpx text-28rpx"},{default:t(()=>[x(b(n(o).storeName),1)]),_:1}),e(l,{class:"flex items-baseline"},{default:t(()=>[e(l,{class:"text-#FF0010"},{default:t(()=>[e(I,{class:"text-28rpx"},{default:t(()=>[x(" ৳ ")]),_:1}),e(I,{class:"text-48rpx"},{default:t(()=>[x(b(n(pe)(n(W).price||0)),1)]),_:1})]),_:1}),e(l,{class:"ml-20rpx text-28rpx text-#787878 line-through"},{default:t(()=>[x(" ৳"+b(n(pe)(n(W).otPrice||0)),1)]),_:1})]),_:1})]),_:1})]}),_:1}),(_(!0),H(U,null,J(n(o).attr,f=>(_(),C(l,{key:f.id,class:"mb-24rpx border-b-1 border-b-color-#e8e8e8 border-b-solid pb-40rpx"},{default:t(()=>[e(l,{class:"mb-12rpx text-32rpx"},{default:t(()=>[x(b(f.attrName),1)]),_:2},1024),e(l,{class:"grid grid-cols-4 gap-20rpx"},{default:t(()=>[(_(!0),H(U,null,J(f.attrImgValues,(B,ee)=>(_(),C(l,{key:ee,class:"flex flex-col justify-end"},{default:t(()=>[e(l,{class:"box-border flex flex-col border-1 border-transparent border-dashed bg-#F5F5F7 text-center",style:q({borderColor:n(D).selectedSpecs[f.attrName]===B.name?"var(--wot-color-theme)":""}),onClick:Fe=>me(f.attrName,B.name)},{default:t(()=>[e(l,null,{default:t(()=>[B.img?(_(),C(l,{key:0,class:"h-160rpx w-full"},{default:t(()=>[e(p,{src:B.img,class:"h-full w-full",mode:"aspectFit"},null,8,["src"])]),_:2},1024)):se("",!0),e(l,{class:"py-12rpx text-22rpx text-#757575"},{default:t(()=>[x(b(B.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["style","onClick"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128)),e(l,{class:"mb-100rpx flex items-center justify-between text-32rpx"},{default:t(()=>[e(l,null,{default:t(()=>[x(b(i.$t("productDetail.quantity")),1)]),_:1}),e(Ye,{modelValue:n(D).productNum,"onUpdate:modelValue":u[8]||(u[8]=f=>n(D).productNum=f),max:1,min:1},null,8,["modelValue"])]),_:1}),e(l,{class:"py-24rpx"},{default:t(()=>[e(Ce,{block:"",loading:n(a),style:q({backgroundColor:n(A)==="open"?"#2F2D31":"var(--wot-color-theme)"}),onClick:c},{default:t(()=>[x(b(n(A)==="open"?i.$t("productDetail.openGroup"):i.$t("productDetail.joinGroup")),1)]),_:1},8,["loading","style"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),e(Te,{modelValue:n(d),"onUpdate:modelValue":u[10]||(u[10]=f=>ce(d)?d.value=f:null),title:"Share with Friends and Family","z-index":999,onClose:u[11]||(u[11]=f=>d.value=!1)},{default:t(()=>[e(l,{class:"flex justify-between gap-24rpx px-24rpx py-32rpx"},{default:t(()=>[(_(!0),H(U,null,J(n(P),f=>(_(),C(l,{key:f.name,class:"flex flex-col items-center",onClick:B=>Ge(f.name)},{default:t(()=>[e(l,{class:"mb-20rpx"},{default:t(()=>[e(p,{src:f.icon,class:"h-80rpx w-80rpx",mode:"aspectFit"},null,8,["src"])]),_:2},1024),e(I,{class:"text-24rpx text-#666 font-medium"},{default:t(()=>[x(b(f.label),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),ra=Be(Ut,[["__scopeId","data-v-4f90452a"]]);export{ra as default};
|