1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0aa96744"],{"0123":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".list[data-v-79367f7b]{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;padding:1rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin:1rem;background-color:#fff;border-radius:.35rem}.btn[data-v-79367f7b]{background-color:red;border-radius:1rem;padding:.22rem .73rem;color:#fff}",""]),t.exports=e},"36bd":function(t,e,i){"use strict";i("4d46")},"4d46":function(t,e,i){var n=i("0123");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("499e").default;o("4fb5d3a9",n,!0,{sourceMap:!1,shadowMode:!1})},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=document.documentElement,o=document.body,a={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return n&&n.scrollTop?t=n.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&n.clientHeight?Math.min(o.clientHeight,n.clientHeight):Math.max(o.clientHeight,n.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,n.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(){}}}},b4ad:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"flightInformationDetailList"}},[i("c-title",{attrs:{hide:!1,text:"航班信息收集记录"}}),i("div",{staticStyle:{width:"100%",height:"40px"}}),t._l(t.info,(function(e,n){return i("div",{key:n,staticClass:"list"},[i("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),i("div",{staticClass:"btn",on:{click:function(i){return t.goDetail(e)}}},[t._v("查看")])])}))],2)},o=[],a=(i("e7e5"),i("d399")),l=(i("99af"),i("6968")),r=i("ac0d"),c={mixins:[r["a"]],data:function(){return{info:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.getData()},methods:{getData:function(){var t=this;$http.get("plugin.flight-collect.frontend.index.get-flight",{}," ").then((function(e){1===e.result?(t.info=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0)):Object(a["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.flight-collect.frontend.index.get-flight",{page:this.page},"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.info=t.info.concat(i)}),(function(t){})))},goDetail:function(t){this.$router.push(this.fun.getUrl("flightInformationDetail",{id:t.id,form_id:t.form_id}))}},components:{cTitle:l["a"]}},s=c,d=s,f=(i("36bd"),i("2877")),u=Object(f["a"])(d,n,o,!1,null,"79367f7b",null);e["default"]=u.exports}}]); |