1 line
6.5 KiB
JavaScript
1 line
6.5 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bfc94b94","chunk-2d0d83d6"],{"04da":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("c-title",{attrs:{text:e.title}}),a("van-list",{staticClass:"welfare-record-list",attrs:{"immediate-check":!1,finished:e.finished,"finished-text":e.expendList.length>0?"没有更多了":""},on:{load:e.loadMore},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[1==e.type?a("div",[e._l(e.expendList,(function(t,i){return a("div",{key:i,staticClass:"expenditure-item"},[a("div",{staticClass:"row",staticStyle:{"margin-bottom":"0.625rem"}},[a("span",{staticClass:"remarks van-ellipsis"},[e._v(e._s(t.remark))]),a("p",{staticClass:"amount"},[e._v(e._s(t.amount))])]),a("div",{staticClass:"row"},[a("span",{staticClass:"remarks-type"},[e._v("公益支出")]),a("span",{staticClass:"time"},[e._v(e._s(t.created_at))])])])})),a("yz-blank",{attrs:{datas:e.expendList,text:"空空如也"}})],2):a("div",[e._l(e.fundList,(function(t,i){return a("div",{key:i,staticClass:"person-item"},[a("img",{staticClass:"avatar",attrs:{src:t.member&&t.member.avatar_image,alt:""}}),a("div",{staticClass:"user-nick"},[a("p",{staticStyle:{display:"flex"}},[a("span",{staticClass:"name van-ellipsis"},[e._v(e._s(t.member&&t.member.username))]),a("span",{staticClass:"user-id"},[e._v("ID:"+e._s(t.member_id))])]),a("p",{staticClass:"time"},[e._v(e._s(t.created_at))])]),a("div",{staticClass:"amount-statistics"},[a("p",{staticClass:"amount",style:{color:1==t.change_type?"#ff5a5a":"#5AB79C"}},[e._v(e._s(1==t.change_type?"+":"-")+e._s(t.amount))]),a("p",{staticClass:"balance"},[e._v("公益可用:"+e._s(t.change_after_use?t.change_after_use:"0.00"))])])])})),a("yz-blank",{attrs:{datas:e.fundList,text:"空空如也"}})],2)])],1)},s=[],n=(a("99af"),a("eb17")),r={data:function(){return{title:"",type:1,finished:!1,loading:!1,page:1,expendList:[],fundList:[]}},activated:function(){this.type=this.$route.params.type,1==this.type?(this.title="支出记录",this.getExpendData()):(this.title="公益明细",this.getFundData()),window.document.title=this.title},methods:{getExpendData:function(){var e=this;$http.get("plugin.public-fund.frontend.controllers.fund.expendList",{page:this.page}).then((function(t){e.loading=!1,1!=t.result&&e.$totas(t.msg);var a=t.data.list;(a.current_page>=a.last_page||a.data.length<a.per_page)&&(e.finished=!0),e.expendList=e.page>1?e.expendList.concat(a.data):a.data,e.page++}))},getFundData:function(){var e=this;$http.get("plugin.public-fund.frontend.controllers.fund.amountList",{page:this.page},"loading").then((function(t){e.loading=!1,1!=t.result&&e.$totas(t.msg);var a=t.data.list;(a.current_page>=a.last_page||a.data.length<a.per_page)&&(e.finished=!0),e.fundList=e.page>1?e.fundList.concat(a.data):a.data,e.page++}))},loadMore:function(){if(this.finished)return!1;1==this.type?this.getExpendData():this.getFundData()}},components:{yzBlank:n["default"]}},l=r,o=(a("450b"),a("2877")),c=Object(o["a"])(l,i,s,!1,null,"40760766",null);t["default"]=c.exports},"39ca":function(e,t,a){var i=a("f745");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("4ab1e8a8",i,!0,{sourceMap:!1,shadowMode:!1})},"450b":function(e,t,a){"use strict";a("39ca")},"79db":function(e,t,a){e.exports=a.p+"static/app/img/empty-image-search.ef236a93.png"},f745:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'.welfare-record-list .person-item[data-v-40760766]{position:relative;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;-webkit-align-content:space-between;-ms-flex-line-pack:justify;align-content:space-between;padding:.56rem;background-color:#fff}.welfare-record-list .person-item .avatar[data-v-40760766]{width:2.594rem;height:2.594rem;border-radius:50%}.welfare-record-list .person-item .user-nick[data-v-40760766]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;margin-left:.67rem}.welfare-record-list .person-item .user-nick .name[data-v-40760766]{display:inline-block;font-size:14px;max-width:7rem;color:#292929}.welfare-record-list .person-item .time[data-v-40760766],.welfare-record-list .person-item .user-id[data-v-40760766]{font-size:12px;color:#6b6b6b}.welfare-record-list .person-item .user-id[data-v-40760766]{margin-left:.5rem}.welfare-record-list .person-item .amount-statistics[data-v-40760766]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:right}.welfare-record-list .person-item .amount-statistics .amount[data-v-40760766]{font-size:14px;font-weight:700;color:#ff5a5a}.welfare-record-list .person-item .amount-statistics .balance[data-v-40760766]{font-size:12px;color:#ff5a5a}.welfare-record-list .expenditure-item[data-v-40760766]{position:relative;padding:.56rem;background-color:#fff}.welfare-record-list .expenditure-item .row[data-v-40760766]{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;-webkit-align-content:space-between;-ms-flex-line-pack:justify;align-content:space-between}.welfare-record-list .expenditure-item .amount[data-v-40760766]{font-size:14px;font-weight:700;color:#ff5a5a}.welfare-record-list .expenditure-item .remarks-type[data-v-40760766],.welfare-record-list .expenditure-item .time[data-v-40760766]{font-size:12px;max-width:7rem;color:#6b6b6b;white-space:nowrap}.welfare-record-list .expenditure-item .remarks[data-v-40760766]{max-width:12rem}.welfare-record-list .expenditure-item[data-v-40760766]:before,.welfare-record-list .person-item[data-v-40760766]:before{position:absolute;content:"";bottom:0;left:0;width:100%;height:1px;background-color:#6b6b6b;-webkit-transform:scaleY(.5);transform:scaleY(.5)}',""]),e.exports=t}}]); |