bztang-admin/addons/yun_shop/static/app/js/chunk-23a1a4a0.3719e5b3.js

1 line
13 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-23a1a4a0"],{1807:function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{style:{minHeight:t.minHeight},attrs:{id:"background_box"}})},s=[],o={props:{minHeight:{type:String,default:"12.125rem"}},data:function(){return{}}},n=o,r=(i("ddd1"),i("2877")),l=Object(r["a"])(n,a,s,!1,null,"36281e6e",null);e["a"]=l.exports},"23b4":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#background_box[data-v-36281e6e]{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)}",""]),t.exports=e},4081: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:"detailed"}},[i("c-title",{attrs:{hide:!1,text:t.integral?t.integral+"列表":"积分明细"}}),i("diyBackGround"),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}}},[i("div",{staticClass:"txt"},[t._v(t._s(t.source_comment[t.selectTapInd]))])])]),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]?Number(t.money_arr[a].expand).toFixed(2):"0.00")+" 收入:"+t._s(t.money_arr[a]?Number(t.money_arr[a].income).toFixed(2):""))])]),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.expand(e)}}},[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.point_income_type?"+":"")+t._s(e.point))])]),i("div",{staticClass:"lisTop dob"},[i("div",{staticClass:"time"},[t._v(t._s(e.created_at))]),i("div",{staticClass:"balance"},[t._v(t._s(t.integral?t.integral:"积分")+""+t._s(e.after_point))])])])})),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.source_comment,(function(e,a){return i("div",{key:a,staticClass:"lis",class:a==t.selectType?"lisBg":"",on:{click:function(e){return t.selectTap(a)}}},[i("div",{staticClass:"txt"},[t._v(t._s(e))])])})),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("99af"),i("a9e3"),i("6968")),r=i("ac0d"),l=i("1807"),c={mixins:[r["a"]],data:function(){return{toi:this.fun.getKeyByI(),selected:"",all:[],income:[],out:[],recordsList:[],integral:window.localStorage.integral,statusValue:0,selectShow:!1,selectType:0,record_list:[],money_arr:[],currentDate:new Date,maxDate:new Date,show:!1,postDate:"",noneShow:!1,selectTimeDate:"",source_comment:[],selectTapInd:0,isLoadMore:!0,page:1,total_page:0}},methods:{expand:function(t){this.$forceUpdate(),this.$router.push(this.fun.getUrl("integraldetail",{id:t.id}))},getData:function(t){var e=this,i={status:2==this.statusValue?"-1":this.statusValue,month:this.postDate,mode:this.selectType};$http.post("finance.point-info",i,"加载中").then((function(t){1===t.result?(e.isLoadMore=!0,e.noneShow=!1,e.total_page=t.data.record_list.last_page,e.total_page||(e.total_page=0),e.money_arr=t.data.point_arr,e.record_list=t.data.record_list,t.data.source_comment&&(e.source_comment=t.data.source_comment,e.source_comment[0]="变动类型")):(e.noneShow=!0,e.isLoadMore=!1,e.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={status:2==this.statusValue?"-1":this.statusValue,month:this.postDate,mode:this.selectType,page:this.page};$http.post("finance.point-info",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.point_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}))}},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){this.init(),this.selectType=t,this.selectTapInd=t,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}},activated:function(){this.init(),this.toi=this.fun.getKeyByI(),this.getData(),this.fun.setWXTitle(this.integral+"列表")},components:{cTitle:n["a"],diyBackGround:l["a"]}},d=c,f=d,m=(i("68c6"),i("2877")),u=Object(m["a"])(f,a,s,!1,null,"7f43932e",null);e["default"]=u.exports},"68c6":function(t,e,i){"use strict";i("c899")},"8bb6":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".typeBox[data-v-7f43932e]{overflow-y:scroll;height:100%;-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-7f43932e],.typeBox .lis[data-v-7f43932e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.typeBox .lis[data-v-7f43932e]{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-7f43932e]{font-size:12px}.typeBox .lis[data-v-7f43932e]:nth-child(3n){margin-right:0}.typeBox .lisBg[data-v-7f43932e]{background:var(--themeBaseColor)!important}#detailed .listTxt[data-v-7f43932e]{padding:2rem 0}@-webkit-keyframes ident-data-v-7f43932e{0%{opacity:0}50%{opacity:.75}to{opacity:1}}@keyframes ident-data-v-7f43932e{0%{opacity:0}50%{opacity:.75}to{opacity:1}}#detailed .showPosBox[data-v-7f43932e]{-webkit-animation:ident-data-v-7f43932e .5s;animation:ident-data-v-7f43932e .5s}#detailed .background_box[data-v-7f43932e]{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}#detailed .statusBox[data-v-7f43932e]{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}#detailed .statusBox[data-v-7f43932e],#detailed .statusBox .statusBox_left[data-v-7f43932e]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#detailed .statusBox .statusBox_left[data-v-7f43932e]{font-size:.75rem;color:#262626}#detailed .statusBox .statusBox_left .txt[data-v-7f43932e]{line-height:1.875rem;width:3.75rem}#detailed .statusBox .statusBox_left .showtxt[data-v-7f43932e]{width:3.75rem;height:1.875rem;background:#fff;border-radius:.9375rem}#detailed .statusBox .statusBox_right[data-v-7f43932e]{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}#detailed .statusBox .statusBox_right .txt[data-v-7f43932e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:center}#detailed .statusBox .statusBox_right .statusBox_right_pos[data-v-7f43932e]{background:#fdefbd;position:absolute;bottom:-4.3rem;left:0;width:100%;z-index:22222222;border-radius:0 0 .3125rem .3125rem}#detailed .statusBox .statusBox_right .statusBox_right_pos .postxt[data-v-7f43932e]{height:1.5rem;line-height:1.5rem}#detailed .list[data-v-7f43932e]{margin:0 .625rem;padding:0 .875rem;margin-top:.9375rem;background:#fff;border-radius:.625rem;margin-bottom:.625rem}#detailed .list .lis[data-v-7f43932e]:first-child{border:none}#detailed .list .lis[data-v-7f43932e]{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}#detailed .list .lis .dob[data-v-7f43932e]{margin-top:.4688rem}#detailed .list .lis .lisTop[data-v-7f43932e]{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}#detailed .list .lis .lisTop .txtName[data-v-7f43932e]{font-size:.8125rem}#detailed .list .lis .lisTop .price[data-v-7f43932e]{font-size:.8125rem;font-weight:500;color:#f20606}#detailed .list .lis .lisTop .time[data-v-7f43932e]{font-size:.6875rem;color:#999}#detailed .list .lis .lisTop .balance[data-v-7f43932e]{font-size:.6875rem;font-weight:400;color:#666}#detailed .timeSelect[data-v-7f43932e]{margin-top:-5rem;height:2.5rem;background:#fff;border-radius:.625rem;margin:0 .625rem;padding:0 .9063rem;position:-webkit-sticky;position:sticky;top:40px}#detailed .timeSelect[data-v-7f43932e],#detailed .timeSelect .timeBox[data-v-7f43932e]{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}#detailed .timeSelect .timeBox[data-v-7f43932e]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#detailed .timeSelect .timeBox .time[data-v-7f43932e]{margin-right:.5rem;font-size:.8125rem}#detailed .timeSelect .totalNum[data-v-7f43932e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:.625rem;color:#333}",""]),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(){}}}},c899:function(t,e,i){var a=i("8bb6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("59ca4e5c",a,!0,{sourceMap:!1,shadowMode:!1})},ddd1:function(t,e,i){"use strict";i("e89c")},e89c:function(t,e,i){var a=i("23b4");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("42413b76",a,!0,{sourceMap:!1,shadowMode:!1})}}]);