1 line
3.6 KiB
JavaScript
1 line
3.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-07a9c33f"],{"4c97":function(t,e,a){"use strict";a("79f1")},"73da":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".background_box[data-v-7b633443]{color:#382c0a;background-color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(var(--themeBaseColor)),to(#f5f5f5));background-image:-webkit-linear-gradient(var(--themeBaseColor),#f5f5f5);background-image:linear-gradient(var(--themeBaseColor),#f5f5f5);min-height:9.25rem;padding:1.5938rem 1.0938rem 0 1.0938rem}.list[data-v-7b633443]{border-radius:.625rem;background:#fff;margin:0 .625rem;margin-top:-6rem;padding:.75rem}.list .lis[data-v-7b633443]{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;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid hsla(0,0%,73.3%,.2);font-size:1rem}.list .lis .lis_r[data-v-7b633443]{color:rgba(0,0,0,.6);font-size:.8rem}.list .lis[data-v-7b633443]:last-child{margin-bottom:0;border-bottom:0}",""]),t.exports=e},"79f1":function(t,e,a){var i=a("73da");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("76340cbc",i,!0,{sourceMap:!1,shadowMode:!1})},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(){}}}},cfcf: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:"tagBalanceRecord"},[a("c-title",{attrs:{hide:!1,text:"过期标签记录"}}),a("div",{staticClass:"background_box"}),a("div",{staticClass:"list"},t._l(t.list,(function(e){return a("div",{key:e.id,staticClass:"lis"},[e.tag?a("div",{staticClass:"lis_l"},[t._v(t._s(e.tag.tag_name))]):t._e(),a("div",{staticClass:"lis_r"},[t._v(t._s(e.deleted_at))])])})),0)],1)},o=[],n=(a("99af"),a("ac0d")),l={mixins:[n["a"]],data:function(){return{list:[],page:1,total_page:0,isLoadMore:!0}},activated:function(){this.getData()},methods:{getData:function(){var t=this;$http.get("plugin.tag-balance.frontend.tag.expire-tag",{page:this.page},"加载中..").then((function(e){1==e.result?(t.list=e.data.list.data,t.total_page=e.data.list.last_page):t.$dialog.alert({message:e.msg})}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.tag-balance.frontend.tag.expire-tag",{page:this.page},"正在获取更多订单").then((function(e){if(1!=e.result)return t.page=t.page-1,void(t.isLoadMore=!1);t.isLoadMore=!0;var a=e.data.list.data;t.list=t.list.concat(a)})))}}},s=l,r=(a("4c97"),a("2877")),c=Object(r["a"])(s,i,o,!1,null,"7b633443",null);e["default"]=c.exports}}]); |