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