1 |
- webpackJsonp([72],{"Ok+W":function(e,t){},"Vx/+":function(e,t){},ia73:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={data:function(){return{keyword:"",noneDone:!1,hasAuno:!1,searchTime:[],infoList:[],page:1,total:0,page_size:0,dataFlag:!0,loading:!1,pickerTimes:{disabledDate:function(e){return e>Date.now()}},timeRange:[{name:"昨日",stime:this.getDay(-1,!1),etime:this.getDay(-1,!1)},{name:"近7天",stime:this.getDay(-7,!1),etime:this.getDay(-1,!1)},{name:"近30天",stime:this.getDay(-30,!1),etime:this.getDay(-1,!1)},{name:"近90天",stime:this.getDay(-90,!1),etime:this.getDay(-1,!1)}],stime:this.getDay(-1,!1),etime:this.getDay(-1,!1)}},created:function(){this.$route.query.searchName&&(this.keyword=this.$route.query.searchName)},components:{nopermission:i("NFBZ").a},mounted:function(){this.listRedUserUsers(1)},methods:{toUrl:function(){var e=this.$router.resolve({path:"/permissIntroduce"});window.open(e.href,"_blank")},addPush:function(e,t){this.searchTime=[],this.searchTime.push(e),this.searchTime.push(t)},toDetail:function(e,t){var i=this.$router.resolve({path:"userDetail/"+e+"?from=reward"});window.open(i.href,"_blank")},handleCurrentChange:function(e){this.listRedUserUsers(e)},listRedUserUsers:function(e){var t=this;this.$message.closeAll(),this.hasAuno||this.noneDone?this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"}):(this.infoList=[],this.loading=!0,this.dataFlag=!0,this.page=e,this.total=0,this.$axios({url:this.URL.BASEURL+this.URL.v2_rewardOutRank+"?page="+e+"&start_time="+this.stime+"&end_time="+this.etime+(this.keyword?"&keyword="+this.keyword:""),method:"get"}).then(function(e){e=e.data;if(t.loading=!1,4403==e.auno?t.hasAuno=!0:t.hasAuno=!1,t.noneDone=4003==e.errno,e&&0==e.errno){var i=e.rst.data;t.infoList=i,t.page_size=e.rst.pageInfo.size,t.total=e.rst.pageInfo.total,0==t.infoList.length&&(t.dataFlag=!1)}else 4003!=e.errno&&t.$message({message:e.err,type:"warning"})}))}},watch:{searchTime:function(e,t){e?(this.stime=e[0],this.etime=e[1]):(this.stime="",this.etime=""),this.listRedUserUsers(1)}}},a={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"HotList",attrs:{id:"rewardPerple","element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[s("div",{staticClass:"top"},[s("div",{staticClass:"search_item"},[s("div",{staticClass:"search_input"},[s("img",{staticClass:"platform",attrs:{src:i("FxTv"),alt:""}}),e._v(" "),e.keyword?s("i",{staticClass:"clearText el-icon-circle-close",on:{click:function(t){e.keyword="",e.listRedUserUsers(1)}}}):e._e(),e._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],attrs:{placeholder:"请输入网红名称或网红ID进行查询"},domProps:{value:e.keyword},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.listRedUserUsers(1)},input:function(t){t.target.composing||(e.keyword=t.target.value)}}}),e._v(" "),s("button",{on:{click:function(t){return e.listRedUserUsers(1)}}},[e._v("搜索")])])]),e._v(" "),s("div",{staticClass:"commonSortType",staticStyle:{margin:"0"}},[s("li",{staticStyle:{"margin-left":"15px","padding-left":"0","margin-right":"10px"}},[e._v("时间范围")]),e._v(" "),e._l(e.timeRange,function(t,i){return s("li",{key:"timeRange"+i,class:e.stime==t.stime&e.etime==t.etime?"active":"",staticStyle:{"margin-right":"20px"},on:{click:function(i){return e.addPush(t.stime,t.etime)}}},[e._v(e._s(t.name))])}),e._v(" "),s("li",{staticClass:"custom"},[e._v("自定义:\n "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.stime,expression:"stime"}],attrs:{placeholder:"开始时间"},domProps:{value:e.stime},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.init(1)},input:function(t){t.target.composing||(e.stime=t.target.value)}}}),e._v(" — "),s("input",{directives:[{name:"model",rawName:"v-model",value:e.etime,expression:"etime"}],attrs:{placeholder:"结束时间"},domProps:{value:e.etime},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.init(1)},input:function(t){t.target.composing||(e.etime=t.target.value)}}}),e._v(" "),s("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":e.pickerTimes,"range-separator":"至","start-placeholder":"开始日期",size:"small","end-placeholder":"结束日期",align:"right"},model:{value:e.searchTime,callback:function(t){e.searchTime=t},expression:"searchTime"}})],1)],2)]),e._v(" "),e.noneDone||e.dataFlag?e._e():s("div",{staticClass:"noHaveData"},[e._v("暂无数据")]),e._v(" "),!e.noneDone&&e.dataFlag?s("div",[s("table",[e._m(0),e._v(" "),e._l(e.infoList,function(t,i){return s("tr",{key:i,staticStyle:{cursor:"pointer"},on:{click:function(i){return e.toDetail(t.user_id)}}},[s("td",{staticStyle:{width:"150px"},style:(e.page-1)*e.page_size+i>2?"":"padding:30px 0;"},[s("div",{staticClass:"user_sort"},[s("div",[e._v(e._s((e.page-1)*e.page_size+i+1))])])]),e._v(" "),s("td",{staticStyle:{width:"300px"}},[s("el-image",{staticClass:"userImg",staticStyle:{width:"44px",height:"44px",display:"inline-block","margin-right":"4px"},attrs:{src:t.headurl,alt:""}}),e._v(" "),s("div",{staticStyle:{display:"inline-block","vertical-align":"middle","text-align":"left"}},[s("el-tooltip",{attrs:{effect:"dark",content:t.user_name,placement:"top",disabled:!(t.user_name&&t.user_name.length>9)}},[s("p",{staticClass:"userName name",staticStyle:{"font-weight":"bold"}},[e._v(e._s(t.user_name))])]),e._v(" "),s("p",{staticStyle:{"font-size":"12px","line-height":"22px"}},[e._v("粉丝数 "+e._s(t.fan||0==t.fan?t.fan:"-"))])],1)],1),e._v(" "),s("td",[e._v(e._s(t.reward_times||0==t.reward_times?t.reward_times:"-"))]),e._v(" "),s("td",[e._v(e._s(t.rewards_sum||0==t.rewards_sum?t.rewards_sum:"-"))])])})],2),e._v(" "),!e.hasAuno&&e.total>0?s("div",{staticClass:"bottom"},[s("span",{directives:[{name:"show",rawName:"v-show",value:e.total,expression:"total"}],staticClass:"total"},[e._v("共"+e._s(e.total)+"条结果")]),e._v(" "),s("el-pagination",{attrs:{background:"","current-page":e.page,"page-size":e.page_size,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()]):e._e(),e._v(" "),!e.noneDone&&e.hasAuno&&!e.loading&&e.infoList.length>0?s("list-permission"):e._e(),e._v(" "),!e.hasAuno&&e.noneDone?s("nopermission"):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("tr",[t("td",[this._v("排名")]),this._v(" "),t("td",[this._v("达人")]),this._v(" "),t("td",[this._v("对外打赏次数")]),this._v(" "),t("td",[this._v("对外打赏金额(元)")])])}]};var n=i("C7Lr")(s,a,!1,function(e){i("Ok+W"),i("Vx/+")},"data-v-399628dc",null);t.default=n.exports}});
|