bztang-admin/addons/yun_shop/static/app/js/chunk-7a353e21.a35225c6.js

1 line
3.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a353e21"],{"096d":function(t,e,i){"use strict";i("7be7")},"2cb7":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"get_record"}},[i("c-title",{attrs:{hide:!1,text:"领取记录"}}),i("div",{attrs:{id:"content"}},t._l(t.dataList,(function(e,a){return i("ul",{key:a,staticClass:"list"},[i("li",[i("span",[t._v(t._s(e.name))]),i("span",[t._v("+"+t._s(e.point))])]),i("li",[i("span",[t._v(t._s(e.created_at))]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.validity_at,expression:"list.validity_at"}]},[t._v("有效期至"+t._s(e.validity_at))])])])})),0)],1)},o=[],n=(i("99af"),i("6968")),s=i("ac0d"),c={mixins:[s["a"]],data:function(){return{dataList:[],loading:!1,isLoadMore:!0,page:1,total_page:0,integral:window.localStorage.integral}},created:function(){},methods:{getData:function(){var t=this;$http.post("plugin.point-activity.Frontend.Modules.Activity.Controllers.receive-records.index",{page_id:1},"正在加载").then((function(e){if(1===e.result){var i=e.data;t.dataList=i.records.data,t.total_page=i.records.last_page,t.total_page||(t.total_page=0)}else t.$dialog.alert({message:e.msg})}),(function(t){}))},loadMore:function(){this.isLoadMore&&this.getMoreData(this.page)},getMoreData:function(t){if(this.isLoadMore){var e=this;if(this.page>=this.total_page)return;this.page=this.page+1,$http.post("plugin.point-activity.Frontend.Modules.Activity.Controllers.receive-records.index",{page_id:this.page},"加载中...").then((function(t){if(1!==t.result)return e.page=e.page-1,e.loading=!0,void(e.isLoadMore=!1);var i=t.data.records.data;e.loading=!1,e.dataList=e.dataList.concat(i)}),(function(t){}))}},initData:function(){this.page=1,this.total_page=0,this.loading=!1,this.isLoadMore=!0,this.dataList=[]}},activated:function(){this.initData(),this.getData()},deactivated:function(){this.loading=!0},components:{cTitle:n["a"]}},l=c,r=l,d=(i("096d"),i("2877")),h=Object(d["a"])(r,a,o,!1,null,"2ca20864",null);e["default"]=h.exports},"7be7":function(t,e,i){var a=i("eea6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("1e0a6461",a,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=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 a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}},eea6:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#get_record #content[data-v-2ca20864]{padding-top:.625rem}#get_record #content .list[data-v-2ca20864]{background-color:#fff;padding:.625rem .875rem;border-bottom:.0625rem solid #ebebeb}#get_record #content .list li[data-v-2ca20864]{font-size:14px;line-height:1.875rem;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}#get_record #content .list li[data-v-2ca20864]:first-child{font-size:16px}#get_record #content .list li:first-child span[data-v-2ca20864]:last-child{color:#f15353}#get_record #content .list li[data-v-2ca20864]:last-child{color:#8c8c8c;font-size:12px}",""]),t.exports=e}}]);