bztang-admin/addons/yun_shop/static/app/js/chunk-291d5f38.1aa47141.js

1 line
2.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-291d5f38"],{"24f0":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{height:"100vh",width:"100vw"}},[i("iframe",{attrs:{src:t.iframeSrc,scrolling:"no",frameborder:"0",marginheight:"0",marginwidth:"0"}})])},n=[],r=i("ac0d"),c={mixins:[r["a"]],data:function(){return{iframeSrc:""}},activated:function(){var t=this.fun.getKeyByI(),e=this.fun.getKeyByMid(),i=this.fun.getTyep(),o=this.fun.getKeyByMicroShopId(),n=window.localStorage.uuid,r=this.$route.query,c="",a="/addons/yun_shop/api.php?i="+t+"&uuid="+n+"&type="+i;for(var l in e&&(a+="&mid="+e),o&&(a+="&shop_id="+o),r)c+="&"+l+"="+r[l];this.iframeSrc=this.fun.getSiteRoot()+a+"&route="+this.$route.params.url+c}},a=c,l=(i("cfe5"),i("2877")),s=Object(l["a"])(a,o,n,!1,null,"67d4af04",null);e["default"]=s.exports},"899a":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"iframe[data-v-67d4af04]{width:100%;height:100%;display:block}",""]),t.exports=e},9803:function(t,e,i){var o=i("899a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("499e").default;n("f65d867a",o,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var o=document.documentElement,n=document.body,r={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&o.clientHeight?Math.min(n.clientHeight,o.clientHeight):Math.max(n.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},cfe5:function(t,e,i){"use strict";i("9803")}}]);