1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39b81682"],{"2e48":function(t,e,a){"use strict";a("8405")},"4e05":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_cancellation"}},[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_energy_cabin_dealer?a("div",{staticClass:"top"},[a("span",[t._v(t._s(e.has_one_energy_cabin_dealer.shop_name))])]):t._e(),a("div",{staticClass:"bottom"},[t._v(" "+t._s(e.created_at)+" ")])]),a("div",{staticClass:"num"},[t._v(" -1 ")])])})),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")),r=(a("99af"),a("6968")),c=a("ac0d"),l={mixins:[c["a"]],data:function(){return{card_type:"",page:1,isLoadMore:!0,last_page:0,datas:[]}},components:{cTitle:r["a"]},mounted:function(){},methods:{initData:function(){this.card_type="",this.page=1,this.isLoadMore=!0,this.last_page=0,this.datas=[]},getMoreData:function(){var t=this,e={card_type:this.card_type,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.user-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={card_type:this.card_type,page:this.page};$http.get("plugin.energy-cabin.frontend.user-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.initData(),this.$route.params.card_type&&(this.card_type=this.$route.params.card_type),this.getData()}},s=l,d=s,g=(a("2e48"),a("2877")),m=Object(g["a"])(d,i,n,!1,null,"bd91eeb2",null);e["default"]=m.exports},"7cda":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#power_cancellation[data-v-bd91eeb2]{height:100vh;background-color:#fff}#power_cancellation .without[data-v-bd91eeb2]{padding-top:2.5rem;text-align:center}#power_cancellation .without .img[data-v-bd91eeb2]{width:19.1875rem;height:12.75rem;margin:0 auto}#power_cancellation .without .img img[data-v-bd91eeb2]{width:100%;height:100%}#power_cancellation .without .no-message[data-v-bd91eeb2]{margin-top:2.125rem;color:#999}#power_cancellation .without .without-btn[data-v-bd91eeb2]{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_cancellation .content[data-v-bd91eeb2]{padding:0 .75rem}#power_cancellation .content .item-list .item[data-v-bd91eeb2]{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_cancellation .content .item-list .item[data-v-bd91eeb2],#power_cancellation .content .item-list .item .left .top[data-v-bd91eeb2]{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_cancellation .content .item-list .item .left .top[data-v-bd91eeb2]{margin-bottom:.75rem;margin-left:.625rem}#power_cancellation .content .item-list .item .left .top .id[data-v-bd91eeb2]{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_cancellation .content .item-list .item .left .bottom[data-v-bd91eeb2]{color:#999;text-align:left;margin-left:.625rem}#power_cancellation .content .item-list .item .num[data-v-bd91eeb2]{color:#ff2c29;font-size:16px;margin-right:.625rem}",""]),t.exports=e},8405:function(t,e,a){var i=a("7cda");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("5bdb7d2a",i,!0,{sourceMap:!1,shadowMode:!1})},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(){}}}}}]); |