CRMEB/crmeb/public/admin/system_static/js/chunk-f2899e2c.e02fff01.js
2023-09-19 17:39:39 +08:00

1 line
57 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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-f2899e2c","chunk-7f387760"],{"0436":function(t,e,r){"use strict";var n={name:"publicSearchFrom",props:{fromList:{type:Array},searchFrom:{type:Object},treeData:{type:Object},isExist:{type:Object}},data:function(){return{date:"全部",withdrawalTxt:"提现状态",paymentTxt:"提现方式"}},computed:{},mounted:function(){},methods:{changeTree:function(){}}};r("f6e5"),r=r("2877"),r=Object(r.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-form",{ref:"orderData",staticClass:"tabform",attrs:{"label-width":"85px","label-position":"right"}},[t._l(t.fromList,(function(e,n){return r("el-row",{key:n,attrs:{gutter:24}},[r("el-col",{attrs:{xl:8,lg:8,md:8,sm:24,xs:24}},[r("el-form-item",{attrs:{label:e.title+""}},[r("el-radio-group",{attrs:{type:"button"},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},t._l(e.fromTxt,(function(n,a){return r("el-radio-button",{key:a,attrs:{label:n.text}},[t._v(t._s(n.text)+t._s(e.num))])})),1)],1)],1),e.custom?r("el-col",[r("el-form-item",{staticClass:"tab_data"},[r("el-date-picker",{staticStyle:{width:"200px"},attrs:{editable:!1,"value-format":"yyyy/MM/dd",type:"daterange","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"}})],1)],1):t._e()],1)})),t.isExist.existOne?r("el-row",{attrs:{gutter:24}},[r("el-col",{staticClass:"mr",attrs:{span:"10"}},[r("el-form-item",{attrs:{label:t.searchFrom.title+"",prop:"real_name","label-for":"real_name"}},[r("el-input",{attrs:{search:"","enter-button":"",placeholder:t.searchFrom.place,"element-id":"name"}})],1)],1),r("el-col",[r("el-button",{staticClass:"mr"},[t._v("导出")]),r("span",{staticClass:"Refresh"},[t._v("刷新")])],1)],1):t._e(),t.isExist.existTwo?r("el-row",{staticClass:"withdrawal",attrs:{gutter:24}},[r("el-col",{staticClass:"item",attrs:{span:"2.5"}},[r("TreeSelect",{staticClass:"perW160",attrs:{data:t.treeData.withdrawal},on:{change:t.changeTree},model:{value:t.withdrawalTxt,callback:function(e){t.withdrawalTxt=e},expression:"withdrawalTxt"}})],1),r("el-col",{staticClass:"item",attrs:{span:"2.5"}},[r("TreeSelect",{staticClass:"perW160",attrs:{data:t.treeData.payment},on:{change:t.changeTree},model:{value:t.paymentTxt,callback:function(e){t.paymentTxt=e},expression:"paymentTxt"}})],1),r("el-col",{staticClass:"item",attrs:{span:6}},[r("el-input",{attrs:{search:"","enter-button":"",placeholder:"微信名称、姓名、支付宝账号、银行卡号","element-id":"name"}})],1)],1):t._e()],2)],1)}),[],!1,null,"7955f210",null);e.a=r.exports},1698:function(t,e,r){"use strict";r.d(e,"g",(function(){return a})),r.d(e,"f",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"h",(function(){return s})),r.d(e,"d",(function(){return c})),r.d(e,"c",(function(){return l})),r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return d}));var n=r("6b6c");function a(t){return Object(n.a)({url:"agent/level",method:"get",params:t})}function i(t,e){return Object(n.a)({url:e,method:"get",params:t})}function o(t,e){return Object(n.a)({url:e,method:"get",params:t})}function s(t){return Object(n.a)({url:t,method:"PUT"})}function c(t){return Object(n.a)({url:t,method:"PUT"})}function l(t){return Object(n.a)({url:"agent/level_task",method:"get",params:t})}function u(t,e){return Object(n.a)({url:e,method:"get",params:t})}function d(t,e){return Object(n.a)({url:e,method:"get",params:t})}},"2c3e":function(t,e,r){var n=r("da84"),a=r("83ab"),i=r("9f7f").MISSED_STICKY,o=r("c6b6"),s=r("edd0"),c=r("69f3").get,l=RegExp.prototype,u=n.TypeError;a&&i&&s(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!c(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},3061:function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var n=r("0122"),a=r("c964"),i=r("f3f3"),o=(r("a15b"),r("a584")),s=r("0436"),c=r("2f62"),l=r("bbbc"),u=r("61f7");function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i,o,s,c;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new k(n||[]);return a(e,"_invoke",{value:(i=t,o=r,s=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return O()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,a=e.iterator[n];return void 0===a?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=f(a,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(a=n.arg,a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",r=f(i,o,s),"normal"===r.type){if(c=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(c="completed",s.method="throw",s.arg=r.arg)}})}),e}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function m(){}function p(){}function v(){}i={};var g=(l(i,o,(function(){return this})),Object.getPrototypeOf),w=(g=g&&g(g(L([]))),g&&g!==e&&r.call(g,o)&&(i=g),v.prototype=m.prototype=Object.create(i));function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var i;a(this,"_invoke",{value:function(a,o){function s(){return new e((function(i,s){!function a(i,o,s,c){var l;i=f(t[i],t,o);if("throw"!==i.type)return(o=(l=i.arg).value)&&"object"==Object(n.a)(o)&&r.call(o,"__await")?e.resolve(o.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(o).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,c)}));c(i.arg)}(a,o,i,s)}))}return i=i?i.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var e,n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:O}}function O(){return{value:void 0,done:!0}}return a(w,"constructor",{value:p.prototype=v,configurable:!0}),a(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},y(b.prototype),l(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new b(u(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(w),l(w,c,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;0<=a;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,a=this.tryEntries[e];if(a.tryLoc===t)return"throw"===(r=a.completion).type&&(n=r.arg,x(a)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var f={name:"promotersList",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(u.a)(t,"yyyy-MM-dd hh:mm")}},data:function(){return{modals:!1,fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}],fromTxt2:[{text:"全部",val:""},{text:"一级推广人",val:1},{text:"二级推广人",val:2}],fromTxt3:[{text:"全部",val:""},{text:"一级推广人订单",val:1},{text:"二级推广人订单",val:2}]},formValidate:{limit:15,page:1,nickname:"",data:"",type:"",order_id:"",uid:0},loading:!1,tabList:[],total:0,timeVal:[],columns4:[],listTitle:""}},computed:Object(i.a)(Object(i.a)({},Object(c.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{onCancel:function(){this.formValidate={limit:15,page:1,nickname:"",data:"",type:"",order_id:"",uid:0},this.timeVal=[]},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal?this.timeVal.join("-"):"",this.getList(this.rowsList,this.listTitle)},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.getList(this.rowsList,this.listTitle)},getList:function(t,e){var r=this;this.listTitle=e,this.rowsList=t,this.loading=!0,e="",e="man"===this.listTitle?"agent/stair":"agent/stair/order";this.formValidate.uid=t.uid,Object(l.m)(e,this.formValidate).then(function(){var t=Object(a.a)(d().mark((function t(e){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.data,r.tabList=n.list,r.total=n.count,r.loading=!1;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){r.loading=!1,r.tabList=[],r.$message.error(t.msg)}))},pageChange:function(){this.getList(this.rowsList,this.listTitle)},userSearchs:function(){this.formValidate.page=1,this.getList(this.rowsList,this.listTitle)}}},h=r("2877"),m=(f=Object(h.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{visible:t.modals,title:"man"===t.listTitle?"统计推广人列表":"推广订单","close-on-click-modal":!1,width:"1000px"},on:{"update:visible":function(e){t.modals=e},closed:t.onCancel}},[n("div",{staticClass:"table_box"},[n("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"时间选择:"}},[n("el-date-picker",{staticStyle:{width:"250px"},attrs:{clearable:"",editable:!1,"value-format":"yyyy/MM/dd",type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),n("el-form-item",{attrs:{label:"用户类型:"}},[n("el-select",{staticClass:"form_content_width",attrs:{clearable:""},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l("man"===t.listTitle?t.fromList.fromTxt2:t.fromList.fromTxt3,(function(t,e){return n("el-option",{key:e,attrs:{value:t.val,label:t.text}})})),1)],1),"man"===t.listTitle?n("el-form-item",{attrs:{label:"搜索:"}},[n("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入请姓名、电话、UID"},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1):t._e(),"order"===t.listTitle?n("el-form-item",{attrs:{label:"订单号:"}},[n("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入请订单号"},model:{value:t.formValidate.order_id,callback:function(e){t.$set(t.formValidate,"order_id",e)},expression:"formValidate.order_id"}})],1):t._e(),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"selection",attrs:{data:t.tabList,"empty-text":"暂无数据","highlight-current-row":"","max-height":"400"}},["man"===t.listTitle?[n("el-table-column",{attrs:{label:"UID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.uid))])]}}],null,!1,1905034046)}),n("el-table-column",{attrs:{label:"头像","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar||r("7153"),expression:"scope.row.avatar ? scope.row.avatar : require('../../../assets/images/moren.jpg')"}]})])]}}],null,!1,422720524)}),n("el-table-column",{attrs:{label:"用户信息","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.nickname))])]}}],null,!1,611505262)}),n("el-table-column",{attrs:{label:"是否推广员","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.promoter_name))])]}}],null,!1,1147132146)}),n("el-table-column",{attrs:{label:"推广人数","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.spread_count))])]}}],null,!1,2766579147)}),n("el-table-column",{attrs:{label:"订单数","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.order_count))])]}}],null,!1,3370191188)}),n("el-table-column",{attrs:{label:"绑定时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("formatDate")(e.row.spread_time)))])]}}],null,!1,674438355)})]:[n("el-table-column",{attrs:{label:"订单ID","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.order_id))])]}}])}),n("el-table-column",{attrs:{label:"用户信息","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.user_info))])]}}])}),n("el-table-column",{attrs:{label:"时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row._add_time))])]}}])}),n("el-table-column",{attrs:{label:"返佣金额","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.brokerage_price||0))])]}}])})]],2),n("div",{staticClass:"acea-row row-right page"},[t.total?n("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.pageChange}}):t._e()],1)],1)],1)}),[],!1,null,"a7b4d2b8",null).exports,r("8c03")),p=r("1698");function v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i,o,s,c;e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),n=new k(n||[]);return a(e,"_invoke",{value:(i=t,o=r,s=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return O()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,a=e.iterator[n];return void 0===a?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f):(n=d(a,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,f):(a=n.arg,a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)))}(r,s),r)){if(r===f)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",r=d(i,o,s),"normal"===r.type){if(c=s.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(c="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function h(){}function m(){}function p(){}i={};var g=(l(i,o,(function(){return this})),Object.getPrototypeOf),w=(g=g&&g(g(L([]))),g&&g!==e&&r.call(g,o)&&(i=g),p.prototype=h.prototype=Object.create(i));function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var i;a(this,"_invoke",{value:function(a,o){function s(){return new e((function(i,s){!function a(i,o,s,c){var l;i=d(t[i],t,o);if("throw"!==i.type)return(o=(l=i.arg).value)&&"object"==Object(n.a)(o)&&r.call(o,"__await")?e.resolve(o.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(o).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,c)}));c(i.arg)}(a,o,i,s)}))}return i=i?i.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var e,n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:O}}function O(){return{value:void 0,done:!0}}return a(w,"constructor",{value:m.prototype=p,configurable:!0}),a(p,"constructor",{value:m,configurable:!0}),m.displayName=l(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},y(b.prototype),l(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new b(u(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(w),l(w,c,"Generator"),l(w,o,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;0<=a;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,a=this.tryEntries[e];if(a.tryLoc===t)return"throw"===(r=a.completion).type&&(n=r.arg,x(a)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}o={name:"agentManage",components:{cardsData:o.a,searchFrom:s.a,promotersList:f,customerInfo:m.default},data:function(){return{customerShow:!1,promoterShow:!1,modals:!1,spinShow:!1,pickerOptions:this.$timeOptions,rows:{},formValidate:{nickname:"",data:"",page:1,limit:15},date:"all",total:0,cardLists:[],loading:!1,tableList:[],timeVal:[],code_src:"",code_xcx:"",code_h5:"",formInline:{uid:0,spread_uid:0,image:""}}},computed:Object(i.a)(Object(i.a)({},Object(c.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList(),this.getStatistics()},methods:{putSend:function(t){var e=this;this.$refs[t].validate((function(r){if(r){if(!e.formInline.spread_uid)return e.$message.error("请上传用户");Object(l.c)(e.formInline).then((function(r){e.promoterShow=!1,e.$message.success(r.msg),e.getList(),e.$refs[t].resetFields()})).catch((function(t){e.$message.error(t.msg)}))}}))},exports:function(){var t=this,e=this.formValidate;e={data:e.data,nickname:e.nickname};Object(l.o)(e).then((function(t){location.href=t.data[0]})).catch((function(e){t.$message.error(e.msg)}))},changeMenu:function(t,e,r){var n=this;switch(e){case"1":this.promoters(t,"order");break;case"2":this.spreadQR(t);break;case"3":this.editS(t);break;case"4":this.del_parent(t,"清除【 "+t.nickname+" 】的上级推广人",r);break;case"5":this.del_agent(t,"取消【 "+t.nickname+" 】的推广资格",r);break;case"6":this.$modalForm(Object(p.e)({uid:t.uid},"/agent/get_level_form")).then((function(){return n.getList()}))}},editS:function(t){this.promoterShow=!0,this.formInline.uid=t.uid},customer:function(){this.customerShow=!0},imageObject:function(t){this.customerShow=!1,this.formInline.spread_uid=t.uid,this.formInline.image=t.image},del_parent:function(t,e,r){var n=this;e={title:e,num:r,url:"agent/stair/delete_spread/".concat(t.uid),method:"PUT",ids:""};this.$modalSure(e).then((function(t){n.$message.success(t.msg),n.getList()})).catch((function(t){n.$message.error(t.msg)}))},del_agent:function(t,e,r){var n=this;e={title:e,num:r,url:"agent/stair/delete_system_spread/".concat(t.uid),method:"PUT",ids:""};this.$modalSure(e).then((function(t){n.$message.success(t.msg),n.getList()})).catch((function(t){n.$message.error(t.msg)}))},edit:function(t){this.promoterShow=!0,this.formInline.uid=t.uid},cancel:function(t){this.promoterShow=!1,this.$refs[t].resetFields()},promoters:function(t,e){this.$refs.promotersLists.modals=!0,this.$refs.promotersLists.getList(t,e)},getStatistics:function(){var t=this,e={nickname:this.formValidate.nickname,data:this.formValidate.data};Object(l.n)(e).then(function(){var e=Object(a.a)(v().mark((function e(r){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.cardLists=n.res;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal?this.timeVal.join("-"):"",this.formValidate.page=1,t[0]||(this.formValidate.data=""),this.getList(),this.getStatistics()},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[],this.getList(),this.getStatistics()},getList:function(){var t=this;this.loading=!0,Object(l.b)(this.formValidate).then(function(){var e=Object(a.a)(v().mark((function e(r){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableList=n.list,t.total=r.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getList(),this.getStatistics()},spreadQR:function(t){this.modals=!0,this.rows=t,this.getWeChat(),this.getXcx(),this.getH5()},getWeChat:function(){var t=this,e=(this.spinShow=!0,{uid:this.rows.uid,action:"wechant_code"});Object(l.h)(e).then(function(){var e=Object(a.a)(v().mark((function e(r){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.code_src=n.code_src,t.spinShow=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$message.error(e.msg)}))},getXcx:function(){var t=this,e=(this.spinShow=!0,{uid:this.rows.uid});Object(l.j)(e).then(function(){var e=Object(a.a)(v().mark((function e(r){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.code_xcx=n.code_src,t.spinShow=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$message.error(e.msg)}))},getH5:function(){var t=this,e=(this.spinShow=!0,{uid:this.rows.uid});Object(l.i)(e).then(function(){var e=Object(a.a)(v().mark((function e(r){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.code_h5=n.code_src,t.spinShow=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.spinShow=!1,t.$message.error(e.msg)}))}}},r("b850"),s=Object(h.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[n("div",{staticClass:"padding-add"},[n("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"时间选择:"}},[n("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),n("el-form-item",{attrs:{label:"搜索:","label-for":"status"}},[n("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入姓名、电话、UID"},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),0<=t.cardLists.length?n("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),n("el-card",{attrs:{bordered:!1,shadow:"never"}},[n("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userAgent"],expression:"['export-userAgent']"}],staticClass:"export",on:{click:t.exports}},[t._v("导出")]),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"selection",staticClass:"mt14",attrs:{data:t.tableList,"empty-text":"暂无数据","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.uid))])]}}])}),n("el-table-column",{attrs:{label:"商品图片","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.headimgurl||r("7153"),expression:"scope.row.headimgurl ? scope.row.headimgurl : require('../../assets/images/moren.jpg')"}]})])]}}])}),n("el-table-column",{attrs:{label:"用户信息",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"name"},[n("div",{staticClass:"item"},[t._v("昵称:"+t._s(e.row.nickname))]),n("div",{staticClass:"item"},[t._v("姓名:"+t._s(e.row.real_name))]),n("div",{staticClass:"item"},[t._v("电话:"+t._s(e.row.phone))])])]}}])}),n("el-table-column",{attrs:{label:"推广用户数量","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.spread_count))])]}}])}),n("el-table-column",{attrs:{label:"分销等级","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.agentLevel?e.row.agentLevel.name:"--"))])]}}])}),n("el-table-column",{attrs:{label:"订单数量","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.order_count))])]}}])}),n("el-table-column",{attrs:{label:"订单金额","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.order_price))])]}}])}),n("el-table-column",{attrs:{label:"佣金总金额","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.brokerage_money))])]}}])}),n("el-table-column",{attrs:{label:"已提现金额","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.extract_count_price))])]}}])}),n("el-table-column",{attrs:{label:"提现次数","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.extract_count_num))])]}}])}),n("el-table-column",{attrs:{label:"未提现金额","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.new_money))])]}}])}),n("el-table-column",{attrs:{label:"上级推广人","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.spread_name))])]}}])}),n("el-table-column",{attrs:{label:"操作",fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("a",{on:{click:function(r){return t.promoters(e.row,"man")}}},[t._v("推广人")]),n("el-divider",{attrs:{direction:"vertical"}}),[n("el-dropdown",{attrs:{size:"small",transfer:!0},on:{command:function(r){return t.changeMenu(e.row,r,e.$index)}}},[n("span",{staticClass:"el-dropdown-link"},[t._v("更多"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"1"}},[t._v("推广订单")]),n("el-dropdown-item",{attrs:{command:"2"}},[t._v("推广二维码")]),n("el-dropdown-item",{attrs:{command:"3"}},[t._v("修改上级推广人")]),e.row.spread_uid?n("el-dropdown-item",{attrs:{command:"4"}},[t._v("清除上级推广人")]):t._e(),n("el-dropdown-item",{attrs:{command:"5"}},[t._v("取消推广资格")]),n("el-dropdown-item",{attrs:{command:"6"}},[t._v("修改分销等级")])],1)],1)]]}}])})],1),n("div",{staticClass:"acea-row row-right page"},[t.total?n("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1),n("promoters-list",{ref:"promotersLists"}),n("el-dialog",{attrs:{visible:t.modals,title:"推广二维码","close-on-click-modal":!1,width:"540px"},on:{"update:visible":function(e){t.modals=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}],staticClass:"acea-row row-around"},[n("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[t.code_src?n("div",{staticClass:"QRpic"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.code_src,expression:"code_src"}]})]):t._e(),n("span",{staticClass:"QRpic_sp1 mt10",on:{click:t.getWeChat}},[t._v("公众号推广二维码")])]),n("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[t.code_xcx?n("div",{staticClass:"QRpic"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.code_xcx,expression:"code_xcx"}]})]):t._e(),n("span",{staticClass:"QRpic_sp2 mt10",on:{click:t.getXcx}},[t._v("小程序推广二维码")])]),n("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[t.code_h5?n("div",{staticClass:"QRpic"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.code_h5,expression:"code_h5"}]})]):t._e(),n("span",{staticClass:"QRpic_sp2 mt10",on:{click:t.getH5}},[t._v("H5推广二维码")])])])]),n("el-dialog",{attrs:{visible:t.promoterShow,title:"修改推广人",width:"540px","show-close":!0},on:{"update:visible":function(e){t.promoterShow=e}}},[n("el-form",{ref:"formInline",attrs:{model:t.formInline,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"用户头像:",prop:"image"}},[n("div",{staticClass:"picBox",on:{click:t.customer}},[t.formInline.image?n("div",{staticClass:"pictrue"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formInline.image,expression:"formInline.image"}]})]):n("div",{staticClass:"upLoad acea-row row-center-wrapper"},[n("i",{staticClass:"el-icon-picture-outline",staticStyle:{"font-size":"24px"}})])])])],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){return t.cancel("formInline")}}},[t._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.putSend("formInline")}}},[t._v("提交")])],1)],1),n("el-dialog",{attrs:{visible:t.customerShow,title:"请选择商城用户","show-close":!0,width:"1000px"},on:{"update:visible":function(e){t.customerShow=e}}},[t.customerShow?n("customerInfo",{on:{imageObject:t.imageObject}}):t._e()],1)],1)}),[],!1,null,"8201fe34",null),e.default=s.exports},"3d40":function(t,e,r){},"4d63":function(t,e,r){var n=r("83ab"),a=r("da84"),i=r("e330"),o=r("94ca"),s=r("7156"),c=r("9112"),l=r("241c").f,u=r("3a9b"),d=r("44e7"),f=r("577e"),h=r("90d8"),m=r("9f7f"),p=r("aeb0"),v=r("cb2d"),g=r("d039"),w=r("1a2d"),y=r("69f3").enforce,b=r("2626"),_=r("b622"),x=r("fce3"),k=r("107c"),L=_("match"),O=a.RegExp,S=O.prototype,j=a.SyntaxError,E=i(S.exec),V=i("".charAt),C=i("".replace),T=i("".indexOf),$=i("".slice),N=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,z=/a/g,I=/a/g,P=(r=new O(z)!==z,m.MISSED_STICKY),R=m.UNSUPPORTED_Y;_=n&&(!r||P||x||k||g((function(){return I[L]=!1,O(z)!=z||O(I)==I||"/a/i"!=O(z,"i")})));if(o("RegExp",_)){function F(t,e){var r,n,a=u(S,this),i=d(t),o=void 0===e,l=[],m=t;if(!a&&i&&o&&t.constructor===F)return t;if((i||u(S,t))&&(t=t.source,o&&(e=h(m))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,i=e=x&&"dotAll"in z&&(r=!!e&&-1<T(e,"s"))?C(e,/s/g,""):e,P&&"sticky"in z&&(n=!!e&&-1<T(e,"y"))&&R&&(e=C(e,/y/g,"")),k&&(t=(o=function(t){for(var e,r=t.length,n=0,a="",i=[],o={},s=!1,c=!1,l=0,u="";n<=r;n++){if("\\"===(e=V(t,n)))e+=V(t,++n);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:E(N,$(t,n+1))&&(n+=2,c=!0),a+=e,l++;continue;case">"===e&&c:if(""===u||w(o,u))throw new j("Invalid capture group name");o[u]=!0,c=!(i[i.length]=[u,l]),u="";continue}c?u+=e:a+=e}return[a,i]}(t))[0],l=o[1]),o=s(O(t,e),a?this:S,F),(r||n||l.length)&&(e=y(o),r&&(e.dotAll=!0,e.raw=F(function(t){for(var e,r=t.length,n=0,a="",i=!1;n<=r;n++)"\\"===(e=V(t,n))?a+=e+V(t,++n):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),a+=e):a+="[\\s\\S]";return a}(t),i)),n&&(e.sticky=!0),l.length&&(e.groups=l)),t!==m)try{c(o,"source",""===m?"(?:)":m)}catch(t){}return o}for(var M=l(O),G=0;M.length>G;)p(F,O,M[G++]);(S.constructor=F).prototype=S,v(a,"RegExp",F,{constructor:!0})}b("RegExp")},"61f7":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return l}));var n=r("fc11"),a=r("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r,n,a={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(r in a)new RegExp("(".concat(r,")")).test(e)&&(n=a[r]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?n:("00"+n).substr(n.length)));return e}r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("c607"),r("2c3e"),r("25f0"),r("498a"),r("d3b7"),r("b64b"),r("99af");var o={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function s(t,e){t.message=function(t){return e.replace("%s",t||"")}}function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)({required:!0,message:t,type:"string"},e)}function l(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(c,"请输入%s"),s(l,"%s格式不正确");var u=Object.keys(o).reduce((function(t,e){return t[e]=function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(n.a)({},e,t);return Object(a.a)(Object(a.a)({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),i)},s(t[e],o[e]),t}),{})},7655:function(t,e,r){},"8c03":function(t,e,r){"use strict";r.r(e);var n=r("0122"),a=r("c964"),i=(r("a15b"),r("d81d"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a"),r("90e7"));function o(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(e){u=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var i,o,s,c;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new k(n||[]);return a(e,"_invoke",{value:(i=t,o=r,s=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return O()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,a=e.iterator[n];return void 0===a?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=f(a,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(a=n.arg,a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",r=f(i,o,s),"normal"===r.type){if(c=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(c="completed",s.method="throw",s.arg=r.arg)}})}),e}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var h={};function m(){}function p(){}function v(){}i={};var g=(u(i,s,(function(){return this})),Object.getPrototypeOf),w=(g=g&&g(g(L([]))),g&&g!==e&&r.call(g,s)&&(i=g),v.prototype=m.prototype=Object.create(i));function y(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var i;a(this,"_invoke",{value:function(a,o){function s(){return new e((function(i,s){!function a(i,o,s,c){var l;i=f(t[i],t,o);if("throw"!==i.type)return(o=(l=i.arg).value)&&"object"==Object(n.a)(o)&&r.call(o,"__await")?e.resolve(o.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(o).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,c)}));c(i.arg)}(a,o,i,s)}))}return i=i?i.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var e,n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:O}}function O(){return{value:void 0,done:!0}}return a(w,"constructor",{value:p.prototype=v,configurable:!0}),a(v,"constructor",{value:p,configurable:!0}),p.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},y(b.prototype),u(b.prototype,c,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new b(d(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(w),u(w,l,"Generator"),u(w,s,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;0<=a;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,a=this.tryEntries[e];if(a.tryLoc===t)return"throw"===(r=a.completion).type&&(n=r.arg,x(a)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var s={name:"index",data:function(){return{formValidate:{page:1,limit:15,data:"",nickname:""},tableList2:[],timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},currentid:0,productRow:{},loading2:!1,total2:0}},created:function(){},mounted:function(){this.getListService()},methods:{onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal?this.timeVal.join("-"):"",this.getListService()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.getListService()},getListService:function(){var t=this;this.loading2=!0,Object(i.G)(this.formValidate).then(function(){var e=Object(a.a)(o().mark((function e(r){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tableList2=n.list,t.total2=n.count,t.tableList2.map((function(t){t._isChecked=!1})),t.loading2=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading2=!1,t.$message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getListService()},currentidRadio:function(t){self.currentid=t.uid,this.productRow=t,this.productRow.uid?"image"===this.$route.query.fodder?(t={image:this.productRow.headimgurl,uid:this.productRow.uid},form_create_helper.set("image",t),form_create_helper.close("image")):this.$emit("imageObject",{image:this.productRow.headimgurl,uid:this.productRow.uid}):this.$message.warning("请先选择商品")}}};r("c479"),r=r("2877"),r=Object(r.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"customer"},[r("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":"80px",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-form-item",{attrs:{label:"搜索日期:"}},[r("el-date-picker",{staticStyle:{width:"250px"},attrs:{editable:!1,"value-format":"yyyy/MM/dd",type:"daterange",placement:"bottom-end","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),r("el-form-item",{attrs:{label:"用户名称:"}},[r("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入用户名称"},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],ref:"selection",staticClass:"mt15",attrs:{"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果",data:t.tableList2,height:"450"}},[r("el-table-column",{attrs:{width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-radio",{attrs:{disabled:!!e.row.is_del,label:e.row.uid},on:{input:function(){return t.currentidRadio(e.row)}},model:{value:t.currentid,callback:function(e){t.currentid=e},expression:"currentid"}},[t._v(" ")])]}}])}),r("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.uid))])]}}])}),r("el-table-column",{attrs:{label:"微信用户名称","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.nickname))]),r("div",{staticStyle:{color:"red"}},[t._v(t._s(e.row.is_del?"用户已注销":""))])]}}])}),r("el-table-column",{attrs:{label:"客服头像","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.headimgurl,expression:"scope.row.headimgurl"}]})])]}}])}),r("el-table-column",{attrs:{label:"用户类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return["wechat"===e.row.user_type?r("span",[t._v("公众号")]):"routine"===e.row.user_type?r("span",[t._v("小程序")]):"h5"===e.row.user_type?r("span",[t._v("H5")]):"pc"===e.row.user_type?r("span",[t._v("PC")]):r("span",[t._v("--")])]}}])}),r("el-table-column",{attrs:{label:"性别","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{directives:[{name:"show",rawName:"v-show",value:1===e.row.sex,expression:"scope.row.sex === 1"}]},[t._v("男")]),r("span",{directives:[{name:"show",rawName:"v-show",value:2===e.row.sex,expression:"scope.row.sex === 2"}]},[t._v("女")]),r("span",{directives:[{name:"show",rawName:"v-show",value:0===e.row.sex,expression:"scope.row.sex === 0"}]},[t._v("保密")]),r("span",{directives:[{name:"show",rawName:"v-show",value:null===e.row.sex,expression:"scope.row.sex === null"}]},[t._v("--")])]}}])}),r("el-table-column",{attrs:{label:"是否关注公众号","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{domProps:{textContent:t._s(1===e.row.subscribe?"关注":"未关注")}})]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.total2?r("pagination",{attrs:{total:t.total2,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getListService}}):t._e()],1)],1)}),[],!1,null,"2f15f824",null);e.default=r.exports},"975d":function(t,e,r){"use strict";var n=r("7655");r.n(n).a},a584:function(t,e,r){"use strict";var n={name:"cards",data:function(){return{colsize:{xl:4,lg:8,md:12}}},props:{cardLists:Array},methods:{},created:function(){switch(this.cardLists.length){case 1:this.colsize.xl=24,this.colsize.lg=24,this.colsize.md=24;break;case 2:this.colsize.xl=12,this.colsize.lg=12,this.colsize.md=12;break;case 3:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=8;break;case 4:this.colsize.xl=6,this.colsize.lg=6,this.colsize.md=12;break;case 5:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=12;break;default:this.colsize.xl=4,this.colsize.lg=8,this.colsize.md=12}4==this.cardLists.length?this.colsize.lg=6:4==this.cardLists.length&&(this.colsize.lg=8)}};r("975d"),r=r("2877"),r=Object(r.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:24}},t._l(t.cardLists,(function(e,n){return r("el-col",{key:n,staticClass:"ivu-mb",attrs:{xl:e.col||t.colsize.xl,lg:t.colsize.lg,md:t.colsize.md,sm:24,xs:24}},[r("el-card",{staticClass:"card_cent",attrs:{shadow:"never"}},[r("div",{staticClass:"card_box"},[r("div",{staticClass:"card_box_cir",class:{one:n%5==0,two:n%5==1,three:n%5==2,four:n%5==3,five:n%5==4}},[r("div",{staticClass:"card_box_cir1",class:{one1:n%5==0,two1:n%5==1,three1:n%5==2,four1:n%5==3,five1:n%5==4}},[r("span",{staticClass:"iconfont",class:e.className})])]),r("div",{staticClass:"card_box_txt"},[r("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),r("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"0eb9e1a0",null);e.a=r.exports},b850:function(t,e,r){"use strict";var n=r("eee7");r.n(n).a},bbbc:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"n",(function(){return o})),r.d(e,"m",(function(){return s})),r.d(e,"h",(function(){return c})),r.d(e,"j",(function(){return l})),r.d(e,"i",(function(){return u})),r.d(e,"o",(function(){return d})),r.d(e,"l",(function(){return f})),r.d(e,"f",(function(){return h})),r.d(e,"a",(function(){return m})),r.d(e,"e",(function(){return p})),r.d(e,"k",(function(){return v})),r.d(e,"d",(function(){return g})),r.d(e,"g",(function(){return w})),r("99af");var n=r("6b6c");function a(t){return Object(n.a)({url:"agent/index",method:"get",params:t})}function i(t){return Object(n.a)({url:"agent/spread",method:"PUT",data:t})}function o(t){return Object(n.a)({url:"agent/statistics",method:"get",params:t})}function s(t,e){return Object(n.a)({url:t,method:"get",params:e})}function c(t){return Object(n.a)({url:"agent/look_code",method:"get",params:t})}function l(t){return Object(n.a)({url:"agent/look_xcx_code",method:"get",params:t})}function u(t){return Object(n.a)({url:"agent/look_h5_code",method:"get",params:t})}function d(t){return Object(n.a)({url:"export/userAgent",method:"get",params:t})}function f(t){return Object(n.a)({url:"agent/division/list",method:"get",params:t})}function h(t){return Object(n.a)({url:"agent/division/agent_apply/list",method:"get",params:t})}function m(t){return Object(n.a)({url:"agent/division/agent/create/".concat(t),method:"get"})}function p(t,e){return Object(n.a)({url:"agent/division/examine_apply/".concat(t,"/").concat(e),method:"get"})}function v(t){return Object(n.a)({url:"agent/division/create/".concat(t),method:"get"})}function g(t){return Object(n.a)({url:"agent/division/down_list",method:"get",params:t})}function w(t){return Object(n.a)({url:"agent/division/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}},c479:function(t,e,r){"use strict";var n=r("f691");r.n(n).a},c607:function(t,e,r){var n=r("da84"),a=r("83ab"),i=r("fce3"),o=r("c6b6"),s=r("edd0"),c=r("69f3").get,l=RegExp.prototype,u=n.TypeError;a&&i&&s(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!c(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},eee7:function(t,e,r){},f691:function(t,e,r){},f6e5:function(t,e,r){"use strict";var n=r("3d40");r.n(n).a}}]);