bztang-admin/addons/yun_shop/static/app/js/chunk-2bd247c0.ce9c0766.js

1 line
10 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2bd247c0"],{"3a7f":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#management_record #content .info_box[data-v-dce1e9da]{position:relative}#management_record #content .info_box .info[data-v-dce1e9da]{background-color:#fff;padding:.75rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#management_record #content .info_box .info ul[data-v-dce1e9da]:first-child,#management_record #content .info_box .info ul[data-v-dce1e9da]:nth-child(2),#management_record #content .info_box .info ul[data-v-dce1e9da]:nth-child(3){width:5.125rem}#management_record #content .info_box .info ul:first-child li[data-v-dce1e9da],#management_record #content .info_box .info ul:nth-child(2) li[data-v-dce1e9da],#management_record #content .info_box .info ul:nth-child(3) li[data-v-dce1e9da]{line-height:1.875rem}#management_record #content .info_box .info ul:first-child li[data-v-dce1e9da]:first-child,#management_record #content .info_box .info ul:nth-child(2) li[data-v-dce1e9da]:first-child,#management_record #content .info_box .info ul:nth-child(3) li[data-v-dce1e9da]:first-child{font-size:20px;color:#ffa800}#management_record #content .info_box .info ul:first-child li[data-v-dce1e9da]:last-child,#management_record #content .info_box .info ul:nth-child(2) li[data-v-dce1e9da]:last-child,#management_record #content .info_box .info ul:nth-child(3) li[data-v-dce1e9da]:last-child{font-size:13px;font-weight:700}#management_record #content .info_box .info ul[data-v-dce1e9da]:last-child{width:8.0625rem}#management_record #content .info_box .info ul:last-child li[data-v-dce1e9da]{line-height:1.875rem}#management_record #content .info_box .info ul:last-child li[data-v-dce1e9da]:first-child{font-size:20px;color:#ffa800}#management_record #content .info_box .info ul:last-child li[data-v-dce1e9da]:last-child{font-size:13px;font-weight:700}#management_record #content .info_box .img[data-v-dce1e9da]{position:absolute;bottom:.625rem;right:7.625rem;height:3.75rem}#management_record #content .info_box .img img[data-v-dce1e9da]{height:100%}#management_record #content .award_box[data-v-dce1e9da]{margin-top:.625rem}#management_record #content .award_box .list_box[data-v-dce1e9da]{margin-top:.375rem;background-color:#fff}#management_record #content .award_box .list_box ul[data-v-dce1e9da]{padding:.625rem .875rem;border-bottom:.0625rem solid #ebebeb}#management_record #content .award_box .list_box ul li[data-v-dce1e9da]: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}#management_record #content .award_box .list_box ul li:first-child span[data-v-dce1e9da]:last-child{color:#f15353}#management_record #content .award_box .list_box ul li[data-v-dce1e9da]: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}#management_record #content .award_box .list_box ul li:last-child span[data-v-dce1e9da]:first-child{font-size:14px;color:#8c8c8c}",""]),e.exports=t},"62d4":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAACACAYAAAA27Cg+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKJJREFUeNpifP36tQMDA8N+Bgi4AMSOoqKiH6B8BiYGVGAAxQy4FGCAUQWjCkYVjCoYVTCqYCgrUCCkQJ+QggCCVkBrY7yOrCekwAFoSgAhb84HKlLAp0AAiNcTCigDioP6Aj4FoFZIID4FicCmygNcCg4AJTfgc0MjPkc+AOo+gE/BBkLevEhIwYPRnDWqYFTBqIJRBaMKRoSCC1AMBwABBgApKR8AEcgvywAAAABJRU5ErkJggg=="},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var i=document.documentElement,n=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:n&&(e=n.scrollTop),e},getClientHeight:function(){var e=0;return e=n.clientHeight&&i.clientHeight?Math.min(n.clientHeight,i.clientHeight):Math.max(n.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(n.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b531:function(e,t,a){var i=a("3a7f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("499e").default;n("bac036c4",i,!0,{sourceMap:!1,shadowMode:!1})},c9e9:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"management_record"}},[a("c-title",{attrs:{hide:!1,text:e.record_title}}),a("div",{attrs:{id:"content"}},[a("div",{staticClass:"info_box"},[a("div",{staticClass:"info"},[a("ul",[a("li",[e._v(e._s(e.rewardsData.today))]),a("li",[e._v("今日")])]),a("ul",[a("li",[e._v(e._s(e.rewardsData.yesterday))]),a("li",[e._v("昨日")])]),a("ul",[a("li",[e._v(e._s(e.rewardsData.this_week))]),a("li",[e._v("本周")])]),a("ul",[a("li",[e._v(e._s(e.rewardsData.this_month))]),a("li",[e._v("本月累计分红")])])]),e._m(0)]),a("div",{staticClass:"award_box"},[a("van-tabs",{on:{click:e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("van-tab",{attrs:{name:"-1",title:"全部"}}),a("van-tab",{attrs:{name:"1",title:"已发放"}}),a("van-tab",{attrs:{name:"0",title:"未发放"}}),a("van-tab",{attrs:{name:"2",title:"已失效"}})],1),a("div",[a("div",{directives:[{name:"show",rawName:"v-show",value:-1==e.activeName,expression:"activeName==-1"}]},["-1"===e.activeName?a("div",{staticClass:"list_box"},e._l(e.recordsList,(function(t,i){return a("ul",{key:i},[a("li",["TeamPerformance"!==e.type?a("span",[e._v(" "+e._s(t.source_member.nickname)+" ")]):e._e(),"TeamPerformance"===e.type?a("span",[e._v(" "+e._s(t.member.nickname)+" ")]):e._e(),a("span",[e._v(e._s(t.amount))])]),a("li",[a("span",[e._v(e._s(t.created_at))]),a("span",[e._v(e._s(t.status_name))])])])})),0):e._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.activeName,expression:"activeName==1"}]},["1"===e.activeName?a("div",{staticClass:"list_box"},e._l(e.recordsList,(function(t,i){return a("ul",{key:i},[a("li",["TeamPerformance"!==e.type?a("span",[e._v(" "+e._s(t.source_member.nickname)+" ")]):e._e(),"TeamPerformance"===e.type?a("span",[e._v(" "+e._s(t.member.nickname)+" ")]):e._e(),a("span",[e._v(e._s(t.amount))])]),a("li",[a("span",[e._v(e._s(t.created_at))]),a("span",[e._v(e._s(t.status_name))])])])})),0):e._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:0==e.activeName,expression:"activeName==0"}]},["0"===e.activeName?a("div",{staticClass:"list_box"},e._l(e.recordsList,(function(t,i){return a("ul",{key:i},[a("li",["TeamPerformance"!==e.type?a("span",[e._v(" "+e._s(t.source_member.nickname)+" ")]):e._e(),"TeamPerformance"===e.type?a("span",[e._v(" "+e._s(t.member.nickname)+" ")]):e._e(),a("span",[e._v(e._s(t.amount))])]),a("li",[a("span",[e._v(e._s(t.created_at))]),a("span",[e._v(e._s(t.status_name))])])])})),0):e._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:2==e.activeName,expression:"activeName==2"}]},["2"===e.activeName?a("div",{staticClass:"list_box"},e._l(e.recordsList,(function(t,i){return a("ul",{key:i},[a("li",["TeamPerformance"!==e.type?a("span",[e._v(" "+e._s(t.source_member.nickname)+" ")]):e._e(),"TeamPerformance"===e.type?a("span",[e._v(" "+e._s(t.member.nickname)+" ")]):e._e(),a("span",[e._v(e._s(t.amount))])]),a("li",[a("span",[e._v(e._s(t.created_at))]),a("span",[e._v(e._s(t.status_name))])])])})),0):e._e()])])],1)])],1)},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"img"},[i("img",{attrs:{src:a("62d4")}})])}],o=(a("e7e5"),a("d399")),s=(a("b0c0"),a("99af"),a("14d9"),a("6968")),r=a("ac0d"),c={mixins:[r["a"]],data:function(){return{type:"",record_title:"",activeName:"-1",title_api:"",list_api:"",rewardsData:{},recordsList:[],isLoadMore:!0,page:1,total_page:0}},activated:function(){this.type=this.$route.query.name,this.record_title=this.$route.query.reward_name,this.initData(this.type),this.getData(),this.getRecord_title()},methods:{initData:function(e){switch(this.rewardsData={},this.recordsList=[],this.activeName="-1",this.page=1,this.total_page=0,this.isLoadMore=!0,e){case"DirectReward":this.title_api="plugin.nominate.frontend.prize-home.nominate-prize-home",this.list_api="plugin.nominate.frontend.prize-home.nominate-prize-list";break;case"PoorPrize":this.title_api="plugin.nominate.frontend.prize-home.nominate-poor-prize-home",this.list_api="plugin.nominate.frontend.prize-home.nominate-poor-prize-list";break;case"TeamAward":this.title_api="plugin.nominate.frontend.prize-home.team-prize-home",this.list_api="plugin.nominate.frontend.prize-home.team-prize-list";break;case"TeamPerformance":this.title_api="plugin.nominate.frontend.prize-home.team-manage-prize-home",this.list_api="plugin.nominate.frontend.prize-home.team-manage-prize-list";break}this.fun.setWXTitle(this.record_title)},getRecord_title:function(){var e=this;$http.get(this.title_api,{},"加载中").then((function(t){1===t.result?e.rewardsData=t.data:Object(o["a"])(t.msg)}))},getData:function(){var e=this;this.recordsList=[],this.isLoadMore=!1,this.page=1,$http.get(this.list_api,{status:this.activeName,page:this.page},"加载中").then((function(t){1===t.result&&(e.isLoadMore=!0,e.total_page=t.data.last_page,e.total_page||(e.total_page=0),e.recordsList=t.data.list.data)}))},getMoreData:function(){var e=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get(this.list_api,{status:this.activeName,page:this.page},"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var a=t.data.list.data;e.recordsList=e.recordsList.concat(a)}else t.page=t.page-1,e.isLoadMore=!1})))},handleClick:function(){this.getData()},tackDet:function(){this.$router.push(this.fun.getUrl("TaskList"))}},components:{cTitle:s["a"]}},l=c,d=l,m=(a("f17a"),a("2877")),_=Object(m["a"])(d,i,n,!1,null,"dce1e9da",null);t["default"]=_.exports},f17a:function(e,t,a){"use strict";a("b531")}}]);