1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(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){e(n)},fail:function(n){t(n)}})}))},e.GetUserInfo=function(){return new Promise((function(n,e){uni.getUserInfo({success:function(e){n(e)},fail:function(n){e(n)}})}))},e.Loading=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,a.default)({title:n,mask:!0},e))},e.Modal=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!";return new Promise((function(t,o){uni.showModal({title:n,content:e,success:function(n){n.confirm&&t(),n.cancel&&o()}})}))},e.ScrollTo=function(n){uni.pageScrollTo({scrollTop:n,duration:300})},e.Toast=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,i=(0,a.default)({title:n,duration:o,position:"center",mask:!0,icon:e||"none"},t);uni.showToast(i)},e.chooseImage=function(n){return new Promise((function(e,t){uni.chooseImage({count:n,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(n){e(n)},fail:function(n){t(n)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(n){throw new Error("处理失败")}},e.convertObj=r,e.formatDate=c,e.getQuarterStartDate=function(){var n=new Date(d,function(){var n=0;u<3&&(n=0);2<u&&u<6&&(n=3);5<u&&u<9&&(n=6);u>8&&(n=9);return n}(),1);return c(n,"yyyy-MM-dd")},e.getStorage=function(n){var e=uni.getStorageSync(n);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(t){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(n){throw new Error("处理失败")}},e.navigateBack=function(n){uni.navigateBack({delta:n})},e.navigateTo=function(n,e,t){var o=e,i="navigateTo";switch(o=t?o+"?"+r(t):o,n){case 1:i="navigateTo";break;case 2:i="redirectTo";break;case 3:i="reLaunch";break;case 4:i="switchTab";break;default:i="navigateTo";break}uni[i]({url:o,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(n){return new Promise((function(e,t){if("object"===("undefined"===typeof window?"undefined":(0,i.default)(window))&&"document"in window){if("function"===typeof FileReader){var o=new XMLHttpRequest;return o.open("GET",n,!0),o.responseType="blob",o.onload=function(){if(200===this.status){var n=new FileReader;n.onload=function(n){e(n.target.result)},n.onerror=t,n.readAsDataURL(this.response)}},o.onerror=t,void o.send()}var a=document.createElement("canvas"),r=a.getContext("2d"),c=new Image;return c.onload=function(){a.width=c.width,a.height=c.height,r.drawImage(c,0,0),e(a.toDataURL()),a.height=a.width=0},c.onerror=t,void(c.src=n)}"object"!==("undefined"===typeof plus?"undefined":(0,i.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,i.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:n,encoding:"base64",success:function(n){e("data:image/png;base64,"+n.data)},fail:function(n){t(n)}}):t(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(n),(function(n){n.file((function(n){var o=new plus.io.FileReader;o.onload=function(n){e(n.target.result)},o.onerror=function(n){t(n)},o.readAsDataURL(n)}),(function(n){t(n)}))}),(function(n){t(n)}))}))},e.removeStorage=function(n){n&&uni.removeStorageSync(n)},e.serialize=function(n){if(null!=n&&""!=n)try{return JSON.parse(JSON.stringify(n))}catch(e){return n instanceof Array?[]:{}}return n},e.setStorage=function(n,e){if("string"==typeof e)return uni.setStorageSync(n,e),e;uni.setStorageSync(n,JSON.stringify(e))},e.showMonthFirstDay=function(){var n=(new Date).setDate(1);return c(new Date(n).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var n=new Date,e=n.getDay()||7;return n.setDate(n.getDate()-e+1),c(n,"yyyy-MM-dd")},e.throttle=function(n,e){var t,o;e=e||200;return function(){for(var i=this,a=arguments.length,r=new Array(a),c=0;c<a;c++)r[c]=arguments[c];t=r,o||(o=setTimeout((function(){o=null,n.apply(i,t)}),e))}},e.unique=function(n){n=n||[];for(var e={},t=0;t<n.length;t++){var o=JSON.stringify(n[t]);"undefined"==typeof o&&(e[o]=1)}for(var t in n.length=0,e)n[n.length]=t;return n};var i=o(t("fcf3")),a=o(t("9b1b"));function r(n){var e,t=[];return Object.keys(n).forEach((function(e){t.push("".concat(e,"=").concat(n[e]))})),e=t.join("&"),e}function c(n,e){return n?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(n).format(e)):""}t("d4b5"),t("7a76"),t("c9b5"),t("bf0f"),t("2797"),t("dc8a"),t("aa9c"),t("c223"),t("5c47"),t("0506"),t("a1c1"),t("23f4"),t("7d2f"),t("9c4e"),t("ab80"),Date.prototype.format=function(n){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var t in/(y+)/.test(n)&&(n=n.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+t+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?e[t]:("00"+e[t]).substr(String(e[t]).length)));return n};var s=new Date,u=s.getMonth(),d=s.getYear();d+=d<2e3?1900:0},c328:function(n,e,t){var o=t("c86c");e=o(!1),e.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n /* 官方优化图片tips */uni-image[data-v-3715fc7d]{will-change:transform}\n /* 渐变过渡效果处理 */uni-image.origin-img[data-v-3715fc7d]{width:100%;height:100%;opacity:.3;max-height:%?360?%}uni-image.origin-img.show-transition[data-v-3715fc7d]{transition:opacity .5s;opacity:1}uni-image.origin-img.no-transition[data-v-3715fc7d]{opacity:1}\n /* 加载失败、加载中的占位图样式控制 */.loadfail-img[data-v-3715fc7d]{height:100%;background-repeat:no-repeat;background-size:50%;background-position:50%}.loading-img[data-v-3715fc7d]{height:100%;background-position:50%}\n /* 转圈 */.spin-circle[data-v-3715fc7d]{background-repeat:no-repeat;background-size:60%}\n /* 动态灰色若隐若现 */.looming-gray[data-v-3715fc7d]{-webkit-animation:looming-gray-data-v-3715fc7d 1s infinite linear;animation:looming-gray-data-v-3715fc7d 1s infinite linear;background-color:#e3e3e3}@-webkit-keyframes looming-gray-data-v-3715fc7d{0%{background-color:hsla(0,0%,89%,.6666666666666666)}50%{background-color:#e3e3e3}100%{background-color:hsla(0,0%,89%,.6666666666666666)}}@keyframes looming-gray-data-v-3715fc7d{0%{background-color:hsla(0,0%,89%,.6666666666666666)}50%{background-color:#e3e3e3}100%{background-color:hsla(0,0%,89%,.6666666666666666)}}\n /* 骨架屏1 */.skeleton-1[data-v-3715fc7d]{background-color:#e3e3e3;background-image:linear-gradient(100deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.2) 50%,hsla(0,0%,100%,0) 80%);background-size:%?100?% 100%;background-repeat:repeat-y;background-position:0 0;-webkit-animation:skeleton-1-data-v-3715fc7d .6s infinite;animation:skeleton-1-data-v-3715fc7d .6s infinite}@-webkit-keyframes skeleton-1-data-v-3715fc7d{to{background-position:200% 0}}@keyframes skeleton-1-data-v-3715fc7d{to{background-position:200% 0}}\n /* 骨架屏2 */.skeleton-2[data-v-3715fc7d]{background-image:linear-gradient(-90deg,#fefefe,#e6e6e6 50%,#fefefe);background-size:400% 400%;background-position:0 0;-webkit-animation:skeleton-2-data-v-3715fc7d 1.2s ease-in-out infinite;animation:skeleton-2-data-v-3715fc7d 1.2s ease-in-out infinite}@-webkit-keyframes skeleton-2-data-v-3715fc7d{to{background-position:-135% 0}}@keyframes skeleton-2-data-v-3715fc7d{to{background-position:-135% 0}}",""]),n.exports=e}}]); |