2026-03-23 14:57:47 +08:00

11 lines
9.2 KiB
JavaScript

require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subpackage/diyComponents/pictureCube"],{2241:function(t,e,l){"use strict";var s=l("a018"),y=l.n(s);y.a},"2d22":function(t,e,l){"use strict";l.r(e);var s=l("2f29"),y=l.n(s);for(var i in s)["default"].indexOf(i)<0&&function(t){l.d(e,t,(function(){return s[t]}))}(i);e["default"]=y.a},"2f29":function(t,e,l){"use strict";(function(t){var s=l("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var y=s(l("7ca3"));function i(t,e){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),l.push.apply(l,s)}return l}function n(t){for(var e=1;e<arguments.length;e++){var l=null!=arguments[e]?arguments[e]:{};e%2?i(Object(l),!0).forEach((function(e){(0,y.default)(t,e,l[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):i(Object(l)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(l,e))}))}return t}var a={components:{commonWrapper:function(){l.e("subpackage/diyComponents/commonWrapper").then(function(){return resolve(l("11450"))}.bind(null,l)).catch(l.oe)}},name:"pictureCube",props:{dataConfig:{type:Object,default:function(){}}},data:function(){return{picList:this.dataConfig.picStyle.picList,style:this.dataConfig.styleConfig.tabVal,imageH:0}},computed:{configData:function(){return n(n({},this.dataConfig),{},{paddingConfig:this.dataConfig.paddingConfig||{isAll:!1,valList:[{val:this.dataConfig.topConfig?this.dataConfig.topConfig.val:0},{val:this.dataConfig.prConfig?this.dataConfig.prConfig.val:0},{val:this.dataConfig.bottomConfig?this.dataConfig.bottomConfig.val:0},{val:this.dataConfig.prConfig?this.dataConfig.prConfig.val:0}]},marginConfig:this.dataConfig.marginConfig||{isAll:!1,valList:[{val:this.dataConfig.mbConfig?this.dataConfig.mbConfig.val:0},{val:0},{val:0},{val:0}]}})},imgGap:function(){return{borderWidth:"".concat(2*this.dataConfig.imgConfig.val,"rpx")}},imgBorderRadius:function(){var t="".concat(2*this.dataConfig.filletImg.val,"rpx");return this.dataConfig.filletImg.type&&(t="".concat(2*this.dataConfig.filletImg.valList[0].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[1].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[2].val,"rpx")),t},autoHeight:function(){var e=t.getWindowInfo().windowWidth;return{height:e+"px"}}},mounted:function(){this.computedHeight()},methods:{setDomain:function(t){return t=t?t.toString():"",t.indexOf("https://")>-1?t:t.replace("http://","https://")},goDetail:function(e){var l=e.link;t.navigateTo({url:l,fail:function(e){t.switchTab({url:l})}})},computedHeight:function(){var e=this;if(this.picList.length){var l=this,s=t.getWindowInfo().windowWidth;this.$nextTick((function(y){0==e.style?e.imageH=s/2:[1,2].includes(e.style)?t.getImageInfo({src:l.setDomain(l.picList[0].image),success:function(t){if(t&&t.height>0){var s=t.height*((1==e.style?375:250-2*l.dataConfig.prConfig.val)/t.width);l.$set(l,"imageH",s)}else l.$set(l,"imageH",2*(1==e.style?375:250-2*l.dataConfig.prConfig.val))},fail:function(t){l.$set(l,"imageH",2*(1==this.style?375:250-2*l.dataConfig.prConfig.val))}}):10==e.style&&t.getImageInfo({src:l.setDomain(l.picList[0].image),success:function(t){e.imageH=t.height*s/t.width}})}))}}}};e.default=a}).call(this,l("df3c")["default"])},"6a6f":function(t,e,l){"use strict";l.r(e);var s=l("a811"),y=l("2d22");for(var i in y)["default"].indexOf(i)<0&&function(t){l.d(e,t,(function(){return y[t]}))}(i);l("2241");var n=l("828b"),a=Object(n["a"])(y["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);e["default"]=a.exports},a018:function(t,e,l){},a811:function(t,e,l){"use strict";l.d(e,"b",(function(){return y})),l.d(e,"c",(function(){return i})),l.d(e,"a",(function(){return s}));var s={easyLoadimage:function(){return l.e("components/easy-loadimage/easy-loadimage").then(l.bind(null,"9e02"))}},y=function(){var t=this,e=t.$createElement,l=(t._self._c,t.picList.length),s=l&&0==t.style?t.__map(t.picList,(function(e,l){var s=t.__get_orig(e),y=t.__get_style([t.imgGap]);return{$orig:s,s0:y}})):null,y=l&&0!=t.style&&1==t.style?t.__map(t.picList,(function(e,l){var s=t.__get_orig(e),y=t.__get_style([t.imgGap]);return{$orig:s,s1:y}})):null,i=l&&0!=t.style&&1!=t.style&&2==t.style?t.__map(t.picList,(function(e,l){var s=t.__get_orig(e),y=t.__get_style([t.imgGap]);return{$orig:s,s2:y}})):null,n=l&&0!=t.style&&1!=t.style&&2!=t.style&&3==t.style?t.__get_style([t.autoHeight]):null,a=l&&0!=t.style&&1!=t.style&&2!=t.style&&3==t.style?t.__get_style([t.imgGap]):null,o=l&&0!=t.style&&1!=t.style&&2!=t.style&&3==t.style?t.__get_style([t.imgGap]):null,g=l&&0!=t.style&&1!=t.style&&2!=t.style&&3==t.style?t.__get_style([t.imgGap]):null,r=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4==t.style?t.__get_style([t.autoHeight]):null,u=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4==t.style?t.__get_style([t.imgGap]):null,f=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4==t.style?t.__get_style([t.imgGap]):null,c=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4==t.style?t.__get_style([t.imgGap]):null,_=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5==t.style?t.__get_style([t.autoHeight]):null,p=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5==t.style?t.__get_style([t.imgGap]):null,d=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5==t.style?t.__get_style([t.imgGap]):null,m=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5==t.style?t.__get_style([t.imgGap]):null,h=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6==t.style?t.__get_style([t.autoHeight]):null,v=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6==t.style?t.__get_style([t.imgGap]):null,C=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6==t.style?t.__get_style([t.imgGap]):null,b=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6==t.style?t.__get_style([t.imgGap]):null,G=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7==t.style?t.__get_style([t.autoHeight]):null,O=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7==t.style?t.__map(t.picList,(function(e,l){var s=t.__get_orig(e),y=t.__get_style([t.imgGap]);return{$orig:s,s20:y}})):null,L=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8==t.style?t.__get_style([t.autoHeight]):null,w=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8==t.style?t.__get_style([t.imgGap]):null,H=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8==t.style?t.__get_style([t.imgGap]):null,j=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8==t.style?t.__get_style([t.imgGap]):null,x=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8==t.style?t.__get_style([t.imgGap]):null,I=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8==t.style?t.__get_style([t.imgGap]):null,$=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9==t.style?t.__get_style([t.autoHeight]):null,P=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9==t.style?t.__get_style([t.imgGap]):null,D=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9==t.style?t.__get_style([t.imgGap]):null,k=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9==t.style?t.__get_style([t.imgGap]):null,W=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9==t.style?t.__get_style([t.imgGap]):null,S=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9!=t.style&&10==t.style?t.__get_style([t.imgGap]):null,E=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9!=t.style&&10!=t.style&&11==t.style?t.__get_style([t.autoHeight]):null,T=l&&0!=t.style&&1!=t.style&&2!=t.style&&3!=t.style&&4!=t.style&&5!=t.style&&6!=t.style&&7!=t.style&&8!=t.style&&9!=t.style&&10!=t.style&&11==t.style?t.dataConfig.picStyle.docPicList.length:null;t.$mp.data=Object.assign({},{$root:{g0:l,l0:s,l1:y,l2:i,s3:n,s4:a,s5:o,s6:g,s7:r,s8:u,s9:f,s10:c,s11:_,s12:p,s13:d,s14:m,s15:h,s16:v,s17:C,s18:b,s19:G,l3:O,s21:L,s22:w,s23:H,s24:j,s25:x,s26:I,s27:$,s28:P,s29:D,s30:k,s31:W,s32:S,s33:E,g1:T}})},i=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'subpackage/diyComponents/pictureCube-create-component',
{
'subpackage/diyComponents/pictureCube-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("6a6f"))
})
},
[['subpackage/diyComponents/pictureCube-create-component']]
]);