bztang-admin/addons/yun_shop/static/app/js/chunk-9bd6db34.46d015e6.js

1 line
4.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9bd6db34"],{"63d8":function(t,e,a){"use strict";a("99f1")},"74eb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"regional_agency"}},[a("c-title",{staticClass:"circle_title",attrs:{hide:!1,text:"区域代理招商"}}),a("header",{staticClass:"header"},[a("div",{staticClass:"header-content"},[a("img",{attrs:{src:t.avatar_image,alt:""}}),a("h3",{staticClass:"nick-name"},[t._v(t._s(t.nickname))])])]),a("main",{staticClass:"main"},[a("van-cell",{attrs:{title:"我的区域代理("+t.agent_count+"人)","is-link":"",to:{path:"/RegionalAgency/MyAgency",query:t.$route.query},value:""}}),a("van-cell",{attrs:{title:"累计分红金额:"}},[a("div",{staticClass:"price",attrs:{slot:"default"},slot:"default"},[t._v("¥"+t._s(t.grand_amount))])])],1),a("footer",{staticClass:"footer"},[a("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"分红"}},[a("ul",{staticClass:"footer-content"},t._l(t.list,(function(e,i){return a("li",{key:i},[a("div",{staticClass:"left"},[a("div",{staticClass:"title"},[t._v(t._s(e.order_sn))]),a("div",{staticClass:"time"},[t._v("时间:"+t._s(e.created_at))])]),a("div",{staticClass:"right"},[t._v("¥"+t._s(e.amount))])])})),0)])],1)],1)],1)},n=[],o=(a("e7e5"),a("d399")),l=(a("99af"),a("ac0d")),r={mixins:[l["a"]],data:function(){return{nickname:"",avatar_image:"",agent_count:"",grand_amount:"",page:1,isLoadMore:!0,last_page:1,list:[]}},activated:function(){this.getData()},methods:{getData:function(){var t=this;$http.post("plugin.area-merchant.frontend.modules.bonus.controllers.records.index").then((function(e){if(1==e.result){var a=e.data.page_list,i=a.data,n=a.current_page,l=a.last_page,r=e.data,s=r.nickname,c=r.avatar_image,d=r.agent_count,f=r.grand_amount;t.nickname=s,t.avatar_image=c,t.agent_count=d,t.grand_amount=f,t.list=i,t.page=n,t.last_page=l}else Object(o["a"])(e.msg)}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.last_page||(this.page=this.page+1,$http.post("plugin.area-merchant.frontend.modules.bonus.controllers.records.index",{page:this.page}).then((function(e){var a=e.data.page_list,i=a.data,n=a.last_page;t.isLoadMore=!0,1==e.result?(t.last_page=n,t.list=t.list.concat(i)):(t.page=t.page-1,t.isLoadMore=!1)})).catch((function(t){})))}}},s=r,c=(a("63d8"),a("2877")),d=Object(c["a"])(s,i,n,!1,null,"3d2f7da2",null);e["default"]=d.exports},"99f1":function(t,e,a){var i=a("afc0");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("004bfd69",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,n=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.scrollHeight,i.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(){}}}},afc0:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'.price[data-v-3d2f7da2]{color:#f15353}.footer[data-v-3d2f7da2]{margin-top:1rem;background:#fff}.footer li[data-v-3d2f7da2]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:10px 16px}.footer li[data-v-3d2f7da2]:after{content:"";position:absolute;left:16px;right:16px;bottom:0;width:21.5rem;height:.1rem;background:#ebebeb}.footer li[data-v-3d2f7da2]:last-child:after{content:"";background:#fff}.footer .left[data-v-3d2f7da2]{text-align:left}.footer .right[data-v-3d2f7da2]{color:#f15353}.footer .time[data-v-3d2f7da2]{margin-top:.35rem;color:#8c8c8c}img[data-v-3d2f7da2]{margin-left:0;margin-right:0}.header[data-v-3d2f7da2]{background-color:#ee2e2b}.header-content[data-v-3d2f7da2]{padding-top:2rem;padding-bottom:2rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.header-content img[data-v-3d2f7da2]{width:3rem;height:3rem;border-radius:100px;margin-right:1rem;margin-left:2rem}.header-content .nick-name[data-v-3d2f7da2]{color:#fff}.main .van-cell__title[data-v-3d2f7da2]{text-align:left}',""]),t.exports=e}}]);