canyin-project/ybcy/views/channel/index/static/js/chunk-0515248d.297db942.js
2024-11-01 16:07:54 +08:00

1 line
14 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0515248d"],{"363c":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f"},[a("el-tabs",{staticStyle:{"margin-bottom":"20px"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"分销商",name:"2"}}),a("el-tab-pane",{attrs:{label:"待审核",name:"1"}}),a("el-tab-pane",{attrs:{label:"已拒绝",name:"3"}})],1),[e._m(0),a("div",{staticClass:"pad_20 flex-bet flex-y-top"},[a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("el-form-item",{attrs:{label:"用户昵称/分销商姓名"}},[a("el-input",{attrs:{size:"medium",placeholder:"用户昵称/分销商姓名"},on:{input:e.onSearch},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1),a("el-form-item",{attrs:{label:"分销商注册时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.formInline.timeData,callback:function(t){e.$set(e.formInline,"timeData",t)},expression:"formInline.timeData"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.onSearch}},[e._v("搜索")])],1)],1)],1),a("div",{staticClass:"tabledata"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"element-loading-text":e.elementLoadingText,data:e.list,stripe:""},on:{"selection-change":e.setSelectRows}},[a("el-table-column",{key:"1",attrs:{type:"selection",width:"55"}}),a("el-table-column",{key:"2",attrs:{prop:"portrait",label:"昵称/图像",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-y-top"},[a("div",{},[a("img",{staticClass:"goodlogo bor_rad50",attrs:{src:t.row.portrait}})]),a("div",{staticClass:"mar_l10"},[a("div",{},[a("div",{},[e._v(e._s(t.row.userName))]),a("div",[a("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[e._v("ID:"+e._s(t.row.userId)+"")])],1)])])])]}}])}),a("el-table-column",{key:"3",attrs:{prop:"userTel",label:"姓名/手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("姓名:"+e._s(t.row.name))]),a("div",[e._v("手机号:"+e._s(t.row.tel))])]}}])}),"2"==e.activeName?a("el-table-column",{key:"4",attrs:{prop:"allMoney",label:"累计佣金/提现佣金"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(" 累计:"+e._s(t.row.allMoney)+" ")]),a("div",[e._v(" 已提现:"+e._s(t.row.alreadyMoney)+" ")])]}}],null,!1,3081255727)}):e._e(),"2"==e.activeName?a("el-table-column",{key:"5",attrs:{prop:"onePeople",label:"下级用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"subjectcolor2 curs",on:{click:function(a){return e.handleEdit(t.row,1)}}},[e._v(" 一级:"+e._s(t.row.onePeople)+" ")]),a("div",{staticClass:"subjectcolor2 curs",on:{click:function(a){return e.handleEdit(t.row,2)}}},[e._v(" 二级:"+e._s(t.row.twoPeople)+" ")])]}}],null,!1,2227557363)}):e._e(),a("el-table-column",{key:"6",attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["1"==t.row.state?a("div",{staticStyle:{color:"#155BD4"}},[e._v("待审核")]):e._e(),"2"==t.row.state?a("div",{staticStyle:{color:"#489620"}},[e._v("已通过")]):e._e(),"3"==t.row.state?a("div",{staticStyle:{color:"#df0029"}},[e._v("已拒绝")]):e._e()]}}])}),a("el-table-column",{key:"7",attrs:{prop:"createdAt",label:"提交时间"}}),a("el-table-column",{key:"8",attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-dropdown",{staticClass:"more"},[a("el-button",{staticClass:"mar_l10",attrs:{type:"text",size:"mini"}},[e._v(" 操作 "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},["2"==e.activeName?a("el-dropdown-item",[a("span",{on:{click:function(a){return e.handClick1(t.row)}}},[e._v("提现订单")])]):e._e(),"2"==e.activeName?a("el-dropdown-item",[a("span",{on:{click:function(a){return e.handClick(t.row)}}},[e._v("分销订单")])]):e._e(),"2"!=e.activeName?[a("el-dropdown-item",[a("span",{on:{click:function(a){return e.handShenhe(t.row.id,"1")}}},[e._v("通过")])]),a("el-dropdown-item",[a("span",{on:{click:function(a){return e.handShenhe(t.row.id,"2")}}},[e._v("拒绝")])])]:e._e(),a("el-dropdown-item",[a("span",{on:{click:function(a){return e.handleDelete(t.row,3)}}},[e._v("删除")])])],2)],1)]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}}),a("edit",{ref:"edit",on:{fetchData:e.fetchData}})],1)]],2)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("分销商列表")])])])}],i=(a("96cf"),a("1da1")),o=a("7cb7"),s=a("ed08"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,width:"800px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close}},[a("div",{staticClass:"tabledata"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"element-loading-text":e.elementLoadingText,data:e.list,stripe:""}},[a("el-table-column",{attrs:{prop:"portrait",label:"昵称/图像",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-y-top"},[a("div",{},[a("img",{staticClass:"goodlogo bor_rad50",attrs:{src:t.row.portrait}})]),a("div",{staticClass:"mar_l10"},[a("div",{},[a("div",{},[e._v(e._s(t.row.userName))]),a("div",[a("el-tag",{staticClass:"mar_l5",attrs:{size:"mini",type:"info"}},[e._v("ID:"+e._s(t.row.bindId)+"")])],1)])])])]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"加入时间"}})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"current-page":e.page.currentPage},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}})],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:e.close}},[e._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])],1)},c=[],u={name:"labelSave",created:function(){},data:function(){return{list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},form:{},title:"",dialogFormVisible:!1}},components:{},methods:{showEdit:function(e,t){this.title="1"==t?"一级下线情况":"2"==t?"二级下线情况":"编辑",this.type=t,this.userId=e.userId,this.fetchData(),this.dialogFormVisible=!0},close:function(){this.dialogFormVisible=!1},fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(o["E"])({page:e.page.currentPage,type:e.type,userId:e.userId});case 3:a=t.sent,n=a.data,r=a.count,e.list=n,e.page.total=r,setTimeout((function(){e.listLoading=!1}),100);case 9:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},save:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(a){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=10;break}return t.next=3,labelSave(e.form);case 3:n=t.sent,r=n.msg,e.$baseMessage(r,"success"),e.$emit("fetchData"),e.close(),t.next=11;break;case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}},d=u,p=a("2877"),f=Object(p["a"])(d,l,c,!1,null,null,null),g=f.exports,m={components:{Edit:g},name:"distributionAdmin",created:function(){this.fetchData()},data:function(){return{activeName:"2",formInline:{keyword:"",vipLabel:"",timeData:[]},list:[],listLoading:!0,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1}}},methods:{fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,n,r,i,l,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,a="",n="",e.formInline.timeData.length&&(a=Object(s["a"])(e.formInline.timeData[0]),n=Object(s["a"])(e.formInline.timeData[1])),r={keyword:e.formInline.keyword,page:e.page.currentPage,state:e.activeName,startTime:a,endTime:n},t.next=7,Object(o["s"])(r);case 7:i=t.sent,l=i.data,c=i.count,e.list=l,e.page.total=c,setTimeout((function(){e.listLoading=!1}),100);case 13:case"end":return t.stop()}}),t)})))()},handleEdit:function(e,t){e.id&&this.$refs["edit"].showEdit(e,t)},setSelectRows:function(e){this.selectRows=e},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},handleClick:function(){this.fetchData()},onSearch:function(){this.fetchData()},handClick1:function(e){this.$router.push("/WithdrawalSet?userId=".concat(e.userId))},handClick:function(e){this.$router.push("/distributionOrder?userId=".concat(e.userId))},handShenhe:function(e,t){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["ub"])({id:e,type:t});case 2:r=n.sent,i=r.msg,a.$baseMessage(i,"success"),a.fetchData();case 6:case"end":return n.stop()}}),n)})))()},handleDelete:function(e,t){var a=this;e.id&&this.$baseConfirm("你确定要删除当前项吗",null,Object(i["a"])(regeneratorRuntime.mark((function n(){var r,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["ub"])({id:e.id,type:t});case 2:r=n.sent,i=r.msg,a.$baseMessage(i,"success"),a.fetchData();case 6:case"end":return n.stop()}}),n)}))))}}},h=m,v=Object(p["a"])(h,n,r,!1,null,null,null);t["default"]=v.exports},"3bbe":function(e,t,a){var n=a("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},7156:function(e,t,a){var n=a("861d"),r=a("d2bb");e.exports=function(e,t,a){var i,o;return r&&"function"==typeof(i=t.constructor)&&i!==a&&n(o=i.prototype)&&o!==a.prototype&&r(e,o),e}},a9e3:function(e,t,a){"use strict";var n=a("83ab"),r=a("da84"),i=a("94ca"),o=a("6eeb"),s=a("5135"),l=a("c6b6"),c=a("7156"),u=a("c04e"),d=a("d039"),p=a("7c73"),f=a("241c").f,g=a("06cf").f,m=a("9bf2").f,h=a("58a8").trim,v="Number",b=r[v],_=b.prototype,w=l(p(_))==v,y=function(e){var t,a,n,r,i,o,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=h(c),t=c.charCodeAt(0),43===t||45===t){if(a=c.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+c}for(i=c.slice(2),o=i.length,s=0;s<o;s++)if(l=i.charCodeAt(s),l<48||l>r)return NaN;return parseInt(i,n)}return+c};if(i(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var k,I=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof I&&(w?d((function(){_.valueOf.call(a)})):l(a)!=v)?c(new b(y(t)),a,I):y(t)},x=n?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;x.length>C;C++)s(b,k=x[C])&&!s(I,k)&&m(I,k,g(b,k));I.prototype=_,_.constructor=I,o(r,v,I)}},bf19:function(e,t,a){"use strict";var n=a("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(e,t,a){var n=a("825a"),r=a("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(a,[]),t=a instanceof Array}catch(i){}return function(a,i){return n(a),r(i),t?e.call(a,i):a.__proto__=i,a}}():void 0)},ed08:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function n(e){var t=new Date(e).toJSON(),a=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function r(e){var t=new Date(e),a=t.getFullYear(),n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),o=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return a+"-"+n+"-"+r+" "+i+":"+o+":"+s}function i(e){var t=new Date(1e3*Number(e)),a=t.getFullYear()+"-",n=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",r=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",i=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",o=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",s=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),l=a+n+r+i+o+s;return l}}}]);