You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

2 lines
8.8 KiB

"use strict";(self["webpackChunkvue_cli_ts"]=self["webpackChunkvue_cli_ts"]||[]).push([[773],{6777:function(e,t,a){a.d(t,{Z:function(){return ue}});a(7658);var l=a(3396),n=a(9242),i=a(4870),c=a(389),s=a(4191),o=a(5032),r=a(1045),d=a(7139),u=a(4773),f=a(3977),v=a(600),p=a(5906),_=a(2642),m=a(4133),g=a(7110),w=a(5599),y=a(9705),I=a(2483),k=a(6444);const h=e=>((0,l.dD)("data-v-7fa919fd"),e=e(),(0,l.Cn)(),e),C=h((()=>(0,l._)("div",{class:"z-0 w-[864px] h-[136px] bg-white bg-opacity-30 absolute top-0 left-0"},null,-1))),S={class:"carousel"},b=["src"],D=h((()=>(0,l._)("div",{class:"swiper-pagination detail"},null,-1))),H={key:0,src:c,class:"banner no-data",alt:""},q={class:"top"},U={class:"act-name"},T=["innerHTML"],x={class:"pos-container"},Z=["textContent"],L=["textContent"],j=["textContent"],E={key:0,class:"qr-wrapper"},W=["src"],O=["textContent"],z=h((()=>(0,l._)("img",{src:u,alt:""},null,-1))),A=h((()=>(0,l._)("div",{class:"line"},null,-1))),F=h((()=>(0,l._)("span",null,"GO ",-1))),M=[z,A,F],Y=h((()=>(0,l._)("img",{src:f,alt:""},null,-1))),P=[Y];var R=(0,l.aZ)({__name:"ActivityDetailHasImage",props:{actInfo:null},emits:["close"],setup(e,{emit:t}){const a=e,c=(0,I.yj)(),r=(0,g.Y)(),u=[s.pt,s.tl,s.xW,s.gI],{nav:f}=(0,m.w)(),{handleFacility:h}=(0,y.D)(),{moduleStatistics:z}=(0,w.T)(),A=(0,l.Fl)((()=>"")),F=(0,l.Fl)((()=>a.actInfo.fileUrl?a.actInfo.fileUrl:[])),Y=(0,l.Fl)((()=>a?.actInfo?.fileUrl.length>1)),R=(0,l.Fl)((()=>{if(a.actInfo?.point?.length||a.actInfo.facilityCode?.length)return!0;if(a.actInfo?.shopCode){const e=r.shopList.find((e=>e.shopCode===a.actInfo.shopCode));return!!e}return!1})),$=(0,l.Fl)((()=>!a.actInfo.point&&!a.actInfo.facilityCode&&!a.actInfo.shopCode));(0,l.bv)((()=>{"/activity"===c.fullPath&&z({recordType:"2",moduleName:a.actInfo.title,activityCode:a.actInfo.entryCode})}));const K=(0,i.iH)(!0);function N(){setTimeout((()=>{t("close")}),20),K.value=!1}function B(){if(r.SET_SHOW_DETAIL(!1),r.SET_SHOW_SEARCH(!1),a.actInfo?.point?.length)f(a.actInfo),r.SET_SHOW_SEARCH(!1);else if(a.actInfo?.facilityCode?.length){const e=r.customFacilityList.find((e=>e.code===a.actInfo.facilityCode));e?(h((0,i.IU)(e)),r.SET_SHOW_SEARCH(!1)):(0,p.Z)({type:"success",text:"设施获取失败"})}else if(a.actInfo?.shopCode){const e=r.mapShopListByCode[a.actInfo.shopCode][0];e?(r.SET_SHOP(e),k.N.push("/nav")):(0,p.Z)({type:"success",text:"无导航点"})}else(0,p.Z)({type:"success",text:"无导航点"})}return(0,l.YP)(a.actInfo,(()=>{"/activity"===c.fullPath&&z({recordType:"2",moduleName:a.actInfo.title,activityCode:a.actInfo.entryCode})})),(t,a)=>((0,l.wg)(),(0,l.j4)(n.uT,{appear:"","enter-active-class":"animate__animated animate__fadeIn","leave-active-class":"animate__animated animate__fadeOut"},{default:(0,l.w5)((()=>[K.value?((0,l.wg)(),(0,l.j4)(_.Z,{key:0,onClick:N},{default:(0,l.w5)((()=>[(0,l.Wm)(n.uT,{appear:"","enter-active-class":"animate__animated animate__fadeInUp","leave-active-class":"animate__animated animate__zoomOut"},{default:(0,l.w5)((()=>[(0,l._)("div",{class:(0,d.C_)(["act-info-container",{"no-point":(0,i.SU)($)}])},[C,(0,l._)("div",S,[(0,l.Wm)((0,i.SU)(o.tq),{observer:!0,"observe-parents":!0,modules:u,effect:"creative","watch-overflow":!0,loop:(0,i.SU)(Y),autoplay:!!(0,i.SU)(Y)&&{delay:5e3},"creative-effect":{prev:{translate:["-30%",0,-1]},next:{translate:["100%",0,0]}},pagination:{el:".detail"}},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,i.SU)(F),(e=>((0,l.wg)(),(0,l.j4)((0,i.SU)(o.o5),{key:e,class:"slide"},{default:(0,l.w5)((()=>[(0,l._)("img",{src:e,class:"banner"},null,8,b)])),_:2},1024)))),128))])),_:1},8,["loop","autoplay","pagination"]),D,(0,i.SU)(F).length?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("img",H))]),(0,l._)("div",q,[(0,l._)("p",U,(0,d.zw)(t.switchLanguage(e.actInfo,"title")),1)]),(0,l.Wm)(v.Z,{ref:"introScrollRef",class:(0,d.C_)(["intro-scroll",{"no-date-address":!e.actInfo.startDate&&!e.actInfo.address}]),list:[t.switchLanguage(e.actInfo,"content")],scrollbar:!0,"observe-image":!0,"refresh-delay":500,"pull-up":!1},{default:(0,l.w5)((()=>[(0,l._)("p",{class:"intro",innerHTML:t.switchLanguage(e.actInfo,"content")},null,8,T)])),_:1},8,["class","list"]),(0,l._)("div",x,[e.actInfo.startDate?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"time-tip",textContent:(0,d.zw)(t.$t("activity.time"))},null,8,Z)):(0,l.kq)("",!0),e.actInfo.startDate?((0,l.wg)(),(0,l.iD)("span",{key:1,class:"pos-time",textContent:(0,d.zw)(e.actInfo.startDate+"~"+e.actInfo.endDate)},null,8,L)):(0,l.kq)("",!0),e.actInfo.address?((0,l.wg)(),(0,l.iD)("div",{key:2,class:"pos-address",textContent:(0,d.zw)(t.$t("activity.address")+t.switchLanguage(e.actInfo,"address"))},null,8,j)):(0,l.kq)("",!0)]),(0,i.SU)(A)?((0,l.wg)(),(0,l.iD)("div",E,[(0,l._)("img",{src:(0,i.SU)(A),class:"qrdom",alt:""},null,8,W),(0,l._)("p",{class:"qr-tip",textContent:(0,d.zw)(t.$t("activity.qrTip"))},null,8,O)])):(0,l.kq)("",!0),(0,i.SU)(R)?((0,l.wg)(),(0,l.iD)("div",{key:1,class:"go",onClick:B},M)):(0,l.kq)("",!0),(0,l._)("div",{class:"exit",onClick:N},P)],2)])),_:1})])),_:1})):(0,l.kq)("",!0)])),_:1}))}}),$=a(89);const K=(0,$.Z)(R,[["__scopeId","data-v-7fa919fd"]]);var N=K,B=a.p+"img/icon_item.956a3086.svg",G=a(6272);const J=e=>((0,l.dD)("data-v-4d5429ac"),e=e(),(0,l.Cn)(),e),Q={class:"img-container"},V={key:0,src:c,style:{width:"150px",margin:"auto"},alt:""},X={class:"attr-container"},ee={class:"marquee-wrapper"},te=J((()=>(0,l._)("img",{class:"icon-item",src:B,alt:""},null,-1)));var ae=(0,l.aZ)({__name:"ActivityItem",props:{actInfo:null},emits:["click","clickImg"],setup(e,{emit:t}){const n=e,{nav:c}=(0,m.w)(),s=(0,i.iH)(!1);function o(){t("click",n.actInfo)}function r(){return n.actInfo?.fileUrl?.length?n.actInfo.fileUrl[0]:a(389)}return(0,l.bv)((()=>{s.value=!0})),(t,a)=>s.value?((0,l.wg)(),(0,l.iD)("div",{key:e.actInfo.entryCode,class:"act-item",onClick:o},[(0,l._)("div",Q,[0===e.actInfo?.fileUrl?.length?((0,l.wg)(),(0,l.iD)("img",V)):((0,l.wg)(),(0,l.iD)("div",{key:1,class:"img",style:(0,d.j5)({backgroundImage:`url(${r()})`}),alt:""},null,4))]),(0,l.kq)("",!0),(0,l._)("div",X,[(0,l._)("div",ee,[(0,l.Wm)(G.Z,{class:"name",speed:40,delay:.8,content:t.switchLanguage(e.actInfo,"title")},{default:(0,l.w5)((()=>[(0,l.Uk)((0,d.zw)(t.switchLanguage(e.actInfo,"title")),1)])),_:1},8,["delay","content"])]),te,(0,l.kq)("",!0),(0,l.kq)("",!0)])])):(0,l.kq)("",!0)}});const le=(0,$.Z)(ae,[["__scopeId","data-v-4d5429ac"]]);var ne=le,ie=a(9184);const ce={class:"activity-container"},se={class:"act-list"},oe={key:0,class:"no-data",src:c,alt:""};var re=(0,l.aZ)({__name:"ActivityInfo",props:{actType:null},setup(e){const t=e,a=(0,i.iH)(!1),c=[s.pt,s.lI,s.tl],d=(0,i.iH)(!1),u=(0,i.iH)([]),f=(0,i.iH)(!1),p=(0,i.iH)(),_=(0,i.iH)(!1);function m(e){p.value=e,_.value=!0}const g=(0,i.iH)();function w(){let e;switch(t.actType){case"Mall":e=(0,ie.mE)();break;case"Shop":e=(0,ie.xz)();break;case"Member":e=(0,ie.ig)();break;default:e=(0,ie.mE)();break}u.value=[],e.then((e=>{for(let t=0;t<e.data.length;t++)e.data[t].content.entryCode=e.data[t].entryCode,u.value.push(e.data[t].content);0===u.value.length&&(d.value=!0),f.value=!0}))}return w(),(t,s)=>((0,l.wg)(),(0,l.iD)("div",ce,[(0,l.Wm)(n.uT,{"enter-active-class":"animate__faster animate__animated animate__fadeInUp","leave-active-class":"animate__animated animate__fadeOutDown"},{default:(0,l.w5)((()=>[a.value?a.value&&f.value?((0,l.wg)(),(0,l.j4)((0,i.SU)(o.tq),{key:1,class:"act-scroll","free-mode":{enabled:!1},autoplay:u.value.length>=3&&{disableOnInteraction:!1,delay:5e4},pagination:!0,effect:"coverflow","coverflow-effect":{rotate:50,stretch:4,depth:100,modifier:1.5,slideShadows:!1},"centered-slides":!0,"slides-per-view":"auto",enabled:u.value.length>=1,loop:u.value.length>=3,speed:1e3,height:712,modules:c,"looped-slides":3,"loop-additional-slides":3,"space-between":0},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(u.value,((e,t)=>((0,l.wg)(),(0,l.j4)((0,i.SU)(o.o5),{key:t},{default:(0,l.w5)((()=>[(0,l.Wm)(ne,{"act-info":e,onClick:m},null,8,["act-info"])])),_:2},1024)))),128))])),_:1},8,["autoplay","coverflow-effect","enabled","loop"])):(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(v.Z,{key:0,ref_key:"actScroll",ref:g,list:u.value,"refresh-delay":400,"scroll-x":!1,scrollbar:!0,class:"act-scroll-v","observe-image":!0},{default:(0,l.w5)((()=>[(0,l._)("ul",se,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(u.value,((e,t)=>((0,l.wg)(),(0,l.j4)(ne,{key:t,"act-info":e,onClick:m},null,8,["act-info"])))),128))])])),_:1},8,["list"]))])),_:1}),d.value?((0,l.wg)(),(0,l.iD)("img",oe)):(0,l.kq)("",!0),_.value&&"Member"===e.actType?((0,l.wg)(),(0,l.j4)(r.Z,{key:1,"act-info":p.value,onClose:s[0]||(s[0]=e=>_.value=!1)},null,8,["act-info"])):(0,l.kq)("",!0),_.value&&"Member"!==e.actType?((0,l.wg)(),(0,l.j4)(N,{key:2,"act-info":p.value,onClose:s[1]||(s[1]=e=>_.value=!1)},null,8,["act-info"])):(0,l.kq)("",!0)]))}});const de=(0,$.Z)(re,[["__scopeId","data-v-aeb98262"]]);var ue=de}}]);
//# sourceMappingURL=773.2978e48a.js.map