bztang-admin/addons/yun_shop/static/app/js/chunk-c430bac0.c394cf4e.js

1 line
4.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c430bac0"],{"72ef":function(t,e,i){var a=i("c2c7");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("312ce430",a,!0,{sourceMap:!1,shadowMode:!1})},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(){}}}},c2c7:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#eliteAward_record .list[data-v-0d1dbcab]{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;padding:0 .875rem;height:4.375rem;font-size:1rem;background:#fff;margin-bottom:.25rem}#eliteAward_record .list .list_child_left[data-v-0d1dbcab]{text-align:left}#eliteAward_record .list .list_child_rigth[data-v-0d1dbcab]{text-align:right}#eliteAward_record .list .award_type[data-v-0d1dbcab]{color:#000;margin-bottom:.75rem}#eliteAward_record .list .award_type .total[data-v-0d1dbcab]{color:#ff2c29}#eliteAward_record .list .award_time[data-v-0d1dbcab]{font-size:.75rem;color:#999}",""]),t.exports=e},f687:function(t,e,i){"use strict";i("72ef")},f886: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:"eliteAward_record"}},[i("c-title",{attrs:{hide:!1,text:"精英奖记录"}}),i("van-pull-refresh",{attrs:{"success-text":"刷新成功"},on:{refresh:t.getData},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},[i("div",{staticStyle:{"min-height":"100vh"}},t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"list"},[i("div",{staticClass:"list_child_left"},[t.is_achievement?[i("div",{staticClass:"award_type"},[e.achievement?[t._v("业绩:"+t._s(e.achievement)+"元 ")]:t._e()],2),i("div",{staticClass:"award_time"},[t._v(t._s(t._f("timestampToTime")(e.statistics_time)))])]:t._e()],2),i("div",{staticClass:"list_child_rigth"},[t.is_reward?[i("div",{staticClass:"award_type"},[t._v(" 奖励:"),e.reward_amount?i("em",{staticClass:"total"},[t._v("+"+t._s(e.reward_amount))]):t._e()]),i("div",{staticClass:"award_time"},[t._v(t._s(t._f("timestampToTime")(e.reward_time)))])]:t._e()],2)])})),0)])],1)},s=[],o=(i("99af"),i("6968")),l=i("ac0d"),n={mixins:[l["a"]],data:function(){return{isLoading:!1,is_reward:!0,is_achievement:!0,list:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){},created:function(){window.scrollTo(0,0)},components:{cTitle:o["a"]},computed:{},mounted:function(){this.getData()},methods:{getData:function(){var t=this;$http.post("plugin.elite-award.api.index.reward-log",{}).then((function(e){t.isLoading=!1,1==e.result&&(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0),t.list=e.data.data,t.is_reward="1"==e.data.set.is_reward,t.is_achievement="1"==e.data.set.is_achievement)}),(function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(t.page=t.page+1,$http.get("plugin.elite-award.api.index.reward-log",{page:t.page},"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.data;t.list=t.list.concat(i)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})))}}},r=n,c=(i("f687"),i("2877")),d=Object(c["a"])(r,a,s,!1,null,"0d1dbcab",null);e["default"]=d.exports}}]);