@gkits/collect 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -352,7 +352,7 @@ ${function(t){return`:host([hidden]),:host([hide]){display:none}:host{display:${
|
|
|
352
352
|
<div class="ArrowWrap">
|
|
353
353
|
<span class="Arrow"></span>
|
|
354
354
|
</div>
|
|
355
|
-
`;let ye=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){Lt(this)({color:e})}connectedCallback(){super.connectedCallback()}};Mt([e],ye.prototype,"dir",void 0),Mt([e],ye.prototype,"color",void 0),ye=Mt([o({name:"h-arrow",styles:ge,template:me,shadowOptions:{mode:"closed"}})],ye);var xe=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},be=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},we=function(){return D((function t(){var e=this;if(P(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,o){var n=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(o&&0===o.scrollTop&&n>0||e.isTargetElementTotallyScrolled(o)&&n<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var o={get passive(){this.hasPassiveEvents=!0}};xe(window,"testPassive",null,o),be(window,"testPassive",null,o)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!(!this.allowTouchMove||!this.allowTouchMove(e.target))||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var o=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};this.locks=[].concat(X(this.locks),[n]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(o.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&o.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(be(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(be(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}(),ke=new we;function Se(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?ke.enable(document.body):ke.disable(document.body),n.apply(this,arguments)},o}var Ce,Me,_e,Oe,Ie=function(){function t(){var e=this;P(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.add(o[n])},this.remove=function(t,e){if(t)for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.remove(o[n])}):(this.has=function(t,o){return e.classReg(o).test(t.className)},this.add=function(t,o){e.has(t,o)||(t.className=t.className+" "+o)},this.remove=function(t,o){t.className=t.className.replace(e.classReg(o)," ")})}return D(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}();function Le(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=Le(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=Le(t[e]);return t}function Ee(t){return function(e,o){if(mt(e))for(var n in e)ze(t)(n,e[n]);if("string"==typeof e){if(/:/g.test(e))e.split(";").forEach((function(e){var o=(e=Le(e)).split(":");ze(t)(o[0],o[1])}));else ze(t)(e,o)}}}function ze(t){return function(e,o){if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}function Be(t){var e=null;return function(o,n,r){var i=r.value;return r.value=function(){for(var o=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e&&clearTimeout(e),e=setTimeout((function(){i.apply(o,r)}),t)},r}}function Ae(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ae=function(){return!!t})()}var Pe=r(Ce||(Ce=z(['\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoBox">\n <div class="VideoWrap" ',">\n ","\n </div>\n </div>\n <div ",' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/conflate/title03.png"/>\n </div>\n <div class="Icon ','">\n <div><img src="','/download/img/collect/conflate/icon03.png"/><p class="TEll">2.24抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/conflate/icon02.png"/><p class="TEll">iHaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n ',"\n <p>iHaier新年头像框将通过您的iHaier发放</p>\n </div>\n </div>\n </div>\n"])),i("aniImg"),l((function(t,e){return t.ImgList}),r(Me||(Me=z(['<img src="','" class="','" style="z-index:',';" />'])),(function(t){return t.img}),(function(t){return t.className}),(function(t){return t.index})),{positioning:!0}),i("contentWrap"),St.path,(function(t){return t.isCoupon?"":"Two"}),St.path,(function(t){return t.isCoupon?"Coupon":""}),c((function(t){return t.isCoupon}),r(_e||(_e=z(['<div><img src="','"/><p class="TEll">',"</p></div>\n "])),(function(t){return t.prizeImg}),(function(t){return t.prizeName}))),St.path,(function(t){return t.accept()}),St.path,c((function(t){return t.isCoupon}),r(Oe||(Oe=z(["<p>优惠券可在【我的奖品-商城卡券】中查看</p>"]))))),je=function(){function t(){var e;return h(this,t),e=function(t,e,o){return e=S(e),w(t,Ae()?Reflect.construct(e,o||[],S(t).constructor):e.apply(t,o))}(this,t),e.isLowend=!1,e.isCoupon=!1,e.prizeName="",e.prizeQuota="",e.prizeImg="https://zjrs.haier.net/download/img/collect/coupon.png",e.ImgList=Array.from({length:48},(function(t,e){return{index:80-e,img:St.path+"/download/img/collect/conflate/000"+(e<10?"0":"")+e+".jpg"}})),e.isClick=!1,e.index=0,e.row=0,e.col=0,bt.case.install([ve]),e}return L(t,n),y(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Ie.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){var e=this;!function(t,e,o,n){var r=_(S(1&n?t.prototype:t),e,o);return 2&n&&"function"==typeof r?function(t){return r.apply(o,t)}:r}(t,"connectedCallback",this,3)([]),Ee(this.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")"),window.addEventListener("resize",(function(){Ee(e.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")")})),this.isLowend=736==screen.height&&414==screen.width&&this.isIphone()||667==screen.height&&375==screen.width&&this.isIphone(),setTimeout((function(){e.isLowend?e.ImgList=[{index:80,className:"loop",img:St.path+"/download/img/collect/conflate/loop.webp"}]:e.ImgList.push({index:31,display:"none",className:"loop",img:St.path+"/download/img/collect/conflate/loop.webp"})}),100)}},{key:"isIphone",value:function(){return/iPhone/.test(navigator.userAgent)&&/Mobile/.test(navigator.userAgent)}},{key:"init",value:function(){var t=this;this.isLowend?(Ie.instance.add(this.contentWrap,"show"),setTimeout((function(){t.isClick=!0}),10)):(setTimeout((function(){t.timer=setInterval((function(){t.play()}),40)}),80),setTimeout((function(){Ie.instance.add(t.contentWrap,"show")}),1500),setTimeout((function(){t.isClick=!0}),3500))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"play",value:function(){this.aniImg.children[0]&&this.aniImg.children[0].remove(),this.index++,48===this.index&&(Ee(this.aniImg.children[0])("display","block"),clearInterval(this.timer),this.index=0)}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.prizeName=t.prizeName,this.prizeImg=t.prizeImg,this.prizeQuota=t.prizeQuota,this.isCoupon=!0)}}])}();B([a],je.prototype,"Overlay",void 0),B([a],je.prototype,"isLowend",void 0),B([a],je.prototype,"video",void 0),B([a],je.prototype,"contentWrap",void 0),B([a],je.prototype,"isCoupon",void 0),B([a],je.prototype,"prizeName",void 0),B([a],je.prototype,"prizeQuota",void 0),B([a],je.prototype,"prizeImg",void 0),B([a],je.prototype,"aniImg",void 0),B([a],je.prototype,"ImgList",void 0),B([e({mode:"boolean"})],je.prototype,"show",void 0),B([Se],je.prototype,"showChanged",null),B([Be(300)],je.prototype,"accept",null),je=B([o({name:"g-collect-conflate",template:Pe,styles:Ct})],je);var Te,We=new(function(){function t(){P(this,t),this.isMobile=!1,this.size=375,this.pageSize=function(){var t=0,e=0;window.innerHeight&&window.scrollMaxY?(t=window.innerWidth+window.scrollMaxX,e=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(t=document.body.scrollWidth,e=document.body.scrollHeight):document.body&&(t=document.body.offsetWidth,e=document.body.offsetHeight);var o=0,n=0;return window.innerHeight?(o=window.innerWidth,n=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(o=document.documentElement.clientWidth,n=document.documentElement.clientHeight):document.body&&(o=document.body.clientWidth,n=document.body.clientHeight),{PageW:t<o?o:t,PageH:e<n?n:e,WinW:o,WinH:n}}(),this.isMobile=this.pageSize.PageW<768}return D(t,[{key:"toVw",value:function(t){return this.isMobile?"".concat(t/this.size*100,"vw"):"".concat(t,"px")}},{key:"toPerce",value:function(t){return"".concat(t/this.size*100,"%")}},{key:"toPx",value:function(t){return"".concat(this.pageSize.PageW/this.size*t,"px")}},{key:"toEm",value:function(t){return"".concat(t/10,"em")}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}()),Ne=t(Te||(Te=z(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardBox{width:",";overflow: hidden;\noverflow-x: auto;position:relative;}\n.CardBox::-webkit-scrollbar{display:none}\n.CardWrap{display:inline-flex}\n.CardWrap div.Card{\nwidth:",";\nheight:",";\nmargin: 0 0 0 ",";\n}\n.CardWrap div.Card:last-child{margin-right:","}\n.CardWrap div.Card img {width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:0;\n}\n.Synthesis .Img {z-index:2; opacity: 0.8;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),wt(),We.toVw(279),We.toVw(70),We.toVw(84),We.toVw(10),We.toVw(5),yt(["PoiNo"]),yt(["PoiNo"]));class De extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){Lt(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Wt(this.children[t])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(t){t&&t(this)}setValueFn(t,e){this[t+"Changed"]("",e)}update(t,e){e&&e(t)}childrenFn(t){const e=this.children.length;if(e>0){for(let t=0;t<e;t++){const o=this.children[t];0==t?Wt(o)("first"):t+1==e&&Wt(o)("last"),Wt(o)("index",String(t))}t&&t()}}}Mt([e],De.prototype,"color",void 0),Mt([e],De.prototype,"size",void 0),Mt([e({mode:"boolean"})],De.prototype,"disabled",void 0);class Re{constructor(){this.timeOut=0}init(t){let e,o;e=setInterval((()=>{o="string"==typeof t.front?window[t.front]:t.front(),this.timeOut++,(this.timeOut>=60||o)&&(clearInterval(e),t.callback())}),50)}}const Fe=t`
|
|
355
|
+
`;let ye=class extends n{constructor(){super(),this.dir="top"}colorChanged(t,e){Lt(this)({color:e})}connectedCallback(){super.connectedCallback()}};Mt([e],ye.prototype,"dir",void 0),Mt([e],ye.prototype,"color",void 0),ye=Mt([o({name:"h-arrow",styles:ge,template:me,shadowOptions:{mode:"closed"}})],ye);var xe=function(t,e,o,n){t.addEventListener?t.addEventListener(e,o,!1):t.attachEvent?t.attachEvent("on"+e,o):t["on"+e]=o},be=function(t,e,o,n){t.removeEventListener?t.removeEventListener(e,o,!1):t.detachEvent?t.detachEvent("on"+e,o):t["on"+e]=null},we=function(){return D((function t(){var e=this;if(P(this,t),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==e.previousBodyPaddingRight&&(document.body.style.paddingRight=e.previousBodyPaddingRight,e.previousBodyPaddingRight=void 0),void 0!==e.previousBodyOverflowSetting&&(document.body.style.overflow=e.previousBodyOverflowSetting,document.documentElement.style.overflow=e.previousBodyOverflowSetting,e.previousBodyOverflowSetting=void 0)},this.handleScroll=function(t,o){var n=t.targetTouches[0].clientY-e.initialClientY;return!e.allowTouchMove(t.target)&&(o&&0===o.scrollTop&&n>0||e.isTargetElementTotallyScrolled(o)&&n<0?e.preventDefault(t):(t.stopPropagation(),!0))},"undefined"!=typeof window){var o={get passive(){this.hasPassiveEvents=!0}};xe(window,"testPassive",null,o),be(window,"testPassive",null,o)}}),[{key:"isTargetElementTotallyScrolled",value:function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}},{key:"allowTouchMove",value:function(t){this.locks.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))}},{key:"preventDefault",value:function(t){var e=t||window.event;return!(!this.allowTouchMove||!this.allowTouchMove(e.target))||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(t){if(void 0===this.previousBodyPaddingRight){var e=!!t&&!0===t.reserveScrollBarGap,o=window.innerWidth-document.documentElement.clientWidth;e&&o>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(o,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(t,e){var o=this;if(t){if(!this.locks.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};this.locks=[].concat(X(this.locks),[n]),this.isIosDevice?(t.ontouchstart=function(t){1===t.targetTouches.length&&(o.initialClientY=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&o.handleScroll(e,t)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),this.documentListenerAdded&&(be(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(t){t?(this.locks=this.locks.filter((function(e){return e.targetElement!==t})),this.isIosDevice?(t.ontouchstart=null,t.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(be(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}])}(),ke=new we;function Se(t,e,o){var n=o.value;return o.value=function(t,e){return null===e||!1===e?ke.enable(document.body):ke.disable(document.body),n.apply(this,arguments)},o}var Ce,Me,_e,Oe,Ie=function(){function t(){var e=this;P(this,t),"classList"in document.documentElement?(this.has=function(t,e){return t.classList.contains(e)},this.add=function(t,e){for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.add(o[n])},this.remove=function(t,e){if(t)for(var o=e.split(" "),n=0;n<o.length;n++)void 0!==t.classList&&t.classList.remove(o[n])}):(this.has=function(t,o){return e.classReg(o).test(t.className)},this.add=function(t,o){e.has(t,o)||(t.className=t.className+" "+o)},this.remove=function(t,o){t.className=t.className.replace(e.classReg(o)," ")})}return D(t,[{key:"classReg",value:function(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}},{key:"toggle",value:function(t,e){(this.has(t,e)?this.remove:this.add)(t,e)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new t),this._instance}}])}();function Le(t){if("string"==typeof t)return String(t).replace(/(^\s*)|(\s*$)/g,"").replace(/\u200B/g,"");if("[object Array]"===Object.prototype.toString.call(t))return t.forEach((function(t){t=Le(t)})),t;if("[object Object]"!==Object.prototype.toString.call(t)||null==t)return t;for(var e in t)t[e]=Le(t[e]);return t}function Ee(t){return function(e,o){if(mt(e))for(var n in e)ze(t)(n,e[n]);if("string"==typeof e){if(/:/g.test(e))e.split(";").forEach((function(e){var o=(e=Le(e)).split(":");ze(t)(o[0],o[1])}));else ze(t)(e,o)}}}function ze(t){return function(e,o){if(t){if(void 0===o)return window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=o}}}function Be(t){var e=null;return function(o,n,r){var i=r.value;return r.value=function(){for(var o=this,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e&&clearTimeout(e),e=setTimeout((function(){i.apply(o,r)}),t)},r}}function Ae(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ae=function(){return!!t})()}var Pe=r(Ce||(Ce=z(['\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoBox">\n <div class="VideoWrap" ',">\n ","\n </div>\n </div>\n <div ",' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/conflate/title03.png"/>\n </div>\n <div class="Icon ','">\n <div><img src="','/download/img/collect/conflate/icon03.png"/><p class="TEll">2.24抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/conflate/icon02.png"/><p class="TEll">iHaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n ',"\n <p>iHaier新年头像框将通过您的iHaier发放</p>\n </div>\n </div>\n </div>\n"])),i("aniImg"),l((function(t,e){return t.ImgList}),r(Me||(Me=z(['<img src="','" class="','" style="z-index:',';" />'])),(function(t){return t.img}),(function(t){return t.className}),(function(t){return t.index})),{positioning:!0}),i("contentWrap"),St.path,(function(t){return t.isCoupon?"":"Two"}),St.path,(function(t){return t.isCoupon?"Coupon":""}),c((function(t){return t.isCoupon}),r(_e||(_e=z(['<div><img src="','"/><p class="TEll">',"</p></div>\n "])),(function(t){return t.prizeImg}),(function(t){return t.prizeName}))),St.path,(function(t){return t.accept()}),St.path,c((function(t){return t.isCoupon}),r(Oe||(Oe=z(["<p>优惠券可在【我的奖品-商城卡券】中查看</p>"]))))),je=function(){function t(){var e;return h(this,t),e=function(t,e,o){return e=S(e),w(t,Ae()?Reflect.construct(e,o||[],S(t).constructor):e.apply(t,o))}(this,t),e.isLowend=!1,e.isCoupon=!1,e.prizeName="",e.prizeQuota="",e.prizeImg="https://zjrs.haier.net/download/img/collect/coupon.png",e.ImgList=Array.from({length:48},(function(t,e){return{index:80-e,img:St.path+"/download/img/collect/conflate/000"+(e<10?"0":"")+e+".jpg"}})),e.isClick=!1,e.index=0,e.row=0,e.col=0,bt.case.install([ve]),e}return L(t,n),y(t,[{key:"showChanged",value:function(t,e){null===e||!1===e?Ie.instance.remove(this.contentWrap,"show"):this.init()}},{key:"connectedCallback",value:function(){var e=this;!function(t,e,o,n){var r=_(S(1&n?t.prototype:t),e,o);return 2&n&&"function"==typeof r?function(t){return r.apply(o,t)}:r}(t,"connectedCallback",this,3)([]),Ee(this.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")"),window.addEventListener("resize",(function(){Ee(e.aniImg)("transform","scale("+document.documentElement.clientWidth/720+")")})),this.isLowend=736==screen.height&&414==screen.width&&this.isIphone()||667==screen.height&&375==screen.width&&this.isIphone(),setTimeout((function(){e.isLowend?e.ImgList=[{index:80,className:"loop",img:St.path+"/download/img/collect/conflate/loop.webp"}]:e.ImgList.push({index:31,display:"none",className:"loop",img:St.path+"/download/img/collect/conflate/loop.webp"})}),100)}},{key:"isIphone",value:function(){return/iPhone/.test(navigator.userAgent)&&/Mobile/.test(navigator.userAgent)}},{key:"init",value:function(){var t=this;this.isLowend?(Ie.instance.add(this.contentWrap,"show"),setTimeout((function(){t.isClick=!0}),10)):(setTimeout((function(){t.timer=setInterval((function(){t.play()}),40)}),80),setTimeout((function(){Ie.instance.add(t.contentWrap,"show")}),1500),setTimeout((function(){t.isClick=!0}),3500))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.close(),this.$emit("change","accept"))}},{key:"play",value:function(){this.aniImg.children[0]&&this.aniImg.children[0].remove(),this.index++,48===this.index&&(Ee(this.aniImg.children[0])("display","block"),clearInterval(this.timer),this.index=0)}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(t){t&&t.prizeId&&(this.prizeName=t.prizeName,this.prizeImg=t.prizeImg,this.prizeQuota=t.prizeQuota,this.isCoupon=!0)}}])}();B([a],je.prototype,"Overlay",void 0),B([a],je.prototype,"isLowend",void 0),B([a],je.prototype,"video",void 0),B([a],je.prototype,"contentWrap",void 0),B([a],je.prototype,"isCoupon",void 0),B([a],je.prototype,"prizeName",void 0),B([a],je.prototype,"prizeQuota",void 0),B([a],je.prototype,"prizeImg",void 0),B([a],je.prototype,"aniImg",void 0),B([a],je.prototype,"ImgList",void 0),B([e({mode:"boolean"})],je.prototype,"show",void 0),B([Se],je.prototype,"showChanged",null),B([Be(300)],je.prototype,"accept",null),je=B([o({name:"g-collect-conflate",template:Pe,styles:Ct})],je);var Te,We=new(function(){function t(){P(this,t),this.isMobile=!1,this.size=375,this.pageSize=function(){var t=0,e=0;window.innerHeight&&window.scrollMaxY?(t=window.innerWidth+window.scrollMaxX,e=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(t=document.body.scrollWidth,e=document.body.scrollHeight):document.body&&(t=document.body.offsetWidth,e=document.body.offsetHeight);var o=0,n=0;return window.innerHeight?(o=window.innerWidth,n=window.innerHeight):document.documentElement&&document.documentElement.clientHeight?(o=document.documentElement.clientWidth,n=document.documentElement.clientHeight):document.body&&(o=document.body.clientWidth,n=document.body.clientHeight),{PageW:t<o?o:t,PageH:e<n?n:e,WinW:o,WinH:n}}(),this.isMobile=this.pageSize.PageW<768}return D(t,[{key:"toVw",value:function(t){return this.isMobile?"".concat(t/this.size*100,"vw"):"".concat(t,"px")}},{key:"toPerce",value:function(t){return"".concat(t/this.size*100,"%")}},{key:"toPx",value:function(t){return"".concat(this.pageSize.PageW/this.size*t,"px")}},{key:"toEm",value:function(t){return"".concat(t/10,"em")}}],[{key:"case",get:function(){return this._case||(this._case=new t),this._case}}])}()),Ne=t(Te||(Te=z(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardBox{width:",";overflow: hidden;\noverflow-x: auto;position:relative;}\n.CardBox::-webkit-scrollbar{display:none}\n.CardWrap{display:inline-flex}\n.CardWrap div.Card{\nwidth:",";\nheight:",";\nmargin: 0 0 0 ",";\n}\n.CardWrap div.Card:last-child{margin-right:","}\n.CardWrap div.Card img {width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:0;\n}\n.Synthesis .Img {z-index:2;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),wt(),We.toVw(279),We.toVw(70),We.toVw(84),We.toVw(10),We.toVw(5),yt(["PoiNo"]),yt(["PoiNo"]));class De extends n{constructor(){super(...arguments),this.disabled=!1}colorChanged(t,e){Lt(this)({color:e})}sizeChanged(t,e){for(let t=0;t<this.children.length;t++){Wt(this.children[t])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(t){t&&t(this)}setValueFn(t,e){this[t+"Changed"]("",e)}update(t,e){e&&e(t)}childrenFn(t){const e=this.children.length;if(e>0){for(let t=0;t<e;t++){const o=this.children[t];0==t?Wt(o)("first"):t+1==e&&Wt(o)("last"),Wt(o)("index",String(t))}t&&t()}}}Mt([e],De.prototype,"color",void 0),Mt([e],De.prototype,"size",void 0),Mt([e({mode:"boolean"})],De.prototype,"disabled",void 0);class Re{constructor(){this.timeOut=0}init(t){let e,o;e=setInterval((()=>{o="string"==typeof t.front?window[t.front]:t.front(),this.timeOut++,(this.timeOut>=60||o)&&(clearInterval(e),t.callback())}),50)}}const Fe=t`
|
|
356
356
|
:host{
|
|
357
357
|
overflow: hidden;
|
|
358
358
|
display: inline-block;
|