You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
6.1 KiB
10 lines
6.1 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/homeComb"],{"43e6":function(t,i,o){"use strict";var a=o("84c7"),e=o.n(a);e.a},"7a5f":function(t,i,o){"use strict";(function(t){var a=o("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;o("ce7e"),o("a230");var e=a(o("3e38")),n=t.getSystemInfoSync().statusBarHeight,r={name:"homeComb",props:{dataConfig:{type:Object,default:function(){}},isFixed:{type:Boolean,default:!1},isScrolled:{type:Boolean,default:!1},isScale:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},special:{type:Number,default:0}},data:function(){return{statusBarHeight:n,autoplay:!0,interval:1e3*this.dataConfig.numConfig.val||2500,duration:500,logoConfig:this.dataConfig.logoConfig.url,tabClick:0,isLeft:0,isWidth:0,mainWidth:0,tabLeft:0,tabTitle:[],isTop:0,navHeight:38,indicatorDots:!1,circular:!0,intervals:3e3,imgUrls:[],swiperCur:0,searchVal:"",bgColor:this.dataConfig.swiperConfig.list.length?this.dataConfig.swiperConfig.list[0].img:"",isCategory:!1,txtColor:"",hotWordShow:!1,bgColorLeft:"",bgColorRight:"",searchShow:!1,titleConfig:this.dataConfig.titleConfig.value,searchBox:this.dataConfig.searchBox.tabVal,fixConfig:this.dataConfig.searchFix.tabVal}},computed:{classColor:function(){var t=this.dataConfig.classColor;return{background:"linear-gradient(90deg, ".concat(t.color[0].item," 50%, ").concat(t.color[1].item," 100%)"),color:"#fff"}},swiperMargin:function(){return this.dataConfig.styleConfig.tabVal?"50rpx":"10rpx"},mpHeaderStyle:function(){var t={};return this.isScrolled&&this.dataConfig.searchConfig.tabVal?(t.background="linear-gradient(90deg, #FFFFFF 50%, #FFFFFF 100%)",t.position="fixed",this.searchShow=!0):this.searchShow=!1,t},inputStyle:function(){var t={};return this.isScrolled&&this.dataConfig.searchConfig.tabVal&&(t.background="#F5F5F5",t.color="#BBBBBB"),t},titleStyle:function(){var t={};return this.isScrolled&&this.dataConfig.searchConfig.tabVal&&(t.color="#333"),t},progressWidth:function(){return{width:"".concat(20*this.dataConfig.swiperConfig.list.length,"rpx")}},progressValue:function(){return{width:"".concat((this.swiperCur+1)/this.dataConfig.swiperConfig.list.length*100,"%")}},dotBgColor:function(){return{background:this.dataConfig.dotBgColor.color[0].item}},dotColor:function(){return{background:this.dataConfig.dotColor.color[0].item}},imageStyle: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[2].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].val,"rpx")),{"border-radius":t}},tabListConfig:function(){var t=this.dataConfig.tabListConfig.list;return t.unshift({classPage:{id:0},dataType:{tabVal:0},microPage:{id:0},text:{val:"首页"}}),t},hotWords:function(){return this.dataConfig.hotWords.list.filter((function(t){return t.val}))}},mixins:[e.default],created:function(){var i=this;t.getSystemInfo({success:function(t){i.mainWidth=t.windowWidth,i.isWidth=(t.windowWidth-65)/8}}),i.imgUrls=i.dataConfig.swiperConfig.list},mounted:function(){var i=this;this.hotWords.forEach((function(t){t.val&&(i.hotWordShow=!0)})),t.setStorageSync("hotList",this.hotWords),0==this.searchBox&&this.selfLocation()},methods:{goDetail:function(t){var i=t.info[1].value;this.$util.JumpPath(i)},setDomain:function(t){return t=t?t.toString():"",t.indexOf("https://")>-1?t:t.replace("http://","https://")},swiperChange:function(t){var i=t.detail,o=(i.current,i.source);"autoplay"!==o&&"touch"!==o||(this.swiperCur=t.detail.current,this.bgColor=this.imgUrls[t.detail.current]["img"])},textChange:function(t){var i=t.detail,o=(i.current,i.source);"autoplay"!==o&&"touch"!==o||(this.searchVal=this.hotWords[t.detail.current]["val"])},showCategory:function(){this.isCategory=!0},changeTab:function(t,i){if(this.tabClick!=i){this.tabClick=i,this.isLeft=i*this.isWidth+16,this.isCategory=!1;var o={type:t.dataType.tabVal,microPage:t.microPage.id,classPage:t.classPage.id};this.$emit("bindSortId",o)}}}};i.default=r}).call(this,o("df3c")["default"])},"7ea6":function(t,i,o){"use strict";o.r(i);var a=o("fc69"),e=o("d9be");for(var n in e)["default"].indexOf(n)<0&&function(t){o.d(i,t,(function(){return e[t]}))}(n);o("43e6");var r=o("828b"),s=Object(r["a"])(e["default"],a["b"],a["c"],!1,null,"4c4504cc",null,!1,a["a"],void 0);i["default"]=s.exports},"84c7":function(t,i,o){},d9be:function(t,i,o){"use strict";o.r(i);var a=o("7a5f"),e=o.n(a);for(var n in a)["default"].indexOf(n)<0&&function(t){o.d(i,t,(function(){return a[t]}))}(n);i["default"]=e.a},fc69:function(t,i,o){"use strict";o.d(i,"b",(function(){return a})),o.d(i,"c",(function(){return e})),o.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,o=(t._self._c,t.__get_style([t.mpHeaderStyle])),a=0==t.searchBox?t.__get_style([t.titleStyle]):null,e=0==t.searchBox&&0==t.fixConfig?t.storeName.slice(0,4)||"选择门店":null,n=1==t.searchBox?t.__get_style([t.titleStyle]):null,r=t.hotWords.length,s=r?t.__get_style([t.inputStyle]):null,l=r?null:t.__get_style([t.inputStyle]),c=t.imgUrls.length,f=c?t.__map(t.imgUrls,(function(i,o){var a=t.__get_orig(i),e=t.__get_style([t.imageStyle]);return{$orig:a,s5:e}})):null,u=c&&2==t.dataConfig.docConfig.tabVal?t.__get_style([t.progressWidth,t.dotBgColor]):null,g=c&&2==t.dataConfig.docConfig.tabVal?t.__get_style([t.progressValue,t.dotColor]):null,d=c&&2!=t.dataConfig.docConfig.tabVal?t.__map(t.imgUrls,(function(i,o){var a=t.__get_orig(i),e=t.__get_style([t.dotBgColor,o==t.swiperCur?t.dotColor:""]);return{$orig:a,s8:e}})):null;t._isMounted||(t.e0=function(i){t.isCategory=!1}),t.$mp.data=Object.assign({},{$root:{s0:o,s1:a,g0:e,s2:n,g1:r,s3:s,s4:l,g2:c,l0:f,s6:u,s7:g,l1:d}})},e=[]}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'pages/index/components/homeComb-create-component',
|
|
{
|
|
'pages/index/components/homeComb-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("7ea6"))
|
|
})
|
|
},
|
|
[['pages/index/components/homeComb-create-component']]
|
|
]);
|
|
|