bztang-admin/addons/yun_shop/static/app/js/chunk-28fcf2d4.d21d2b1b.js

1 line
5.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28fcf2d4"],{"09eb1":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".noneLis[data-v-05a22fee]{text-align:center;color:#999}.listBox[data-v-05a22fee]{padding:.63rem;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}.listBox .lis[data-v-05a22fee]{background-color:#fff;border-radius:.31rem;padding:.91rem .81rem;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:.625rem}.listBox .lis .bottom[data-v-05a22fee]{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;font-size:.75rem;margin-top:.8rem}.listBox .lis .bottom .bottomLeft[data-v-05a22fee],.listBox .lis .bottom .bottomRight[data-v-05a22fee]{color:#7e7e7e}.listBox .lis .top[data-v-05a22fee]{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;font-size:.88rem}.listBox .lis .top .topRight[data-v-05a22fee]{color:#f15353}.listBox .lis .top .topLeft[data-v-05a22fee]{color:#2f2f2f}",""]),t.exports=e},"389c":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:"purchaseDetails"}},[i("c-title",{attrs:{hide:!1,text:this.$route.params.coupon||t.isvip?"提货券明细":"采购款明细"}}),t.isvip?t._e():i("van-tabs",{on:{change:t.changeTap},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.tabNav,(function(t,e){return i("van-tab",{key:e,attrs:{title:t}})})),1),i("div",{staticClass:"listBox"},[t._l(t.listData,(function(e,a){return i("div",{key:a,staticClass:"lis"},[i("div",{staticClass:"top"},[i("div",{staticClass:"topLeft"},[t._v(t._s(e.change_type_name))]),i("div",{staticClass:"topRight"},[t._v("¥"+t._s(e.change_amount))])]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"bottomLeft"},[t._v(t._s(e.created_at))]),i("div",{staticClass:"bottomRight"},[t._v(t._s(e.amount_type_name))])])])})),0==t.listData.length?i("div",{staticClass:"noneLis"},[t._v("暂无明细")]):t._e()],2)],1)},o=[],s=(i("e7e5"),i("d399")),n=(i("b64b"),i("99af"),i("ac0d")),c={mixins:[n["a"]],data:function(){return{active:0,tabNav:[],listData:[],coupon:!1,isvip:!1,isLoadMore:!0,page:1,total_page:0}},activated:function(){var t=JSON.parse(localStorage.getItem("plugin_setting")).debt_shop;this.$route.params.coupon?(this.coupon=!0,this.tabNav=["全部","".concat(t.common_credit_name?t.common_credit_name:"消费账户"),"".concat(t.frozen_credit_name?t.frozen_credit_name:"锁定账户")],this.fun.setWXTitle("提货券明细")):this.$route.params.vip?(this.tabNav=[],this.isvip=!0,this.fun.setWXTitle("提货券明细")):(this.tabNav=["全部","采购金","网店收入"],this.fun.setWXTitle("采购款明细")),this.active=0,this.getData()},methods:{init:function(){this.isLoadMore=!0,this.page=1,this.total_page=0},changeTap:function(){this.init(),this.getData()},getData:function(){var t=this,e={amount_type:""};this.coupon?0==this.active?e.amount_type=[1,2]:1==this.active?e.amount_type="2":2==this.active&&(e.amount_type="1"):this.isvip?e.amount_type="2":0==this.active?e.amount_type=[3,4,5]:1==this.active?e.amount_type="3":2==this.active&&(e.amount_type=[4,5]),this.$route.params.debtId&&(e.debtor_id=this.$route.params.debtId),$http.post("plugin.debt-shop.frontend.debt-member.creditLog",e,"加载中").then((function(e){1===e.result?(t.isLoadMore=!0,t.page=1,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.listData=e.data.data):Object(s["a"])(e.msg)})).catch((function(t){}))},getMoreData:function(){var t=this,e=this;if(e.isLoadMore=!1,!(this.page>=this.total_page)){this.page=this.page+1;var i={amount_type:"",page:this.page};this.coupon?0==this.active?i.amount_type=[1,2]:1==this.active?i.amount_type="2":2==this.active&&(i.amount_type="1"):this.isvip?i.amount_type="2":0==this.active?i.amount_type=[3,4,5]:1==this.active?i.amount_type="3":2==this.active&&(i.amount_type=[4,5]),this.$route.params.debtId&&(i.debtor_id=this.$route.params.debtId),$http.post("plugin.debt-shop.frontend.debt-member.creditLog",i,"加载中").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.listData=t.listData.concat(i)}),(function(t){}))}}}},l=c,r=(i("78b6"),i("2877")),d=Object(r["a"])(l,a,o,!1,null,"05a22fee",null);e["default"]=d.exports},"78b6":function(t,e,i){"use strict";i("e499")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var a=document.documentElement,o=document.body,s={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(){}}}},e499:function(t,e,i){var a=i("09eb1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("499e").default;o("cf23d4ee",a,!0,{sourceMap:!1,shadowMode:!1})}}]);