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
7.3 KiB

"use strict";(self["webpackChunkvue_cli_ts"]=self["webpackChunkvue_cli_ts"]||[]).push([[96],{7096:function(t,e,a){a.d(e,{Z:function(){return Q}});a(7658);var n=a(3396),i=a(9242),l=a(4870),c=a(389),s=a(4191),o=a(5032),r=a(7139),d=a(4773),f=a(3977),u=a(600),v=a(5906),_=a(7717),p=a(4133),m=a(7110),y=a(5599),g=a(9705),k=a(2483),w=a(6444);const I=t=>((0,n.dD)("data-v-f0caa25a"),t=t(),(0,n.Cn)(),t),h={class:"top"},C={class:"act-name"},S=["innerHTML"],b={class:"pos-container"},D=["textContent"],q=["textContent"],H=["textContent"],U={key:1,class:"qr-wrapper"},T=["src"],x=["textContent"],Z=I((()=>(0,n._)("img",{src:d,alt:""},null,-1))),L=I((()=>(0,n._)("div",{class:"line"},null,-1))),j=I((()=>(0,n._)("img",{src:f,alt:""},null,-1))),z=[j];var E=(0,n.aZ)({__name:"ActivityDetail",props:{actInfo:null},emits:["close"],setup(t,{emit:e}){const a=t,c=(0,k.yj)(),o=(0,m.Y)(),{nav:d}=(s.pt,s.tl,s.xW,(0,p.w)()),{handleFacility:f}=(0,g.D)(),{moduleStatistics:I}=(0,y.T)(),j=(0,n.Fl)((()=>"")),E=((0,n.Fl)((()=>a.actInfo.fileUrl)),(0,n.Fl)((()=>{if(a.actInfo?.point?.length||a.actInfo.facilityCode?.length)return!0;if(a.actInfo?.shopCode){const t=o.shopList.find((t=>t.shopCode===a.actInfo.shopCode));return!!t}return!1}))),A=(0,n.Fl)((()=>!a.actInfo.point&&!a.actInfo.facilityCode&&!a.actInfo.shopCode));(0,n.bv)((()=>{"/activity"===c.fullPath&&I({recordType:"2",moduleName:a.actInfo.activityName,activityCode:a.actInfo.entryCode})}));const O=(0,l.iH)(!0);function W(){setTimeout((()=>{e("close")}),20),O.value=!1}function N(){if(a.actInfo?.point?.length)d(a.actInfo),o.SET_SHOW_SEARCH(!1);else if(a.actInfo?.facilityCode?.length){const t=o.customFacilityList.find((t=>t.code===a.actInfo.facilityCode));t?(f((0,l.IU)(t)),o.SET_SHOW_SEARCH(!1)):(0,v.Z)({type:"success",text:"设施获取失败"})}else if(a.actInfo?.shopCode){const t=o.mapShopListByCode[a.actInfo.shopCode][0];t?(o.SET_SHOP(t),w.N.push("/nav")):(0,v.Z)({type:"success",text:"无导航点"})}else(0,v.Z)({type:"success",text:"无导航点"});o.SET_SHOW_LIKE(!1)}return(0,n.YP)(a.actInfo,(()=>{"/activity"===c.fullPath&&I({recordType:"2",moduleName:a.actInfo.activityName,activityCode:a.actInfo.entryCode})})),(e,a)=>((0,n.wg)(),(0,n.j4)(i.uT,{appear:"","enter-active-class":"animate__animated animate__fadeIn","leave-active-class":"animate__animated animate__fadeOut"},{default:(0,n.w5)((()=>[O.value?((0,n.wg)(),(0,n.j4)(_.Z,{key:0,onClick:W},{default:(0,n.w5)((()=>[(0,n.Wm)(i.uT,{appear:"","enter-active-class":"animate__animated animate__fadeInUp","leave-active-class":"animate__animated animate__zoomOut"},{default:(0,n.w5)((()=>[(0,n._)("div",{class:(0,r.C_)(["act-info-container",{"no-point":(0,l.SU)(A)}])},[(0,n.kq)("",!0),(0,n._)("div",h,[(0,n._)("p",C,(0,r.zw)(e.switchLanguage(t.actInfo,"activityName")),1)]),(0,n.Wm)(u.Z,{ref:"introScrollRef",class:(0,r.C_)(["intro-scroll",{"no-date-address":!t.actInfo.startDate&&!t.actInfo.activityAddress}]),list:[e.switchLanguage(t.actInfo,"activityName")],scrollbar:!0,"observe-image":!0,"refresh-delay":500,"pull-up":!1},{default:(0,n.w5)((()=>[(0,n._)("p",{class:"intro",innerHTML:e.switchLanguage(t.actInfo,"activityContent")},null,8,S)])),_:1},8,["class","list"]),(0,n._)("div",b,[t.actInfo.startDate?((0,n.wg)(),(0,n.iD)("span",{key:0,class:"time-tip",textContent:(0,r.zw)(e.$t("activity.time"))},null,8,D)):(0,n.kq)("",!0),t.actInfo.startDate?((0,n.wg)(),(0,n.iD)("span",{key:1,class:"pos-time",textContent:(0,r.zw)(t.actInfo.startDate+"~"+t.actInfo.endDate)},null,8,q)):(0,n.kq)("",!0),t.actInfo.activityAddress?((0,n.wg)(),(0,n.iD)("div",{key:2,class:"pos-address",textContent:(0,r.zw)(e.$t("activity.address")+e.switchLanguage(t.actInfo,"activityAddress"))},null,8,H)):(0,n.kq)("",!0)]),(0,l.SU)(j)?((0,n.wg)(),(0,n.iD)("div",U,[(0,n._)("img",{src:(0,l.SU)(j),class:"qrdom",alt:""},null,8,T),(0,n._)("p",{class:"qr-tip",textContent:(0,r.zw)(e.$t("activity.qrTip"))},null,8,x)])):(0,n.kq)("",!0),(0,l.SU)(E)?((0,n.wg)(),(0,n.iD)("div",{key:2,class:"go",onClick:N},[Z,L,(0,n.Uk)(" "+(0,r.zw)(e.$t("activity.go")),1)])):(0,n.kq)("",!0),(0,n._)("div",{class:"exit",onClick:W},z)],2)])),_:1})])),_:1})):(0,n.kq)("",!0)])),_:1}))}}),A=a(89);const O=(0,A.Z)(E,[["__scopeId","data-v-f0caa25a"]]);var W=O;a(6441);const N={key:0,src:c,alt:""};var F=(0,n.aZ)({__name:"MemberActivityItem",props:{actInfo:null},emits:["click","clickImg"],setup(t,{emit:e}){const i=t,{nav:c}=(0,p.w)(),s=(0,l.iH)(!1);function o(){e("click",i.actInfo)}function d(){return i.actInfo.fileUrl.length?i.actInfo.fileUrl[0]:a(389)}return(0,n.bv)((()=>{s.value=!0})),(e,a)=>s.value?((0,n.wg)(),(0,n.iD)("div",{key:t.actInfo.entryCode,class:"act-item"},[(0,n._)("div",{class:"img-container",onClick:o},[(0,n._)("img",{style:(0,r.j5)({backgroundImage:`url(${d()})`}),alt:""},null,4),0===t.actInfo.fileUrl.length?((0,n.wg)(),(0,n.iD)("img",N)):(0,n.kq)("",!0)]),(0,n._)("div",{class:"btn",onClick:o},(0,r.zw)(e.$t("activity.detail")),1),(0,n.kq)("",!0),(0,n.kq)("",!0)])):(0,n.kq)("",!0)}});const M=(0,A.Z)(F,[["__scopeId","data-v-8c8f58a4"]]);var $=M,Y=a(9184),K=a(1020);const P={class:"activity-container"},R={class:"act-list"},B={key:0,class:"no-data",src:c,alt:""};var J=(0,n.aZ)({__name:"MemberActivity",props:{actType:null},setup(t){const e=t,a=(0,m.Y)(),{is4K:c,isH:r}=(0,K.Jk)(a),d=[s.pt,s.lI,s.tl],f=(0,l.iH)(!1),v=(0,l.iH)([]),_=(0,l.iH)(!1),p=(0,l.iH)(),y=(0,l.iH)(!1);function g(t){p.value=t,y.value=!0}const k=(0,l.iH)();function w(){let t;switch(e.actType){case"Mall":t=(0,Y.mE)();break;case"Shop":t=(0,Y.xz)();break;case"Member":t=(0,Y.ig)();break;default:t=(0,Y.mE)();break}v.value=[],t.then((t=>{for(let e=0;e<t.data.length;e++)t.data[e].content.entryCode=t.data[e].entryCode,v.value.push(t.data[e].content);0===v.value.length&&(f.value=!0),_.value=!0}))}return w(),(t,e)=>((0,n.wg)(),(0,n.iD)("div",P,[(0,n.Wm)(i.uT,{"enter-active-class":"animate__faster animate__animated animate__fadeInUp","leave-active-class":"animate__animated animate__fadeOutDown"},{default:(0,n.w5)((()=>[(0,l.SU)(r)?(0,l.SU)(r)&&_.value?((0,n.wg)(),(0,n.j4)((0,l.SU)(o.tq),{key:1,class:"act-scroll","free-mode":{enabled:!1},autoplay:v.value.length>=3&&{disableOnInteraction:!1,delay:5e3},pagination:!0,effect:"coverflow","coverflow-effect":{rotate:50,stretch:3,depth:100,modifier:1,slideShadows:!1},"centered-slides":!0,"slides-per-view":"auto",enabled:v.value.length>=1,loop:v.value.length>=3,speed:1e3,height:(0,l.SU)(c)?1068:534,modules:d,"looped-slides":3,"loop-additional-slides":3,"space-between":(0,l.SU)(c)?300:50},{default:(0,n.w5)((()=>[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(v.value,((t,e)=>((0,n.wg)(),(0,n.j4)((0,l.SU)(o.o5),{key:e},{default:(0,n.w5)((()=>[(0,n.Wm)($,{"act-info":t,onClick:g},null,8,["act-info"])])),_:2},1024)))),128))])),_:1},8,["autoplay","enabled","loop","height","space-between"])):(0,n.kq)("",!0):((0,n.wg)(),(0,n.j4)(u.Z,{key:0,ref_key:"actScroll",ref:k,list:v.value,"refresh-delay":400,"scroll-x":!1,scrollbar:!0,class:"act-scroll-v","observe-image":!0},{default:(0,n.w5)((()=>[(0,n._)("ul",R,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(v.value,((t,e)=>((0,n.wg)(),(0,n.j4)($,{key:e,"act-info":t,onClick:g},null,8,["act-info"])))),128))])])),_:1},8,["list"]))])),_:1}),f.value?((0,n.wg)(),(0,n.iD)("img",B)):(0,n.kq)("",!0),y.value?((0,n.wg)(),(0,n.j4)(W,{key:1,"act-info":p.value,onClose:e[0]||(e[0]=t=>y.value=!1)},null,8,["act-info"])):(0,n.kq)("",!0)]))}});const G=(0,A.Z)(J,[["__scopeId","data-v-50f5e2cc"]]);var Q=G}}]);
//# sourceMappingURL=96.85b7a378.js.map