1 line
4.4 KiB
JavaScript
1 line
4.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d65d812e"],{"051e":function(t,e,i){var a=i("0b3d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("01ba9a35",a,!0,{sourceMap:!1,shadowMode:!1})},"0b3d":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"[data-v-f9c20518] .van-tabs__line{background-color:#ff8924}.distribution-funds img[data-v-f9c20518]{margin:0;width:100%}.distribution-funds .right-value[data-v-f9c20518]{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;font-size:.875rem;font-weight:500;color:#3b3b4a;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:100%}.distribution-funds .label[data-v-f9c20518]{height:.75rem;font-size:.75rem;font-weight:400;line-height:.75rem;color:#aaaab3}.distribution-funds .title[data-v-f9c20518]{font-size:.875rem;color:#3b3b4a}.distribution-funds .price[data-v-f9c20518]{color:#f15353;font-size:1.5rem;margin-top:.3125rem}.distribution-funds .head-box[data-v-f9c20518]{margin:.75rem .75rem 0;background:rgba(255,238,224,.39);border-radius:10px;padding:1rem}.distribution-funds .box[data-v-f9c20518]{margin:.75rem;background:#fff;border-radius:10px;overflow:hidden}",""]),t.exports=e},"5cbf":function(t,e,i){"use strict";i("051e")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,o=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&a.clientHeight?Math.min(o.clientHeight,a.clientHeight):Math.max(o.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,a.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(){}}}},dbde:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"distribution-funds"},[i("c-title",{attrs:{text:"慈善基金"}}),t.top_thumb?i("img",{attrs:{src:t.top_thumb},on:{click:t.goto}}):t._e(),i("div",{staticClass:"box"},[i("div",{staticClass:"head-box"},[i("div",{staticClass:"title"},[t._v("慈善基金")]),i("div",{staticClass:"price"},[t._v(t._s(t.amount))])]),i("van-tabs",{attrs:{"title-active-color":"#FF8924"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[i("van-tab",{attrs:{title:"慈善基金来源及使用明细"}},t._l(t.list,(function(e){return i("van-cell",{key:e.id,attrs:{"title-style":"text-align:left"}},[i("span",{attrs:{slot:"title"},slot:"title"},[t._v("ID:"+t._s(e.id))]),i("span",{staticClass:"label",attrs:{slot:"label"},slot:"label"},[t._v("备注:"+t._s(e.note))]),i("div",{staticClass:"right-value",attrs:{slot:"default"},slot:"default"},[i("span",[t._v(t._s(e.change_amount))]),i("span",{staticClass:"label"},[t._v(t._s(e.created_at))])])])})),1)],1)],1),i("div",{staticStyle:{height:"2.4063rem"}})],1)},o=[],n=(i("99af"),i("ac0d")),s={mixins:[n["a"]],data:function(){return{active:0,page:1,list:[],total_page:1,isLoadMore:!0,top_thumb:"",web_jump:"",amount:""}},activated:function(){this.isLoadMore=!0,this.getData()},methods:{goto:function(){this.web_jump&&(window.location.href=this.web_jump)},getData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;$http.get("plugin.charity-money.frontend.index.index",{page:e},"").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.$toast(e.msg);var i=e.data;t.top_thumb=i.top_thumb,t.web_jump=i.web_jump,t.amount=i.amount,t.list=1==i.list.current_page?i.list.data:t.list.concat(i.list.data),t.page=i.list.current_page,t.total_page=i.list.last_page}))},getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.total_page)){var t=this.page+1;this.getData(t)}}}},l=s,r=(i("5cbf"),i("2877")),c=Object(r["a"])(l,a,o,!1,null,"f9c20518",null);e["default"]=c.exports}}]); |