bztang-admin/addons/yun_shop/static/app/js/chunk-51c42b17.9fe6052c.js

1 line
9.9 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-51c42b17"],{1949:function(t,i,e){"use strict";e("590a")},"3be9":function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,"#award_record #content .info_box[data-v-900f6b54]{position:relative}#award_record #content .info_box .info[data-v-900f6b54]{background-color:#fff;padding:.75rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#award_record #content .info_box .info ul[data-v-900f6b54]:first-child,#award_record #content .info_box .info ul[data-v-900f6b54]:nth-child(2),#award_record #content .info_box .info ul[data-v-900f6b54]:nth-child(3){width:5.125rem}#award_record #content .info_box .info ul:first-child li[data-v-900f6b54],#award_record #content .info_box .info ul:nth-child(2) li[data-v-900f6b54],#award_record #content .info_box .info ul:nth-child(3) li[data-v-900f6b54]{line-height:1.875rem}#award_record #content .info_box .info ul:first-child li[data-v-900f6b54]:first-child,#award_record #content .info_box .info ul:nth-child(2) li[data-v-900f6b54]:first-child,#award_record #content .info_box .info ul:nth-child(3) li[data-v-900f6b54]:first-child{font-size:20px;color:#ffa800}#award_record #content .info_box .info ul:first-child li[data-v-900f6b54]:last-child,#award_record #content .info_box .info ul:nth-child(2) li[data-v-900f6b54]:last-child,#award_record #content .info_box .info ul:nth-child(3) li[data-v-900f6b54]:last-child{font-size:13px;font-weight:700}#award_record #content .info_box .info ul[data-v-900f6b54]:last-child{width:8.0625rem}#award_record #content .info_box .info ul:last-child li[data-v-900f6b54]{line-height:1.875rem}#award_record #content .info_box .info ul:last-child li[data-v-900f6b54]:first-child{font-size:20px;color:#ffa800}#award_record #content .info_box .info ul:last-child li[data-v-900f6b54]:last-child{font-size:13px;font-weight:700}#award_record #content .info_box .img[data-v-900f6b54]{position:absolute;bottom:.625rem;right:7.625rem;height:3.75rem}#award_record #content .info_box .img img[data-v-900f6b54]{height:100%}#award_record #content .award_box[data-v-900f6b54]{margin-top:.625rem}#award_record #content .award_box .list_box[data-v-900f6b54]{margin-top:.375rem;background-color:#fff}#award_record #content .award_box .list_box ul[data-v-900f6b54]{padding:.625rem .875rem;border-bottom:.0625rem solid #ebebeb}#award_record #content .award_box .list_box ul li[data-v-900f6b54]:first-child{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;line-height:1.875rem;font-size:16px}#award_record #content .award_box .list_box ul li:first-child span[data-v-900f6b54]:last-child{color:#f15353}#award_record #content .award_box .list_box ul li[data-v-900f6b54]:last-child{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;line-height:1.5rem;font-size:16px}#award_record #content .award_box .list_box ul li:last-child span[data-v-900f6b54]:first-child{font-size:14px;color:#8c8c8c}",""]),t.exports=i},"590a":function(t,i,e){var a=e("3be9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("499e").default;o("d4a71660",a,!0,{sourceMap:!1,shadowMode:!1})},"62d4":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAACACAYAAAA27Cg+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKJJREFUeNpifP36tQMDA8N+Bgi4AMSOoqKiH6B8BiYGVGAAxQy4FGCAUQWjCkYVjCoYVTCqYCgrUCCkQJ+QggCCVkBrY7yOrCekwAFoSgAhb84HKlLAp0AAiNcTCigDioP6Aj4FoFZIID4FicCmygNcCg4AJTfgc0MjPkc+AOo+gE/BBkLevEhIwYPRnDWqYFTBqIJRBaMKRoSCC1AMBwABBgApKR8AEcgvywAAAABJRU5ErkJggg=="},"73deb":function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{attrs:{id:"award_record"}},[e("c-title",{attrs:{hide:!1,text:t.WXtitle}}),e("div",{attrs:{id:"content"}},[e("div",{staticClass:"info_box"},[e("div",{staticClass:"info"},[e("ul",[e("li",[t._v(t._s(t.rewardsData.today))]),e("li",[t._v("今日")])]),e("ul",[e("li",[t._v(t._s(t.rewardsData.yesterday))]),e("li",[t._v("昨日")])]),e("ul",[e("li",[t._v(t._s(t.rewardsData.this_week))]),e("li",[t._v("本周")])]),e("ul",[e("li",[t._v(t._s(t.rewardsData.this_month))]),e("li",[t._v("本月累计分红")])])]),t._m(0)]),e("div",{staticClass:"award_box"},[e("van-tabs",{on:{click:t.getTab},model:{value:t.activeName,callback:function(i){t.activeName=i},expression:"activeName"}},[e("van-tab",{attrs:{name:"-1",title:"全部"}}),e("van-tab",{attrs:{name:"1",title:"已发放"}}),e("van-tab",{attrs:{name:"0",title:"未发放"}})],1),e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:-1==t.activeName,expression:"activeName==-1"}]},["-1"===t.activeName?e("div",{staticClass:"list_box"},t._l(t.recordsList,(function(i,a){return e("ul",{key:a,on:{click:function(e){return t.toDetail(i)}}},[e("li",[i.log_id?e("span",[t._v("销售佣金ID"+t._s(i.log_id))]):t._e(),i.log_id?t._e():e("span",[t._v(t._s(i.has_one_source_member.nickname))]),e("span",[t._v(t._s(i.amount))])]),e("li",[e("span",[t._v(t._s(i.created_at))]),e("span",[t._v(t._s(i.status_name))])])])})),0):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.activeName,expression:"activeName==1"}]},["1"===t.activeName?e("div",{staticClass:"list_box"},t._l(t.recordsList,(function(i,a){return e("ul",{key:a,on:{click:function(e){return t.toDetail(i)}}},[e("li",[i.log_id?e("span",[t._v("销售佣金ID"+t._s(i.log_id))]):t._e(),i.log_id?t._e():e("span",[t._v(t._s(i.has_one_source_member.nickname))]),e("span",[t._v(t._s(i.amount))])]),e("li",[e("span",[t._v(t._s(i.created_at))]),e("span",[t._v(t._s(i.status_name))])])])})),0):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.activeName,expression:"activeName==0"}]},["0"===t.activeName?e("div",{staticClass:"list_box"},t._l(t.recordsList,(function(i,a){return e("ul",{key:a,on:{click:function(e){return t.toDetail(i)}}},[e("li",[i.log_id?e("span",[t._v("销售佣金ID"+t._s(i.log_id))]):t._e(),i.log_id?t._e():e("span",[t._v(t._s(i.has_one_source_member.nickname))]),e("span",[t._v(t._s(i.amount))])]),e("li",[e("span",[t._v(t._s(i.created_at))]),e("span",[t._v(t._s(i.status_name))])])])})),0):t._e()])])],1)])],1)},o=[function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"img"},[a("img",{attrs:{src:e("62d4")}})])}],n=(e("e7e5"),e("d399")),s=(e("b0c0"),e("99af"),e("6968")),r=e("ac0d"),l=document.documentElement,c={mixins:[r["a"]],data:function(){return{type:"",rewardsData:{},recordsList:[],activeName:"-1",WXtitle:"",api:"",listApi:"",isLoadMore:!0,page:1,total_page:0}},created:function(){this.type=this.$route.query.name,this.WXtitle=this.$route.query.reward_name,1!==this.$route.params.fromHome&&(this.initData(this.type),this.getIndex(),this.getData())},activated:function(){this.type=this.$route.query.name,this.WXtitle=this.$route.query.reward_name,1===this.$route.params.fromHome&&(this.initData(this.type),this.getIndex(),this.getData())},methods:{toDetail:function(t){this.$router.push(this.fun.getUrl("AwardDetail",{},{id:t.id,name:this.type}))},getTab:function(t){l.scrollTop=0,this.getData()},initData:function(t){switch(this.rewardsData={},this.recordsList=[],this.activeName="-1",this.page=1,this.total_page=0,this.isLoadMore=!0,t){case"teamManagement":this.api="plugin.mryt.api.team-manage.index",this.listApi="plugin.mryt.api.team-manage.getList";break;case"team":this.api="plugin.mryt.api.team.index",this.listApi="plugin.mryt.api.team.getList";break;case"thanks":this.api="plugin.mryt.api.thanksgiver.index",this.listApi="plugin.mryt.api.thanksgiver.getList";break;case"education":this.api="plugin.mryt.api.train.index",this.listApi="plugin.mryt.api.train.getList";break;case"immediate":this.api="plugin.mryt.api.direct-award.index",this.listApi="plugin.mryt.api.direct-award.getList";break;case"tier":this.api="plugin.mryt.api.tier.index",this.listApi="plugin.mryt.api.tier.getList";break;default:this.WXtitle="奖励记录";break}this.fun.setWXTitle(this.WXtitle)},getIndex:function(){var t=this;$http.get(t.api,{},"加载中").then((function(i){1===i.result?t.rewardsData=i.data:Object(n["a"])(i.msg)}),(function(t){}))},getData:function(){var t=this;this.isLoadMore=!1,this.page=1,$http.get(this.listApi,{status:this.activeName},"加载中").then((function(i){1===i.result?(t.isLoadMore=!0,t.total_page=i.data.last_page,t.total_page||(t.total_page=0),t.recordsList=i.data.data):Object(n["a"])(i.msg)}),(function(t){})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(this.listApi,{status:this.activeName,page:this.page},"加载中").then((function(i){if(t.isLoadMore=!0,1===i.result){var e=i.data.data;t.recordsList=t.recordsList.concat(e)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})).catch((function(t){})))}},components:{cTitle:s["a"]}},d=c,h=d,f=(e("1949"),e("2877")),_=Object(f["a"])(h,a,o,!1,null,"900f6b54",null);i["default"]=_.exports},ac0d:function(t,i,e){"use strict";e.d(i,"a",(function(){return n}));var a=document.documentElement,o=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: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(){}}}}}]);