chunk-7b6d5a46.94b6a963.js
10.1 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b6d5a46"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,n){var l=i(),o=e-l,s=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=s;var i=Math.easeInOutQuad(u,l,o,t);r(i),u<t?a(e):n&&"function"===typeof n&&n()};c()}},4490:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.listQuery}},[n("el-form-item",{attrs:{label:"时间"}},[n("el-date-picker",{staticClass:"filter-item",attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",placeholder:"选择时间"},model:{value:e.listQuery.time_range,callback:function(t){e.$set(e.listQuery,"time_range",t)},expression:"listQuery.time_range"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(" 搜索 ")])],1)],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":"","summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.sortChange}},[n("el-table-column",{attrs:{label:"日期","min-width":"80px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.date))])]}}])}),n("el-table-column",{attrs:{label:"总安装","min-width":"50px",align:"center",prop:"install"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.install))])]}}])}),n("el-table-column",{attrs:{label:"总收入(元)","min-width":"50px",align:"center",prop:"allmoney"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.allmoney))])]}}])}),n("el-table-column",{attrs:{label:"返佣","min-width":"50px",align:"center",prop:"real_money"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.real_money))])]}}])}),n("el-table-column",{attrs:{label:"注册ARPU","min-width":"50px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[a.install>0?n("span",[e._v(e._s(parseFloat(a.allmoney/a.install).toFixed(2)))]):n("span",[e._v("0.00")])]}}])}),n("el-table-column",{attrs:{label:"邀请安装","min-width":"50px",align:"center",prop:"share_install"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.share_install))])]}}])}),n("el-table-column",{attrs:{label:"邀请收入","min-width":"50px",align:"center",prop:"share_money"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.share_money))])]}}])}),n("el-table-column",{attrs:{label:"安卓安装","min-width":"50px",align:"center",prop:"android_install"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.android_install))])]}}])}),n("el-table-column",{attrs:{label:"安卓收入","min-width":"50px",align:"center",prop:"android_money"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.android_money))])]}}])}),n("el-table-column",{attrs:{label:"IOS/H5 安装","min-width":"50px",align:"center",prop:"ios_install"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.ios_install))])]}}])}),n("el-table-column",{attrs:{label:"IOS/H5 收入","min-width":"50px",align:"center",prop:"ios_money"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("span",[e._v(e._s(a.ios_money))])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},r=[],i=(n("a623"),n("4160"),n("d81d"),n("13d5"),n("a9e3"),n("b680"),n("159b"),n("6dfa")),l=n("6724"),o=n("333d"),s=["未通过","已审核"],u=["普通","推荐"],c=["否","是"],d=[{key:"1",display_name:"1"},{key:"2",display_name:"2"},{key:"3",display_name:"3"}],m=d.reduce((function(e,t){return e[t.key]=t.display_name,e}),{}),p={name:"Publicity",components:{Pagination:o["a"]},directives:{waves:l["a"]},filters:{levelFilter:function(e){return m[e]},isCheckFilter:function(e){return s[e]},betterShowFilter:function(e){return u[e]},homeShowFilter:function(e){return c[e]}},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,dialogPvVisible:!1,pvData:[],listQuery:{page:1,limit:20,name:void 0,time_range:void 0,sort:"id"},levelValue:d,newData:{},dialogFormVisible:!1,dialogStatus:"",dilogHighStatus:"",textMap:{update:"编辑",create:"创建"},rules:{name:[{required:!0,message:"请输入代理名字",trigger:"blur"}],user_login:[{required:!0,message:"请输入管理账户",trigger:"blur"}],gain_sharing:[{required:!0,message:"请选择分成比例",trigger:"blur"}]},is_switch_pay:!1,is_show_pay:!1,reg_change_switch:!1,is_switch_show:!1,is_must_switch:!1,is_show_create:!1,self_info:{level:3,id:0,is_show_create:0}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(i["c"])(this.listQuery).then((function(t){e.total=t.data.total,e.list=t.data.list,t.data.self_info&&(e.self_info=t.data.self_info),e.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},takeLevelVuew:function(e){return m[e]},sortChange:function(e){var t=e.prop,n=e.order;this.listQuery.sort="ascending"===n?t:t+" desc",this.handleFilter()},getSummaries:function(e){var t=e.columns,n=e.data,a=[];return t.forEach((function(e,t){if(0!==t){var r=(n||[]).map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))?a[t]="N/A":a[t]=r.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:e+t}),0)}else a[t]="合计"})),a[4]=parseFloat(a[2]/a[1]).toFixed(2),a}}},f=p,h=n("2877"),_=Object(h["a"])(f,a,r,!1,null,null,null);t["default"]=_.exports},6724:function(e,t,n){"use strict";n("8d41");var a="@@wavesContext";function r(e,t){function n(n){var a=Object.assign({},t.value),r=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},a),i=r.ele;if(i){i.style.position="relative",i.style.overflow="hidden";var l=i.getBoundingClientRect(),o=i.querySelector(".waves-ripple");switch(o?o.className="waves-ripple":(o=document.createElement("span"),o.className="waves-ripple",o.style.height=o.style.width=Math.max(l.width,l.height)+"px",i.appendChild(o)),r.type){case"center":o.style.top=l.height/2-o.offsetHeight/2+"px",o.style.left=l.width/2-o.offsetWidth/2+"px";break;default:o.style.top=(n.pageY-l.top-o.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",o.style.left=(n.pageX-l.left-o.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return o.style.backgroundColor=r.color,o.className="waves-ripple z-active",!1}}return e[a]?e[a].removeHandle=n:e[a]={removeHandle:n},n}var i={bind:function(e,t){e.addEventListener("click",r(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[a].removeHandle,!1),e.addEventListener("click",r(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[a].removeHandle,!1),e[a]=null,delete e[a]}},l=function(e){e.directive("waves",i)};window.Vue&&(window.waves=i,Vue.use(l)),i.install=l;t["a"]=i},"6dfa":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"m",(function(){return d})),n.d(t,"e",(function(){return m})),n.d(t,"k",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"n",(function(){return h})),n.d(t,"c",(function(){return _})),n.d(t,"l",(function(){return g}));var a=n("b775");function r(e){return Object(a["a"])({url:"/api/admin/channel/agent_list",method:"get",params:e})}function i(e){return Object(a["a"])({url:"/api/admin/channel/channel_list",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/api/admin/channel/get_person_system",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/api/admin/channel/get_team_system",method:"get",params:e})}function s(e){return Object(a["a"])({url:"/api/admin/channel/get_create_channel",method:"post",params:e})}function u(e){return Object(a["a"])({url:"/api/admin/channel/create_channel",method:"post",data:e})}function c(e){return Object(a["a"])({url:"/api/admin/channel/get_update_channel",method:"post",params:e})}function d(e){return Object(a["a"])({url:"/api/admin/channel/update_channel",method:"post",data:e})}function m(e){return Object(a["a"])({url:"/api/admin/channel/delete_channel",method:"post",data:e})}function p(e){return Object(a["a"])({url:"/api/admin/channel/publicity",method:"get",params:e})}function f(e){return Object(a["a"])({url:"/api/admin/channel/edit_pwd",method:"post",data:e})}function h(e){return Object(a["a"])({url:"/api/admin/channel/update_real_name",method:"post",data:e})}function _(e){return Object(a["a"])({url:"/api/admin/channel/channel_income",method:"get",params:e})}function g(e){return Object(a["a"])({url:"/api/admin/channel/real_channel_income",method:"get",params:e})}},"8d41":function(e,t,n){},a623:function(e,t,n){"use strict";var a=n("23e7"),r=n("b727").every,i=n("a640"),l=n("ae40"),o=i("every"),s=l("every");a({target:"Array",proto:!0,forced:!o||!s},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})}}]);