1 line
5.1 KiB
JavaScript
1 line
5.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7700ee53"],{1265:function(e,t,i){var s=i("93ca");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var r=i("499e").default;r("048f58e2",s,!0,{sourceMap:!1,shadowMode:!1})},"8f8c":function(e,t,i){"use strict";i("1265")},"93ca":function(e,t,i){var s=i("24fb");t=s(!1),t.push([e.i,"#enterpriseSupplier .seller_list[data-v-121bc9dc]{padding:.625rem .9375rem;background:#fff}#enterpriseSupplier .seller_list .seller_box[data-v-121bc9dc]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background:#fafafa;padding:.625rem;width:100%;margin-bottom:.625rem}#enterpriseSupplier .seller_list .seller_box .header[data-v-121bc9dc]{width:3rem;height:3rem;overflow:hidden;margin-right:.625rem;background:#fff}#enterpriseSupplier .seller_list .seller_box .header img[data-v-121bc9dc]{width:100%;height:100%}#enterpriseSupplier .seller_list .seller_box .name[data-v-121bc9dc]{text-align:left;width:15rem}#enterpriseSupplier .seller_list .seller_box .name li[data-v-121bc9dc]{line-height:1.5rem;font-size:15px}#enterpriseSupplier .seller_list .seller_box .name .position[data-v-121bc9dc]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:13px;color:#8c8c8c}#enterpriseSupplier .seller_list .seller_box .name .position i[data-v-121bc9dc]{font-size:1.25rem;margin-right:.375rem}#enterpriseSupplier .seller_list .seller_box .name .position span[data-v-121bc9dc]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#enterpriseSupplier .seller_list .seller_box .fa[data-v-121bc9dc]{width:2.5rem;height:2.5rem;line-height:2.5rem;font-size:1.25rem;color:#ccc;position:absolute;right:.625rem}#enterpriseSupplier .seller_list .seller_box[data-v-121bc9dc]:last-child{margin-bottom:0}",""]),e.exports=t},ac0d:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=document.documentElement,r=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return s&&s.scrollTop?e=s.scrollTop:r&&(e=r.scrollTop),e},getClientHeight:function(){var e=0;return e=r.clientHeight&&s.clientHeight?Math.min(r.clientHeight,s.clientHeight):Math.max(r.clientHeight,s.clientHeight),e},getScrollHeight:function(){return Math.max(r.scrollHeight,s.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},d8dd:function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"enterpriseSupplier"}},[i("c-title",{attrs:{hide:!1,text:"我的门店"}}),i("div",{staticClass:"seller_list"},e._l(e.list,(function(t,s){return i("div",{key:s,staticClass:"seller_box",on:{click:function(i){return i.stopPropagation(),e.toShop(t.id,"store")}}},[i("div",{staticClass:"header"},[i("img",{attrs:{src:t.thumb}})]),i("ul",{staticClass:"name"},[i("li",[e._v(e._s(t.store_name))]),i("li",{staticClass:"position"},[i("i",{staticClass:"iconfont icon-seller-position"}),i("span",[e._v(" "+e._s(t.full_address)+" ")])])]),i("i",{staticClass:"fa fa-angle-right"})])})),0)],1)},r=[],l=(i("e7e5"),i("d399")),o=(i("99af"),i("6968")),a=i("ac0d"),n={mixins:[a["a"]],data:function(){return{list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.list=[],this.isLoadMore=!0,this.page=1,this.total_page=0,this.getData()},methods:{getData:function(){var e=this,t={},i="";1==e.$route.params.type?i="plugin.merchant.frontend.store.list.storeListByStaff":2==e.$route.params.type&&(i="plugin.merchant.frontend.store.list.storeList"),$http.get(i,t,"获取中").then((function(t){1==t.result?(e.list=t.data.store_list.data,e.total_page=t.data.store_list.last_page):Object(l["a"])(t.msg)}),(function(e){}))},toShop:function(e,t){"hotel"===t?this.$router.push(this.fun.getUrl("HotelHome",{id:e,fromHome:1})):"store"===t?this.$router.push(this.fun.getUrl("HomeSeller",{store_id:e,fromHome:1})):"supplier"===t&&this.$router.push(this.fun.getUrl("SupplierShop",{id:e,fromHome:1}))},getMoreData:function(){var e=this,t="";this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,1==this.$route.params.type?t="plugin.merchant.frontend.store.list.storeListByStaff":2==this.$route.params.type&&(t="plugin.merchant.frontend.store.list.storeList"),$http.get(t,{page:this.page},"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var i=t.data.store_list.data;e.list=e.list.concat(i)}else e.page=e.page-1,e.isLoadMore=!1}),(function(e){})))}},components:{cTitle:o["a"]}},c=n,p=c,d=(i("8f8c"),i("2877")),h=Object(d["a"])(p,s,r,!1,null,"121bc9dc",null);t["default"]=h.exports}}]); |