bztang-admin/addons/yun_shop/static/app/js/chunk-def2063a.30130de8.js

1 line
14 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-def2063a"],{"00284":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.diy_name+"明细"}}),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("支出")])]),i("div",{staticClass:"statusBox_right",on:{click:function(e){e.stopPropagation(),t.selectShow=!t.selectShow}}},[t._m(0)])]),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(1)]:[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"},[i("div",{staticClass:"lisTop"},[i("div",{staticClass:"txtName"},[t._v(t._s(e.source_name))]),i("div",{staticClass:"price"},[t._v(t._s(1==e.change_type?"+":"-")+t._s(e.change_num))])]),i("div",{staticClass:"lisTop dob"},[i("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),e.tag?i("div",{staticClass:"balance"},[t._v(t._s(e.tag.tag_name)+":"+t._s(e.after_num))]):t._e()])])})),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:"55%"},attrs:{position:"bottom"},model:{value:t.selectShow,callback:function(e){t.selectShow=e},expression:"selectShow"}},[i("van-nav-bar",{attrs:{title:"筛选"},on:{"click-left":t.onClickLeft,"click-right":t.onClickRight}},[i("div",{attrs:{slot:"left"},slot:"left"},[i("span",[t._v("取消")])]),i("div",{attrs:{slot:"right"},slot:"right"},[i("span",[t._v("确定")])])]),i("div",{staticClass:"listSelect"},[i("div",{staticClass:"txt"},[t._v(" 充值标签类型 ")]),i("div",{staticClass:"lis_box"},[i("div",{staticClass:"lis",class:0==t.tagId?"lisBg":"",on:{click:function(e){return t.selectTap(0,"tags")}}},[t._v("全部")]),t._l(t.serviceTypeList.tags,(function(e,a){return i("div",{key:a,staticClass:"lis",class:t.tagId==e.id?"lisBg":"",on:{click:function(i){return t.selectTap(e.id,"tags")}}},[t._v(" "+t._s(e.tag_name)+" ")])}))],2),i("div",{staticClass:"txt"},[t._v(" 变动类型 ")]),i("div",{staticClass:"lis_box"},[i("div",{staticClass:"lis",class:0==t.sourceId?"lisBg":"",on:{click:function(e){return t.selectTap(0,"source")}}},[t._v("全部")]),t._l(t.serviceTypeList.source,(function(e,a){return i("div",{key:a,staticClass:"lis",class:t.sourceId==e.id?"lisBg":"",on:{click:function(i){return t.selectTap(e.id,"source")}}},[t._v(" "+t._s(e.name)+" ")])}))],2)])],1)],2)},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"txt"},[t._v(" 筛选 "),i("i",{staticClass:"iconfont icon-fontclass-shaixuan"})])},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"),c=(i("a9e3"),i("99af"),i("b64b"),i("ac0d")),n={mixins:[c["a"]],data:function(){return{statusValue:0,selectShow:!1,selectType:0,record_list:[],money_arr:[],currentDate:new Date,maxDate:new Date,show:!1,postDate:"",noneShow:!1,selectTimeDate:"",serviceTypeList:[],tagId:0,sourceId:0,diy_name:"充值标签",isLoadMore:!0,page:1,total_page:0}},methods:{onClickRight:function(){this.selectShow=!1,this.init(),this.getData()},onClickLeft:function(){this.selectShow=!1},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):e},selectStatus:function(t){this.init(),this.tagId="",this.sourceId="",this.statusValue=t,this.getData()},selectTap:function(t,e){"tags"==e?this.tagId=t:this.sourceId=t},pickConfirm:function(t){this.postDate=this.timestampToTime(Date.parse(t)),this.show=!1,this.tagId="",this.sourceId="",this.init(),this.getData()},init:function(){this.isLoadMore=!0,this.page=1,this.total_page=0,this.record_list=[],this.money_arr=[]},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("plugin.tag-balance.frontend.record.change-log-page",{},"加载中").then((function(e){1===e.result?t.serviceTypeList=e.data:(t.noneShow=!0,t.isLoadMore=!1,t.record_list=[])})).catch((function(t){}))},getData:function(){var t=this,e={change_type:this.statusValue?this.statusValue:"",date:this.postDate,tag_id:this.tagId,source:this.sourceId,page:this.page};$http.post("plugin.tag-balance.frontend.record.change-log",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={change_type:this.statusValue?this.statusValue:"",date:this.postDate,tag_id:this.tagId,source:this.sourceId,page:this.page};$http.post("plugin.tag-balance.frontend.record.change-log",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(){var t;this.getData(),this.serviceType();var e=null===(t=JSON.parse(localStorage.getItem("yz_basic_info")).plugin_setting)||void 0===t||null===(t=t.tag_balance)||void 0===t?void 0:t.diy_name;this.diy_name=e,this.fun.setWXTitle(this.diy_name+"明细")}},l=n,r=(i("1770"),i("2877")),d=Object(r["a"])(l,a,s,!1,null,"1cc517dd",null);e["default"]=d.exports},1770:function(t,e,i){"use strict";i("c501")},"8d67":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".listTxt[data-v-1cc517dd]{padding:2rem 0}@-webkit-keyframes ident-data-v-1cc517dd{0%{opacity:0}50%{opacity:.75}to{opacity:1}}@keyframes ident-data-v-1cc517dd{0%{opacity:0}50%{opacity:.75}to{opacity:1}}.showPosBox[data-v-1cc517dd]{-webkit-animation:ident-data-v-1cc517dd .5s;animation:ident-data-v-1cc517dd .5s}.background_box[data-v-1cc517dd]{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-1cc517dd]{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-1cc517dd],.statusBox .statusBox_left[data-v-1cc517dd]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.statusBox .statusBox_left[data-v-1cc517dd]{font-size:.75rem;color:#262626}.statusBox .statusBox_left .txt[data-v-1cc517dd]{line-height:1.875rem;width:3.75rem}.statusBox .statusBox_left .showtxt[data-v-1cc517dd]{width:3.75rem;height:1.875rem;background:#fff;border-radius:.9375rem}.statusBox .statusBox_right[data-v-1cc517dd]{min-width:5.3125rem;height:1.875rem;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-1cc517dd]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}.statusBox .statusBox_right .statusBox_right_pos[data-v-1cc517dd]{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-1cc517dd]{height:1.5rem;line-height:1.5rem}.list[data-v-1cc517dd]{margin:0 .625rem;padding:0 .875rem;margin-top:.9375rem;background:#fff;border-radius:.625rem;margin-bottom:.625rem}.list .lis[data-v-1cc517dd]:first-child{border:none}.list .lis[data-v-1cc517dd]{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-1cc517dd]{margin-top:.4688rem}.list .lis .lisTop[data-v-1cc517dd]{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-1cc517dd]{font-size:14px}.list .lis .lisTop .price[data-v-1cc517dd]{font-size:14px;font-weight:500;color:#f20606}.list .lis .lisTop .time[data-v-1cc517dd]{font-size:.6875rem;color:#999}.list .lis .lisTop .balance[data-v-1cc517dd]{font-size:.6875rem;font-weight:400;color:#666}.timeSelect[data-v-1cc517dd]{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-1cc517dd],.timeSelect .timeBox[data-v-1cc517dd]{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-1cc517dd]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.timeSelect .timeBox .time[data-v-1cc517dd]{margin-right:.5rem;font-size:.8125rem}.timeSelect .totalNum[data-v-1cc517dd]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:14px;color:#333}.listSelect[data-v-1cc517dd]{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;overflow-y:scroll;margin:0 .75rem}.listSelect .txt[data-v-1cc517dd]{font-size:.88rem;font-weight:500;color:#00001c;margin-bottom:.94rem;text-align:left}.listSelect .lis_box[data-v-1cc517dd]{-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.listSelect .lis_box[data-v-1cc517dd],.listSelect .lis_box .lis[data-v-1cc517dd]{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}.listSelect .lis_box .lis[data-v-1cc517dd]{height:2rem;background:#fff;border-radius:.31rem;margin-right:.4rem;border:1px solid #d6d6dc;margin-bottom:.5rem;padding:0 .5rem;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:.81rem}.lisBg[data-v-1cc517dd]{border:1px solid var(--themeBaseColor)!important;color:var(--themeBaseColor)!important}",""]),t.exports=e},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(){}}}},c501:function(t,e,i){var a=i("8d67");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("2c7c9bde",a,!0,{sourceMap:!1,shadowMode:!1})}}]);