mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-03-25 23:03:12 +00:00
11 lines
5.9 KiB
JavaScript
11 lines
5.9 KiB
JavaScript
require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subpackage/diyComponents/headerSerch"],{"0baf":function(t,i,o){},"577e":function(t,i,o){"use strict";o.r(i);var n=o("ceb0"),e=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(i,t,(function(){return n[t]}))}(a);i["default"]=e.a},6676:function(t,i,o){"use strict";var n=o("0baf"),e=o.n(n);e.a},a127:function(t,i,o){"use strict";o.d(i,"b",(function(){return n})),o.d(i,"c",(function(){return e})),o.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,o=(t._self._c,t.__get_style([t.serchWrapperStyle,{height:t.serchHeight+"px"},{paddingRight:(t.special?0:t.serchRight)+"px"}])),n=t.__get_style([t.txtPosition]),e=t.titleConfig&&(1==t.styleConfig||0==t.styleConfig&&0==t.styleTypeConfig)?t.__get_style([t.txtStyle]):null,a=0===t.styleConfig?t.__get_style([t.searchStyle]):null,r=0===t.styleConfig?t.hotWords.length:null;t.$mp.data=Object.assign({},{$root:{s0:o,s1:n,s2:e,s3:a,g0:r}})},e=[]},ceb0:function(t,i,o){"use strict";(function(t){var n=o("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n(o("7ca3"));function a(t,i){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.push.apply(o,n)}return o}function r(t){for(var i=1;i<arguments.length;i++){var o=null!=arguments[i]?arguments[i]:{};i%2?a(Object(o),!0).forEach((function(i){(0,e.default)(t,i,o[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))}))}return t}var l=t.getWindowInfo().statusBarHeight,f={name:"headerSerch",components:{commonWrapper:function(){o.e("subpackage/diyComponents/commonWrapper").then(function(){return resolve(o("11450"))}.bind(null,o)).catch(o.oe)}},props:{dataConfig:{type:Object,default:function(){}},special:{type:Number,default:0},belongIndex:{type:Number,default:0}},data:function(){return{statusBarHeight:l,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,logoConfig:this.dataConfig.logoConfig.url,txtFixConfig:this.dataConfig.txtFixConfig.tabVal,boxStyle:"",mbConfig:"",hotWords:[],prConfig:"",tabVal:"",radioVal:"",textColor:"",textStyle:"",serchHeight:43,serchRight:""}},computed:{configData:function(){return r(r({},this.dataConfig),{},{zIndexConfig:1e3,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}]},backgroundConfig:this.dataConfig.bottomBgColor})},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")}},serchWrapperStyle:function(){"".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&"".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx"),{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"}}},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 n=t.createSelectorQuery().in(i).select(".mp-header");n.boundingClientRect((function(t){o.marTop=t.height})).exec()}),100);var n=t.getWindowInfo(),e=n.windowWidth,a=n.statusBarHeight,r=t.getMenuButtonBoundingClientRect(),l=r.top,f=r.left,s=(r.width,r.height);o.serchHeight=2*(l-a)+s,o.serchRight=e-f},methods:{goLink:function(){var t=this.dataConfig.linkConfig.value;this.$util.JumpPath(t)}}};i.default=f}).call(this,o("df3c")["default"])},e1da:function(t,i,o){"use strict";o.r(i);var n=o("a127"),e=o("577e");for(var a in e)["default"].indexOf(a)<0&&function(t){o.d(i,t,(function(){return e[t]}))}(a);o("6676");var r=o("828b"),l=Object(r["a"])(e["default"],n["b"],n["c"],!1,null,"033632fc",null,!1,n["a"],void 0);i["default"]=l.exports}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'subpackage/diyComponents/headerSerch-create-component',
|
|
{
|
|
'subpackage/diyComponents/headerSerch-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("e1da"))
|
|
})
|
|
},
|
|
[['subpackage/diyComponents/headerSerch-create-component']]
|
|
]);
|