zx/public/static/js/pages-activity-collect_coup...

1 line
12 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-collect_coupons-index~pages-activity-combination_details-index~pages-activity-goods_s~caef05d4"],{"23ab":function(n,e,t){"use strict";t.r(e);var o=t("5201"),i=t("5544");for(var a in i)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(a);t("587c");var r=t("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"3715fc7d",null,!1,o["a"],void 0);e["default"]=c.exports},"472d":function(n,e,t){var o=t("c328");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var i=t("967d").default;i("6df37699",o,!0,{sourceMap:!1,shadowMode:!1})},5201:function(n,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){}));var o=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-uni-view",{staticClass:"easy-loadimage",attrs:{id:n.uid}},[n.loadImg&&!n.isLoadError?t("v-uni-image",{directives:[{name:"show",rawName:"v-show",value:n.showImg,expression:"showImg"}],staticClass:"origin-img",class:{"no-transition":!n.openTransition,"show-transition":n.showTransition&&n.openTransition},attrs:{src:n.imageSrc,mode:"aspectFill"},on:{load:function(e){arguments[0]=e=n.$handleEvent(e),n.handleImgLoad.apply(void 0,arguments)},error:function(e){arguments[0]=e=n.$handleEvent(e),n.handleImgError.apply(void 0,arguments)}}}):n.isLoadError?t("v-uni-view",{staticClass:"loadfail-img",style:{"background-image":"url("+n.domain+"/static/images/loadfail.png)"}}):n._e(),t("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!n.showImg&&!n.isLoadError,expression:"!showImg&&!isLoadError"}],class:["loading-img","spin-circle",n.loadingMode],style:{"background-image":"url("+n.domain+"/static/images/loading.gif)"}})],1)},i=[]},5544:function(n,e,t){"use strict";t.r(e);var o=t("57aa"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=i.a},"57aa":function(n,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t("5c47"),t("a1c1"),t("c9b5"),t("bf0f"),t("ab80"),t("64aa");var o=t("c25d"),i=t("aa10");function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var e=16*Math.random()|0,t="x"==n?e:3&e|8;return t.toString(16)}))}var r={props:{imageSrc:{type:String},mode:{type:String},loadingMode:{type:String,default:"looming-gray"},openTransition:{type:Boolean,default:!0},viewHeight:{type:Number,default:function(){return uni.getSystemInfoSync().windowHeight}}},data:function(){var n=this;return{domain:i.HTTP_REQUEST_URL,uid:"uid-"+a(),loadImg:!1,showImg:!1,isLoadError:!1,borderLoaded:0,showTransition:!1,scrollFn:(0,o.throttle)((function(){if(!n.loadImg&&!n.isLoadError){var e=n.uid,t=uni.createSelectorQuery().in(n);t.select("#"+e).boundingClientRect((function(e){e&&e.top-n.viewHeight<0&&(n.loadImg=!!n.imageSrc,n.isLoadError=!n.loadImg)})).exec()}}),200)}},methods:{init:function(){this.$nextTick(this.onScroll)},handleBorderLoad:function(){this.borderLoaded=1},handleBorderError:function(){this.borderLoaded=2},handleImgLoad:function(n){var e=this;this.showImg=!0,setTimeout((function(){e.showTransition=!0}),50)},handleImgError:function(n){this.isLoadError=!0},onScroll:function(){this.scrollFn()}},mounted:function(){this.init(),uni.$on("scroll",this.scrollFn),this.onScroll()},beforeDestroy:function(){uni.$off("scroll",this.scrollFn)}};e.default=r},"587c":function(n,e,t){"use strict";var o=t("472d"),i=t.n(o);i.a},c25d:function(n,e,t){"use strict";t("6a54");var o=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(t,o){uni.showActionSheet({itemList:n,itemColor:e,success:function(n){t(n.tapIndex)},fail:function(n){o(n.errMsg)}})}))},e.Authorize=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,t){uni.authorize({scope:n,success:function(n){