1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-039f9212"],{"4b4a":function(t,e,a){"use strict";a("e6c1")},"8eb3":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".h-7[data-v-1c738b7b]{height:.7rem}.rewardRecord .cumulative-box[data-v-1c738b7b]{height:4.44rem;background-color:#ff8924;position:relative;margin-bottom:2.72rem}.rewardRecord .cumulative-box .cumulative[data-v-1c738b7b]{width:calc(100% - 1rem);height:4.88rem;bottom:-50%;left:.5rem;position:absolute;background-color:#fff;border-radius:.31rem;text-align:center;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;line-height:1.25rem;font-size:.69rem;color:#696969}.rewardRecord .cumulative-box .cumulative .item[data-v-1c738b7b]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.rewardRecord .cumulative-box .cumulative .item .number[data-v-1c738b7b]{color:#f14e4e;font-size:.88rem}.rewardRecord .cumulative-box .cumulative .line[data-v-1c738b7b]{width:.03rem;height:1.88rem;background-color:#ddd}.rewardRecord[data-v-1c738b7b] .van-tabs{width:calc(100% - 1rem);margin:0 auto}.rewardRecord[data-v-1c738b7b] .van-tabs .van-tabs__nav{border-radius:.31rem}.rewardRecord[data-v-1c738b7b] .list-box{width:calc(100% - 1rem);text-align:left;margin:0 auto}.rewardRecord .list-item[data-v-1c738b7b]{padding:1rem;border-radius:.31rem;background-color:#fff;font-size:.81rem;color:#353535;margin-bottom:.5rem}.rewardRecord .list-item .created_at[data-v-1c738b7b]{text-align:left;margin-top:.3125rem;color:#737373}.rewardRecord .list-item .label[data-v-1c738b7b],.rewardRecord .list-item .row[data-v-1c738b7b]{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}.rewardRecord .list-item .row .number[data-v-1c738b7b]{color:#f15353}.rewardRecord .list-item .row .date[data-v-1c738b7b]{color:#606060}.rewardRecord .list-item .row[data-v-1c738b7b]:nth-child(2){margin:.6rem 0}",""]),t.exports=e},ab05b: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:"rewardRecord"},[a("c-title",{attrs:{text:"激活奖励"}}),a("div",{staticClass:"cumulative-box"},[a("div",{staticClass:"cumulative"},[a("div",{staticClass:"item"},[a("div",{staticClass:"number"},[t._v(t._s(t.grand_amount))]),a("div",[t._v("累计加速激活"+t._s(t.love_name))])])])]),a("van-tabs",{attrs:{ellipsis:!1},on:{change:t.change},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"认购奖励激活",name:1}}),a("van-tab",{attrs:{title:"级差奖励激活",name:2}}),a("van-tab",{attrs:{title:"平级奖励激活",name:3}}),a("van-tab",{attrs:{title:"周期奖励激活",name:4}})],1),a("div",{staticClass:"h-7"}),a("div",t._l(t.list_data,(function(e,i){return a("div",{key:i,staticClass:"list-item"},[a("div",{staticClass:"label"},[a("div",[t._v(t._s(e.source_name))]),a("div",{staticStyle:{color:"#f7665b"}},[t._v(t._s(e.amount||e.actual_amount))])]),a("div",{staticClass:"created_at"},[t._v(t._s(e.created_at))])])})),0),0==t.list_data.length?a("van-empty",{attrs:{description:"暂无奖励记录"}}):t._e()],1)},r=[],o=(a("99af"),a("ac0d")),c={mixins:[o["a"]],data:function(){return{active:1,last_page:1,current_page:1,list_data:[],love_name:"",isLoadMore:!0,grand_amount:0}},activated:function(){this.init(),this.getData()},methods:{init:function(){this.grand_amount=0,this.last_page=1,this.current_page=1,this.list_data=[],this.isLoadMore=!0},change:function(){this.getData()},getData:function(){var t=this,e="",a={};4==this.active?e="plugin.subscription.frontend.modules.activate.controllers.cycle.index":(e="plugin.subscription.frontend.modules.activate.controllers.quick.index",a.source_type=this.active),$http.post(e,a).then((function(e){e.result?(t.grand_amount=e.data.grand_amount,t.list_data=e.data.page_list.data,t.love_name=e.data.love_name||"爱心值",t.last_page=e.data.page_list.last_page):t.$toast(e.msg)}))},getMoreData:function(){var t=this;if(this.current_page>=this.last_page)return!1;this.isLoadMore=!1;var e=this.current_page+1,a=this.active,i="",r={page:e};4!==this.active?(i="plugin.subscription.frontend.modules.activate.controllers.quick.index",r.source_type=a):i="plugin.subscription.frontend.modules.activate.controllers.cycle.index",$http.post(i,r).then((function(e){t.isLoadMore=!0,e.result?(t.list_data=t.list_data.concat(e.data.page_list.data),t.last_page=e.data.page_list.last_page,t.current_page=e.data.page_list.current_page):t.$toast(e.msg)}))}}},n=c,s=(a("4b4a"),a("2877")),l=Object(s["a"])(n,i,r,!1,null,"1c738b7b",null);e["default"]=l.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,r=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: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(){}}}},e6c1:function(t,e,a){var i=a("8eb3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("5892de3e",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |