CRMEB/crmeb/public/admin/system_static/js/chunk-32573345.ca85f821.js
2023-04-06 18:14:33 +08:00

1 line
29 KiB
JavaScript
Raw 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-32573345"],{"0436":function(t,e,a){"use strict";var r={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(){}}};a("53ca"),a=a("2877"),a=Object(a.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Form",{ref:"orderData",staticClass:"tabform",attrs:{"label-width":80,"label-position":"right"}},[t._l(t.fromList,(function(e,r){return a("Row",{key:r,attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{xl:8,lg:8,md:8,sm:24,xs:24}},[a("FormItem",{attrs:{label:e.title+""}},[a("RadioGroup",{attrs:{type:"button"},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}},t._l(e.fromTxt,(function(r,n){return a("Radio",{key:n,attrs:{label:r.text}},[t._v(t._s(r.text)+t._s(e.num))])})),1)],1)],1),e.custom?a("Col",[a("FormItem",{staticClass:"tab_data"},[a("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!1,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间"}})],1)],1):t._e()],1)})),t.isExist.existOne?a("Row",{attrs:{gutter:24,type:"flex"}},[a("Col",{staticClass:"mr",attrs:{span:"10"}},[a("FormItem",{attrs:{label:t.searchFrom.title+"",prop:"real_name","label-for":"real_name"}},[a("Input",{attrs:{search:"","enter-button":"",placeholder:t.searchFrom.place,"element-id":"name"}})],1)],1),a("Col",[a("Button",{staticClass:"mr"},[t._v("导出")]),a("span",{staticClass:"Refresh"},[t._v("刷新")]),a("Icon",{attrs:{type:"ios-refresh"}})],1)],1):t._e(),t.isExist.existTwo?a("Row",{staticClass:"withdrawal",attrs:{gutter:24,type:"flex"}},[a("Col",{staticClass:"item",attrs:{span:"2.5"}},[a("TreeSelect",{staticClass:"perW160",attrs:{data:t.treeData.withdrawal},on:{"on-change":t.changeTree},model:{value:t.withdrawalTxt,callback:function(e){t.withdrawalTxt=e},expression:"withdrawalTxt"}})],1),a("Col",{staticClass:"item",attrs:{span:"2.5"}},[a("TreeSelect",{staticClass:"perW160",attrs:{data:t.treeData.payment},on:{"on-change":t.changeTree},model:{value:t.paymentTxt,callback:function(e){t.paymentTxt=e},expression:"paymentTxt"}})],1),a("Col",{staticClass:"item",attrs:{span:"6"}},[a("Input",{attrs:{search:"","enter-button":"",placeholder:"微信名称、姓名、支付宝账号、银行卡号","element-id":"name"}})],1)],1):t._e()],2)],1)}),[],!1,null,"0c50e0aa",null);e.a=a.exports},1698:function(t,e,a){"use strict";a.d(e,"g",(function(){return n})),a.d(e,"f",(function(){return i})),a.d(e,"e",(function(){return o})),a.d(e,"h",(function(){return s})),a.d(e,"d",(function(){return c})),a.d(e,"c",(function(){return l})),a.d(e,"b",(function(){return u})),a.d(e,"a",(function(){return d}));var r=a("6b6c");function n(t){return Object(r.a)({url:"agent/level",method:"get",params:t})}function i(t,e){return Object(r.a)({url:e,method:"get",params:t})}function o(t,e){return Object(r.a)({url:e,method:"get",params:t})}function s(t){return Object(r.a)({url:t,method:"PUT"})}function c(t){return Object(r.a)({url:t,method:"PUT"})}function l(t){return Object(r.a)({url:"agent/level_task",method:"get",params:t})}function u(t,e){return Object(r.a)({url:e,method:"get",params:t})}function d(t,e){return Object(r.a)({url:e,method:"get",params:t})}},"2c3e":function(t,e,a){var r=a("da84"),n=a("83ab"),i=a("9f7f").MISSED_STICKY,o=a("c6b6"),s=a("edd0"),c=a("69f3").get,l=RegExp.prototype,u=r.TypeError;n&&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,a){"use strict";a.r(e);var r=a("c964"),n=a("f3f3"),i=(a("a15b"),a("96cf"),a("a584")),o=a("0436"),s=a("2f62"),c=a("bbbc"),l=a("61f7"),u={name:"promotersList",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(l.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(n.a)(Object(n.a)({},Object(s.e)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:100},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{onCancel:function(){this.formValidate={limit:7,page:1,nickname:"",data:"",type:"",order_id:"",uid:0}},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=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 n=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(c.m)(e,this.formValidate).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.data,n.tabList=r.list,n.total=r.count,"man"===n.listTitle?n.columns4=[{title:"UID",minWidth:80,key:"uid"},{title:"头像",key:"avatar",minWidth:80,render:function(t,e){return t("viewer",[t("div",{style:{width:"36px",height:"36px",borderRadius:"4px",cursor:"pointer"}},[t("img",{attrs:{src:e.row.avatar||a("7153")},style:{width:"100%",height:"100%"}})])])}},{title:"用户信息",key:"nickname",minWidth:120},{title:"是否推广员",key:"promoter_name",minWidth:100},{title:"推广人数",key:"spread_count",sortable:!0,minWidth:90},{title:"订单数",key:"order_count",sortable:!0,minWidth:90},{title:"绑定时间",slot:"add_time",sortable:!0,minWidth:130}]:n.columns4=[{title:"订单ID",key:"order_id"},{title:"用户信息",key:"user_info"},{title:"时间",key:"_add_time"},{title:"返佣金额",key:"brokerage_price",render:function(t,e){return t("viewer",[t("span",e.row.brokerage_price||0)])}}],n.loading=!1;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){n.loading=!1,n.tabList=[],n.$Message.error(t.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList(this.rowsList,this.listTitle)},userSearchs:function(){this.formValidate.page=1,this.getList(this.rowsList,this.listTitle)}}},d=a("2877"),m=(u=Object(d.a)(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"man"===t.listTitle?"统计推广人列表":"推广订单","mask-closable":!1,width:"900"},on:{"on-cancel":t.onCancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("div",{staticClass:"table_box"},[a("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{gutter:24,type:"flex",justify:"end"}},[a("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[a("FormItem",{attrs:{label:"时间选择:"}},[a("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(e,r){return a("Radio",{key:r,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),a("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间"},on:{"on-change":t.onchangeTime}})],1)],1),a("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[a("Col",{attrs:{xl:15,lg:15,md:20,sm:24,xs:24}},[a("FormItem",{attrs:{label:"用户类型:"}},[a("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":t.userSearchs},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(e,r){return a("Radio",{key:r,attrs:{label:e.val}},[t._v("\n "+t._s(e.text)+"\n ")])})),1)],1)],1),"man"===t.listTitle?a("Col",{attrs:{xl:15,lg:15,md:20,sm:24,xs:24}},[a("FormItem",{attrs:{label:"搜索:"}},[a("Input",{staticStyle:{width:"90%"},attrs:{search:"","enter-button":"",placeholder:"请输入请姓名、电话、UID"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1)],1):t._e(),"order"===t.listTitle?a("Col",{attrs:{xl:15,lg:15,md:20,sm:24,xs:24}},[a("FormItem",{attrs:{label:"订单号:"}},[a("Input",{staticStyle:{width:"90%"},attrs:{search:"","enter-button":"",placeholder:"请输入请订单号"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.order_id,callback:function(e){t.$set(t.formValidate,"order_id",e)},expression:"formValidate.order_id"}})],1)],1):t._e()],1)],1)],1)],1),a("Table",{ref:"selection",attrs:{columns:t.columns4,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","max-height":"400","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"add_time",fn:function(e){var r=e.row;return e.index,[a("div",[t._v(t._s(t._f("formatDate")(r.spread_time)))])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"2516260f",null).exports,a("8c03")),f=a("1698");i={name:"agentManage",components:{cardsData:i.a,searchFrom:o.a,promotersList:u,customerInfo:m.default},data:function(){return{customerShow:!1,promoterShow:!1,modals:!1,spinShow:!1,grid:{xl:7,lg:10,md:12,sm:24,xs:24},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"}]},rows:{},formValidate:{nickname:"",data:"",page:1,limit:15},date:"all",total:0,cardLists:[],loading:!1,tableList:[],timeVal:[],columns:[{title:"ID",key:"uid",width:80},{title:"头像",key:"headimgurl",minWidth:60,render:function(t,e){return t("viewer",[t("div",{style:{width:"36px",height:"36px",borderRadius:"4px",cursor:"pointer"}},[t("img",{attrs:{src:e.row.headimgurl||a("7153")},style:{width:"100%",height:"100%"}})])])}},{title:"用户信息",slot:"nickname",minWidth:120},{title:"推广用户数量",key:"spread_count",minWidth:125},{title:"分销等级",slot:"agentLevel",minWidth:120},{title:"订单数量",key:"order_count",minWidth:90},{title:"订单金额",key:"order_price",minWidth:120},{title:"佣金总金额",key:"brokerage_money",minWidth:120},{title:"已提现金额",key:"extract_count_price",minWidth:120},{title:"提现次数",key:"extract_count_num",minWidth:100},{title:"未提现金额",key:"new_money",minWidth:105},{title:"上级推广人",key:"spread_name",minWidth:105},{title:"操作",slot:"right",fixed:"right",minWidth:130}],code_src:"",code_xcx:"",code_h5:"",formInline:{uid:0,spread_uid:0,image:""}}},computed:Object(n.a)(Object(n.a)({},Object(s.e)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},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(a){if(a){if(!e.formInline.spread_uid)return e.$Message.error("请上传用户");Object(c.c)(e.formInline).then((function(a){e.promoterShow=!1,e.$Message.success(a.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(c.o)(e).then((function(t){location.href=t.data[0]})).catch((function(e){t.$Message.error(e.msg)}))},changeMenu:function(t,e,a){var r=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+" 】的上级推广人",a);break;case"5":this.del_agent(t,"取消【 "+t.nickname+" 】的推广资格",a);break;case"6":this.$modalForm(Object(f.e)({uid:t.uid},"/agent/get_level_form")).then((function(){return r.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,a){var r=this;e={title:e,num:a,url:"agent/stair/delete_spread/".concat(t.uid),method:"PUT",ids:""};this.$modalSure(e).then((function(t){r.$Message.success(t.msg),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},del_agent:function(t,e,a){var r=this;e={title:e,num:a,url:"agent/stair/delete_system_spread/".concat(t.uid),method:"PUT",ids:""};this.$modalSure(e).then((function(t){r.$Message.success(t.msg),r.getList()})).catch((function(t){r.$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(c.n)(e).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.cardLists=r.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.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(c.b)(this.formValidate).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.tableList=r.list,t.total=a.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)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList(),this.getStatistics()},spreadQR:function(t){this.modals=!0,this.rows=t},getWeChat:function(){var t=this,e=(this.spinShow=!0,{uid:this.rows.uid,action:"wechant_code"});Object(c.h)(e).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.code_src=r.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(c.j)(e).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.code_xcx=r.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(c.i)(e).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(a){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.code_h5=r.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)}))}}},a("6ff6"),o=Object(d.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",{attrs:{type:"flex",gutter:24}},[a("Col",{attrs:{span:"24"}},[a("FormItem",{attrs:{label:"时间选择:"}},[a("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(e,r){return a("Radio",{key:r,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),a("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!0,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间"},on:{"on-change":t.onchangeTime}})],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("FormItem",{attrs:{label:"搜索:","label-for":"status"}},[a("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入姓名、电话、UID"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1)],1),a("Col",t._b({},"Col",t.grid,!1),[a("Button",{directives:[{name:"auth",rawName:"v-auth",value:["export-userAgent"],expression:"['export-userAgent']"}],staticClass:"export",attrs:{icon:"ios-share-outline"},on:{click:t.exports}},[t._v("导出")])],1)],1)],1)],1),0<=t.cardLists.length?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("Table",{ref:"selection",staticClass:"ivu-mt",attrs:{columns:t.columns,data:t.tableList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"nickname",fn:function(e){return e=e.row,[a("div",{staticClass:"name"},[a("div",{staticClass:"item"},[t._v("昵称:"+t._s(e.nickname))]),a("div",{staticClass:"item"},[t._v("姓名:"+t._s(e.real_name))]),a("div",{staticClass:"item"},[t._v("电话:"+t._s(e.phone))])])]}},{key:"agentLevel",fn:function(e){return e=e.row,[a("div",[t._v(t._s(e.agentLevel?e.agentLevel.name:"--"))])]}},{key:"right",fn:function(e){var r=e.row,n=e.index;return[a("a",{on:{click:function(e){return t.promoters(r,"man")}}},[t._v("推广人")]),a("Divider",{attrs:{type:"vertical"}}),[a("Dropdown",{attrs:{transfer:!0},on:{"on-click":function(e){return t.changeMenu(r,e,n)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n 更多\n "),a("Icon",{attrs:{type:"ios-arrow-down"}})],1),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[a("DropdownItem",{attrs:{name:"1"}},[t._v("推广订单")]),a("DropdownItem",{attrs:{name:"2"}},[t._v("推广二维码")]),a("DropdownItem",{attrs:{name:"3"}},[t._v("修改上级推广人")]),r.spread_uid?a("DropdownItem",{attrs:{name:"4"}},[t._v("清除上级推广人")]):t._e(),a("DropdownItem",{attrs:{name:"5"}},[t._v("取消推广资格")]),a("DropdownItem",{attrs:{name:"6"}},[t._v("修改分销等级")])],1)],1)]]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),a("promoters-list",{ref:"promotersLists"}),a("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:"推广二维码","mask-closable":!1,width:"600"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[a("div",{staticClass:"acea-row row-around"},[a("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[t.code_src?a("div",{staticClass:"QRpic"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.code_src,expression:"code_src"}]})]):t._e(),a("span",{staticClass:"QRpic_sp1 mt10",on:{click:t.getWeChat}},[t._v("公众号推广二维码")])]),a("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[t.code_xcx?a("div",{staticClass:"QRpic"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.code_xcx,expression:"code_xcx"}]})]):t._e(),a("span",{staticClass:"QRpic_sp2 mt10",on:{click:t.getXcx}},[t._v("小程序推广二维码")])]),a("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[t.code_h5?a("div",{staticClass:"QRpic"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.code_h5,expression:"code_h5"}]})]):t._e(),a("span",{staticClass:"QRpic_sp2 mt10",on:{click:t.getH5}},[t._v("H5推广二维码")])])]),t.spinShow?a("Spin",{attrs:{size:"large",fix:""}}):t._e()],1),a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"修改推广人",closable:!1},model:{value:t.promoterShow,callback:function(e){t.promoterShow=e},expression:"promoterShow"}},[a("Form",{ref:"formInline",attrs:{model:t.formInline,"label-width":100},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"用户头像:",prop:"image"}},[a("div",{staticClass:"picBox",on:{click:t.customer}},[t.formInline.image?a("div",{staticClass:"pictrue"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formInline.image,expression:"formInline.image"}]})]):a("div",{staticClass:"upLoad acea-row row-center-wrapper"},[a("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)])])],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putSend("formInline")}}},[t._v("提交")]),a("Button",{on:{click:function(e){return t.cancel("formInline")}}},[t._v("取消")])],1)],1),a("Modal",{attrs:{scrollable:"",title:"请选择商城用户",closable:!1,width:"50%"},model:{value:t.customerShow,callback:function(e){t.customerShow=e},expression:"customerShow"}},[t.customerShow?a("customerInfo",{on:{imageObject:t.imageObject}}):t._e()],1)],1)}),[],!1,null,"2261561b",null);e.default=o.exports},"4d63":function(t,e,a){var r=a("83ab"),n=a("da84"),i=a("e330"),o=a("94ca"),s=a("7156"),c=a("9112"),l=a("241c").f,u=a("3a9b"),d=a("44e7"),m=a("577e"),f=a("90d8"),h=a("9f7f"),p=a("aeb0"),g=a("cb2d"),b=a("d039"),v=a("1a2d"),x=a("69f3").enforce,w=a("2626"),_=a("b622"),y=a("fce3"),k=a("107c"),C=_("match"),j=n.RegExp,O=j.prototype,S=n.SyntaxError,V=i(O.exec),I=i("".charAt),L=i("".replace),R=i("".indexOf),T=i("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,$=/a/g,D=/a/g,E=(a=new j($)!==$,h.MISSED_STICKY),W=h.UNSUPPORTED_Y;_=r&&(!a||E||y||k||b((function(){return D[C]=!1,j($)!=$||j(D)==D||"/a/i"!=j($,"i")})));if(o("RegExp",_)){function F(t,e){var a,r,n=u(O,this),i=d(t),o=void 0===e,l=[],h=t;if(!n&&i&&o&&t.constructor===F)return t;if((i||u(O,t))&&(t=t.source,o&&(e=f(h))),t=void 0===t?"":m(t),e=void 0===e?"":m(e),h=t,i=e=y&&"dotAll"in $&&(a=!!e&&-1<R(e,"s"))?L(e,/s/g,""):e,E&&"sticky"in $&&(r=!!e&&-1<R(e,"y"))&&W&&(e=L(e,/y/g,"")),k&&(t=(o=function(t){for(var e,a=t.length,r=0,n="",i=[],o={},s=!1,c=!1,l=0,u="";r<=a;r++){if("\\"===(e=I(t,r)))e+=I(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:V(M,T(t,r+1))&&(r+=2,c=!0),n+=e,l++;continue;case">"===e&&c:if(""===u||v(o,u))throw new S("Invalid capture group name");o[u]=!0,c=!(i[i.length]=[u,l]),u="";continue}c?u+=e:n+=e}return[n,i]}(t))[0],l=o[1]),o=s(j(t,e),n?this:O,F),(a||r||l.length)&&(e=x(o),a&&(e.dotAll=!0,e.raw=F(function(t){for(var e,a=t.length,r=0,n="",i=!1;r<=a;r++)"\\"===(e=I(t,r))?n+=e+I(t,++r):i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),n+=e):n+="[\\s\\S]";return n}(t),i)),r&&(e.sticky=!0),l.length&&(e.groups=l)),t!==h)try{c(o,"source",""===h?"(?:)":h)}catch(t){}return o}for(var P=l(j),z=0;P.length>z;)p(F,j,P[z++]);(O.constructor=F).prototype=O,g(n,"RegExp",F,{constructor:!0})}w("RegExp")},"509a":function(t,e,a){},"53ca":function(t,e,a){"use strict";var r=a("509a");a.n(r).a},"61f7":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"c",(function(){return c})),a.d(e,"b",(function(){return l}));var r=a("fc11"),n=a("f3f3");function i(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var a,r,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(a in n)new RegExp("(".concat(a,")")).test(e)&&(r=n[a]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?r:("00"+r).substr(r.length)));return e}a("ac1f"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e"),a("25f0"),a("498a"),a("d3b7"),a("b64b"),a("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(n.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 a=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(r.a)({},e,t);return Object(n.a)(Object(n.a)({message:a.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),i)},s(t[e],o[e]),t}),{})},"6ff6":function(t,e,a){"use strict";var r=a("7e11");a.n(r).a},7443:function(t,e,a){"use strict";var r=a("b627");a.n(r).a},"7e11":function(t,e,a){},a584:function(t,e,a){"use strict";var r={name:"cards",data:function(){return{}},props:{cardLists:Array},methods:{},created:function(){}};a("7443"),a=a("2877"),a=Object(a.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:10}},t._l(t.cardLists,(function(e,r){return a("Col",{key:r,staticClass:"ivu-mb",attrs:{xl:e.col,lg:6,md:12,sm:24,xs:24}},[a("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[a("Icon",{attrs:{type:e.className}})],1)]),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"e3e38522",null);e.a=a.exports},b627:function(t,e,a){},bbbc:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"n",(function(){return o})),a.d(e,"m",(function(){return s})),a.d(e,"h",(function(){return c})),a.d(e,"j",(function(){return l})),a.d(e,"i",(function(){return u})),a.d(e,"o",(function(){return d})),a.d(e,"l",(function(){return m})),a.d(e,"f",(function(){return f})),a.d(e,"a",(function(){return h})),a.d(e,"e",(function(){return p})),a.d(e,"k",(function(){return g})),a.d(e,"d",(function(){return b})),a.d(e,"g",(function(){return v})),a("99af");var r=a("6b6c");function n(t){return Object(r.a)({url:"agent/index",method:"get",params:t})}function i(t){return Object(r.a)({url:"agent/spread",method:"PUT",data:t})}function o(t){return Object(r.a)({url:"agent/statistics",method:"get",params:t})}function s(t,e){return Object(r.a)({url:t,method:"get",params:e})}function c(t){return Object(r.a)({url:"agent/look_code",method:"get",params:t})}function l(t){return Object(r.a)({url:"agent/look_xcx_code",method:"get",params:t})}function u(t){return Object(r.a)({url:"agent/look_h5_code",method:"get",params:t})}function d(t){return Object(r.a)({url:"export/userAgent",method:"get",params:t})}function m(t){return Object(r.a)({url:"agent/division/list",method:"get",params:t})}function f(t){return Object(r.a)({url:"agent/division/agent_apply/list",method:"get",params:t})}function h(t){return Object(r.a)({url:"agent/division/agent/create/".concat(t),method:"get"})}function p(t,e){return Object(r.a)({url:"agent/division/examine_apply/".concat(t,"/").concat(e),method:"get"})}function g(t){return Object(r.a)({url:"agent/division/create/".concat(t),method:"get"})}function b(t){return Object(r.a)({url:"agent/division/down_list",method:"get",params:t})}function v(t){return Object(r.a)({url:"agent/division/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}},c607:function(t,e,a){var r=a("da84"),n=a("83ab"),i=a("fce3"),o=a("c6b6"),s=a("edd0"),c=a("69f3").get,l=RegExp.prototype,u=r.TypeError;n&&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")}}})},edd0:function(t,e,a){var r=a("13d2"),n=a("9bf2");t.exports=function(t,e,a){return a.get&&r(a.get,e,{getter:!0}),a.set&&r(a.set,e,{setter:!0}),n.f(t,e,a)}}}]);