bztang-admin/addons/yun_shop/static/app/js/chunk-5d0a08d6.424abd69.js

1 line
4.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d0a08d6"],{"45f3":function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,"#brand #rootlists[data-v-d06125a2]{height:100vh;overflow:hidden;width:23%;float:left;border-right:.0625rem solid #d9d9d9}#brand #category-content[data-v-d06125a2]{background:#fff;overflow:hidden;width:100%}#brand #category-content #carcontent[data-v-d06125a2]{padding:1.25rem 0;word-wrap:break-word}#rootList[data-v-d06125a2]{width:100%;background:#fff;font-size:12px}#rootList .active[data-v-d06125a2]{color:red}#rootList li[data-v-d06125a2]{line-height:2.875rem;border-bottom:.0625rem solid #e5e5e5}#carcontent[data-v-d06125a2]{background:#fff;color:#686868}#carcontent .sote[data-v-d06125a2]{clear:both;overflow:hidden}#carcontent h3[data-v-d06125a2]{text-align:left;font-size:14px;margin:0;padding:.3125rem .4375rem;font-weight:400;display:block;clear:both;color:#000}#carcontent a span[data-v-d06125a2]{line-height:1.125rem;color:#686868;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:-webkit-center}#carcontent .branch img[data-v-d06125a2]{width:100%}#carcontent .thumb[data-v-d06125a2]{height:5rem;overflow:hidden}#carcontent ul[data-v-d06125a2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-1.875rem;width:100%}#carcontent .brand-item[data-v-d06125a2]{display:inline-block;width:25%}#carcontent .item[data-v-d06125a2]{height:6rem;text-align:center;margin-bottom:.625rem;font-size:12px;-webkit-box-sizing:border-box;box-sizing:border-box}#carcontent .item img[data-v-d06125a2]{width:80%}#carcontent .item p[data-v-d06125a2]{max-height:2.5rem;line-height:1.25rem;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;word-break:break-all}",""]),t.exports=e},"477e":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"brand"}},[a("c-title",{attrs:{hide:!1,text:"品牌"}}),a("div",{ref:"menucontent",attrs:{id:"category-content"}},[a("div",{attrs:{id:"carcontent"}},[a("ul",[t.contentlist.length<=0?a("div",{staticStyle:{margin:"0 auto"}},[a("van-empty",{attrs:{description:"暂无数据"}})],1):t._e(),t._l(t.contentlist,(function(e,o){return[e.is_recommend?a("li",{key:o,staticClass:"brand-item"},[a("div",{staticClass:"item"},[a("router-link",{attrs:{to:t.fun.getUrl("brandgoods",{id:e.id,fromHome:1})}},[a("div",{staticClass:"thumb"},[a("img",{attrs:{src:e.logo}})]),a("p",[t._v(t._s(e.name))])])],1)]):t._e()]}))],2)])]),a("div",{staticStyle:{height:"5rem",clear:"both",display:"block"}})],1)},i=[],n=(a("99af"),a("ac0d")),r={mixins:[n["a"]],data:function(){return{active:99,allLoaded:!1,topStatus:"",list:[],contentlist:[],isLoadMore:!0,page:1,total_page:0}},methods:{getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("goods.brand.get-brand",{page:t.page},"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.contentlist=t.contentlist.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})))},getContentlist:function(){var t=this;$http.get("goods.brand.get-brand",{page:1,is_recommend:1},"加载中").then((function(e){1==e.result&&(t.isLoadMore=!0,t.total_page=e.data.last_page,t.contentlist=e.data.data)}))}},mounted:function(){this.isset=localStorage.getItem("isset"),localStorage.removeItem("isset"),this.getContentlist()},activated:function(){},components:{}},d=r,l=(a("9c48"),a("2877")),c=Object(l["a"])(d,o,i,!1,null,"d06125a2",null);e["default"]=c.exports},"9c48":function(t,e,a){"use strict";a("fc19")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var o=document.documentElement,i=document.body,n={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:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&o.clientHeight?Math.min(i.clientHeight,o.clientHeight):Math.max(i.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(i.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(){}}}},fc19:function(t,e,a){var o=a("45f3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("4e5053a0",o,!0,{sourceMap:!1,shadowMode:!1})}}]);