bztang-admin/addons/yun_shop/static/app/js/chunk-4a2c02b0.1ea159b7.js

1 line
12 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a2c02b0"],{"112d":function(t,e,i){var a=i("fd64");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("60c4afe2",a,!0,{sourceMap:!1,shadowMode:!1})},"181b":function(t,e,i){"use strict";i("112d")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=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 a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.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(){}}}},b774: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",{attrs:{id:"member_balance_detailed_v2"}},[i("c-title",{attrs:{hide:!1,text:t.balanceLang+"明细"}}),i("div",{staticClass:"background_box"}),i("div",{staticClass:"statusBox"},[i("div",{staticClass:"statusBox_left"},[i("div",{staticClass:"txt",class:0==t.statusValue?"showtxt":"",on:{click:function(e){return t.selectStatus(0)}}},[t._v("全部")]),i("div",{staticClass:"txt",class:1==t.statusValue?"showtxt":"",on:{click:function(e){return t.selectStatus(1)}}},[t._v("收入")]),i("div",{staticClass:"txt",class:2==t.statusValue?"showtxt":"",on:{click:function(e){return t.selectStatus(2)}}},[t._v("支出")])]),t.serviceTypeList.length>0?i("div",{staticClass:"statusBox_right",on:{click:function(e){e.stopPropagation(),t.selectShow=!t.selectShow}}},[i("div",{staticClass:"txt"},[t._v(t._s(t.serviceTypeList[t.selectTapInd].name))])]):t._e()]),t.noneShow?[i("div",{key:t.index,staticClass:"timeSelect"},[i("div",{staticClass:"timeBox",on:{click:function(e){t.show=!0}}},[i("div",{staticClass:"time"},[t._v(t._s(t.postDate))]),i("van-icon",{attrs:{name:"arrow-down",size:"12px"}})],1),i("div",{staticClass:"totalNum"},[t._v("支出¥0.00 收入¥0.00")])]),t._m(0)]:[t._l(t.record_list.data,(function(e,a){return[i("div",{key:a,staticClass:"timeSelect"},[i("div",{staticClass:"timeBox",on:{click:function(e){t.show=!0}}},[i("div",{staticClass:"time"},[t._v(t._s(a))]),i("van-icon",{attrs:{name:"arrow-down",size:"12px"}})],1),i("div",{staticClass:"totalNum"},[t._v("支出:¥"+t._s(t.money_arr[a]?t.money_arr[a].expend:"0.00")+" 收入:¥"+t._s(t.money_arr[a]?t.money_arr[a].income:""))])]),i("div",{key:a,staticClass:"list"},t._l(e,(function(e,a){return i("div",{key:a,staticClass:"lis",on:{click:function(i){return t.detailsTo(e)}}},[i("div",{staticClass:"lisTop"},[i("div",{staticClass:"txtName"},[t._v(t._s(e.service_type_name))]),i("div",{staticClass:"price"},[t._v(t._s(1==e.type?"+":"")+t._s(e.change_money))])]),i("div",{staticClass:"lisTop dob"},[i("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),i("div",{staticClass:"balance"},[t._v("余额:"+t._s(e.new_money))])])])})),0)]}))],i("van-popup",{style:{height:"40%"},attrs:{position:"bottom"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("van-datetime-picker",{attrs:{type:"year-month",title:"选择年月","max-date":t.maxDate,formatter:t.formatter},on:{confirm:t.pickConfirm},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1),i("van-popup",{style:{height:"40%"},attrs:{position:"bottom"},model:{value:t.selectShow,callback:function(e){t.selectShow=e},expression:"selectShow"}},[i("div",{staticClass:"typeBox"},t._l(t.serviceTypeList,(function(e,a){return i("div",{key:e.id,staticClass:"lis",class:e.id==t.selectType?"lisBg":"",on:{click:function(i){return t.selectTap(e.id,a)}}},[i("div",{staticClass:"txt"},[t._v(t._s(e.name))])])})),0)])],2)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"list"},[i("div",{staticClass:"listTxt"},[t._v("暂无记录")])])}],o=i("2909"),n=(i("14d9"),i("a9e3"),i("3c65"),i("99af"),i("ac0d")),r={mixins:[n["a"]],data:function(){return{balanceLang:this.fun.getBalanceLang(),statusValue:0,selectShow:!1,selectType:0,record_list:[],money_arr:[],currentDate:new Date,maxDate:new Date,show:!1,postDate:"",noneShow:!1,selectTimeDate:"",serviceTypeList:[],selectTapInd:0,isLoadMore:!0,page:1,total_page:0}},methods:{detailsTo:function(t){this.$router.push(this.fun.getUrl("details",{item:t}))},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):e},selectStatus:function(t){this.init(),this.statusValue=t,this.getData()},selectTap:function(t,e){this.init(),this.selectType=t,this.selectTapInd=e,this.getData()},pickConfirm:function(t){this.postDate=this.timestampToTime(Date.parse(t)),this.show=!1,this.init(),this.getData()},init:function(){this.isLoadMore=!0,this.page=1,this.total_page=0,this.record_list=[],this.money_arr=[],this.selectShow=!1},timestampToTime:function(t,e){if(!Number(t)||""==t)return"";var i=new Date(t),a=i.getFullYear()+"-",s=(i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1)+"-",o=i.getDate()<10?"0"+i.getDate():i.getDate();return a+s+o},serviceType:function(){var t=this;$http.post("finance.balance.get-service-type-list",{},"加载中").then((function(e){if(1===e.result){t.serviceTypeList=e.data;var i={id:0,name:"业务类型"};t.serviceTypeList.unshift(i)}else t.noneShow=!0,t.isLoadMore=!1,t.record_list=[]})).catch((function(t){}))},getData:function(){var t=this,e={search:{record_type:this.statusValue,date:this.postDate,service_type:this.selectType}};$http.post("finance.balance.record",e,"加载中").then((function(e){1===e.result?(t.isLoadMore=!0,t.noneShow=!1,t.total_page=e.data.record_list.last_page,t.total_page||(t.total_page=0),t.money_arr=e.data.money_arr,t.record_list=e.data.record_list):(t.noneShow=!0,t.isLoadMore=!1,t.record_list=[])})).catch((function(t){}))},getMoreData:function(){var t=this;if(this.isLoadMore&&(this.isLoadMore=!1,!(this.page>=this.total_page))){this.page+=1;var e={search:{record_type:this.statusValue,date:this.postDate,service_type:this.selectType},page:this.page};$http.post("finance.balance.record",e).then((function(e){if(1===e.result){var i=e.data.record_list.data;for(var a in t.money_arr=Object.assign(t.money_arr,e.data.money_arr),i)t.record_list.data[a]?t.$set(t.record_list.data,a,[].concat(Object(o["a"])(t.record_list.data[a]),Object(o["a"])(i[a]))):t.$set(t.record_list.data,a,i[a]);t.isLoadMore=!0}else t.page=t.page-1,t.isLoadMore=!1}))}}},activated:function(){this.getData(),this.serviceType()}},l=r,c=(i("181b"),i("2877")),d=Object(c["a"])(l,a,s,!1,null,"b7525ef4",null);e["default"]=d.exports},fd64:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".listTxt[data-v-b7525ef4]{padding:2rem 0}@-webkit-keyframes ident-data-v-b7525ef4{0%{opacity:0}50%{opacity:.75}to{opacity:1}}@keyframes ident-data-v-b7525ef4{0%{opacity:0}50%{opacity:.75}to{opacity:1}}.showPosBox[data-v-b7525ef4]{-webkit-animation:ident-data-v-b7525ef4 .5s;animation:ident-data-v-b7525ef4 .5s}.background_box[data-v-b7525ef4]{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-b7525ef4]{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-b7525ef4],.statusBox .statusBox_left[data-v-b7525ef4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.statusBox .statusBox_left[data-v-b7525ef4]{font-size:.75rem;color:#262626}.statusBox .statusBox_left .txt[data-v-b7525ef4]{line-height:1.875rem;width:3.75rem}.statusBox .statusBox_left .showtxt[data-v-b7525ef4]{width:3.75rem;height:1.875rem;background:#fff;border-radius:.9375rem}.statusBox .statusBox_right[data-v-b7525ef4]{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-b7525ef4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.statusBox .statusBox_right .statusBox_right_pos[data-v-b7525ef4]{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-b7525ef4]{height:1.5rem;line-height:1.5rem}.list[data-v-b7525ef4]{margin:0 .625rem;padding:0 .875rem;margin-top:.9375rem;background:#fff;border-radius:.625rem;margin-bottom:.625rem}.list .lis[data-v-b7525ef4]:first-child{border:none}.list .lis[data-v-b7525ef4]{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-b7525ef4]{margin-top:.4688rem}.list .lis .lisTop[data-v-b7525ef4]{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-b7525ef4]{font-size:14px}.list .lis .lisTop .price[data-v-b7525ef4]{font-size:14px;font-weight:500;color:#f20606}.list .lis .lisTop .time[data-v-b7525ef4]{font-size:.6875rem;color:#999}.list .lis .lisTop .balance[data-v-b7525ef4]{font-size:.6875rem;font-weight:400;color:#666}.timeSelect[data-v-b7525ef4]{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-b7525ef4],.timeSelect .timeBox[data-v-b7525ef4]{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-b7525ef4]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.timeSelect .timeBox .time[data-v-b7525ef4]{margin-right:.5rem;font-size:.8125rem}.timeSelect .totalNum[data-v-b7525ef4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:14px;color:#333}.typeBox[data-v-b7525ef4]{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-b7525ef4],.typeBox .lis[data-v-b7525ef4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.typeBox .lis[data-v-b7525ef4]{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-b7525ef4]{font-size:12px}.typeBox .lis[data-v-b7525ef4]:nth-child(3n){margin-right:0}.typeBox .lisBg[data-v-b7525ef4]{background:var(--themeBaseColor)!important}",""]),t.exports=e}}]);