11 lines
3.8 KiB
JavaScript
11 lines
3.8 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/home/index"],{"0708":function(e,t,n){"use strict";n.r(t);var i=n("583d"),o=n("39bb");for(var s in o)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);n("b2df");var a=n("828b"),r=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"064580fc",null,!1,i["a"],void 0);t["default"]=r.exports},"39bb":function(e,t,n){"use strict";n.r(t);var i=n("6032"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=o.a},"583d":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.is_show&&e.showMenu&&3==e.index&&e.isOpen?e.menus.length:null),i=e.is_show&&e.showMenu&&4==e.index&&e.isOpen?e.menus.length:null;e.$mp.data=Object.assign({},{$root:{g0:n,g1:i}})},o=[]},6032:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n("7ca3")),s=n("8f59"),a=i(n("89cc")),r=n("4d38"),c=(i(n("3240")),n("360a"));function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}var f={name:"fabHome",props:{styleType:{type:Number,default:2}},mixins:[a.default],data:function(){return{top:"545",imgHost:r.HTTP_REQUEST_URL,isOpen:!1,opend:!1,menus:[],main_image:"",shifting:10,index:4,is_show:1,main_after_image:"",main_ago_image:"",windowHeight:0,fabHeight:0,isHide:!1,menu:{color:"rgba(0, 0, 0, 0.10)"},showMenu:!0}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,s.mapGetters)(["isLogin"])),mounted:function(){var t=this;e.$on("scroll",this.scrollFn),this.isLogin&&[1,2].includes(this.$store.state.app.identity)?this.showMenu=!1:setTimeout((function(){t.getSuspended()}),500),e.getSystemInfo({success:function(e){t.windowHeight=e.windowHeight}})},beforeDestroy:function(){this.$Cache.set("homeTop",this.top)},methods:{changeStatus:function(){this.isOpen=!this.isOpen,this.opend=!0,this.isHide=!1},setTouchMove:function(e){var t=e.touches[0].clientY;t>this.fabHeight/2&&t<this.windowHeight-this.fabHeight/2&&(this.top=t)},scrollFn:function(){this.isOpen=!1,this.isHide=!0},jump:function(e){this.$util.JumpPath(e)},getSuspended:function(){var t=this;(0,c.getSuspended)().then((function(n){var i=n.data;t.menus=i.button,t.index=i.index,t.is_show=i.is_show,t.main_image=i.main_image,t.main_after_image=i.main_after_image||"",t.main_ago_image=i.main_ago_image||"",t.shifting=i.shifting,i.is_show&&t.$nextTick((function(){var n=e.createSelectorQuery().in(t);n.select("#fab".concat(t.index)).boundingClientRect((function(e){t.fabHeight=e.height,t.$Cache.get("homeTop")?t.top=t.$Cache.get("homeTop"):100==t.shifting?t.top=t.windowHeight-e.height/2:0==t.shifting?t.top=e.height/2:t.top=t.shifting/100*t.windowHeight})).exec()}))}))}}};t.default=f}).call(this,n("df3c")["default"])},"7a82":function(e,t,n){},b2df:function(e,t,n){"use strict";var i=n("7a82"),o=n.n(i);o.a}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/home/index-create-component',
|
|
{
|
|
'components/home/index-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("0708"))
|
|
})
|
|
},
|
|
[['components/home/index-create-component']]
|
|
]);
|