1 line
5.1 KiB
JavaScript
1 line
5.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ec9db766"],{"287d":function(t,e,a){var o=a("24fb");e=o(!1),e.push([t.i,"#love_record #money[data-v-7acafc14]{color:#f15353;font-size:32px;line-height:4.5rem}#love_record #dingjing[data-v-7acafc14]{border:.0625rem solid #ccc;padding:.3125rem .625rem;width:3.125rem;border-radius:.625rem;margin:0 auto;margin-bottom:.9375rem}#love_record #tbsd[data-v-7acafc14]{border-bottom:.0625rem solid #ebebeb;margin-top:-.0625rem}#love_record .tbs[data-v-7acafc14]{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;background:#fff;padding:.625rem .75rem;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;border-top:.0625rem solid #ebebeb;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:14px}#love_record .tbs .left[data-v-7acafc14]{-webkit-box-flex:70%;-webkit-flex:70%;-ms-flex:70%;flex:70%;text-align:left}#love_record .tbs .left span[data-v-7acafc14]{line-height:1.5rem;display:inline-block}#love_record .tbs .left p[data-v-7acafc14]{line-height:1.5rem}#love_record .tbs .right[data-v-7acafc14]{-webkit-box-flex:30%;-webkit-flex:30%;-ms-flex:30%;flex:30%;text-align:right}#love_record .tbs .right p[data-v-7acafc14]{color:#f15353;font-size:16px}",""]),t.exports=e},5651:function(t,e,a){"use strict";a("ebc6")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var o=document.documentElement,i=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:i&&(t=i.scrollTop),t},getClientHeight:function(){var t=0;return t=i.clientHeight&&o.clientHeight?Math.min(i.clientHeight,o.clientHeight):Math.max(i.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(i.scrollHeight,o.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(){}}}},ebc6:function(t,e,a){var o=a("287d");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=a("499e").default;i("dcebd356",o,!0,{sourceMap:!1,shadowMode:!1})},ff18:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"love_record"}},[a("c-title",{attrs:{hide:!1,text:t.love_name+"激活记录"}}),a("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[a("div",{attrs:{id:"tbsd"}},t._l(t.listData,(function(e,o){return a("div",{key:o,staticClass:"tbs",on:{click:function(a){return t.goDetailed(e.id)}}},[a("div",{staticClass:"left"},[a("span",[t._v("激活ID:"+t._s(e.id))]),a("br"),a("p",{staticStyle:{color:"#8c8c8c"}},[a("span",[t._v(t._s(e.created_at))])])]),a("div",{staticClass:"right"},[a("p",[t._v(" +"+t._s(e.actual_activation_love)+" "),a("small")])])])})),0)])],1)},i=[],l=(a("99af"),a("ac0d")),n={mixins:[l["a"]],data:function(){return{balance:0,listData:[],love_name:"",usable:0,loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,isLoading:!1}},methods:{initData:function(){this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.listData=[]},loadTop:function(){this.initData(),this.getNetData()},getUsable:function(){var t=this,e=this;$http.get("plugin.love.Frontend.Controllers.page.index",{},"加载中").then((function(a){1==a.result?(t.usable=a.data.usable,t.love_name=a.data.love_name,t.fun.setWXTitle(t.love_name+"激活记录")):e.$dialog.alert({message:a.msg})}),(function(t){e.$dialog.alert({message:t.msg})}))},goDetailed:function(t){this.$router.push(this.fun.getUrl("love_activation",{id:t}))},getNetData:function(){var t=this;$http.get("plugin.love.Frontend.Modules.Love.Controllers.activation-records.index",{page:this.page},"加载中").then((function(e){1==e.result?(t.listData=e.data.data,t.page=1,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.isLoading=!1):t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))},getMoreData:function(t){this.isLoadMore=!1;var e=this;if(e.page!=e.total_page){e.page=e.page+1;var a="plugin.love.Frontend.Modules.Love.Controllers.activation-records.index";$http.get(a,{page:this.page},"加载中...").then((function(t){if(e.isLoadMore=!0,1!=t.result)return e.page=e.page-1,void(e.isLoadMore=!1);var a=t.data;e.listData=e.listData.concat(a.data)})).catch((function(t){}))}}},activated:function(){this.initData(),this.getUsable(),this.getNetData()}},r=n,s=r,c=(a("5651"),a("2877")),d=Object(c["a"])(s,o,i,!1,null,"7acafc14",null);e["default"]=d.exports}}]); |