1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e2ddd58"],{"153b":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",{staticClass:"share-profit"},[a("c-title",{attrs:{hide:!1,text:"合伙人分润"}}),a("div",{staticClass:"header"},[a("div",{staticClass:"info-box"},[a("div",{staticClass:"img"},[a("img",{attrs:{src:t.member.avatar_image,alt:""}})]),a("div",{staticClass:"info nickname"},[t._v(t._s(t.member.nickname))])]),a("div",{staticClass:"total"},[t._v("离子总数:"+t._s(t.ion))])]),a("van-tabs",{attrs:{sticky:""},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"收入明细"}},[a("div",{staticClass:"list-box"},[t._l(t.listData,(function(e,i){return a("div",{key:i,staticClass:"list-item"},[a("div",{staticClass:"list-title"},[a("div",{staticClass:"sn"},[t._v(t._s(e.order_sn))]),a("div",[t._v("+"+t._s(e.reward))])]),a("div",{staticClass:"list-info"},[a("div",[t._v("订单金额:"+t._s(e.order_amount))]),a("div",[t._v("抽取比例:"+t._s(e.extract_order_rate)+"%")]),a("div",[t._v("分润比例:"+t._s(e.profit_rate)+"%")])]),a("div",{staticClass:"time"},[t._v(t._s(e.created_at))])])})),a("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"loading"},[a("van-loading",[t._v("加载数据中...")])],1),t.listData.length>0&&!t.loading&&!t.isLoadMore?a("div",{staticStyle:{"margin-top":"1rem",color:"#333","text-align":"center"}},[t._v("没有更多了~~~")]):t._e(),a("yz-blank",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],attrs:{text:"暂无数据",datas:t.listData}})],2)])],1)],1)},s=[],o=(a("99af"),a("d3b7"),a("3ca3"),a("ddb0"),a("ac0d")),l={mixins:[o["a"]],data:function(){return{member:{},ion:0,active:0,isLoadMore:!1,loading:!1,listData:[],page:1,last_page:1}},created:function(){this.getData()},methods:{initData:function(){this.page=1,this.listData=[],this.isLoadMore=!1,this.loading=!0,this.last_page=null},getData:function(){var t=this;this.initData(),$http.post("plugin.member-synchron.frontend.assets.income-list",{page:1}).then((function(e){var a=e.result,i=e.msg,s=e.data;t.loading=!1,1==a?(t.member=s.member,t.ion=s.ion,t.listData=s.income_list.data,t.last_page=s.income_list.last_page,t.isLoadMore=!(t.page==t.last_page)):t.$toast(i)}))},getMoreData:function(){var t=this;if(!isLoadMore)return this.$toast("没有更多了");this.loading=!0;var e=this.page+1;$http.post("plugin.member-synchron.frontend.assets.income-list",{page:e}).then((function(a){var i=a.result,s=a.msg,o=a.data;t.loading=!1,1==i?(t.listData=t.listData.concat(o.income_list.data),t.page=e,t.isLoadMore=!(t.page==t.last_page)):t.$toast(s)}))}},components:{yzBlank:function(){return Promise.all([a.e("chunk-commons"),a.e("chunk-2d0d83d6")]).then(a.bind(null,"eb17"))}}},n=l,r=(a("7df5"),a("2877")),d=Object(r["a"])(n,i,s,!1,null,"3cd264ae",null);e["default"]=d.exports},2028:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".share-profit[data-v-3cd264ae]{text-align:left}.share-profit .header[data-v-3cd264ae]{width:100%;background-color:#ee2e2b;color:#fff}.share-profit .header .info-box[data-v-3cd264ae]{height:6rem;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;padding-left:1.5rem}.share-profit .header .info-box .img img[data-v-3cd264ae]{width:3rem;height:3rem;border-radius:50%}.share-profit .header .info-box .nickname[data-v-3cd264ae]{margin-left:.8rem}.share-profit .header .total[data-v-3cd264ae]{height:2rem;background-color:#f14d4b;line-height:2rem;padding-left:1rem}.share-profit .list-box[data-v-3cd264ae]{background-color:#fff;padding:1rem}.share-profit .list-box .list-item[data-v-3cd264ae]{border-bottom:1px solid #f5f5f5;font-size:.75rem;color:#929292;padding:.5rem 0}.share-profit .list-box .list-item .list-title[data-v-3cd264ae]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:.875rem;color:#ef4136}.share-profit .list-box .list-item .list-title .sn[data-v-3cd264ae]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;color:#101010}.share-profit .list-box .list-item .list-info[data-v-3cd264ae]{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;margin:.4rem 0}.share-profit .list-box .loading[data-v-3cd264ae]{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;margin-top:.625rem}",""]),t.exports=e},"7df5":function(t,e,a){"use strict";a("ca1ea")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,s=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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},ca1ea:function(t,e,a){var i=a("2028");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("7a29335d",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |