mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-04 19:08:13 +00:00
1 line
60 KiB
JavaScript
1 line
60 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-49fc2dbf"],{"08ea":function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d28b"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("b0c0"),r("131a"),r("fb6a");var a=r("0122"),n=r("d0ff"),o=r("c964"),i=r("f3f3"),s=(r("d3b7"),r("6062"),r("3ca3"),r("ddb0"),r("d81d"),r("a15b"),r("159b"),r("e9c4"),r("99af"),r("232f")),l=r("2f62"),c=r("61f7"),u={name:"table-expand",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.a)(t,"yyyy-MM-dd hh:mm")}},props:{row:Object}},d=(r("e258"),r("2877")),m=Object(d.a)(u,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("Row",{staticClass:"expand-row"},[e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("首次访问:")]),e("span",{staticClass:"expand-value"},[t._v(" "+t._s(t._f("formatDate")(t.row.add_time)))])]),e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("近次访问:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t._f("formatDate")(t.row.last_time)))])]),e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("身份证号:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.card_id))])]),e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("真实姓名:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.real_name))])])],1),e("Row",{staticClass:"expand-row"},[e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("标签:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.labels))])]),e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("生日:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.birthday))])]),e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("推荐人:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.spread_uid_nickname))])]),e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("地址:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.addres))])])],1),e("Row",{staticClass:"expand-row"},[e("Col",{attrs:{span:"6"}},[e("span",{staticClass:"expand-key"},[t._v("备注:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.mark))])])],1)],1)}),[],!1,null,"73d11289",null).exports,h=(u=r("fc11"),r("b64b"),r("4de4"),r("a434"),r("c24f")),f=(u={name:"userEdit",components:{userLabel:s.a},props:{userData:{type:Object,default:function(){}}},watch:{},data:function(){return{modals:!1,labelShow:!1,formItem:{uid:0,real_name:"",phone:"",birthday:"",card_id:"",addres:"",mark:"",pwd:"",true_pwd:"",level:"",group_id:"",label_id:[],spread_open:0,is_promoter:0,status:1},groupInfo:[],labelInfo:[],levelInfo:[],infoData:{groupInfo:[],labelInfo:[],levelInfo:[]},ruleValidate:{real_name:[{required:!0,message:" ",trigger:"blur"}],phone:[{required:!0,message:" ",trigger:"blur"}],pwd:[{required:!0,message:" ",trigger:"blur"}],true_pwd:[{required:!0,message:" ",trigger:"blur"}]},dataLabel:[]}},mounted:function(){var t=this,e=(this.$set(this.infoData,"groupInfo",this.userData.groupInfo),this.$set(this.infoData,"levelInfo",this.userData.levelInfo),this.$set(this.infoData,"labelInfo",this.userData.labelInfo),Object.keys(this.formItem));this.userData.userInfo?(e.map((function(e){t.formItem[e]=t.userData.userInfo[e]})),this.formItem.birthday||(this.formItem.birthday=""),this.formItem.label_id.length&&(this.dataLabel=this.formItem.label_id)):this.reset()},methods:(f={addLabel:function(){this.$modalForm(Object(h.M)(0)).then((function(){}))},closeLabel:function(t){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1)},changeModal:function(t){t||(this.cancel(),this.reset())},openLabel:function(t){this.labelShow=!0,this.$refs.userLabel.userLabel(JSON.parse(JSON.stringify(this.infoData.labelInfo)))},cancel:function(){},activeData:function(t){this.labelShow=!1,this.dataLabel=t},labelClose:function(){this.labelShow=!1}},Object(u.a)(f,"closeLabel",(function(t){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1)})),Object(u.a)(f,"reset",(function(){this.formItem={uid:"",real_name:"",phone:"",birthday:"",card_id:"",addres:"",mark:"",pwd:"",true_pwd:"",level:"",group_id:"",label_id:[],spread_open:0,is_promoter:0,status:1}})),f)},r("2404"),Object(d.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Form",{ref:"formItem",attrs:{rules:t.ruleValidate,model:t.formItem,"label-width":100},nativeOn:{submit:function(t){t.preventDefault()}}},[t.formItem.uid?r("FormItem",{attrs:{label:"用户ID:"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{disabled:"",placeholder:"请输入编号"},model:{value:t.formItem.uid,callback:function(e){t.$set(t.formItem,"uid",e)},expression:"formItem.uid"}})],1):t._e(),r("FormItem",{attrs:{label:"真实姓名:",prop:"real_name"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入真实姓名"},model:{value:t.formItem.real_name,callback:function(e){t.$set(t.formItem,"real_name","string"==typeof e?e.trim():e)},expression:"formItem.real_name"}})],1),r("FormItem",{attrs:{label:"手机号码:",prop:"phone"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入手机号码"},model:{value:t.formItem.phone,callback:function(e){t.$set(t.formItem,"phone",e)},expression:"formItem.phone"}})],1),r("FormItem",{attrs:{label:"生日:"}},[r("DatePicker",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{type:"date",value:t.formItem.birthday,placeholder:"请选择生日",format:"yyyy-MM-dd"},on:{"on-change":function(e){t.formItem.birthday=e}}})],1),r("FormItem",{attrs:{label:"身份证号:"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入身份证号"},model:{value:t.formItem.card_id,callback:function(e){t.$set(t.formItem,"card_id","string"==typeof e?e.trim():e)},expression:"formItem.card_id"}})],1),r("FormItem",{attrs:{label:"用户地址:"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入用户地址"},model:{value:t.formItem.addres,callback:function(e){t.$set(t.formItem,"addres",e)},expression:"formItem.addres"}})],1),r("FormItem",{attrs:{label:"用户备注:"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入用户备注"},model:{value:t.formItem.mark,callback:function(e){t.$set(t.formItem,"mark",e)},expression:"formItem.mark"}})],1),r("FormItem",{attrs:{label:"登录密码:",prop:"pwd"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{type:"password",placeholder:"请输入登录密码(修改用户可不填写,不填写不修改原密码)"},model:{value:t.formItem.pwd,callback:function(e){t.$set(t.formItem,"pwd",e)},expression:"formItem.pwd"}})],1),r("FormItem",{attrs:{label:"确认密码:",prop:"true_pwd"}},[r("Input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{type:"password",placeholder:"请输入确认密码(修改用户可不填写,不填写不修改原密码)"},model:{value:t.formItem.true_pwd,callback:function(e){t.$set(t.formItem,"true_pwd",e)},expression:"formItem.true_pwd"}})],1),r("FormItem",{attrs:{label:"用户等级:"}},[r("Select",{staticClass:"form-sty",attrs:{clearable:""},model:{value:t.formItem.level,callback:function(e){t.$set(t.formItem,"level",e)},expression:"formItem.level"}},t._l(t.infoData.levelInfo,(function(e,a){return r("Option",{key:a,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1),r("FormItem",{attrs:{label:"用户分组:"}},[r("Select",{staticClass:"form-sty",attrs:{clearable:""},model:{value:t.formItem.group_id,callback:function(e){t.$set(t.formItem,"group_id",e)},expression:"formItem.group_id"}},t._l(t.infoData.groupInfo,(function(e,a){return r("Option",{key:a,attrs:{value:e.id}},[t._v(t._s(e.group_name))])})),1)],1),r("FormItem",{attrs:{label:"用户标签:"}},[r("div",{staticStyle:{display:"flex"}},[r("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openLabel}},[r("div",{staticStyle:{width:"90%"}},[t.dataLabel.length?r("div",t._l(t.dataLabel,(function(e,a){return r("Tag",{key:a,attrs:{closable:""},on:{"on-close":function(r){return t.closeLabel(e)}}},[t._v(t._s(e.label_name))])})),1):r("span",{staticClass:"span"},[t._v("选择用户关联标签")])]),r("div",{staticClass:"ivu-icon ivu-icon-ios-arrow-down"})]),r("span",{staticClass:"addfont",on:{click:t.addLabel}},[t._v("新增标签")])])]),r("FormItem",{attrs:{label:"推广资格:"}},[r("RadioGroup",{staticClass:"form-sty",model:{value:t.formItem.spread_open,callback:function(e){t.$set(t.formItem,"spread_open",e)},expression:"formItem.spread_open"}},[r("Radio",{attrs:{label:1}},[t._v("启用")]),r("Radio",{attrs:{label:0}},[t._v("禁用")])],1),r("div",{staticClass:"tip"},[t._v("禁用用户的推广资格后,在任何分销模式下该用户都无分销权限")])],1),r("FormItem",{attrs:{label:"推广权限:"}},[r("RadioGroup",{staticClass:"form-sty",model:{value:t.formItem.is_promoter,callback:function(e){t.$set(t.formItem,"is_promoter",e)},expression:"formItem.is_promoter"}},[r("Radio",{attrs:{label:1}},[t._v("开启")]),r("Radio",{attrs:{label:0}},[t._v("锁定")]),r("div",{staticClass:"tip"},[t._v("指定分销模式下,开启或关闭用户的推广权限")])],1)],1),r("FormItem",{attrs:{label:"用户状态:"}},[r("RadioGroup",{staticClass:"form-sty",model:{value:t.formItem.status,callback:function(e){t.$set(t.formItem,"status",e)},expression:"formItem.status"}},[r("Radio",{attrs:{label:1}},[t._v("开启")]),r("Radio",{attrs:{label:0}},[t._v("锁定")])],1)],1)],1),r("Modal",{attrs:{scrollable:"",title:"请选择用户标签",closable:!1,width:"500","footer-hide":!0},model:{value:t.labelShow,callback:function(e){t.labelShow=e},expression:"labelShow"}},[t.labelShow?r("userLabel",{attrs:{only_get:!0,uid:t.formItem.uid},on:{close:t.labelClose,activeData:t.activeData}}):t._e()],1)],1)}),[],!1,null,"be053af2",null).exports),p=r("bbbc"),v=r("3f2a"),g=(u=r("31b4"),r("a8e0")),b=r("a716"),_=r("c42b"),y=r("8c03"),w=r("b562");function x(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */x=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var o,i,s,l;e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),a=new k(a||[]);return n(e,"_invoke",{value:(o=t,i=r,s=a,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return L()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,n=e.iterator[a];return void 0===n?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),m):(a=d(n,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,m):(n=a.arg,n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,m):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)))}(r,s),r)){if(r===m)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(o,i,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===m)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="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 m={};function h(){}function f(){}function p(){}o={};var v=(c(o,i,(function(){return this})),Object.getPrototypeOf),g=(v=v&&v(v(I([]))),v&&v!==e&&r.call(v,i)&&(o=v),p.prototype=h.prototype=Object.create(o));function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var o;n(this,"_invoke",{value:function(n,i){function s(){return new e((function(o,s){!function n(o,i,s,l){var c;o=d(t[o],t,i);if("throw"!==o.type)return(i=(c=o.arg).value)&&"object"==Object(a.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(i).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,i,o,s)}))}return o=o?o.then(s,s):s()}})}function y(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 w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function I(t){if(t){var e,a=t[i];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:L}}function L(){return{value:void 0,done:!0}}return n(g,"constructor",{value:f.prototype=p,configurable:!0}),n(p,"constructor",{value:f,configurable:!0}),f.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(_.prototype),c(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new _(u(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),c(g,l,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=I,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(w),!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 a(r,a){return i.type="throw",i.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},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),m},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),w(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(a=r.arg,w(n)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},t}u={name:"user_list",components:{expandRow:m,editFrom:u.a,sendFrom:g.a,userDetails:b.a,newsCategory:_.a,customerInfo:y.default,userLabel:s.a,userEdit:f},data:function(){return{dataLabel:[],selectDataLabel:[],userData:{},modals:!1,selectLabelShow:!1,labelShow:!1,customerShow:!1,promoterShow:!1,labelActive:{uid:0},formInline:{uid:0,spread_uid:0,image:""},options:{shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]},collapse:!1,headeNum:[{type:"",name:"全部"},{type:"wechat",name:"微信公众号"},{type:"routine",name:"微信小程序"},{type:"h5",name:"H5"},{type:"pc",name:"PC"},{type:"app",name:"APP"}],address:[],addresData:[],isShowSend:!0,modal13:!1,maxCols:4,scrollerHeight:"600",contentTop:"130",contentWidth:"98%",grid:{xl:8,lg:12,md:12,sm:24,xs:24},grid2:{xl:18,lg:16,md:12,sm:24,xs:24},loading:!1,total:0,userFrom:{label_id:"",user_type:"",status:"",sex:"",is_promoter:"",country:"",isMember:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",province:"",city:"",page:1,limit:15,level:"",group_id:"",field_key:""},field_key:"",level:"",group_id:"",label_id:"",user_time_type:"",pay_count:"",columns:[{type:"expand",width:40,render:function(t,e){return t(m,{props:{row:e.row}})}},{type:"selection",width:60,align:"center"},{title:"用户ID",key:"uid",width:80},{title:"头像",slot:"avatars",minWidth:60},{title:"姓名",slot:"nickname",minWidth:150},{title:"付费会员",slot:"isMember",minWidth:90},{title:"用户等级",key:"level",minWidth:90},{title:"分组",key:"group_id",minWidth:100},{title:"手机号",key:"phone",minWidth:100},{title:"用户类型",key:"user_type",minWidth:100},{title:"余额",key:"now_money",sortable:"custom",minWidth:100},{title:"操作",slot:"action",fixed:"right",minWidth:120}],userLists:[],FromData:null,selectionList:[],user_ids:"",selectedData:[],timeVal:[],groupList:[],levelList:[],labelFrom:{page:1,limit:""},labelLists:[],selectedIds:new Set,ids:[]}},computed:Object(i.a)(Object(i.a)({},Object(l.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:100},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList(),this.getCityList()},mounted:function(){this.userGroup(),this.levelLists()},methods:{getCityList:function(){var t=this;Object(w.b)().then((function(e){t.addresData=e.data}))},setUser:function(){var t=this,e=this.$refs.userEdit.formItem,r=[];this.$refs.userEdit.dataLabel.map((function(t){r.push(t.id)})),e.label_id=r,e.uid?Object(h.h)(e).then((function(e){t.modals=!1,t.$Message.success(e.msg),t.getList()})).catch((function(e){t.$Message.error(e.msg)})):Object(h.G)(e).then((function(e){t.modals=!1,t.$Message.success(e.msg),t.getList()})).catch((function(e){t.$Message.error(e.msg)}))},onceGetList:function(){this.labelActive.uid=0,this.getList()},labelClose:function(){this.labelActive.uid=0,this.labelShow=!1,this.selectLabelShow=!1},putSend:function(t){var e=this;this.$refs[t].validate((function(r){if(r){if(!e.formInline.spread_uid)return e.$Message.error("请上传用户");Object(p.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)}))}}))},save:function(){this.modals=!0},synchro:function(){var t=this;Object(h.X)().then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))},groupLists:function(){var t=this;this.loading=!0,Object(h.O)(this.labelFrom).then(function(){var e=Object(o.a)(x().mark((function e(r){var a;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.data,t.labelLists=a.list;case 2: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)}))},onClickTab:function(t){this.userFrom.page=1,this.userFrom.user_type=t,this.getList()},userGroup:function(){var t=this;Object(h.L)({page:1,limit:""}).then((function(e){t.groupList=e.data.list}))},levelLists:function(){var t=this;Object(h.p)({page:1,limit:"",title:"",is_show:1}).then((function(e){t.levelList=e.data.list}))},setGroup:function(){var t,e=this;0===this.ids.length?this.$Message.warning("请选择要设置分组的用户"):(t={uids:this.ids},this.$modalForm(Object(h.W)(t)).then((function(){return e.getList()})))},setLabel:function(){0===this.ids.length?this.$Message.warning("请选择要设置标签的用户"):(this.ids,this.labelActive.uid=0,this.labelShow=!0)},activeSelectData:function(t){this.selectLabelShow=!1,this.selectDataLabel=t||[]},activeData:function(t){var e=this,r=[];t.length&&(t.map((function(t){r.push(t.id)})),Object(h.B)({uids:this.ids.join(","),label_id:r}).then((function(t){e.labelShow=!1,e.selectedIds=new Set,e.getList(),e.$Message.success(t.msg)})))},changeMember:function(){this.userFrom.page=1,this.getList()},changeCountry:function(){"abroad"!==this.userFrom.country&&this.userFrom.country||(this.selectedData=[],this.userFrom.province="",this.userFrom.city="",this.address=[])},handleChange:function(t,e){this.selectedData=e.map((function(t){return t.label})),this.userFrom.province=this.selectedData[0],this.userFrom.city=this.selectedData[1]},onchangeTime:function(t){this.timeVal=t,this.userFrom.user_time=this.timeVal.join("-")},userDetail:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.getDetails(t.uid)},changeMenu:function(t,e,r){var a=this,n=[],o=(n.push(t.uid),{uids:n});switch(e){case"1":this.edit(t);break;case"2":this.getOtherFrom(t.uid);break;case"3":this.giveLevelTime(t.uid);break;case"4":this.del(t,"清除 【 "+this.tenText(t.nickname)+" 】的会员等级",r,"user");break;case"5":this.$modalForm(Object(h.W)(o)).then((function(){return a.getList()}));break;case"6":this.openLabel(t);break;case"7":this.editS(t);break;default:this.del(t,"解除【 "+this.tenText(t.nickname)+" 】的上级推广人",r,"tuiguang")}},tenText:function(t){return 10<t.length?t.substr(0,10)+"...":t},openLabel:function(t){this.labelShow=!0,this.labelActive.uid=t.uid},openSelectLabel:function(){this.selectLabelShow=!0},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},cancel:function(t){this.promoterShow=!1,this.$refs[t].resetFields()},giveLevel:function(t){var e=this;this.$modalForm(Object(h.k)(t)).then((function(){return e.getList(1)}))},giveLevelTime:function(t){var e=this;this.$modalForm(Object(h.l)(t)).then((function(){return e.getList(1)}))},del:function(t,e,r,a){var n=this;e={title:e,num:r,url:("user"===a?"user/del_level/":"agent/stair/delete_spread/").concat(t.uid),method:"user"===a?"DELETE":"PUT",ids:"",width:600};this.$modalSure(e).then((function(t){n.$Message.success(t.msg),n.getList()})).catch((function(t){n.$Message.error(t.msg)}))},submitModel:function(){this.getList()},getList:function(){var t,e=this;this.selectDataLabel.length&&(t=[],this.selectDataLabel.forEach((function(e){t.push(e.id)})),this.userFrom.label_id=t.join(",")),this.userFrom.user_type=this.userFrom.user_type||"",this.userFrom.status=this.userFrom.status||"",this.userFrom.sex=this.userFrom.sex||"",this.userFrom.is_promoter=this.userFrom.is_promoter||"",this.userFrom.country=this.userFrom.country||"",this.userFrom.pay_count="all"===this.pay_count?"":this.pay_count,this.userFrom.user_time_type="all"===this.user_time_type?"":this.user_time_type,this.userFrom.field_key="all"===this.field_key?"":this.field_key,this.userFrom.level="all"===this.level?"":this.level,this.userFrom.group_id="all"===this.group_id?"":this.group_id,this.loading=!0,Object(h.R)(this.userFrom).then(function(){var t=Object(o.a)(x().mark((function t(r){var a;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=r.data,e.userLists=a.list,e.total=a.count,e.loading=!1,e.$nextTick((function(){e.setChecked()}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},exportList:function(){var t=this;return Object(o.a)(x().mark((function e(){var r,a,n,o,i,s,l,c;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.selectDataLabel.length&&(r=[],t.selectDataLabel.forEach((function(t){r.push(t.id)})),t.userFrom.label_id=r.join(",")),t.ids.length&&(t.userFrom.ids=t.ids),t.userFrom.user_type=t.userFrom.user_type||"",t.userFrom.status=t.userFrom.status||"",t.userFrom.sex=t.userFrom.sex||"",t.userFrom.is_promoter=t.userFrom.is_promoter||"",t.userFrom.country=t.userFrom.country||"",t.userFrom.pay_count="all"===t.pay_count?"":t.pay_count,t.userFrom.user_time_type="all"===t.user_time_type?"":t.user_time_type,t.userFrom.field_key="all"===t.field_key?"":t.field_key,t.userFrom.level="all"===t.level?"":t.level,t.userFrom.group_id="all"===t.group_id?"":t.group_id,a=[],n=[],o=[],i="",(s=JSON.parse(JSON.stringify(t.userFrom))).page=1,l=0;case 16:if(l<s.page+1)return e.next=19,t.getExcelData(s);e.next=33;break;case 19:c=e.sent,i=i||c.filename,n.length||(n=c.fileKey),a.length||(a=c.header),c.export.length?(o=o.concat(c.export),s.page++,e.next=30):e.next=28;break;case 28:return t.$exportExcel(a,n,i,o),e.abrupt("return");case 30:l++,e.next=16;break;case 33:case"end":return e.stop()}}),e)})))()},getExcelData:function(t){return new Promise((function(e,r){Object(v.f)(t).then((function(t){e(t.data)}))}))},pageChange:function(t){this.selectionList=[],this.userFrom.page=t,this.getList()},userSearchs:function(){this.userFrom.page=1,this.getList()},reset:function(t){this.userFrom={user_type:this.userFrom.user_type,status:"",sex:"",is_promoter:"",country:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",field_key:"",level:"",group_id:"",label_id:"",page:1,limit:20},this.field_key="",this.level="",this.group_id="",this.dataLabel=[],this.selectDataLabel=[],this.user_time_type="",this.pay_count="",this.timeVal=[],this.selectedIds=new Set,this.getList()},getUserFrom:function(t){var e=this;Object(h.i)(t).then(function(){var t=Object(o.a)(x().mark((function t(r){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.modals=!0,e.userData=r.data;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getOtherFrom:function(t){var e=this;this.$modalForm(Object(h.g)(t)).then((function(){return e.getList(1)}))},onchangeIsShow:function(t){var e=this;t={id:t.uid,status:t.status};Object(h.o)(t).then(function(){var t=Object(o.a)(x().mark((function t(r){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},onSend:function(){0===this.ids.length?this.$Message.warning("请选择要发送优惠券的用户"):(this.$refs.sends.modals=!0,this.$refs.sends.getList())},onSendPic:function(){0===this.ids.length?this.$Message.warning("请选择要发送图文消息的用户"):this.modal13=!0},edit:function(t){this.getUserFrom(t.uid)},submitFail:function(){},sortChanged:function(t){this.userFrom[t.key]=t.order,this.getList()},handleSelectAll:function(t){var e=this;0===t.length?this.$refs.table.data.forEach((function(t){e.selectedIds.has(t.uid)&&e.selectedIds.delete(t.uid)})):t.forEach((function(t){e.selectedIds.add(t.uid)})),this.$nextTick((function(){e.setChecked()}))},handleSelectRow:function(t,e){var r=this;this.selectedIds.add(e.uid),this.$nextTick((function(){r.setChecked()}))},handleCancelRow:function(t,e){var r=this;this.selectedIds.delete(e.uid),this.$nextTick((function(){r.setChecked()}))},setChecked:function(){this.ids=Object(n.a)(this.selectedIds);var t,e=this.$refs.table.objData;for(t in e)this.selectedIds.has(e[t].uid)&&(e[t]._isChecked=!0)}}},r("92d0"),g=Object(d.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Card",{staticClass:"ivu-mt listbox",attrs:{bordered:!1,"dis-hover":""}},[r("Tabs",{staticClass:"mb30",on:{"on-click":t.onClickTab}},t._l(t.headeNum,(function(t,e){return r("TabPane",{key:e,attrs:{label:t.name,name:t.type}})})),1),r("Form",{ref:"userFrom",attrs:{model:t.userFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{gutter:16}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"用户搜索:","label-for":"nickname"}},[r("Input",{attrs:{placeholder:"请输入用户","element-id":"nickname",clearable:""},model:{value:t.userFrom.nickname,callback:function(e){t.$set(t.userFrom,"nickname",e)},expression:"userFrom.nickname"}},[r("Select",{staticStyle:{width:"80px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:t.field_key,callback:function(e){t.field_key=e},expression:"field_key"}},[r("Option",{attrs:{value:"all"}},[t._v("全部")]),r("Option",{attrs:{value:"uid"}},[t._v("UID")]),r("Option",{attrs:{value:"phone"}},[t._v("手机号")]),r("Option",{attrs:{value:"nickname"}},[t._v("用户昵称")])],1)],1)],1)],1),t.collapse?t._e():r("Col",{staticClass:"ivu-text-left userFrom",attrs:{span:"12"}},[r("FormItem",[r("Button",{staticClass:"mr15",attrs:{type:"primary",icon:"ios-search",label:"default"},on:{click:t.userSearchs}},[t._v("搜索")]),r("Button",{staticClass:"ResetSearch",on:{click:function(e){return t.reset("userFrom")}}},[t._v("重置")]),r("a",{staticClass:"ivu-ml-8 font14 ml10",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v(" 收起 "),r("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v(" 展开 "),r("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1),t.collapse?[r("Col",{attrs:{span:"18"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"用户标签:","label-for":"label_id"}},[r("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openSelectLabel}},[r("div",{staticStyle:{width:"90%"}},[t.selectDataLabel.length?r("div",t._l(t.selectDataLabel,(function(e,a){return r("Tag",{key:a,attrs:{closable:!1},on:{"on-close":function(r){return t.closeLabel(e)}}},[t._v(t._s(e.label_name))])})),1):r("span",{staticClass:"span"},[t._v("选择用户关联标签")])]),r("div",{staticClass:"ivu-icon ivu-icon-ios-arrow-down"})])])],1),r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"下单次数:","label-for":"pay_count"}},[r("Select",{attrs:{placeholder:"请选择下单次数","element-id":"pay_count",clearable:""},model:{value:t.pay_count,callback:function(e){t.pay_count=e},expression:"pay_count"}},[r("Option",{attrs:{value:"all"}},[t._v("全部")]),r("Option",{attrs:{value:"-1"}},[t._v("0次")]),r("Option",{attrs:{value:"0"}},[t._v("1次以上")]),r("Option",{attrs:{value:"1"}},[t._v("2次以上")]),r("Option",{attrs:{value:"2"}},[t._v("3次以上")]),r("Option",{attrs:{value:"3"}},[t._v("4次以上")]),r("Option",{attrs:{value:"4"}},[t._v("5次以上")])],1)],1)],1)],1),r("Col",{attrs:{span:"18"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"用户分组:","label-for":"group_id"}},[r("Select",{attrs:{placeholder:"请选择用户分组","element-id":"group_id",clearable:""},model:{value:t.group_id,callback:function(e){t.group_id=e},expression:"group_id"}},[r("Option",{attrs:{value:"all"}},[t._v("全部")]),t._l(t.groupList,(function(e,a){return r("Option",{key:a,attrs:{value:e.id}},[t._v(t._s(e.group_name))])}))],2)],1)],1),r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"用户等级:","label-for":"level"}},[r("Select",{attrs:{placeholder:"请选择用户等级","element-id":"level",clearable:""},model:{value:t.level,callback:function(e){t.level=e},expression:"level"}},[r("Option",{attrs:{value:"all"}},[t._v("全部")]),t._l(t.levelList,(function(e,a){return r("Option",{key:a,attrs:{value:e.id}},[t._v(t._s(e.name))])}))],2)],1)],1)],1),r("Col",{attrs:{span:"18"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"身份:","label-for":"is_promoter"}},[r("RadioGroup",{attrs:{type:"button"},model:{value:t.userFrom.is_promoter,callback:function(e){t.$set(t.userFrom,"is_promoter",e)},expression:"userFrom.is_promoter"}},[r("Radio",{attrs:{label:""}},[r("span",[t._v("全部")])]),r("Radio",{attrs:{label:"1"}},[r("span",[t._v("推广员")])]),r("Radio",{attrs:{label:"0"}},[r("span",[t._v("普通用户")])])],1)],1)],1),r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"付费会员:","label-for":"isMember"}},[r("RadioGroup",{attrs:{type:"button"},model:{value:t.userFrom.isMember,callback:function(e){t.$set(t.userFrom,"isMember",e)},expression:"userFrom.isMember"}},[r("Radio",{attrs:{label:""}},[r("span",[t._v("全部")])]),r("Radio",{attrs:{label:"1"}},[r("span",[t._v("是")])]),r("Radio",{attrs:{label:"0"}},[r("span",[t._v("否")])])],1)],1)],1)],1),r("Col",{attrs:{span:"18"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"访问情况:","label-for":"user_time_type"}},[r("Select",{attrs:{placeholder:"请选择访问情况","element-id":"user_time_type",clearable:""},model:{value:t.user_time_type,callback:function(e){t.user_time_type=e},expression:"user_time_type"}},[r("Option",{attrs:{value:""}},[t._v("全部")]),r("Option",{attrs:{value:"visitno"}},[t._v("时间段未访问")]),r("Option",{attrs:{value:"visit"}},[t._v("时间段访问过")]),r("Option",{attrs:{value:"add_time"}},[t._v("首次访问")])],1)],1)],1),t.user_time_type?r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"访问时间:","label-for":"user_time"}},[r("DatePicker",{staticClass:"mr20",staticStyle:{width:"300px"},attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"请选择访问时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1):t._e()],1),r("Col",{attrs:{span:"18"}},[r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"地区:","label-for":"country"}},[r("Select",{attrs:{placeholder:"请选择国家","element-id":"country",clearable:""},on:{"on-change":t.changeCountry},model:{value:t.userFrom.country,callback:function(e){t.$set(t.userFrom,"country",e)},expression:"userFrom.country"}},[r("Option",{attrs:{value:"domestic"}},[t._v("中国")]),r("Option",{attrs:{value:"abroad"}},[t._v("外国")])],1)],1)],1),"domestic"===t.userFrom.country?r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"省份:"}},[r("Cascader",{attrs:{data:t.addresData,value:t.address},on:{"on-change":t.handleChange},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}})],1)],1):t._e()],1)]:t._e()],2),t.collapse?r("Row",[r("Col",{staticClass:"ivu-text-right userFrom",attrs:{span:"13"}},[r("FormItem",[r("Button",{staticClass:"mr15",attrs:{type:"primary",icon:"ios-search",label:"default"},on:{click:t.userSearchs}},[t._v("搜索")]),r("Button",{staticClass:"ResetSearch",on:{click:function(e){return t.reset("userFrom")}}},[t._v("重置")]),r("a",{staticClass:"ivu-ml-8 font14 ml10",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v(" 收起 "),r("Icon",{attrs:{type:"ios-arrow-up"}})]:[t._v(" 展开 "),r("Icon",{attrs:{type:"ios-arrow-down"}})]],2)],1)],1)],1):t._e()],1),r("Divider",{attrs:{dashed:""}}),r("Row",{staticClass:"mt20",attrs:{type:"flex",justify:"space-between"}},[r("Col",{attrs:{span:"24"}},[r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-save"],expression:"['admin-user-save']"}],staticClass:"mr10",attrs:{type:"primary"},on:{click:function(e){return t.edit({uid:0})}}},[t._v("添加用户")]),r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-coupon"],expression:"['admin-user-coupon']"}],staticClass:"mr10",on:{click:t.onSend}},[t._v("发送优惠券")]),"wechat"===t.userFrom.user_type?r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-wechat-news"],expression:"['admin-wechat-news']"}],staticClass:"greens mr10",attrs:{size:"default"},on:{click:t.onSendPic}},[r("Icon",{attrs:{type:"md-list"}}),t._v("\n 发送图文消息\n ")],1):t._e(),r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-group_set"],expression:"['admin-user-group_set']"}],staticClass:"mr10",on:{click:t.setGroup}},[t._v("批量设置分组")]),r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-set_label"],expression:"['admin-user-set_label']"}],staticClass:"mr10",on:{click:t.setLabel}},[t._v("批量设置标签")]),r("Button",{staticClass:"mr10",attrs:{icon:"ios-share-outline"},on:{click:t.exportList}},[t._v("导出")])],1),t.selectionList.length?r("Col",{staticClass:"userAlert",attrs:{span:"24"}},[r("Alert",{attrs:{"show-icon":""}},[t._v("\n 已选择"),r("i",{staticClass:"userI"},[t._v(" "+t._s(t.selectionList.length)+" ")]),t._v("项")])],1):t._e()],1),r("Table",{ref:"table",staticClass:"mt10",attrs:{columns:t.columns,data:t.userLists,"highlight-row":"",loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},on:{"on-sort-change":t.sortChanged,"on-select":t.handleSelectRow,"on-select-cancel":t.handleCancelRow,"on-select-all":t.handleSelectAll,"on-select-all-cancel":t.handleSelectAll},scopedSlots:t._u([{key:"avatars",fn:function(t){var e=t.row;return t.index,[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.avatar,expression:"row.avatar"}]})])]}},{key:"nickname",fn:function(e){var a=e.row;return e.index,[r("div",{staticClass:"acea-row"},[r("Icon",{directives:[{name:"show",rawName:"v-show",value:"男"===a.sex,expression:"row.sex === '男'"}],staticClass:"mr5",attrs:{type:"md-male",color:"#2db7f5",size:"15"}}),r("Icon",{directives:[{name:"show",rawName:"v-show",value:"女"===a.sex,expression:"row.sex === '女'"}],staticClass:"mr5",attrs:{type:"md-female",color:"#ed4014",size:"15"}}),r("div",{domProps:{textContent:t._s(a.nickname)}})],1),1==a.is_del?r("div",{staticStyle:{color:"red"}},[t._v("用户已注销")]):t._e()]}},{key:"isMember",fn:function(e){var a=e.row;return e.index,[r("div",[t._v(t._s(a.isMember?"是":"否"))])]}},{key:"action",fn:function(e){var a=e.row,n=e.index;return[1!=a.is_del?[r("a",{on:{click:function(e){return t.userDetail(a)}}},[t._v("详情")]),r("Divider",{attrs:{type:"vertical"}}),r("Dropdown",{attrs:{transfer:!0},on:{"on-click":function(e){return t.changeMenu(a,e,n)}}},[r("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n 更多\n "),r("Icon",{attrs:{type:"ios-arrow-down"}})],1),r("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[r("DropdownItem",{attrs:{name:"2"}},[t._v("积分余额")]),r("DropdownItem",{attrs:{name:"3"}},[t._v("赠送会员")]),r("DropdownItem",{attrs:{name:"5"}},[t._v("设置分组")]),r("DropdownItem",{attrs:{name:"6"}},[t._v("设置标签")]),r("DropdownItem",{attrs:{name:"7"}},[t._v("修改上级推广人")]),a.spread_uid?r("DropdownItem",{attrs:{name:"8"}},[t._v("清除上级推广人")]):t._e()],1)],1)]:[1==a.is_del?r("div",{staticStyle:{color:"red"}},[t._v("已注销")]):t._e()]]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,current:t.userFrom.page,"show-elevator":"","show-total":"","page-size":t.userFrom.limit},on:{"on-change":t.pageChange}})],1)],1),r("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),r("send-from",{ref:"sends",attrs:{userIds:t.ids.toString()}}),r("user-details",{ref:"userDetails"}),r("Modal",{staticClass:"modelBox",attrs:{scrollable:"",title:"发送消息",width:"1200",height:"800","footer-hide":""},model:{value:t.modal13,callback:function(e){t.modal13=e},expression:"modal13"}},[t.modal13?r("news-category",{attrs:{isShowSend:t.isShowSend,userIds:t.ids.toString(),scrollerHeight:t.scrollerHeight,contentTop:t.contentTop,contentWidth:t.contentWidth,maxCols:t.maxCols}}):t._e()],1),r("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"修改推广人",closable:!1},model:{value:t.promoterShow,callback:function(e){t.promoterShow=e},expression:"promoterShow"}},[r("Form",{ref:"formInline",attrs:{model:t.formInline,"label-width":100},nativeOn:{submit:function(t){t.preventDefault()}}},[t.formInline?r("FormItem",{attrs:{label:"选择推广人:",prop:"image"}},[r("div",{staticClass:"picBox",on:{click:t.customer}},[t.formInline.image?r("div",{staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formInline.image,expression:"formInline.image"}]})]):r("div",{staticClass:"upLoad acea-row row-center-wrapper"},[r("Icon",{attrs:{type:"md-person",size:"26"}})],1)])]):t._e()],1),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putSend("formInline")}}},[t._v("提交")]),r("Button",{on:{click:function(e){return t.cancel("formInline")}}},[t._v("取消")])],1)],1),r("Modal",{attrs:{scrollable:"",title:"请选择商城用户",closable:!1,width:"50%"},model:{value:t.customerShow,callback:function(e){t.customerShow=e},expression:"customerShow"}},[t.customerShow?r("customerInfo",{on:{imageObject:t.imageObject}}):t._e()],1),r("Modal",{attrs:{scrollable:"",title:"请选择用户标签",closable:!1,width:"500","footer-hide":!0},model:{value:t.labelShow,callback:function(e){t.labelShow=e},expression:"labelShow"}},[t.labelShow?r("userLabel",{attrs:{uid:t.labelActive.uid,only_get:!t.labelActive.uid},on:{close:t.labelClose,activeData:t.activeData,onceGetList:t.onceGetList}}):t._e()],1),r("Drawer",{attrs:{closable:!1,width:"700",title:"用户信息填写"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.modals?r("userEdit",{ref:"userEdit",attrs:{userData:t.userData}}):t._e(),r("div",{staticClass:"demo-drawer-footer"},[r("Button",{staticStyle:{"margin-right":"8px"},on:{click:function(e){t.modals=!1}}},[t._v("取消")]),r("Button",{attrs:{type:"primary"},on:{click:t.setUser}},[t._v("提交")])],1)],1),r("Modal",{attrs:{scrollable:"",title:"请选择用户标签",closable:!1,width:"500","footer-hide":!0,"mask-closable":!1},model:{value:t.selectLabelShow,callback:function(e){t.selectLabelShow=e},expression:"selectLabelShow"}},[t.selectLabelShow?r("userLabel",{ref:"userLabel",attrs:{uid:0,only_get:!0},on:{activeData:t.activeSelectData,close:t.labelClose}}):t._e()],1)],1)}),[],!1,null,"1604de1f",null),e.default=g.exports},2404:function(t,e,r){"use strict";var a=r("fd3f");r.n(a).a},"2c3e":function(t,e,r){var a=r("da84"),n=r("83ab"),o=r("9f7f").MISSED_STICKY,i=r("c6b6"),s=r("edd0"),l=r("69f3").get,c=RegExp.prototype,u=a.TypeError;n&&o&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!l(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"3f2a":function(t,e,r){"use strict";r.d(e,"f",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return i})),r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return l})),r.d(e,"e",(function(){return c})),r.d(e,"g",(function(){return u}));var a=r("6b6c");function n(t){return Object(a.a)({url:"/export/user_list",method:"get",params:t})}function o(t){return Object(a.a)({url:"/export/order_list",method:"get",params:t})}function i(t){return Object(a.a)({url:"/export/product_list",method:"get",params:t})}function s(t){return Object(a.a)({url:"/export/bargain_list",method:"get",params:t})}function l(t){return Object(a.a)({url:"/export/combination_list",method:"get",params:t})}function c(t){return Object(a.a)({url:"/export/seckill_list",method:"get",params:t})}function u(t){return Object(a.a)({url:"/export/member_card/".concat(t),method:"get"})}},"4d63":function(t,e,r){var a=r("83ab"),n=r("da84"),o=r("e330"),i=r("94ca"),s=r("7156"),l=r("9112"),c=r("241c").f,u=r("3a9b"),d=r("44e7"),m=r("577e"),h=r("90d8"),f=r("9f7f"),p=r("aeb0"),v=r("cb2d"),g=r("d039"),b=r("1a2d"),_=r("69f3").enforce,y=r("2626"),w=r("b622"),x=r("fce3"),k=r("107c"),I=w("match"),L=n.RegExp,C=L.prototype,F=n.SyntaxError,O=o(C.exec),S=o("".charAt),D=o("".replace),j=o("".indexOf),E=o("".slice),$=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,T=/a/g,R=(r=new L(M)!==M,f.MISSED_STICKY),N=f.UNSUPPORTED_Y;w=a&&(!r||R||x||k||g((function(){return T[I]=!1,L(M)!=M||L(T)==T||"/a/i"!=L(M,"i")})));if(i("RegExp",w)){function P(t,e){var r,a,n=u(C,this),o=d(t),i=void 0===e,c=[],f=t;if(!n&&o&&i&&t.constructor===P)return t;if((o||u(C,t))&&(t=t.source,i&&(e=h(f))),t=void 0===t?"":m(t),e=void 0===e?"":m(e),f=t,o=e=x&&"dotAll"in M&&(r=!!e&&-1<j(e,"s"))?D(e,/s/g,""):e,R&&"sticky"in M&&(a=!!e&&-1<j(e,"y"))&&N&&(e=D(e,/y/g,"")),k&&(t=(i=function(t){for(var e,r=t.length,a=0,n="",o=[],i={},s=!1,l=!1,c=0,u="";a<=r;a++){if("\\"===(e=S(t,a)))e+=S(t,++a);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:O($,E(t,a+1))&&(a+=2,l=!0),n+=e,c++;continue;case">"===e&&l:if(""===u||b(i,u))throw new F("Invalid capture group name");i[u]=!0,l=!(o[o.length]=[u,c]),u="";continue}l?u+=e:n+=e}return[n,o]}(t))[0],c=i[1]),i=s(L(t,e),n?this:C,P),(r||a||c.length)&&(e=_(i),r&&(e.dotAll=!0,e.raw=P(function(t){for(var e,r=t.length,a=0,n="",o=!1;a<=r;a++)"\\"===(e=S(t,a))?n+=e+S(t,++a):o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),n+=e):n+="[\\s\\S]";return n}(t),o)),a&&(e.sticky=!0),c.length&&(e.groups=c)),t!==f)try{l(i,"source",""===f?"(?:)":f)}catch(t){}return i}for(var G=c(L),A=0;G.length>A;)p(P,L,G[A++]);(C.constructor=P).prototype=C,v(n,"RegExp",P,{constructor:!0})}y("RegExp")},"61f7":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return l})),r.d(e,"b",(function(){return c}));var a=r("fc11"),n=r("f3f3");function o(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r,a,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(r in n)new RegExp("(".concat(r,")")).test(e)&&(a=n[r]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.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 i={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 l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(n.a)({required:!0,message:t,type:"string"},e)}function c(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(l,"请输入%s"),s(c,"%s格式不正确");var u=Object.keys(i).reduce((function(t,e){return t[e]=function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:Object(a.a)({},e,t);return Object(n.a)(Object(n.a)({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i),o)},s(t[e],i[e]),t}),{})},8651:function(t,e,r){},"92d0":function(t,e,r){"use strict";var a=r("b4fa");r.n(a).a},a8e0:function(t,e,r){"use strict";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 a=r("0122"),n=r("c964"),o=r("c24f");function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.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,a){var o,i,s,l;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),a=new k(a||[]);return n(e,"_invoke",{value:(o=t,i=r,s=a,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return L()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,n=e.iterator[a];return void 0===n?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),h):(a=m(n,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,h):(n=a.arg,n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):n:(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"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=m(o,i,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function m(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 f(){}function p(){}function v(){}o={};var g=(u(o,s,(function(){return this})),Object.getPrototypeOf),b=(g=g&&g(g(I([]))),g&&g!==e&&r.call(g,s)&&(o=g),v.prototype=f.prototype=Object.create(o));function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var o;n(this,"_invoke",{value:function(n,i){function s(){return new e((function(o,s){!function n(o,i,s,l){var c;o=m(t[o],t,i);if("throw"!==o.type)return(i=(c=o.arg).value)&&"object"==Object(a.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(i).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,i,o,s)}))}return o=o?o.then(s,s):s()}})}function w(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(w,this),this.reset(!0)}function I(t){if(t){var e,a=t[s];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:L}}function L(){return{value:void 0,done:!0}}return n(b,"constructor",{value:p.prototype=v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=u(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,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},_(y.prototype),u(y.prototype,l,(function(){return this})),t.AsyncIterator=y,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new y(d(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},_(b),u(b,c,"Generator"),u(b,s,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=I,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 a(r,a){return i.type="throw",i.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},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,a,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(a=r.arg,x(n)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var s={name:"send",props:{userIds:{type:String,default:""}},data:function(){return{modals:!1,loading:!1,couponList:[],columns:[{title:"优惠券名称",key:"title",align:"center",minWidth:100},{title:"优惠券面值",key:"coupon_price",align:"center",minWidth:80},{title:"优惠券最低消费",key:"use_min_price",align:"center",minWidth:150},{title:"优惠券有效期限",slot:"coupon_time",align:"center",minWidth:120},{title:"操作",slot:"action",align:"center",width:120}],page:{page:1,limit:15,coupon_title:"",receive_type:3},total:0}},methods:{getList:function(t){var e=this;this.loading=!0,Object(o.c)(this.page).then(function(){var t=Object(n.a)(i().mark((function t(r){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===r.status?(a=r.data,e.couponList=a.list,e.total=a.count,e.loading=!1):(e.loading=!1,e.$Message.error(r.msg));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},userSearchs:function(){this.getList()},pageChange:function(t){this.page.page=t,this.getList()},sendGrant:function(t,e,r){var a=this;e={title:e,num:r,url:"marketing/coupon/user/grant",method:"post",ids:{id:t.id,uid:this.userIds}};this.$modalSure(e).then((function(t){a.$Message.success(t.msg)})).catch((function(t){a.$Message.error(t.msg)}))}}};r("f6cb"),r=r("2877"),r=Object(r.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Modal",{attrs:{"z-index":100,scrollable:"","footer-hide":"",closable:"",title:"发送优惠券","mask-closable":!1,width:"900"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[r("div",{staticClass:"acea-row"},[r("span",{staticClass:"sp"},[t._v("优惠券名称:")]),r("Input",{staticStyle:{width:"60%"},attrs:{search:"","enter-button":"",placeholder:"请输入优惠券名称"},on:{"on-search":t.userSearchs},model:{value:t.page.coupon_title,callback:function(e){t.$set(t.page,"coupon_title",e)},expression:"page.coupon_title"}})],1),r("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.couponList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"coupon_time",fn:function(e){var a=e.row;return e.index,[a.coupon_time?r("div",[t._v(t._s(a.coupon_time))]):r("div",[t._v(t._s(a.use_time))])]}},{key:"action",fn:function(e){var a=e.row,n=e.index;return[r("a",{on:{click:function(e){return t.sendGrant(a,"发送优惠券",n)}}},[t._v("发送")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.page.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"2933294c",null);e.a=r.exports},a91d:function(t,e,r){},b4fa:function(t,e,r){},bbbc:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"n",(function(){return i})),r.d(e,"m",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"j",(function(){return c})),r.d(e,"i",(function(){return u})),r.d(e,"o",(function(){return d})),r.d(e,"l",(function(){return m})),r.d(e,"f",(function(){return h})),r.d(e,"a",(function(){return f})),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 b})),r("99af");var a=r("6b6c");function n(t){return Object(a.a)({url:"agent/index",method:"get",params:t})}function o(t){return Object(a.a)({url:"agent/spread",method:"PUT",data:t})}function i(t){return Object(a.a)({url:"agent/statistics",method:"get",params:t})}function s(t,e){return Object(a.a)({url:t,method:"get",params:e})}function l(t){return Object(a.a)({url:"agent/look_code",method:"get",params:t})}function c(t){return Object(a.a)({url:"agent/look_xcx_code",method:"get",params:t})}function u(t){return Object(a.a)({url:"agent/look_h5_code",method:"get",params:t})}function d(t){return Object(a.a)({url:"export/userAgent",method:"get",params:t})}function m(t){return Object(a.a)({url:"agent/division/list",method:"get",params:t})}function h(t){return Object(a.a)({url:"agent/division/agent_apply/list",method:"get",params:t})}function f(t){return Object(a.a)({url:"agent/division/agent/create/".concat(t),method:"get"})}function p(t,e){return Object(a.a)({url:"agent/division/examine_apply/".concat(t,"/").concat(e),method:"get"})}function v(t){return Object(a.a)({url:"agent/division/create/".concat(t),method:"get"})}function g(t){return Object(a.a)({url:"agent/division/down_list",method:"get",params:t})}function b(t){return Object(a.a)({url:"agent/division/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}},c607:function(t,e,r){var a=r("da84"),n=r("83ab"),o=r("fce3"),i=r("c6b6"),s=r("edd0"),l=r("69f3").get,c=RegExp.prototype,u=a.TypeError;n&&o&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!l(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},e258:function(t,e,r){"use strict";var a=r("8651");r.n(a).a},edd0:function(t,e,r){var a=r("13d2"),n=r("9bf2");t.exports=function(t,e,r){return r.get&&a(r.get,e,{getter:!0}),r.set&&a(r.set,e,{setter:!0}),n.f(t,e,r)}},f6cb:function(t,e,r){"use strict";var a=r("a91d");r.n(a).a},fd3f:function(t,e,r){}}]); |