CRMEB/crmeb/public/admin/system_static/js/chunk-a883d78e.0dbd2c3c.js
2023-09-19 17:39:39 +08:00

1 line
44 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-a883d78e"],{"232f":function(t,e,r){"use strict";r("a9e3"),r("d81d"),r("a434");var i=r("c24f"),n={name:"userLabel",props:{uid:{type:String|Number,default:0},only_get:{default:!1},selectDataLabel:{type:Array,default:function(){}}},data:function(){return{labelList:[],activeIds:[],unLaberids:[]}},watch:{uid:{handler:function(t,e){t!=e&&this.getList()},deep:!0}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;Object(i.j)(this.uid||0).then((function(e){t.selectDataLabel&&t.selectDataLabel.length&&t.selectDataLabel.map((function(t){e.data.map((function(e){e.label.map((function(e){e.id===t.id&&(e.disabled=!0)}))}))})),e.data.map((function(e){e.label.map((function(e){e.disabled&&t.activeIds.push(e.id)}))})),t.labelList=e.data}))},selectLabel:function(t){var e;t.disabled?(e=this.activeIds.indexOf(t.id),this.activeIds.splice(e,1),t.disabled=!1):(this.activeIds.push(t.id),t.disabled=!0)},subBtn:function(){var t=this,e=[];this.only_get?(this.labelList.map((function(t){t.label.map((function(t){1==t.disabled&&e.push({id:t.id,label_name:t.label_name})}))})),this.$emit("activeData",e)):(this.labelList.map((function(t){t.label.map((function(t){0==t.disabled&&e.push(t.id)}))})),this.unLaberids=e,Object(i.A)(this.uid,{label_ids:this.activeIds,un_label_ids:this.unLaberids}).then((function(e){t.$emit("onceGetList"),t.activeIds=[],t.unLaberids=[],t.$message.success(e.msg),t.$emit("close")})).catch((function(e){t.$message.error(e.msg)})))},cancel:function(){this.activeIds=[],this.unLaberids=[],this.$emit("close")}}};r("29ab"),r=r("2877"),r=Object(r.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"label-wrapper"},[t.labelList[0]?t._l(t.labelList,(function(e,i){return r("div",{key:i,staticClass:"label-box"},[r("div",{staticClass:"title"},[t._v(t._s(e.name))]),r("div",{staticClass:"list"},t._l(e.label,(function(e,i){return r("div",{key:i,staticClass:"label-item",class:{on:e.disabled},on:{click:function(r){return t.selectLabel(e)}}},[t._v("\n "+t._s(e.label_name)+"\n ")])})),0)])})):r("div",{staticClass:"nonefont"},[t._v("暂无标签")]),r("div",{staticClass:"acea-row row-right mt20"},[r("el-button",{on:{click:t.cancel}},[t._v("取 消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确 定")])],1)],2)}),[],!1,null,"34379f5b",null);e.a=r.exports},"29ab":function(t,e,r){"use strict";var i=r("b163");r.n(i).a},"31b4":function(t,e,r){"use strict";var i=r("f3f3"),n=(r("d3b7"),r("159b"),r("30ba")),a=(n=r.n(n),r("6b6c")),s=r("2f62");n={name:"edit",components:{formCreate:n.a.$form()},computed:Object(i.a)({},Object(s.d)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},watch:{FromData:function(){this.FromData.rules.forEach((function(t){t.title+=""}))}},data:function(){return{modals:!1,type:0,loading:!1,fapi:null,config:{form:{labelWidth:"100px"},resetBtn:!1,submitBtn:!1,global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.$message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},formSubmit:function(){this.fapi.submit()},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(a.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$message.error(t.msg)})))},cancel:function(){this.type=0}}},r("6a61"),i=r("2877"),s=Object(i.a)(n,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return t.FromData?e("div",[e("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,"z-index":1,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("el-radio-group",{on:{input:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio",{attrs:{label:0}},[t._v("通用券")]),e("el-radio",{attrs:{label:1}},[t._v("品类券")]),e("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(this.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("确 定")])],1)],2)],1):t._e()}),[],!1,null,"58fdaf03",null);e.a=s.exports},4984:function(t,e,r){},"564e":function(t,e,r){"use strict";var i=r("4984");r.n(i).a},5829:function(t,e,r){"use strict";var i=r("a653");r.n(i).a},"5a0c":function(t,e,r){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",i="hour",n="day",a="week",s="month",o="quarter",l="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},f={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),n=r%60;return(e<=0?"+":"-")+d(i,2,"0")+":"+d(n,2,"0")},m:function(t,e){var r=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(r,s),n=e-i<0,a=t.clone().add(r+(n?-1:1),s);return Number(-(r+(e-i)/(n?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:l,w:a,d:n,D:"date",h:i,m:r,s:e,ms:t,Q:o}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h="en",p={},v=(p[h]=m,function(t){return t instanceof _}),b=function(t,e,r){var i;if(!t)return h;if("string"==typeof t)p[t]&&(i=t),e&&(p[t]=e,i=t);else{var n=t.name;p[n]=t,i=n}return!r&&i&&(h=i),i||!r&&h},y=function(t,e){if(v(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},g=f,_=(g.l=b,g.i=v,g.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})},function(){function d(t){this.$L=this.$L||b(t.locale,null,!0),this.parse(t)}var f=d.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(g.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(c);if(i)return r?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return g},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var r=y(t);return this.startOf(e)<=r&&r<=this.endOf(e)},f.isAfter=function(t,e){return y(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<y(t)},f.$g=function(t,e,r){return g.u(t)?this[e]:this.set(r,t)},f.year=function(t){return this.$g(t,"$y",l)},f.month=function(t){return this.$g(t,"$M",s)},f.day=function(t){return this.$g(t,"$W",n)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",i)},f.minute=function(t){return this.$g(t,"$m",r)},f.second=function(t){return this.$g(t,"$s",e)},f.millisecond=function(e){return this.$g(e,"$ms",t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,o){var c=this,u=!!g.u(o)||o,d=g.p(t),f=function(t,e){var r=g.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return u?r:r.endOf(n)},m=function(t,e){return g.w(c.toDate()[t].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},h=this.$W,p=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return u?f(1,0):f(31,11);case s:return u?f(1,p):f(0,p+1);case a:var y=this.$locale().weekStart||0,_=(h<y?h+7:h)-y;return f(u?v-_:v+(6-_),p);case n:case"date":return m(b+"Hours",0);case i:return m(b+"Minutes",1);case r:return m(b+"Seconds",2);case e:return m(b+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(a,o){var c,u=g.p(a),d="set"+(this.$u?"UTC":""),f=(c={},c[n]=d+"Date",c.date=d+"Date",c[s]=d+"Month",c[l]=d+"FullYear",c[i]=d+"Hours",c[r]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[u],m=u===n?this.$D+(o-this.$W):o;if(u===s||u===l){var h=this.clone().set("date",1);h.$d[f](m),h.init(),this.$d=h.set("date",Math.min(this.$D,h.daysInMonth())).toDate()}else f&&this.$d[f](m);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[g.p(t)]()},f.add=function(t,o){var c,u=this;t=Number(t);var d=g.p(o),f=function(e){var r=y(u);return g.w(r.date(r.date()+Math.round(e*t)),u)};if(d===s)return this.set(s,this.$M+t);if(d===l)return this.set(l,this.$y+t);if(d===n)return f(1);if(d===a)return f(7);var m=(c={},c[r]=6e4,c[i]=36e5,c[e]=1e3,c)[d]||1,h=this.$d.getTime()+t*m;return g.w(h,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=g.z(this),n=this.$locale(),a=this.$H,s=this.$m,o=this.$M,l=n.weekdays,c=n.months,d=function(t,i,n,a){return t&&(t[i]||t(e,r))||n[i].substr(0,a)},f=function(t){return g.s(a%12||12,t,"0")},m=n.meridiem||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:g.s(o+1,2,"0"),MMM:d(n.monthsShort,o,c,3),MMMM:d(c,o),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:d(n.weekdaysMin,this.$W,l,2),ddd:d(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(a),HH:g.s(a,2,"0"),h:f(1),hh:f(2),a:m(a,s,!0),A:m(a,s,!1),m:String(s),mm:g.s(s,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:i};return r.replace(u,(function(t,e){return e||h[t]||i.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,c,u){var d,f=g.p(c),m=y(t),h=6e4*(m.utcOffset()-this.utcOffset()),p=this-m,v=g.m(this,m);return v=(d={},d[l]=v/12,d[s]=v,d[o]=v/3,d[a]=(p-h)/6048e5,d[n]=(p-h)/864e5,d[i]=p/36e5,d[r]=p/6e4,d[e]=p/1e3,d)[f]||p,u?v:g.a(v)},f.daysInMonth=function(){return this.endOf(s).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=b(t,e,!0);return i&&(r.$L=i),r},f.clone=function(){return g.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}());return y.prototype=_.prototype,y.extend=function(t,e){return t(e,_,y),y},y.locale=b,y.isDayjs=v,y.unix=function(t){return y(1e3*t)},y.en=p[h],y.Ls=p,y}()},"6a61":function(t,e,r){"use strict";var i=r("c23d");r.n(i).a},9770:function(t,e,r){"use strict";var i=r("de3f");r.n(i).a},a653:function(t,e,r){},a716: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("131a"),r("fb6a");var i=r("0122"),n=r("c964"),a=(r("b0c0"),r("c24f")),s=r("5a0c"),o=r.n(s),l=(s={name:"userInfo",props:{psInfo:Object},filters:{timeFormat:function(t,e){return e=e?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",t?o()(1e3*t).format(e):"-"},gender:function(t){return 1==t?"男":2==t?"女":"未知"}},computed:{hasExtendInfo:function(){}}},r("bbf7"),r("2877"));s=Object(l.a)(s,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"user-info"},[e("div",{staticClass:"section"},[e("div",{staticClass:"section-hd"},[t._v("基本信息")]),e("div",{staticClass:"section-bd"},[e("div",{staticClass:"item"},[e("div",[t._v("用户ID")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.uid))])]),e("div",{staticClass:"item"},[e("div",[t._v("真实姓名:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.real_name||"-"))])]),e("div",{staticClass:"item"},[e("div",[t._v("手机号码:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.phone||"-"))])]),e("div",{staticClass:"item"},[e("div",[t._v("生日:")]),e("div",{staticClass:"value"},[t._v(t._s(t._f("timeFormat")(t.psInfo.birthday,"birthday")))])]),e("div",{staticClass:"item"},[e("div",[t._v("身份证号:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.card_id||"-"))])]),e("div",{staticClass:"item"},[e("div",[t._v("用户地址:")]),e("div",{staticClass:"value"},[t._v(t._s(""+t.psInfo.addres||"-"))])])])]),t._m(0),e("div",{staticClass:"section"},[e("div",{staticClass:"section-hd"},[t._v("用户概况")]),e("div",{staticClass:"section-bd"},[e("div",{staticClass:"item"},[e("div",[t._v("推广资格:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.spread_open?"开启":"关闭"))])]),e("div",{staticClass:"item"},[e("div",[t._v("用户状态:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.status?"开启":"锁定"))])]),e("div",{staticClass:"item"},[e("div",[t._v("用户等级:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.vip_name||"-"))])]),e("div",{staticClass:"item"},[e("div",[t._v("用户标签:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.label_list||"-"))])]),e("div",{staticClass:"item"},[e("div",[t._v("用户分组:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.group_name||"-"))])]),e("div",{staticClass:"item"},[e("div",[t._v("推广人:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.spread_uid_nickname||"-"))])]),e("div",{staticClass:"item"},[e("div",[t._v("注册时间:")]),e("div",{staticClass:"value"},[t._v(t._s(t._f("timeFormat")(t.psInfo.add_time)))])]),e("div",{staticClass:"item"},[e("div",[t._v("登录时间:")]),e("div",{staticClass:"value"},[t._v(t._s(t._f("timeFormat")(t.psInfo.last_time)))])]),t.psInfo.is_money_level?e("div",{staticClass:"item"},[e("div",[t._v("付费会员:")]),e("div",{staticClass:"value"},[t._v("\n "+t._s(1==t.psInfo.is_ever_level?"永久会员":t.psInfo.overdue_time?t.psInfo.overdue_time+" 到期":"已过期")+"\n ")])]):t._e()])]),e("div",{staticClass:"section"},[e("div",{staticClass:"section-hd"},[t._v("用户备注")]),e("div",{staticClass:"section-bd"},[e("div",{staticClass:"item"},[e("div",[t._v("备注:")]),e("div",{staticClass:"value"},[t._v(t._s(t.psInfo.mark||"-"))])])])])])}),[function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"section"},[e("div",{staticClass:"section-hd"},[t._v("密码")]),e("div",{staticClass:"section-bd"},[e("div",{staticClass:"item"},[e("div",[t._v("登录密码:")]),e("div",{staticClass:"value"},[t._v("********")])])])])}],!1,null,"fbfc4e40",null).exports;function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.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,i){var a,s,o,l;e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),i=new $(i||[]);return n(e,"_invoke",{value:(a=t,s=r,o=i,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return k()}for(o.method=t,o.arg=e;;){var r=o.delegate;if(r&&(r=function t(e,r){var i=r.method,n=e.iterator[i];return void 0===n?(r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m):(i=f(n,e.iterator,r.arg),"throw"===i.type?(r.method="throw",r.arg=i.arg,r.delegate=null,m):(n=i.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,o),r)){if(r===m)continue;return r}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===l)throw l="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);if(l="executing",r=f(a,s,o),"normal"===r.type){if(l=o.done?"completed":"suspendedYield",r.arg===m)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(l="completed",o.method="throw",o.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 m={};function h(){}function p(){}function v(){}a={};var b=(u(a,s,(function(){return this})),Object.getPrototypeOf),y=(b=b&&b(b(C([]))),b&&b!==e&&r.call(b,s)&&(a=b),v.prototype=h.prototype=Object.create(a));function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var a;n(this,"_invoke",{value:function(n,s){function o(){return new e((function(a,o){!function n(a,s,o,l){var c;a=f(t[a],t,s);if("throw"!==a.type)return(s=(c=a.arg).value)&&"object"==Object(i.a)(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,o,l)}),(function(t){n("throw",t,o,l)})):e.resolve(s).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,l)}));l(a.arg)}(n,s,a,o)}))}return a=a?a.then(o,o):o()}})}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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function C(t){if(t){var e,i=t[s];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(i=function i(){for(;++e<t.length;)if(r.call(t,e))return i.value=t[e],i.done=!1,i;return i.value=void 0,i.done=!0,i}).next=i}return{next:k}}function k(){return{value:void 0,done:!0}}return n(y,"constructor",{value:p.prototype=v,configurable:!0}),n(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(y),t},t.awrap=function(t){return{__await:t}},g(_.prototype),u(_.prototype,o,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,i,n,a){void 0===a&&(a=Promise);var s=new _(d(e,r,i,n),a);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},g(y),u(y,l,"Generator"),u(y,s,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),i=[];for(e in r)i.push(e);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=C,$.prototype={constructor:$,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(I),!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 i(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=void 0),!!i}for(var n=this.tryEntries.length-1;0<=n;--n){var a=this.tryEntries[n],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var o=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(o&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;0<=i;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}var s=(a=a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc?null:a)?a.completion:{};return s.type=t,s.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(s)},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),I(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,i,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(i=r.arg,I(n)),i}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},t}r("a9e3"),r("d81d"),r("e9c4"),r("4de4"),r("a434"),r("b64b");var u={name:"userInfo",components:{userLabel:r("232f").a},props:{userId:{type:Number,default:0}},filters:{timeFormat:function(t){return t?o()(1e3*t).format("YYYY-MM-DD HH:mm:ss"):"-"},gender:function(t){return 1==t?"男":2==t?"女":"未知"}},data:function(){return{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:[]}},computed:{hasExtendInfo:function(){}},created:function(){this.getUserFrom(this.userId)},methods:{setUser:function(){var t=this,e=this.formItem,r=[];this.dataLabel.map((function(t){r.push(t.id)})),e.label_id=r,e.uid?Object(a.h)(e).then((function(e){t.$message.success(e.msg),t.$emit("success")})).catch((function(e){t.$message.error(e.msg)})):Object(a.G)(e).then((function(e){t.$emit("success"),t.$message.success(e.msg)})).catch((function(e){t.$message.error("err.msg")}))},addLabel:function(){this.$modalForm(Object(a.M)(0)).then((function(){}))},openLabel:function(t){this.labelShow=!0,this.$refs.userLabel.userLabel(JSON.parse(JSON.stringify(this.infoData.labelInfo)))},closeLabel:function(t){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1)},getUserFrom:function(t){var e=this;Object(a.i)(t).then(function(){var t=Object(n.a)(c().mark((function t(r){var i;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.userData=r.data,e.$set(e.infoData,"groupInfo",e.userData.groupInfo),e.$set(e.infoData,"levelInfo",e.userData.levelInfo),e.$set(e.infoData,"labelInfo",e.userData.labelInfo),i=Object.keys(e.formItem),e.userData.userInfo?(i.map((function(t){e.formItem[t]=e.userData.userInfo[t]})),e.formItem.birthday||(e.formItem.birthday=""),e.formItem.label_id.length&&(e.dataLabel=e.formItem.label_id)):e.reset();case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error("res.msg")}))},labelClose:function(){this.labelShow=!1},activeData:function(t){this.labelShow=!1,this.dataLabel=t},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}}}};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,n=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",l=a.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,i){var a,s,o,l;e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),i=new $(i||[]);return n(e,"_invoke",{value:(a=t,s=r,o=i,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return k()}for(o.method=t,o.arg=e;;){var r=o.delegate;if(r&&(r=function t(e,r){var i=r.method,n=e.iterator[i];return void 0===n?(r.delegate=null,"throw"===i&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m):(i=f(n,e.iterator,r.arg),"throw"===i.type?(r.method="throw",r.arg=i.arg,r.delegate=null,m):(n=i.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,o),r)){if(r===m)continue;return r}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===l)throw l="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);if(l="executing",r=f(a,s,o),"normal"===r.type){if(l=o.done?"completed":"suspendedYield",r.arg===m)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(l="completed",o.method="throw",o.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 m={};function h(){}function p(){}function v(){}a={};var b=(c(a,s,(function(){return this})),Object.getPrototypeOf),y=(b=b&&b(b(C([]))),b&&b!==e&&r.call(b,s)&&(a=b),v.prototype=h.prototype=Object.create(a));function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var a;n(this,"_invoke",{value:function(n,s){function o(){return new e((function(a,o){!function n(a,s,o,l){var c;a=f(t[a],t,s);if("throw"!==a.type)return(s=(c=a.arg).value)&&"object"==Object(i.a)(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){n("next",t,o,l)}),(function(t){n("throw",t,o,l)})):e.resolve(s).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,l)}));l(a.arg)}(n,s,a,o)}))}return a=a?a.then(o,o):o()}})}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 I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function C(t){if(t){var e,i=t[s];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(i=function i(){for(;++e<t.length;)if(r.call(t,e))return i.value=t[e],i.done=!1,i;return i.value=void 0,i.done=!0,i}).next=i}return{next:k}}function k(){return{value:void 0,done:!0}}return n(y,"constructor",{value:p.prototype=v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(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,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(_.prototype),c(_.prototype,o,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,i,n,a){void 0===a&&(a=Promise);var s=new _(u(e,r,i,n),a);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},g(y),c(y,l,"Generator"),c(y,s,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),i=[];for(e in r)i.push(e);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=C,$.prototype={constructor:$,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(I),!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 i(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=void 0),!!i}for(var n=this.tryEntries.length-1;0<=n;--n){var a=this.tryEntries[n],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var o=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(o&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;0<=i;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}var s=(a=a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc?null:a)?a.completion:{};return s.type=t,s.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(s)},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),I(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,i,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(i=r.arg,I(n)),i}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},t}r("9770"),s={name:"userDetails",components:{userInfo:s,userEditForm:Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"user-info"},[r("el-form",{ref:"formItem",attrs:{rules:t.ruleValidate,model:t.formItem,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[r("div",{staticClass:"section"},[r("div",{staticClass:"section-hd"},[t._v("基本信息")]),r("div",{staticClass:"section-bd"},[r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"用户ID"}},[r("el-input",{staticClass:"form-sty",attrs:{disabled:"",placeholder:"请输入编号"},model:{value:t.formItem.uid,callback:function(e){t.$set(t.formItem,"uid",e)},expression:"formItem.uid"}})],1)],1),r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"真实姓名:",prop:"real_name"}},[r("el-input",{staticClass:"form-sty",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)],1),r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"手机号码:",prop:"phone"}},[r("el-input",{staticClass:"form-sty",attrs:{placeholder:"请输入手机号码"},model:{value:t.formItem.phone,callback:function(e){t.$set(t.formItem,"phone",e)},expression:"formItem.phone"}})],1)],1),r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"生日:"}},[r("el-date-picker",{staticClass:"form-sty",attrs:{clearable:"",type:"date",placeholder:"请选择生日",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.formItem.birthday,callback:function(e){t.$set(t.formItem,"birthday",e)},expression:"formItem.birthday"}})],1)],1),r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"身份证号:"}},[r("el-input",{staticClass:"form-sty",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)],1),r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"用户地址:"}},[r("el-input",{staticClass:"form-sty",attrs:{placeholder:"请输入用户地址"},model:{value:t.formItem.addres,callback:function(e){t.$set(t.formItem,"addres",e)},expression:"formItem.addres"}})],1)],1)])]),r("div",{staticClass:"section"},[r("div",{staticClass:"section-hd"},[t._v("密码")]),r("div",{staticClass:"section-bd"},[r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"登录密码:",prop:"pwd"}},[r("el-input",{staticClass:"form-sty",attrs:{type:"password",placeholder:"请输入登录密码(修改用户可不填写,不填写不修改原密码)"},model:{value:t.formItem.pwd,callback:function(e){t.$set(t.formItem,"pwd",e)},expression:"formItem.pwd"}})],1)],1),r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"确认密码:",prop:"true_pwd"}},[r("el-input",{staticClass:"form-sty",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)],1)])]),r("div",{staticClass:"section"},[r("div",{staticClass:"section-hd"},[t._v("用户概况")]),r("div",{staticClass:"section-bd"},[r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"用户等级:"}},[r("el-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(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1)],1),r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"用户分组:"}},[r("el-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(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.group_name}})})),1)],1)],1),r("div",{staticClass:"item lang"},[r("el-form-item",{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,i){return r("el-tag",{key:i,staticClass:"mr10",attrs:{closable:""},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("新增标签")])])])],1),r("div",{staticClass:"item lang"},[r("el-form-item",{attrs:{label:"推广资格:"}},[r("el-radio-group",{staticClass:"form-sty",model:{value:t.formItem.spread_open,callback:function(e){t.$set(t.formItem,"spread_open",e)},expression:"formItem.spread_open"}},[r("el-radio",{attrs:{label:1}},[t._v("开启")]),r("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),r("div",{staticClass:"tip"},[t._v("关闭用户的推广资格后,在任何分销模式下该用户都无分销权限")])],1)],1),r("div",{staticClass:"item lang"},[r("el-form-item",{attrs:{label:"推广权限:"}},[r("el-radio-group",{staticClass:"form-sty",model:{value:t.formItem.is_promoter,callback:function(e){t.$set(t.formItem,"is_promoter",e)},expression:"formItem.is_promoter"}},[r("el-radio",{attrs:{label:1}},[t._v("开启")]),r("el-radio",{attrs:{label:0}},[t._v("关闭")]),r("div",{staticClass:"tip"},[t._v("指定分销模式下,开启或关闭用户的推广权限")])],1)],1)],1),r("div",{staticClass:"item lang"},[r("el-form-item",{attrs:{label:"用户状态:"}},[r("el-radio-group",{staticClass:"form-sty",model:{value:t.formItem.status,callback:function(e){t.$set(t.formItem,"status",e)},expression:"formItem.status"}},[r("el-radio",{attrs:{label:1}},[t._v("开启")]),r("el-radio",{attrs:{label:0}},[t._v("锁定")])],1)],1)],1)])]),r("div",{staticClass:"section"},[r("div",{staticClass:"section-hd"},[t._v("用户备注")]),r("div",{staticClass:"section-bd"},[r("div",{staticClass:"item"},[r("el-form-item",{attrs:{label:"用户备注:"}},[r("el-input",{staticClass:"form-sty",attrs:{type:"textarea",rows:5,placeholder:"请输入用户备注"},model:{value:t.formItem.mark,callback:function(e){t.$set(t.formItem,"mark",e)},expression:"formItem.mark"}})],1)],1)])])]),r("el-dialog",{attrs:{visible:t.labelShow,title:"请选择用户标签",modal:!1,"show-close":!0,width:"540px"},on:{"update:visible":function(e){t.labelShow=e}}},[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,"7631a9d8",null).exports},data:function(){return{isEdit:!1,theme2:"light",list:[{val:"order",label:"消费记录"},{val:"integral",label:"积分明细"},{val:"sign",label:"签到记录"},{val:"coupon",label:"持有优惠券"},{val:"balance_change",label:"余额变动"},{val:"spread",label:"好友关系"}],modals:!1,spinShow:!1,detailsData:[],userId:0,loading:!1,userFrom:{type:"order",page:1,limit:20},total:0,columns:[],userLists:[],psInfo:{},activeName:"user"}},created:function(){},methods:{edit:function(){this.activeName="user",this.isEdit=!this.isEdit},editSave:function(){this.$refs.editForm.setUser()},draChange:function(){this.isEdit=!1},getDetails:function(t){var e=this;this.activeName="user",this.userId=t,this.spinShow=!0,this.isEdit=!1,Object(a.f)(t).then(function(){var t=Object(n.a)(d().mark((function t(r){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===r.status?(i=r.data,e.detailsData=i.headerList,e.psInfo=i.ps_info,e.spinShow=!1):(e.spinShow=!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.spinShow=!1,e.$message.error(t.msg)}))},changeTab:function(t){this.activeName=t.name,this.changeType()},changeType:function(){var t,e=this;this.loading=!0,this.userFrom.type=this.activeName,this.isEdit=!1,"user"!=this.activeName&&(""===this.userFrom.type&&(this.userFrom.type="order"),t={id:this.userId,datas:this.userFrom},Object(a.n)(t).then(function(){var t=Object(n.a)(d().mark((function t(r){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200!==r.status?t.next=21:(i=r.data,e.userLists=i.list,e.total=i.count,t.t0=e.userFrom.type,t.next="order"===t.t0?7:"integral"===t.t0?9:"sign"===t.t0?11:"coupon"===t.t0?13:"balance_change"===t.t0?15:17);break;case 7:return e.columns=[{title:"订单ID",key:"order_id",minWidth:160},{title:"收货人",key:"real_name",minWidth:100},{title:"商品数量",key:"total_num",minWidth:90},{title:"实付金额",key:"pay_price",minWidth:120},{title:"交易完成时间",key:"pay_time",minWidth:120}],t.abrupt("break",18);case 9:return e.columns=[{title:"来源/用途",key:"title",minWidth:120},{title:"积分变化",slot:"number",minWidth:120},{title:"变化后积分",key:"balance",minWidth:120},{title:"日期",key:"add_time",minWidth:120},{title:"备注",key:"mark",minWidth:120}],t.abrupt("break",18);case 11:return e.columns=[{title:"动作",key:"title",minWidth:120},{title:"获得积分",key:"number",minWidth:120},{title:"签到时间",key:"add_time",minWidth:120},{title:"备注",key:"mark",minWidth:120}],t.abrupt("break",18);case 13:return e.columns=[{title:"优惠券名称",key:"coupon_title",minWidth:120},{title:"面值",key:"coupon_price",minWidth:120},{title:"有效期(天)",key:"coupon_time",minWidth:120},{title:"兑换时间",key:"_add_time",minWidth:120}],t.abrupt("break",18);case 15:return e.columns=[{title:"动作",key:"title",minWidth:120},{title:"余额变动",slot:"number",minWidth:120},{title:"当前余额",key:"balance",minWidth:120},{title:"创建时间",key:"add_time",minWidth:120},{title:"备注",key:"mark",minWidth:120}],t.abrupt("break",18);case 17:e.columns=[{title:"ID",key:"uid",minWidth:120},{title:"昵称",key:"nickname",minWidth:120},{title:"等级",key:"type",minWidth:120},{title:"加入时间",key:"add_time",minWidth:120}];case 18:e.loading=!1,t.next=23;break;case 21:e.loading=!1,e.$message.error(r.msg);case 23: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)})))}}},r("564e"),r("5829"),u=Object(l.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticStyle:{width:"100%"}},[r("el-drawer",{attrs:{visible:t.modals,title:"用户详情",wrapperClosable:!1,size:1100},on:{"update:visible":function(e){t.modals=e},closed:t.draChange}},[r("div",{staticClass:"acea-row head"},[r("div",{staticClass:"avatar mr15"},[r("img",{attrs:{src:t.psInfo.avatar}})]),r("div",{staticClass:"dashboard-workplace-header-tip"},[r("p",{staticClass:"dashboard-workplace-header-tip-title",domProps:{textContent:t._s(t.psInfo.nickname||"-")}}),r("div",{staticClass:"dashboard-workplace-header-tip-desc"},t._l(t.detailsData,(function(e,i){return r("span",{key:i,staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v(t._s(e.title+""+e.value))])})),0)]),this.psInfo.is_del?t._e():r("div",{staticClass:"edit-btn"},[t.isEdit?t._e():r("el-button",{attrs:{type:"primary"},on:{click:t.edit}},[t._v("编辑")]),t.isEdit?r("el-button",{on:{click:t.edit}},[t._v("取消")]):t._e(),t.isEdit?r("el-button",{attrs:{type:"primary"},on:{click:t.editSave}},[t._v("保存")]):t._e()],1)]),r("el-row",{staticClass:"mt14",attrs:{justify:"space-between"}},[r("el-col",{attrs:{span:24}},[r("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.changeTab},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[r("el-tab-pane",{attrs:{name:"user",label:"用户信息"}},[t.isEdit?r("userEditForm",{ref:"editForm",attrs:{userId:t.userId},on:{success:function(e){return t.getDetails(t.userId)}}}):r("user-info",{attrs:{"ps-info":t.psInfo}})],1),t._l(t.list,(function(e,i){return r("el-tab-pane",{key:i,attrs:{name:e.val,label:e.label}},[[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",refInFor:!0,staticClass:"mt20",attrs:{data:t.userLists,"max-height":"400","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},t._l(t.columns,(function(e,i){return r("el-table-column",{key:i,attrs:{label:e.title,"min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(i){return[e.key?[r("div",[r("span",[t._v(t._s(i.row[e.key]))])])]:"number"===e.slot?[r("div",{class:i.row.pm?"plusColor":"reduceColor"},[t._v("\n "+t._s(i.row.pm?"+"+i.row.number:"-"+i.row.number)+"\n ")])]:t._e()]}}],null,!0)})})),1),r("div",{staticClass:"acea-row row-right page"},[t.total?r("pagination",{attrs:{total:t.total,page:t.userFrom.page,limit:t.userFrom.limit},on:{"update:page":function(e){return t.$set(t.userFrom,"page",e)},"update:limit":function(e){return t.$set(t.userFrom,"limit",e)},pagination:t.changeType}}):t._e()],1)]],2)}))],2)],1)],1)],1)],1)}),[],!1,null,"489e14d9",null),e.a=u.exports},b163:function(t,e,r){},bbf7:function(t,e,r){"use strict";var i=r("ca10");r.n(i).a},c23d:function(t,e,r){},ca10:function(t,e,r){},de3f:function(t,e,r){}}]);