mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-27 21:50:28 +00:00
11 lines
2.8 KiB
JavaScript
11 lines
2.8 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/swiperBg"],{"4c61":function(t,e,n){"use strict";var i=n("dd6f"),a=n.n(i);a.a},9342:function(t,e,n){"use strict";n.r(e);var i=n("c3fb"),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},c3fb:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("4729"),a=t.getSystemInfoSync().statusBarHeight+"px",r=getApp(),s={name:"swiperBg",props:{dataConfig:{type:Object,default:function(){}}},watch:{dataConfig:{immediate:!0,handler:function(e,n){var i=this;e&&(this.imgUrls=e.imgList?e.imgList.list:[],this.isShow=!e.isShow||e.isShow.val,t.getImageInfo({src:this.imgUrls.length?this.imgUrls[0].img:"",success:function(t){t&&t.height>0?i.$set(i,"imageH",t.height/t.width*720):i.$set(i,"imageH",375)},fail:function(t){i.$set(i,"imageH",375)}}))}},imageH:function(t,e){}},data:function(){return{indicatorDots:!1,circular:!0,autoplay:!0,interval:4e3,duration:500,imgUrls:[],name:this.$options.name,isIframe:!1,mt:-55,isShow:!0,imageH:250,swiperCur:0}},created:function(){var e=t.getSystemInfoSync(),n=e.platform;this.statusBarHeight=e.statusBarHeight,this.mt="android"===n?2*parseFloat(a)+170:2*parseFloat(a)+168,this.isIframe=r.globalData.isIframe},mounted:function(){},methods:{goDetail:function(e){(0,i.goPage)().then((function(n){var i=e.info[1].value;i&&(-1!=i.indexOf("http")||(-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index"].indexOf(i)?t.navigateTo({url:i}):t.reLaunch({url:i})))}))},setDomain:function(t){return t=t?t.toString():"",t.indexOf("https://")>-1?t:t.replace("http://","https://")},swiperChange:function(t){var e=t.detail,n=(e.current,e.source);"autoplay"!==n&&"touch"!==n||(this.swiperCur=t.detail.current)}}};e.default=s}).call(this,n("543d")["default"])},c9e5:function(t,e,n){"use strict";n.r(e);var i=n("d8f8"),a=n("9342");for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("4c61");var s,o=n("f0c5"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],s);e["default"]=u.exports},d8f8:function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},r=[]},dd6f:function(t,e,n){}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'pages/index/components/swiperBg-create-component',
|
|
{
|
|
'pages/index/components/swiperBg-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("c9e5"))
|
|
})
|
|
},
|
|
[['pages/index/components/swiperBg-create-component']]
|
|
]);
|