44.eef9cbac7edb9b5f895b.js 5.9 KB

12
  1. webpackJsonp([44],{IGR7:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("mtWM"),i=s.n(a),n=s("odqc"),c=s("Znkm"),o=(n.a,c.a,{components:{Tab:n.a,TabItem:c.a},name:"record-page",data:function(){return{recordList:[],navList:[{name:"直推",parent_id:0,post_count:0,description:"平台公告通知。",path:"0-1",selected:"selected"},{name:"间推一级",parent_id:0,post_count:0,description:"系统帮助文章。",path:"0-2",selected:""},{name:"间推二级",parent_id:0,post_count:0,description:"招聘工作.",path:"0-3",selected:""}],page:1,isRedNum:!1,flag:!1,title:this.$route.meta.title,sub_title:"",type:0,count:0,pct:0,totalPerformance:0}},created:function(){this.init()},mounted:function(){this.$emit("listenTo",{hideHead:1}),window.addEventListener("scroll",this.addEventScroll)},destroyed:function(){window.removeEventListener("scroll",this.addEventScroll)},methods:{init:function(t){var e=this.$route.query.type;"ad"===e?(this.getAdList(t),this.title="广告明细",this.sub_title="广告费总额"):"agent"===e?(this.getAgentList(t),this.title="代理明细",this.sub_title="代理费总额"):void 0!==e&&"withdrawal"!==e||(this.title="提现记录")},onItemClick:function(t){this.page=1,this.type=t,this.recordList=[];var e=this.$route.query.type;"ad"===e?(this.getAdList(),this.title="广告明细"):"agent"===e&&(this.getAgentList(),this.title="代理明细")},getAdList:function(t){var e=this;t&&(this.page=1),i()({method:"POST",url:"/api/adver",data:{page:this.page,type:this.type}}).then(function(s){"success"===s.data.code?(0==s.data.data.user.data.length?e.$vux.toast.text("没有更多数据了","middle"):(e.count=s.data.data.count,e.pct=s.data.data.pct,e.totalPerformance=s.data.data.totalPerformance,t&&(e.recordList=[]),e.recordList=e.recordList.concat(s.data.data.user.data)),e.flag=!0):e.$vux.confirm.show({content:"您还没有补充信息,确定去补充吗?",onCancel:function(){},onConfirm:function(){e.$router.push("/perfectInfo/perfect_info")}}),t&&t()})},getAgentList:function(t){var e=this;t&&(this.page=1),i()({method:"POST",url:"/api/invitor",data:{page:this.page,type:this.type}}).then(function(s){"success"===s.data.code?(0==s.data.data.user.data.length?e.$vux.toast.text("没有更多数据了","middle"):(e.count=s.data.data.count,e.pct=s.data.data.pct,e.totalPerformance=s.data.data.totalPerformance,t&&(e.recordList=[]),e.recordList=e.recordList.concat(s.data.data.user.data)),e.flag=!0):e.$vux.confirm.show({content:"您还没有补充信息,确定去补充吗?",onCancel:function(){},onConfirm:function(){e.$router.push("/perfectInfo/perfect_info")}}),t&&t()})},addEventScroll:function(){var t=document.documentElement.clientHeight||document.body.clientHeight;if((document.documentElement.scrollTop||document.body.scrollTop)+t===(document.documentElement.scrollHeight||document.body.scrollHeight)&&this.flag){this.page++;var e=this.$route.query.type;"ad"===e?this.getAdList():"agent"===e&&this.getAgentList()}}}}),r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"record-wrap"},[s("div",{staticClass:"header"},[s("div",{staticClass:"header-title pr"},[s("div",{staticClass:"left",on:{click:function(e){t.$router.go(-1)}}}),t._v(" "),s("div",{staticClass:"center pa"},[t._v(t._s(t.title))]),t._v(" "),s("div",{staticClass:"right"})])]),t._v(" "),s("pull-down",{on:{refresh:t.init}},[s("tab",t._l(t.navList,function(e,a){return s("tab-item",{key:a,attrs:{"active-class":"active",selected:!!e.selected&&"selected"},on:{"on-item-click":t.onItemClick}},[t._v(t._s(e.name)+"\n ")])}),1),t._v(" "),s("div",{staticClass:"bl"},[s("div",{staticClass:"bl-item"},[s("p",{directives:[{name:"show",rawName:"v-show",value:0==t.type,expression:"type==0"}]},[t._v("返佣比:"+t._s(t.pct)+"%")])]),t._v(" "),s("div",{staticClass:"bl-item"},[s("p",{directives:[{name:"show",rawName:"v-show",value:1==t.type,expression:"type==1"}]},[t._v("返佣比:"+t._s(t.pct)+"%")])]),t._v(" "),s("div",{staticClass:"bl-item"},[s("p",{directives:[{name:"show",rawName:"v-show",value:2==t.type,expression:"type==2"}]},[t._v("返佣比:"+t._s(t.pct)+"%")])])]),t._v(" "),t.recordList.length>0?s("div",{staticClass:"all-box"},[s("div",{staticClass:"all"},[s("p",{staticClass:"num"},[t._v("总人数:"+t._s(t.count)+"人")]),t._v(" "),s("p",{staticClass:"mon"},[t._v(t._s(t.sub_title)+":"+t._s(t.totalPerformance))])])]):t._e(),t._v(" "),s("div",{staticClass:"record-main"},[s("ul",{staticClass:"record-list"},[0===t.recordList.length?s("li",{staticClass:"text-center"},[t._v("\n 暂无数据\n ")]):t._l(t.recordList,function(e,a){return s("li",{key:a,staticClass:"record-item"},["ad"==t.$route.query.type?[s("div",{staticClass:"item-l"},[s("p",{staticClass:"record-type"},[t._v("用户名:"+t._s(e.nick_name||e.mobile))]),t._v(" "),s("p",{staticClass:"record-time"},[t._v("广告笔数:"),s("span",{staticClass:"fc-orange"},[t._v(t._s(e.adverNum))])])]),t._v(" "),s("div",{staticClass:"item-r"},[s("p",{staticClass:"record-type"},[t._v(t._s(["直推","间推","间推二"][t.type]))]),t._v(" "),s("p",{staticClass:"record-time"},[t._v("广告业绩总额:"),s("span",{staticClass:"fc-orange"},[t._v(t._s(e.performance))])])])]:t._e(),t._v(" "),"agent"==t.$route.query.type?[s("div",{staticClass:"item-l"},[s("p",{staticClass:"record-type"},[t._v("用户名:"+t._s(e.nick_name))]),t._v(" "),s("p",{staticClass:"record-time"},[t._v("下级数量:"),s("span",{staticClass:"fc-orange"},[t._v(t._s(e.invitorNum))])])]),t._v(" "),s("div",{staticClass:"item-r"},[s("p",{staticClass:"record-type"},[t._v("手机号码:"+t._s(e.mobile.toString().substring(0,3)+"****"+e.mobile.toString().substring(7)))]),t._v(" "),s("p",{staticClass:"record-time"},[t._v("代理费业绩:"),s("span",{staticClass:"fc-orange"},[t._v(t._s(e.performance))])])])]:t._e()],2)})],2)])],1)],1)},staticRenderFns:[]};var d=s("VU/8")(o,r,!1,function(t){s("hwP0")},"data-v-65875622",null);e.default=d.exports},hwP0:function(t,e){}});
  2. //# sourceMappingURL=44.eef9cbac7edb9b5f895b.js.map