bztang-admin/addons/yun_shop/static/app/js/chunk-58884be9.60b188c6.js

1 line
3.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-58884be9"],{"1a6e":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:"page"},[a("c-title",{attrs:{hide:!1,text:"领取记录"}}),a("div",{staticClass:"listItems"},t._l(t.listData,(function(e,i){return a("div",{key:i,staticClass:"item"},[a("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"price"},[t._v(t._s(e.reward_amount))])])})),0)],1)},o=[],n=(a("e7e5"),a("d399")),s=(a("99af"),a("ac0d")),l={mixins:[s["a"]],data:function(){return{listData:[],page:1,isLoadMore:!0,total_page:0}},created:function(){this.getData()},methods:{getData:function(){var t=this;$http.get("plugin.consumer-reward.frontend.controllers.reward.collection-record").then((function(e){if(1!=e.result)return Object(n["a"])(e.msg);t.member=e.data.member,t.listData=e.data.data,t.totalPrice=e.data.total,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("plugin.consumer-reward.frontend.controllers.reward.collection-record",{page:this.page}).then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.data;t.listData=t.listData.concat(a)}else t.page=t.page-1,t.isLoadMore=!1})))}}},r=l,c=r,d=(a("6b84"),a("2877")),u=Object(d["a"])(c,i,o,!1,null,"555685c0",null);e["default"]=u.exports},"1df9":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".page[data-v-555685c0]{background:#fff;min-height:100vh}.listItems .item[data-v-555685c0]{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;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:3.2rem;padding:0 .969rem;border-bottom:.04rem solid #f2f2f2}.listItems .item .time[data-v-555685c0]{font-size:.938rem;color:#333}.listItems .item .price[data-v-555685c0]{font-size:.938rem;color:#f15353}",""]),t.exports=e},"6b84":function(t,e,a){"use strict";a("b064")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,o=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:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.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(){}}}},b064:function(t,e,a){var i=a("1df9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("39552a3a",i,!0,{sourceMap:!1,shadowMode:!1})}}]);