1 line
6.1 KiB
JavaScript
1 line
6.1 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a59d79a"],{50647:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#power_notes[data-v-4a589ad3]{height:100vh;background-color:#fff}#power_notes .without[data-v-4a589ad3]{padding-top:2.5rem;text-align:center}#power_notes .without .img[data-v-4a589ad3]{width:19.1875rem;height:12.75rem;margin:0 auto}#power_notes .without .img img[data-v-4a589ad3]{width:100%;height:100%}#power_notes .without .no-message[data-v-4a589ad3]{margin-top:2.125rem;color:#999}#power_notes .without .without-btn[data-v-4a589ad3]{width:18.75rem;height:2.5rem;background-image:-webkit-gradient(linear,left bottom,left top,from(#ff8a66),color-stop(84%,#ff4946)),-webkit-gradient(linear,left top,left bottom,from(#03ddc8),to(#03ddc8));background-image:-webkit-linear-gradient(bottom,#ff8a66,#ff4946 84%),-webkit-linear-gradient(#03ddc8,#03ddc8);background-image:linear-gradient(0deg,#ff8a66,#ff4946 84%),linear-gradient(#03ddc8,#03ddc8);background-blend-mode:normal,normal;-webkit-box-shadow:0 .125rem .25rem 0 rgba(255,79,73,.13);box-shadow:0 .125rem .25rem 0 rgba(255,79,73,.13);border-radius:1.25rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#fff;font-size:16px;margin:0 auto;margin-top:2.5rem}#power_notes .content[data-v-4a589ad3]{background-color:#fff;padding:0 .75rem}#power_notes .content .item-list .item[data-v-4a589ad3]{padding:.75rem 0;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;border-bottom:1px solid #f5f7fa}#power_notes .content .item-list .item[data-v-4a589ad3],#power_notes .content .item-list .item .left .top[data-v-4a589ad3]{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}#power_notes .content .item-list .item .left .top[data-v-4a589ad3]{margin-bottom:.75rem;margin-left:.625rem}#power_notes .content .item-list .item .left .top .id[data-v-4a589ad3]{margin-left:.75rem;width:4.8125rem;height:1rem;background-color:#ffe3e3;border-radius:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#ff9493;font-size:12px}#power_notes .content .item-list .item .left .bottom[data-v-4a589ad3]{color:#999;text-align:left;margin-left:.625rem}#power_notes .content .item-list .item .num[data-v-4a589ad3]{color:#ff2c29;font-size:16px;margin-right:.625rem}",""]),t.exports=e},"7dfb":function(t,e,a){"use strict";a("ba47")},"8f93":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",{attrs:{id:"power_notes"}},[a("c-title",{attrs:{hide:!1,text:"设备核销记录"}}),t.datas.length<=0?a("div",{staticClass:"without"},[t._m(0),a("p",{staticClass:"no-message"},[t._v("暂无核销记录")])]):t._e(),a("div",{staticClass:"content"},[a("div",{staticClass:"item-list"},t._l(t.datas,(function(e,i){return a("div",{key:i,staticClass:"item"},[a("div",{staticClass:"left"},[e.has_one_member?a("div",{staticClass:"top"},[a("span",[t._v(t._s(e.has_one_member.nickname))]),a("span",{staticClass:"id"},[t._v("ID:"+t._s(e.has_one_member.uid))])]):t._e(),a("div",{staticClass:"bottom"},[t._v(" "+t._s(e.created_at)+" ")])]),a("div",{staticClass:"num"},[t._v(" +"+t._s(e.dividend_amount)+" ")])])})),0)])],1)},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"img"},[i("img",{attrs:{src:a("9210")}})])}],o=(a("e7e5"),a("d399")),s=(a("99af"),a("6968")),r=a("ac0d"),l={mixins:[r["a"]],data:function(){return{id:1,page:1,isLoadMore:!0,last_page:0,datas:[]}},components:{cTitle:s["a"]},mounted:function(){},methods:{getMoreData:function(){var t=this,e={equipment_id:this.id,page:this.page};this.isLoadMore=!1,this.page>=this.last_page||(this.page=this.page+1,e.page=this.page,$http.get("plugin.energy-cabin.frontend.dealer-terminal.use-log",e,"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);t.datas=t.datas.concat(e.data.data)})).catch((function(t){})))},getData:function(){var t=this,e={equipment_id:this.id,page:this.page};$http.get("plugin.energy-cabin.frontend.dealer-terminal.use-log",e,"加载中...").then((function(e){1===e.result?(t.isLoadMore=!0,t.last_page=e.data.last_page,t.last_page||(t.last_page=0),e.data.data.length>0&&(t.datas=e.data.data)):Object(o["a"])(e.msg)}),(function(t){}))}},activated:function(){this.$route.params.id&&(this.id=this.$route.params.id),this.getData()}},d=l,c=d,m=(a("7dfb"),a("2877")),g=Object(m["a"])(c,i,n,!1,null,"4a589ad3",null);e["default"]=g.exports},9210:function(t,e,a){t.exports=a.p+"static/app/img/energytank_blankhexiao@2x.c48c4db0.png"},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,n=document.body,o={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:n&&(t=n.scrollTop),t},getClientHeight:function(){var t=0;return t=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(n.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(){}}}},ba47:function(t,e,a){var i=a("50647");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("dc58734e",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |