1 line
5.3 KiB
JavaScript
1 line
5.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e12b593"],{1178:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sign-in-subscribe-income"},[a("c-title",{attrs:{text:"管理奖记录"}}),a("van-tabs",{attrs:{sticky:""},on:{change:t.change},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"全部"}}),a("van-tab",{attrs:{title:"未结算"}}),a("van-tab",{attrs:{title:"已结算"}})],1),t.list&&0!==t.list.length?a("main",{staticClass:"main"},t._l(t.list,(function(e,n){return a("div",{key:n,staticClass:"box"},[a("div",{staticClass:"left"},[a("p",{staticClass:"c-2b2b2b text-left m-b-30 f-13"},[t._v(t._s(e.activity_name))]),a("p",{staticClass:"c-696969 f-11"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"right"},[a("p",{staticClass:"c-f14e4e m-b-30 f-13"},[t._v(t._s(e.dividend_amount))]),a("p",{staticClass:"c-666 f-11"},[t._v(t._s(e.status_name))])])])})),0):a("van-empty",{attrs:{description:"暂无记录"}})],1)},i=[],s=a("c7eb"),r=a("1da1"),c=(a("99af"),a("ac0d")),o={mixins:[c["a"]],data:function(){return{active:0,isLoadMore:!0,current_page:1,last_page:1,list:[]}},activated:function(){this.active=0,this.isLoadMore=!0,this.page=1,this.total_page=0,this.getData()},methods:{change:function(){var t=this;return Object(r["a"])(Object(s["a"])().mark((function e(){var a,n,i,r,c;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={reward_type:"manage_award"},1==t.active?a.status=0:2==t.active&&(a.status=1),e.next=4,$http.get("plugin.sign-buy.frontend.reward-detail.record-page",a,".");case 4:if(n=e.sent,i=n.result,r=n.msg,c=n.data,0!=i){e.next=10;break}return e.abrupt("return",t.$toast(r));case 10:t.list=c.data||[],t.current_page=c.current_page,t.last_page=c.last_page;case 13:case"end":return e.stop()}}),e)})))()},getData:function(){var t=this;return Object(r["a"])(Object(s["a"])().mark((function e(){var a,n,i,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,$http.get("plugin.sign-buy.frontend.reward-detail.record-page",{reward_type:"manage_award"});case 2:if(a=e.sent,n=a.result,i=a.msg,r=a.data,0!=n){e.next=8;break}return e.abrupt("return",t.$toast(i));case 8:t.list=r.data||[],t.current_page=r.current_page,t.last_page=r.last_page;case 11:case"end":return e.stop()}}),e)})))()},getMoreData:function(){var t=this;return Object(r["a"])(Object(s["a"])().mark((function e(){var a,n,i,r,c,o;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t.current_page>=t.last_page)){e.next=2;break}return e.abrupt("return");case 2:return t.isLoadMore=!1,a=t.page+1,n={reward_type:"manage_award",page:a},1==t.active?n.status=0:2==t.active&&(n.status=1),e.next=8,$http.get("plugin.sign-buy.frontend.reward-detail.record-page",n);case 8:if(i=e.sent,r=i.result,c=i.msg,o=i.data,t.isLoadMore=!0,0!=r){e.next=15;break}return e.abrupt("return",t.$toast(c));case 15:t.list=t.list.concat(o.data),t.current_page=o.current_page,t.last_page=o.last_page;case 18:case"end":return e.stop()}}),e)})))()}}},l=o,u=(a("eb53"),a("2877")),d=Object(u["a"])(l,n,i,!1,null,"f042f59e",null);e["default"]=d.exports},4562:function(t,e,a){var n=a("cac5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("02e34c31",n,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var n=document.documentElement,i=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 n&&n.scrollTop?t=n.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&n.clientHeight?Math.min(i.clientHeight,n.clientHeight):Math.max(i.clientHeight,n.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,n.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(){}}}},cac5:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".sign-in-subscribe-income .main[data-v-f042f59e]{padding:.625rem}.sign-in-subscribe-income .text-left[data-v-f042f59e]{text-align:left}.sign-in-subscribe-income .f-13[data-v-f042f59e]{font-size:.8125rem}.sign-in-subscribe-income .m-b-30[data-v-f042f59e]{margin-bottom:.9rem}.sign-in-subscribe-income .f-11[data-v-f042f59e]{font-size:.6875rem}.sign-in-subscribe-income .box[data-v-f042f59e]{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-bottom:.625rem;padding:.9375rem .6875rem;background:#fff;border-radius:.3125rem}.sign-in-subscribe-income .c-696969[data-v-f042f59e]{color:#696969}.sign-in-subscribe-income .c-666[data-v-f042f59e]{color:#666}.sign-in-subscribe-income .c-2b2b2b[data-v-f042f59e]{color:#2b2b2b}.sign-in-subscribe-income .c-f14e4e[data-v-f042f59e]{color:#f14e4e}",""]),t.exports=e},eb53:function(t,e,a){"use strict";a("4562")}}]); |