1 line
9.9 KiB
JavaScript
1 line
9.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55b9fe74"],{1266:function(t,e,a){"use strict";a("bf7e")},"21d1":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:"ecologicalPointDetailed"}},[a("c-title",{attrs:{hide:!1,text:t.balanceLang+"明细"}}),a("div",{staticClass:"background_box"}),a("div",{staticClass:"statusBox"},[a("div",{staticClass:"statusBox_left"},[a("div",{staticClass:"txt",class:0==t.statusValue?"showtxt":"",on:{click:function(e){return t.selectStatus(0)}}},[t._v("全部")]),a("div",{staticClass:"txt",class:1==t.statusValue?"showtxt":"",on:{click:function(e){return t.selectStatus(1)}}},[t._v("收入")]),a("div",{staticClass:"txt",class:2==t.statusValue?"showtxt":"",on:{click:function(e){return t.selectStatus(2)}}},[t._v("支出")])]),a("div",{staticClass:"statusBox_right",on:{click:function(e){e.stopPropagation(),t.selectShow=!t.selectShow}}},[a("div",{staticClass:"txt"},[t._v(t._s(t.serviceTypeList[t.selectTapInd]))])])]),a("div",{key:t.index,staticClass:"list"},t._l(t.record_list,(function(e,i){return a("div",{key:i,staticClass:"lis"},[a("div",{staticClass:"lisTop"},[a("div",{staticClass:"txtName"},[t._v(t._s(e.source_name))]),a("div",{staticClass:"price"},[t._v(t._s(1==e.change_type?"+":"-")+t._s(e.amount))])]),a("div",{staticClass:"lisTop dob"},[a("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"balance"},[t._v("剩余:"+t._s(e.present))])])])})),0),a("van-popup",{style:{height:"40%"},attrs:{position:"bottom"},model:{value:t.selectShow,callback:function(e){t.selectShow=e},expression:"selectShow"}},[a("div",{staticClass:"typeBox"},t._l(t.serviceTypeList,(function(e,i){return a("div",{key:e.id,staticClass:"lis",class:i==t.selectType?"lisBg":"",on:{click:function(a){return t.selectTap(e,i)}}},[a("div",{staticClass:"txt"},[t._v(t._s(e))])])})),0)])],1)},s=[],o=(a("99af"),a("b64b"),a("ac0d")),l={mixins:[o["a"]],data:function(){return{balanceLang:"生态积分",statusValue:0,selectShow:!1,selectType:0,record_list:[],serviceTypeList:[],selectTapInd:0,isLoadMore:!0,page:1,total_page:0}},methods:{selectStatus:function(t){this.init(),this.statusValue=t,this.getData()},selectTap:function(t,e){this.init(),this.selectType=e,this.selectTapInd=e,this.getData()},init:function(){this.isLoadMore=!0,this.page=1,this.total_page=0,this.record_list=[]},getMoreData:function(){var t=this;if(this.isLoadMore&&(this.isLoadMore=!1,!(this.page>=this.total_page))){this.page+=1;var e={source_id:this.selectType,change_type:this.statusValue,page:this.page};$http.post("plugin.ecological-point.frontend.modules.point.controllers.records.index",e).then((function(e){if(1===e.result){var a=e.data.page_list.data;t.record_list=t.record_list.concat(a),t.isLoadMore=!0}else t.page=t.page-1,t.isLoadMore=!1}))}},getData:function(){var t=this;$http.post("plugin.ecological-point.frontend.modules.point.controllers.records.index",{page:this.page,source_id:this.selectType,change_type:this.statusValue},"加载中").then((function(e){1===e.result?(t.ecologicalName=JSON.parse(localStorage.getItem("yz_basic_info")).ecological_point?JSON.parse(localStorage.getItem("yz_basic_info")).ecological_point:"生态积分",t.fun.setWXTitle("".concat(t.ecologicalName,"明细")),t.record_list=e.data.page_list.data,t.source_comment=e.data.source_comment,t.isLoadMore=!0,t.total_page=e.data.page_list.last_page,t.serviceTypeList=e.data.source_comment,t.serviceTypeList[0]="业务类型",t.total_page||(t.total_page=0)):(t.page=t.page-1,t.isLoadMore=!1)}))}},activated:function(){this.getData(),this.balanceLang=JSON.parse(localStorage.getItem("yz_basic_info")).ecological_point?JSON.parse(localStorage.getItem("yz_basic_info")).ecological_point:"生态积分"}},c=l,n=(a("1266"),a("2877")),r=Object(n["a"])(c,i,s,!1,null,"06c8a432",null);e["default"]=r.exports},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));var i=document.documentElement,s=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:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},bf7e:function(t,e,a){var i=a("fe80");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("580afbb0",i,!0,{sourceMap:!1,shadowMode:!1})},fe80:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".listTxt[data-v-06c8a432]{padding:2rem 0}@-webkit-keyframes ident-data-v-06c8a432{0%{opacity:0}50%{opacity:.75}to{opacity:1}}@keyframes ident-data-v-06c8a432{0%{opacity:0}50%{opacity:.75}to{opacity:1}}.showPosBox[data-v-06c8a432]{-webkit-animation:ident-data-v-06c8a432 .5s;animation:ident-data-v-06c8a432 .5s}.background_box[data-v-06c8a432]{color:#382c0a;background-color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(var(--themeBaseColor)),to(#f5f5f5));background-image:-webkit-linear-gradient(var(--themeBaseColor),#f5f5f5);background-image:linear-gradient(var(--themeBaseColor),#f5f5f5);min-height:9.25rem;padding:1.5938rem 1.0938rem 0 1.0938rem}.statusBox[data-v-06c8a432]{margin:0 .625rem;margin-top:-7rem;margin-bottom:.625rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;z-index:1;position:relative}.statusBox[data-v-06c8a432],.statusBox .statusBox_left[data-v-06c8a432]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.statusBox .statusBox_left[data-v-06c8a432]{font-size:.75rem;color:#262626}.statusBox .statusBox_left .txt[data-v-06c8a432]{line-height:1.875rem;width:3.75rem}.statusBox .statusBox_left .showtxt[data-v-06c8a432]{width:3.75rem;height:1.875rem;background:#fff;border-radius:.9375rem}.statusBox .statusBox_right[data-v-06c8a432]{min-width:5.3125rem;height:1.875rem;background:#fdefbd;border-radius:.3125rem;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;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .4688rem;position:relative}.statusBox .statusBox_right .txt[data-v-06c8a432]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.statusBox .statusBox_right .statusBox_right_pos[data-v-06c8a432]{background:#fdefbd;position:absolute;bottom:-4.3rem;left:0;width:100%;z-index:22222222;border-radius:0 0 .3125rem .3125rem}.statusBox .statusBox_right .statusBox_right_pos .postxt[data-v-06c8a432]{height:1.5rem;line-height:1.5rem}.list[data-v-06c8a432]{margin:0 .625rem;padding:0 .875rem;margin-top:.9375rem;background:#fff;border-radius:.625rem;margin-bottom:.625rem}.list .lis[data-v-06c8a432]:first-child{border:none}.list .lis[data-v-06c8a432]{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;padding:.9375rem 0;border-bottom:1px solid #f6f6f6}.list .lis .dob[data-v-06c8a432]{margin-top:.4688rem}.list .lis .lisTop[data-v-06c8a432]{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-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.list .lis .lisTop .txtName[data-v-06c8a432]{font-size:14px}.list .lis .lisTop .price[data-v-06c8a432]{font-size:14px;font-weight:500;color:#f20606}.list .lis .lisTop .time[data-v-06c8a432]{font-size:.6875rem;color:#999}.list .lis .lisTop .balance[data-v-06c8a432]{font-size:.6875rem;font-weight:400;color:#666}.timeSelect[data-v-06c8a432]{margin-top:-5rem;height:2.5rem;background:#fff;border-radius:.625rem;margin:0 .625rem;padding:0 .9063rem;position:-webkit-sticky;position:sticky;top:40px}.timeSelect[data-v-06c8a432],.timeSelect .timeBox[data-v-06c8a432]{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}.timeSelect .timeBox[data-v-06c8a432]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.timeSelect .timeBox .time[data-v-06c8a432]{margin-right:.5rem;font-size:.8125rem}.timeSelect .totalNum[data-v-06c8a432]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:14px;color:#333}.typeBox[data-v-06c8a432]{overflow-y:scroll;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:.625rem;padding-top:1rem}.typeBox[data-v-06c8a432],.typeBox .lis[data-v-06c8a432]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.typeBox .lis[data-v-06c8a432]{width:30%;padding:.6rem .625rem;border-radius:.1563rem;background:hsla(0,0%,60%,.6);margin-right:1rem;margin-bottom:.625rem;color:#fff;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.typeBox .lis .txt[data-v-06c8a432]{font-size:12px}.typeBox .lis[data-v-06c8a432]:nth-child(3n){margin-right:0}.typeBox .lisBg[data-v-06c8a432]{background:var(--themeBaseColor)!important}",""]),t.exports=e}}]); |