bztang-admin/addons/yun_shop/static/app/js/chunk-422ea27e.04efde3c.js

1 line
8.5 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-422ea27e"],{"37ee":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'#detailed a[data-v-3d5fb964]{color:#000}#detailed .mint-navbar[data-v-3d5fb964]{margin-bottom:.125rem}#detailed .mint-navbar .mint-tab-item[data-v-3d5fb964]{padding:.875rem 0}#detailed .times[data-v-3d5fb964]{text-align:left;text-indent:.625rem;line-height:2rem;background:#ddd}#detailed .tbs[data-v-3d5fb964]{background:#fff;overflow:hidden;font-size:14px}#detailed .tbs .wrap[data-v-3d5fb964]{padding:.625rem .875rem;border-bottom:1px solid #ebebeb}#detailed .tbs .wrap[data-v-3d5fb964]:after{clear:both;display:block;content:""}#detailed .tbs .hide-item[data-v-3d5fb964]{padding:.625rem .875rem;border-bottom:1px solid #ebebeb;text-align:left}#detailed .tbs .item1[data-v-3d5fb964]{color:#8c8c8c;font-size:12px}#detailed .tbs .item2[data-v-3d5fb964]{float:left;width:70%;text-align:left}#detailed .tbs .item2 li[data-v-3d5fb964]{line-height:1.5rem}#detailed .tbs .item3[data-v-3d5fb964]{font-size:18px;float:left;width:30%;text-align:right}#detailed .tbs .item3 .add[data-v-3d5fb964]{color:#259b24}#detailed .tbs .item3 .reduce[data-v-3d5fb964]{color:#f15353}',""]),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("van-tabs",{on:{click:t.swichTabTItem},model:{value:t.selected,callback:function(e){t.selected=e},expression:"selected"}},[i("van-tab",{attrs:{name:"",title:"全部"}}),i("van-tab",{attrs:{name:"1",title:"收入"}}),i("van-tab",{attrs:{name:"-1",title:"支出"}}),i("van-tab",{attrs:{name:"3",title:"企业积分"}})],1),i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:""==t.selected,expression:"selected==''"}]},t._l(t.recordsList,(function(e,a){return i("div",{key:a,staticClass:"tbs",on:{click:function(i){return t.expand(e)}}},[i("div",{staticClass:"wrap"},[i("ul",{staticClass:"item2"},[i("li",[t._v(t._s(e.source_name))]),i("li",[t._v(t._s(t.integral?t.integral:"积分")+""+t._s(e.after_point))]),i("li",{staticClass:"item1"},[t._v(t._s(e.updated_at))])]),e.point<0?i("div",{staticClass:"item3"},[i("span",{staticClass:"add"},[t._v(t._s(e.point))])]):t._e(),e.point>0?i("div",{staticClass:"item3"},[i("span",{staticClass:"reduce"},[t._v("+"+t._s(e.point))])]):t._e()]),e.checked&&e.transfer_info?i("div",{staticClass:"hide-item"},[i("div",[t._v(t._s(e.transfer_info.type)+"ID:"+t._s(e.transfer_info.id))]),i("div",{staticStyle:{"margin-top":"0.5rem"}},[t._v("昵称:"+t._s(e.transfer_info.name))])]):t._e()])})),0),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.selected,expression:"selected==1"}]},t._l(t.recordsList,(function(e,a){return i("div",{key:a,staticClass:"tbs",on:{click:function(i){return t.expand(e)}}},[i("div",{staticClass:"wrap"},[i("ul",{staticClass:"item2"},[i("li",[t._v(t._s(e.source_name))]),i("li",[t._v(t._s(t.integral?t.integral:"积分")+""+t._s(e.after_point))]),i("li",{staticClass:"item1"},[t._v(t._s(e.updated_at))])]),e.point<0?i("div",{staticClass:"item3"},[i("span",{staticClass:"add"},[t._v(t._s(e.point))])]):t._e(),e.point>0?i("div",{staticClass:"item3"},[i("span",{staticClass:"reduce"},[t._v("+"+t._s(e.point))])]):t._e()]),e.checked&&e.transfer_info?i("div",{staticClass:"hide-item"},[i("div",[t._v(t._s(e.transfer_info.type)+"ID:"+t._s(e.transfer_info.id))]),i("div",{staticStyle:{"margin-top":"0.5rem"}},[t._v("昵称:"+t._s(e.transfer_info.name))])]):t._e()])})),0),i("div",{directives:[{name:"show",rawName:"v-show",value:-1==t.selected,expression:"selected==-1"}]},t._l(t.recordsList,(function(e,a){return i("div",{key:a,staticClass:"tbs",on:{click:function(i){return t.expand(e)}}},[i("div",{staticClass:"wrap"},[i("ul",{staticClass:"item2"},[i("li",[t._v(t._s(e.source_name))]),i("li",[t._v(t._s(t.integral?t.integral:"积分")+""+t._s(e.after_point))]),i("li",{staticClass:"item1"},[t._v(t._s(e.updated_at))])]),e.point<0?i("div",{staticClass:"item3"},[i("span",{staticClass:"add"},[t._v(t._s(e.point))])]):t._e(),e.point>0?i("div",{staticClass:"item3"},[i("span",{staticClass:"reduce"},[t._v("+"+t._s(e.point))])]):t._e()]),e.checked&&e.transfer_info?i("div",{staticClass:"hide-item"},[i("div",[t._v(t._s(e.transfer_info.type)+"ID:"+t._s(e.transfer_info.id))]),i("div",{staticStyle:{"margin-top":"0.5rem"}},[t._v("昵称:"+t._s(e.transfer_info.name))])]):t._e()])})),0),i("div",{directives:[{name:"show",rawName:"v-show",value:3==t.selected,expression:"selected==3"}]},t._l(t.recordsList,(function(e,a){return i("div",{key:a,staticClass:"tbs"},[i("div",{staticClass:"wrap"},[i("ul",{staticClass:"item2"},[i("li",[t._v(t._s(e.supplier_name))]),i("li",[t._v(t._s(t.integral?t.integral:"积分")+""+t._s(e.after_point))]),i("li",{staticClass:"item1"},[t._v(t._s(e.updated_at))])]),e.point<0?i("div",{staticClass:"item3"},[i("span",{staticClass:"add"},[t._v(t._s(e.point))])]):t._e(),e.point>0?i("div",{staticClass:"item3"},[i("span",{staticClass:"reduce"},[t._v("+"+t._s(e.point))])]):t._e()]),e.checked&&e.transfer_info?i("div",{staticClass:"hide-item"},[i("div",[t._v(t._s(e.transfer_info.type)+"ID:"+t._s(e.transfer_info.id))]),i("div",{staticStyle:{"margin-top":"0.5rem"}},[t._v("昵称:"+t._s(e.transfer_info.name))])]):t._e()])})),0)])],1)},s=[],n=(i("e7e5"),i("d399")),r=(i("d3b7"),i("159b"),i("99af"),i("6968")),d=i("ac0d"),o={mixins:[d["a"]],data:function(){return{toi:this.fun.getKeyByI(),selected:"",all:[],income:[],out:[],recordsList:[],integral:window.localStorage.integral,isLoadMore:!0,page:1,total_page:0}},methods:{initData:function(){this.selected="",this.isLoadMore=!0,this.page=1,this.total_page=0,this.recordsList=[]},swichTabTItem:function(){this.page=0,this.recordsList=[],3==this.selected?this.getSupplierIntegral():this.getIntegralInfo(this.selected)},expand:function(t){t.checked=!t.checked,this.$forceUpdate(),this.$router.push(this.fun.getUrl("integraldetail",{id:t.id}))},getIntegralInfo:function(t){var e=this;this.isLoadMore=!0,this.page=1,this.total_page=0,this.recordsList=[],$http.get("finance.point-info",{status:t},"正在获取...").then((function(t){1==t.result&&(e.page=1,e.total_page=t.data.list.last_page,e.recordsList=t.data.list.data,e.recordsList.forEach((function(t,e,i){t.checked=!1})))}),(function(t){}))},getSupplierIntegral:function(){var t=this;if(t.isLoadMore=!1,!(this.page>=this.total_page&&this.page>0)){t.page++;var e={page:this.page};$http.get("plugin.asset.Frontend.Controllers.api.supplierIntegral",e,"加载中...").then((function(e){if(1===e.result){var i=e.data;t.recordsList=t.recordsList.concat(i.data),t.total_page=i.last_page,t.isLoadMore=!0}else t.page=t.page-1,t.isLoadMore=!1,Object(n["a"])(e.msg)})).catch((function(t){}))}},getMoreData:function(){var t=this;3!=this.selected?(this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("finance.point-info",{page:this.page,status:this.selected},"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.list.data;i.forEach((function(t,e,i){t.checked=!1})),t.recordsList=t.recordsList.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})))):this.getSupplierIntegral()}},activated:function(){this.initData(),this.toi=this.fun.getKeyByI(),this.getIntegralInfo(),this.fun.setWXTitle(this.integral+"列表")},components:{cTitle:r["a"]}},l=o,c=l,f=(i("9891"),i("2877")),p=Object(f["a"])(c,a,s,!1,null,"3d5fb964",null);e["default"]=p.exports},"5ce6":function(t,e,i){var a=i("37ee");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("9e14da90",a,!0,{sourceMap:!1,shadowMode:!1})},9891:function(t,e,i){"use strict";i("5ce6")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var a=document.documentElement,s=document.body,n={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(){}}}}}]);