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.
11 lines
5.2 KiB
11 lines
5.2 KiB
3 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/components/headerSerch"],{"0ab1":function(t,i,o){"use strict";o.d(i,"b",(function(){return e})),o.d(i,"c",(function(){return n})),o.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,o=(t._self._c,t.__get_style([t.headerStyle,{paddingRight:t.serchRight+"px"}])),e=t.__get_style([t.serchWrapperStyle,{height:t.serchHeight+"px"}]),n=t.__get_style([t.txtPosition]),a=t.titleConfig&&(1==t.styleConfig||0==t.styleConfig&&0==t.styleTypeConfig)?t.__get_style([t.txtStyle]):null,l=2==t.styleConfig||0==t.styleConfig&&1==t.styleTypeConfig?t.__get_style([t.txtStyle]):null,s=(2==t.styleConfig||0==t.styleConfig&&1==t.styleTypeConfig)&&2===t.styleConfig&&0==t.fixConfig?t.storeName.slice(0,7)||"选择门店":null,f=(2==t.styleConfig||0==t.styleConfig&&1==t.styleTypeConfig)&&0===t.styleConfig&&0==t.fixConfig?t.storeName.slice(0,4)||"选择门店":null,r=0===t.styleConfig?t.__get_style([t.searchStyle]):null,g=0===t.styleConfig?t.hotWords.length:null;t.$mp.data=Object.assign({},{$root:{s0:o,s1:e,s2:n,s3:a,s4:l,g0:s,g1:f,s5:r,g2:g}})},n=[]},"3d52":function(t,i,o){"use strict";o.r(i);var e=o("9833"),n=o.n(e);for(var a in e)["default"].indexOf(a)<0&&function(t){o.d(i,t,(function(){return e[t]}))}(a);i["default"]=n.a},"8cec":function(t,i,o){},9833:function(t,i,o){"use strict";(function(t){var e=o("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=e(o("3e38")),a=t.getSystemInfoSync().statusBarHeight,l={name:"headerSerch",props:{dataConfig:{type:Object,default:function(){}}},data:function(){return{statusBarHeight:a,marTop:63,styleConfig:this.dataConfig.styleConfig.tabVal,styleTypeConfig:this.dataConfig.styleTypeConfig.tabVal,bgColor:this.dataConfig.moduleColor.color,titleConfig:this.dataConfig.titleConfig.value,txtColor:this.dataConfig.txtColor.color[0].item,txtStyleConfig:this.dataConfig.txtStyleConfig.tabList[this.dataConfig.txtStyleConfig.tabVal].style,txtSize:this.dataConfig.txtSize.val,fixConfig:this.dataConfig.fixConfig.tabVal,logoConfig:this.dataConfig.logoConfig.url,txtFixConfig:this.dataConfig.txtFixConfig.tabVal,boxStyle:"",mbConfig:"",hotWords:[],prConfig:"",tabVal:"",radioVal:"",textColor:"",textStyle:"",serchHeight:"",serchRight:""}},computed:{txtStyle:function(){var t=0;return 0==this.styleConfig&&2!=this.styleTypeConfig&&(t=30),{color:"".concat(this.txtColor),fontStyle:"".concat("bold"!=this.txtStyleConfig?this.txtStyleConfig:""),fontWeight:"".concat("bold"==this.txtStyleConfig?this.txtStyleConfig:""),fontSize:"".concat(2*this.txtSize,"rpx"),marginRight:"".concat(t,"rpx")}},headerStyle:function(){return{padding:"".concat(2*this.dataConfig.topConfig.val,"rpx ").concat(2*this.dataConfig.prConfig.val,"rpx ").concat(2*this.dataConfig.bottomConfig.val,"rpx"),background:this.dataConfig.bottomBgColor.color[0].item}},serchWrapperStyle:function(){var t=[];if(this.dataConfig.fillet.type)for(var i=0;i<this.dataConfig.fillet.valList.length;i++)t.push("".concat(2*this.dataConfig.fillet.valList[i].val,"rpx"));else for(var o=0;o<4;o++)t.push("".concat(2*this.dataConfig.fillet.val,"rpx"));return{borderRadius:t.join(" "),background:"linear-gradient(90deg, ".concat(this.dataConfig.moduleColor.color[0].item," 0%, ").concat(this.dataConfig.moduleColor.color[1].item," 100%)")}},txtPosition:function(){return{justifyContent:0!=this.styleConfig&&1===this.txtFixConfig?"center":0!=this.styleConfig&&2===this.txtFixConfig?"flex-end":"flex-start",paddingLeft:0!=this.styleConfig&&1===this.txtFixConfig?this.serchRight+"px !important":0}},searchStyle:function(){return{background:this.dataConfig.searchBoxColor.color[0].item,color:this.dataConfig.tipColor.color[0].item,justifyContent:0==this.txtFixConfig?"flex-start":2==this.txtFixConfig?"flex-end":"center"}}},mixins:[n.default],mounted:function(){var i=this,o=this;o.hotWords=o.dataConfig.hotWords.list.filter((function(t){if(t.val)return t})),t.setStorageSync("hotList",o.hotWords),o.$store.commit("hotWords/setHotWord",o.hotWords),setTimeout((function(){var e=t.createSelectorQuery().in(i).select(".m
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'pages/index/components/headerSerch-create-component',
|
||
|
{
|
||
|
'pages/index/components/headerSerch-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("d995"))
|
||
|
})
|
||
|
},
|
||
|
[['pages/index/components/headerSerch-create-component']]
|
||
|
]);
|