1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2767ede4"],{"0380":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#incomedetailed .mint-header[data-v-f76cf91a]{background:none;color:#666}#incomedetailed .is-fixed .mint-header-title[data-v-f76cf91a]{font-weight:700}#incomedetailed .mint-header.is-fixed[data-v-f76cf91a]{border-bottom:.0625rem solid #ebebeb;background:#fff;z-index:99}#incomedetailed .is-right a[data-v-f76cf91a]{font-size:12px}#incomedetailed a[data-v-f76cf91a]{color:#333}#incomedetailed .mint-navbar[data-v-f76cf91a]{margin-bottom:.125rem}#incomedetailed .mint-navbar .mint-tab-item[data-v-f76cf91a]{padding:.875rem 0}#incomedetailed .times[data-v-f76cf91a]{text-align:left;text-indent:.625rem;line-height:2rem;background:#ddd}#incomedetailed .tbs[data-v-f76cf91a]{background:#fff;overflow:hidden;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;padding:.625rem .75rem;border-bottom:.0625rem solid #e2e2e2}#incomedetailed .tbs .left[data-v-f76cf91a]{-webkit-box-flex:2;-webkit-flex:2;-ms-flex:2;flex:2;text-align:left;line-height:1.5rem}#incomedetailed .tbs .item1[data-v-f76cf91a]{font-size:14px;color:#333}#incomedetailed .tbs .item2[data-v-f76cf91a]{color:#8c8c8c}#incomedetailed .tbs .item3[data-v-f76cf91a]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:14px}#incomedetailed .tbs .item3 .add[data-v-f76cf91a]{color:#259b24}#incomedetailed .tbs .item3 .reduce[data-v-f76cf91a]{color:#f15353}.mint-popup-4[data-v-f76cf91a]{background:#fff;width:100%;height:20rem;overflow:auto}.mint-popup-4 .screen li[data-v-f76cf91a]{padding:.375rem 0;border-radius:.3125rem;float:left;background:#f5f5f5;font-size:12px;width:27%;margin:3%}.mint-popup-4 .screen li a[data-v-f76cf91a]{color:#333}.van-nav-bar[data-v-f76cf91a],[data-v-f76cf91a] .van-nav-bar__content{height:40px}[data-v-f76cf91a] .van-nav-bar__title{font-weight:700;font-size:14px;color:#666}[data-v-f76cf91a] .van-nav-bar .van-icon{color:#666}[data-v-f76cf91a] .van-nav-bar__left{padding:0 0 0 10px}.pcStyle[data-v-f76cf91a]{width:375px;margin:0 auto;left:50%;margin-left:-187.5px}[data-v-f76cf91a] .van-nav-bar__text{color:#666}",""]),t.exports=e},"4dd0":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",[a("div",{attrs:{id:"incomedetailed"}},[a("van-nav-bar",{class:[3==this.fun.getPhoneEnv()?"pcStyle":""],attrs:{"left-arrow":"",title:t.income_name_text+"明细","right-text":"筛选",fixed:""},on:{"click-right":function(e){return t.screen()},"click-left":t.goto}}),a("div",{staticStyle:{height:"40px"}}),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",t._l(t.datas,(function(e,i){return a("router-link",{key:i,attrs:{to:t.fun.getUrl("income_details_info",{id:e.id})}},[a("div",{staticClass:"tbs"},[a("ul",{staticClass:"left"},[a("li",{staticClass:"item1"},[t._v(t._s(e.type_name))]),a("li",{staticClass:"item2"},[t._v(t._s(e.created_at))])]),a("div",{staticClass:"item3"},[a("span",{staticClass:"add"},[t._v("+"+t._s(e.amount))])])])])})),1)])],1),a("van-popup",{staticClass:"mint-popup-4",attrs:{position:"bottom",closeOnClickModal:"true"},model:{value:t.popupSpecs,callback:function(e){t.popupSpecs=e},expression:"popupSpecs"}},t._l(t.typeData,(function(e,i){return a("div",{key:i,staticClass:"screen"},[a("ul",[a("li",{on:{click:function(a){return t.screenType(e.type)}}},[a("a",[t._v(t._s(e.title))])])])])})),0)],1)},n=[],o=(a("99af"),a("6968")),s=a("ac0d"),c={mixins:[s["a"]],data:function(){return{toi:this.fun.getKeyByI(),datas:[],typeData:[],popupSpecs:!1,sType:"",loading:!1,allLoaded:!1,goload:!0,isLoadMore:!0,page:1,total_page:0,income_name_text:"",isLoading:!1}},activated:function(){this.toi=this.fun.getKeyByI(),this.sType="",this.initData(),this.getData(this.sType),this.customizeIncome(),this.fun.setWXTitle(this.income_name_text+"明细")},mounted:function(){this.toi=this.fun.getKeyByI()},methods:{initData:function(){this.page=1,this.total_page=0,this.goload=!0,this.loading=!0,this.allLoaded=!1,this.isLoadMore=!0,this.datas=[]},loadTop:function(){this.initData(),this.getData(this.sType)},getData:function(){var t=this,e={income_type:this.sType,page:this.page};t.isLoadMore=!1,$http.get("finance.income.get-income-list",e,"加载中...").then((function(e){t.isLoadMore=!0,1==e.result?(t.total_page=e.data.last_page,t.datas=e.data.data,t.isLoading=!1):t.isLoading=!1}),(function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("finance.income.get-income-list",{income_type:this.sType,page:this.page},"加载中...").then((function(e){if(t.isLoadMore=!0,1!=e.result)return t.page=t.page-1,t.loading=!0,t.allLoaded=!0,void(t.isLoadMore=!1);var a=e.data;t.loading=!1,t.allLoaded=!1,t.datas=t.datas.concat(a.data)}),(function(t){})))},getTypeData:function(){var t=this,e={i:this.fun.getKeyByI(),type:this.fun.getTyep()};$http.get("finance.income.get-search-type",e,"获取中...").then((function(e){1==e.result&&(t.typeData=e.data,t.popupSpecs=!0)}),(function(t){}))},goto:function(){window.history.go(-1)},screen:function(){0==this.typeData.length?this.getTypeData():this.popupSpecs=!0},screenType:function(t){this.sType=t,this.popupSpecs=!1,this.initData(),this.getData()},customizeIncome:function(){var t=this.fun.initMailLanguage();this.income_name_text=t.income.income_name}},components:{cTitle:o["a"]}},l=c,d=l,r=(a("fb71"),a("2877")),f=Object(r["a"])(d,i,n,!1,null,"f76cf91a",null);e["default"]=f.exports},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(){}}}},e4e9:function(t,e,a){var i=a("0380");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("0d46b83f",i,!0,{sourceMap:!1,shadowMode:!1})},fb71:function(t,e,a){"use strict";a("e4e9")}}]); |