1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a05682d"],{"552f":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".record[data-v-4db133a8]{min-height:100vh;background:#fff}.list[data-v-4db133a8]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;margin:.5rem .75rem;padding:1rem .75rem}.list[data-v-4db133a8],.list .list_l[data-v-4db133a8]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.list .list_l[data-v-4db133a8]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-align:left}.list .list_l .list_sn[data-v-4db133a8]{margin-bottom:.25rem;font-size:.88rem}.list .list_l .list_day[data-v-4db133a8]{font-size:.75rem;font-weight:400;color:#aaaab3}.list .list_r[data-v-4db133a8]{font-size:.88rem;color:#aaaab3}.list .list_r span[data-v-4db133a8]{color:#ff8924}.list[data-v-4db133a8]:first-child{margin-top:0}",""]),t.exports=e},"75de":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:"record"},[a("c-title",{attrs:{hide:!1,text:t.textChange}}),0==this.$route.params.ind?t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"list"},[a("div",{staticClass:"list_l"},[t._v(t._s(e.date)+"前充值")]),e.return_balance&&e.return_balance.card_package?a("div",{staticClass:"list_r"},[t._v(" 充值金额: "),a("span",[t._v(t._s(e.return_balance.card_package.monthly_rent))])]):t._e()])})):t._e(),2==this.$route.params.ind?t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"list"},[a("div",{staticClass:"list_l"},[a("div",{staticClass:"list_day"},[t._v(t._s(e.date)+"前充值")])]),a("div",{staticClass:"list_r"},[t._v(" 返还: "),a("span",[t._v(t._s(e.balance))])])])})):t._e(),1==this.$route.params.ind?t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"list"},[a("div",{staticClass:"list_l"},[e.recharge_notify?a("div",{staticClass:"list_sn"},[t._v(t._s(e.recharge_notify.recharge_no))]):t._e(),a("div",{staticClass:"list_day"},[t._v(t._s(e.date))])]),a("div",{staticClass:"list_r"},[a("span",[t._v(t._s(e.balance))])])])})):t._e()],2)},r=[],n=(a("99af"),a("ac0d")),s={mixins:[n["a"]],data:function(){return{list:[],page:1,total_page:0,isLoadMore:!0}},computed:{textChange:function(){var t="";return 0==this.$route.params.ind?t="剩余未充值期数":1==this.$route.params.ind?t="累计已返佣金":2==this.$route.params.ind&&(t="剩余未返佣金"),this.fun.setWXTitle(t),t}},activated:function(){this.getData()},methods:{getData:function(){var t=this,e=["plugin.phone-bill-recharge.frontend.return-balance-record.future","plugin.phone-bill-recharge.frontend.return-balance-record.returned","plugin.phone-bill-recharge.frontend.return-balance-record.future-periods"],a={return_balance_id:this.$route.params.id};$http.get(e[this.$route.params.ind],a,"加载中...").then((function(e){1===e.result?(t.isLoadMore=!0,t.list=e.data.data,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)):t.$toast(e.msg)}),(function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var e=["plugin.phone-bill-recharge.frontend.return-balance-record.future","plugin.phone-bill-recharge.frontend.return-balance-record.returned","plugin.phone-bill-recharge.frontend.return-balance-record.future-periods"],a={return_balance_id:this.$route.params.id,page:this.page};$http.post(e[this.$route.params.ind],a,"加载中").then((function(e){t.isLoadMore=!0,1===res.result?t.list=t.list.concat(e.data.data):(t.page=t.page-1,t.isLoadMore=!1)}))}}}},l=s,o=(a("9c46"),a("2877")),c=Object(o["a"])(l,i,r,!1,null,"4db133a8",null);e["default"]=c.exports},7629:function(t,e,a){var i=a("552f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("3fb29288",i,!0,{sourceMap:!1,shadowMode:!1})},"9c46":function(t,e,a){"use strict";a("7629")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,r=document.body,n={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:r&&(t=r.scrollTop),t},getClientHeight:function(){var t=0;return t=r.clientHeight&&i.clientHeight?Math.min(r.clientHeight,i.clientHeight):Math.max(r.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(r.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(){}}}}}]); |