bztang-admin/addons/yun_shop/static/app/js/chunk-3a00997d.ec2b6237.js

1 line
4.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a00997d"],{4476:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:"我的区域代理"}}),i("main",t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"item"},[i("div",{staticClass:"left"},[i("img",{attrs:{src:e.avatar_image}}),i("div",{staticClass:"info"},[i("div",{staticClass:"info-title"},[t._v(t._s(e.nickname))]),i("div",{staticClass:"info-id"},[t._v("id:"+t._s(e.id))])])]),i("div",{staticClass:"right"},[i("div",{staticClass:"agency_level"},[t._v(t._s(e.level_name))]),i("div",{staticClass:"area"},[t._v(t._s(e.area))])])])})),0)],1)},n=[],s=(i("e7e5"),i("d399")),l=(i("99af"),i("ac0d")),o={mixins:[l["a"]],data:function(){return{list:[],current_page:1,last_page:1,isLoadMore:!0}},activated:function(){this.getData()},methods:{getData:function(){var t=this;$http.post("plugin.area-merchant.frontend.modules.agent.controllers.records.index").then((function(e){1==e.result?(t.list=e.data.page_list.data,t.last_page=e.data.page_list.last_page):Object(s["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.current_page>=this.last_page||(this.current_page=this.current_page+1,$http.post("plugin.area-merchant.frontend.modules.agent.controllers.records.index",{page:this.current_page}).then((function(e){t.isLoadMore=!0,1==e.result?(t.list=t.list.concat(e.data.page_list.data),t.last_page=e.data.page_list.last_page):(t.page=t.page-1,t.isLoadMore=!1)})).catch((function(t){})))}}},c=o,r=(i("5c46"),i("2877")),d=Object(r["a"])(c,a,n,!1,null,"454dd43f",null);e["default"]=d.exports},"4cab":function(t,e,i){var a=i("ca77");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("eb99bfcc",a,!0,{sourceMap:!1,shadowMode:!1})},"5c46":function(t,e,i){"use strict";i("4cab")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,n=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&a.clientHeight?Math.min(n.clientHeight,a.clientHeight):Math.max(n.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,a.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(){}}}},ca77:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"img[data-v-454dd43f]{margin-left:0;margin-right:0}div.item[data-v-454dd43f]{margin:1rem 1rem 0;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;border-radius:.3rem;background:#fff;padding:.5rem}div.item[data-v-454dd43f],div.item .left[data-v-454dd43f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}div.item .left[data-v-454dd43f]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}div.item img[data-v-454dd43f]{width:3rem;height:3rem;border-radius:100px}div.item .right[data-v-454dd43f]{text-align:right}div.item .info[data-v-454dd43f],div.item .right[data-v-454dd43f]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}div.item .info[data-v-454dd43f]{margin-left:.5rem;height:3rem;-webkit-box-align:baseline;-webkit-align-items:baseline;-ms-flex-align:baseline;align-items:baseline}div.item .area[data-v-454dd43f]{color:#666}",""]),t.exports=e}}]);