1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b477c83"],{"2cd3":function(t,e,a){"use strict";a("a8a14")},"3bc4":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".h-2[data-v-d2246826]{height:.2rem}.rewardRecord .cumulative-box[data-v-d2246826]{height:4.44rem;background-color:#ff8924;position:relative;margin-bottom:2.72rem}.rewardRecord .cumulative-box .cumulative[data-v-d2246826]{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-d2246826]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.rewardRecord .cumulative-box .cumulative .item .number[data-v-d2246826]{color:#f14e4e;font-size:.88rem}.rewardRecord .cumulative-box .cumulative .line[data-v-d2246826]{width:.03rem;height:1.88rem;background-color:#ddd}.rewardRecord[data-v-d2246826] .van-tabs{width:calc(100% - 1rem);margin:0 auto}.rewardRecord[data-v-d2246826] .van-tabs .van-tabs__nav{border-radius:.31rem}.rewardRecord[data-v-d2246826] .list-box{width:calc(100% - 1rem);text-align:left;margin:0 auto}.rewardRecord .list-item[data-v-d2246826]{padding:1rem;border-radius:.31rem;background-color:#fff;font-size:.81rem;color:#353535;margin-bottom:.5rem}.rewardRecord .list-item .row[data-v-d2246826]{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-d2246826]{color:#f15353}.rewardRecord .list-item .row .date[data-v-d2246826]{color:#606060}.rewardRecord .list-item .row[data-v-d2246826]:nth-child(2){margin:.6rem 0}",""]),t.exports=e},"5e3f9":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_love))]),a("div",[t._v("累计奖励"+t._s(t.love_name))])]),a("div",{staticClass:"line"}),a("div",{staticClass:"item"},[a("div",{staticClass:"number"},[t._v(t._s(t.grand_point))]),a("div",[t._v("累计奖励"+t._s(t.point_name))])])])]),a("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"奖励记录"}})],1),a("div",{staticClass:"h-2"}),a("div",t._l(t.list_data,(function(e,i){return a("div",{key:i,staticClass:"list-item"},[a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[t._v("奖励ID:"+t._s(e.id))]),a("div",{staticClass:"number"},[t._v("+"+t._s(e.full_love_award)+t._s(t.love_name))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[t._v("时间:"+t._s(e.finished_at))]),a("div",{staticClass:"number"},[t._v("+"+t._s(e.full_point_award)+t._s(t.point_name))])]),a("div",{staticClass:"row"},[a("div",{staticClass:"label"},[t._v("活动名称:"+t._s(e.title))]),a("div",{staticClass:"date"},[t._v(t._s(e.round_serial)+"轮"+t._s(e.stage_serial)+"期")])])])})),0),0==t.list_data.length?a("van-empty",{attrs:{description:"暂无奖励记录"}}):t._e()],1)},r=[],s=(a("99af"),a("ac0d")),o={mixins:[s["a"]],data:function(){return{active:0,last_page:1,current_page:1,info:{},list_data:[],love_name:"",point_name:"",grand_love:"",grand_point:"",isLoadMore:!0}},activated:function(){var t=this;$http.post("plugin.subscription.frontend.modules.award.controllers.records.index").then((function(e){e.result?(t.list_data=e.data.page_list.data,t.love_name=e.data.love_name||"爱心值",t.point_name=e.data.point_name,t.grand_love=e.data.grand_love,t.grand_point=e.data.grand_point,t.last_page=e.data.page_list.last_page):t.$toast(e.msg)}))},methods:{getMoreData:function(){var t=this;if(this.current_page>=this.last_page)return!1;this.isLoadMore=!1;var e=this.current_page+1;$http.post("plugin.subscription.frontend.modules.award.controllers.records.index",{page:e}).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)}))}}},l=o,n=(a("2cd3"),a("2877")),d=Object(n["a"])(l,i,r,!1,null,"d2246826",null);e["default"]=d.exports},a8a14:function(t,e,a){var i=a("3bc4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("6e754538",i,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));var i=document.documentElement,r=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 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(){}}}}}]); |