(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-90b7a8b6"],{2231:function(t,s,a){t.exports=a.p+"static/img/silver.7489108e.png"},"257e":function(t,s,a){"use strict";a.d(s,"b",(function(){return e})),a.d(s,"a",(function(){return n}));var i=a("b775"),e=function(t){return Object(i["a"])({url:"/integral/get_integral_list",method:"get",params:t})},n=function(t){return Object(i["a"])({url:"/integral/export_yes_double_info",method:"get",params:t})}},3964:function(t,s,a){t.exports=a.p+"static/img/gold.5c3dc9b6.png"},"3f55":function(t,s,a){"use strict";a("4ecc")},"4ecc":function(t,s,a){},"91b1":function(t,s,a){t.exports=a.p+"static/img/side.34121f6c.png"},"959c":function(t,s,a){"use strict";a.r(s);var i=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"rank_box"},[i("div",[i("el-button",{attrs:{type:"primary"},on:{click:t.toImage}},[t._v("保存排行榜")]),i("el-button",{attrs:{type:"primary"},on:{click:t.prev}},[t._v("上一张（"+t._s(t.cur)+"/"+t._s(t.totalPage)+"）")]),i("el-button",{attrs:{type:"primary"},on:{click:t.next}},[t._v("下一张（"+t._s(t.cur)+"/"+t._s(t.totalPage)+"）")])],1),i("div",{ref:"imageTofile",staticClass:"rank"},[t.isShow?i("img",{staticClass:"rank_img",attrs:{src:t.htmlUrl}}):i("div",{staticClass:"rank_intr"},[i("img",{staticClass:"top_bg",attrs:{src:a("fffd"),alt:""}}),i("div",{staticClass:"rank_con"},[i("img",{staticClass:"side",attrs:{src:a("91b1"),alt:""}}),t._l(t.rankList,(function(s,e){return i("div",{key:e,staticClass:"list"},[i("div",{staticClass:"index"},[1==s.sort?i("img",{staticStyle:{width:"47px",height:"64px"},attrs:{src:a("3964"),alt:""}}):t._e(),2==s.sort?i("img",{staticStyle:{width:"48px",height:"60px"},attrs:{src:a("2231"),alt:""}}):t._e(),3==s.sort?i("img",{staticStyle:{width:"49px",height:"53px"},attrs:{src:a("c146"),alt:""}}):t._e(),1!=s.sort&&2!=s.sort&&3!=s.sort?i("span",[t._v(" "+t._s(s.sort))]):t._e()]),i("div",{staticClass:"avatar_circle"},[i("div",{staticClass:"avatar_box"},[i("img",{staticClass:"avatar",attrs:{src:s.img,alt:""}})])]),i("div",{staticClass:"name"},[t._v(" "+t._s(s.name.length>5?s.name.slice(0,6):s.name)+" ")]),i("div",{staticClass:"num"},[t._v(t._s(10*Number(s.total)))])])}))],2),i("div",{staticClass:"bottom_box"},[i("div",[t._v(t._s(t.yesterday)+"0:00-24:00")])])])])])},e=[],n=(a("d81d"),a("ac1f"),a("5319"),a("b0c0"),a("fb6a"),a("c0e9")),r=a.n(n),c=a("33a5"),o=a("257e"),l={name:"inte_rank",data:function(){return{htmlUrl:"",isShow:!1,rankList:[],yesterday:"",loading:!1,size:20,list:"",totalPage:0,cur:1}},components:{VueCanvasPoster:c["VueCanvasPoster"]},created:function(){this.getRank(),this.yesterday=this.getYesterday()},methods:{getYesterday:function(){var t=new Date;t.setDate(t.getDate()-1);var s=t.getFullYear(),a=t.getMonth()+1;a=a<10?"0"+a:a;var i=t.getDate();i=i<10?"0"+i:i;var e=s+"年"+a+"月"+i+"日";return e},toImage:function(){var t=this;this.loading=!0,setTimeout((function(){r()(t.$refs.imageTofile,{backgroundColor:null,useCORS:!0,tainttest:!0,scale:1,scrollY:0,scrollX:0}).then((function(s){t.loading=!1;var a=s.toDataURL("image/png");t.htmlUrl=a,t.htmlUrl&&(t.isShow=!0),t.download(a)}))}),500)},download:function(t){var s=document.createElement("a");s.download="微店销售排行榜第".concat(this.cur,"张"),s.href=t,document.body.appendChild(s);document.createEvent("MouseEvents");s.click(),s.remove(),this.htmlUrl="",this.isShow=!1},getRank:function(){var t=this;this.loading=!0,Object(o["a"])().then((function(s){if(200==s.code){var a=s.data;a.map((function(t){t.name.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g,"")})),t.list=a,t.totalPage=Math.ceil(t.list.length/20),t.rankList=a.slice(0,t.size)}else t.$message.error(s.msg||"获取排行榜失败");t.loading=!1})).catch((function(s){t.loading=!1}))},next:function(){if(this.cur==this.totalPage)return this.$message.warning("已经是最后一张啦~"),!1;this.cur++,this.rankList=this.list.slice(this.size,this.size+=20)},prev:function(){if(1==this.cur)return this.$message.warning("已经是第一张啦~"),!1;this.cur--,this.size=20*(this.cur+1)-20,this.rankList=this.list.slice(20*(this.cur-1),20*(this.cur+1))}}},u=l,d=(a("3f55"),a("2877")),g=Object(d["a"])(u,i,e,!1,null,"73432d95",null);s["default"]=g.exports},c146:function(t,s,a){t.exports=a.p+"static/img/copper.555d2be3.png"},fffd:function(t,s,a){t.exports=a.p+"static/img/top.7c5b02b6.jpg"}}]);