CRMEB/crmeb/public/admin/system_static/js/chunk-1bc71a8c.8b3483fb.js
2023-06-12 14:41:51 +08:00

1 line
43 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-1bc71a8c"],{"232f":function(t,e,r){"use strict";r("a9e3"),r("d81d"),r("a434");var n=r("c24f"),i={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(n.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(n.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("7c7a"),r=r("2877"),r=Object(r.a)(i,(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,n){return r("div",{key:n,staticClass:"label-box"},[r("div",{staticClass:"title"},[t._v(t._s(e.name))]),r("div",{staticClass:"list"},t._l(e.label,(function(e,n){return r("div",{key:n,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:"footer"},[r("Button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确定")]),r("Button",{staticClass:"btns",attrs:{type:"primary",ghost:""},on:{click:t.cancel}},[t._v("取消")])],1)],2)}),[],!1,null,"0d8ad7da",null);e.a=r.exports},"2ec3":function(t,e,r){},"31b4":function(t,e,r){"use strict";var n=r("f3f3"),i=r("9860"),a=(i=r.n(i),r("6b6c")),s=r("2f62");i={name:"edit",components:{formCreate:i.a.$form()},computed:Object(n.a)({},Object(s.d)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},data:function(){return{modals:!1,type:0,loading:!1,config:{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)},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("9646"),n=r("2877"),s=Object(n.a)(i,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return t.FromData?e("div",[e("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,"z-index":1,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/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("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit}})],2)],1):t._e()}),[],!1,null,"5cc97a38",null);e.a=s.exports},"4c18":function(t,e,r){},"5a0c":function(t,e,r){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="day",a="week",s="month",o="quarter",c="year",l=/^(\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 n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},f={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+d(n,2,"0")+":"+d(i,2,"0")},m:function(t,e){var r=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(r,s),i=e-n<0,a=t.clone().add(r+(i?-1:1),s);return Number(-(r+(e-n)/(i?n-a:a-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return{M:s,y:c,w:a,d:i,D:"date",h:n,m:r,s:e,ms:t,Q:o}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},h={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("_")},m="en",p={},v=(p[m]=h,function(t){return t instanceof _}),y=function(t,e,r){var n;if(!t)return m;if("string"==typeof t)p[t]&&(n=t),e&&(p[t]=e,n=t);else{var i=t.name;p[i]=t,n=i}return!r&&n&&(m=n),n||!r&&m},b=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=y,g.i=v,g.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})},function(){function d(t){this.$L=this.$L||y(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 n=e.match(l);if(n)return r?new Date(Date.UTC(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)):new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[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=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},f.isAfter=function(t,e){return b(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<b(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",c)},f.month=function(t){return this.$g(t,"$M",s)},f.day=function(t){return this.$g(t,"$W",i)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",n)},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 l=this,u=!!g.u(o)||o,d=g.p(t),f=function(t,e){var r=g.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return u?r:r.endOf(i)},h=function(t,e){return g.w(l.toDate()[t].apply(l.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},m=this.$W,p=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case c:return u?f(1,0):f(31,11);case s:return u?f(1,p):f(0,p+1);case a:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return f(u?v-_:v+(6-_),p);case i:case"date":return h(y+"Hours",0);case n:return h(y+"Minutes",1);case r:return h(y+"Seconds",2);case e:return h(y+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(a,o){var l,u=g.p(a),d="set"+(this.$u?"UTC":""),f=(l={},l[i]=d+"Date",l.date=d+"Date",l[s]=d+"Month",l[c]=d+"FullYear",l[n]=d+"Hours",l[r]=d+"Minutes",l[e]=d+"Seconds",l[t]=d+"Milliseconds",l)[u],h=u===i?this.$D+(o-this.$W):o;if(u===s||u===c){var m=this.clone().set("date",1);m.$d[f](h),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else f&&this.$d[f](h);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 l,u=this;t=Number(t);var d=g.p(o),f=function(e){var r=b(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===c)return this.set(c,this.$y+t);if(d===i)return f(1);if(d===a)return f(7);var h=(l={},l[r]=6e4,l[n]=36e5,l[e]=1e3,l)[d]||1,m=this.$d.getTime()+t*h;return g.w(m,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",n=g.z(this),i=this.$locale(),a=this.$H,s=this.$m,o=this.$M,c=i.weekdays,l=i.months,d=function(t,n,i,a){return t&&(t[n]||t(e,r))||i[n].substr(0,a)},f=function(t){return g.s(a%12||12,t,"0")},h=i.meridiem||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:g.s(o+1,2,"0"),MMM:d(i.monthsShort,o,l,3),MMMM:d(l,o),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,c,2),ddd:d(i.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(a),HH:g.s(a,2,"0"),h:f(1),hh:f(2),a:h(a,s,!0),A:h(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:n};return r.replace(u,(function(t,e){return e||m[t]||n.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,l,u){var d,f=g.p(l),h=b(t),m=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,v=g.m(this,h);return v=(d={},d[c]=v/12,d[s]=v,d[o]=v/3,d[a]=(p-m)/6048e5,d[i]=(p-m)/864e5,d[n]=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(),n=y(t,e,!0);return n&&(r.$L=n),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 b.prototype=_.prototype,b.extend=function(t,e){return t(e,_,b),b},b.locale=y,b.isDayjs=v,b.unix=function(t){return b(1e3*t)},b.en=p[m],b.Ls=p,b}()},"65a5":function(t,e,r){"use strict";var n=r("c5c4");r.n(n).a},7440:function(t,e,r){},7514:function(t,e,r){"use strict";var n=r("df38");r.n(n).a},"7c7a":function(t,e,r){"use strict";var n=r("7440");r.n(n).a},9646:function(t,e,r){"use strict";var n=r("2ec3");r.n(n).a},a6de:function(t,e,r){"use strict";var n=r("aadb");r.n(n).a},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("b0c0"),r("131a"),r("fb6a");var n=r("0122"),i=r("c964"),a=r("c24f"),s=r("5a0c"),o=r.n(s),c=(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("a6de"),r("2877"));s=Object(c.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("用户编号:")]),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,"3ea2be2b",null).exports;function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",c=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,n){var a,s,o,c;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new C(n||[]);return i(e,"_invoke",{value:(a=t,s=r,o=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return k()}for(o.method=t,o.arg=e;;){var r=o.delegate;if(r&&(r=function t(e,r){var n=r.method,i=e.iterator[n];return void 0===i?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=f(i,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(i=n.arg,i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,o),r)){if(r===h)continue;return r}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);if(c="executing",r=f(a,s,o),"normal"===r.type){if(c=o.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(c="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 h={};function m(){}function p(){}function v(){}a={};var y=(u(a,s,(function(){return this})),Object.getPrototypeOf),b=(y=y&&y(y($([]))),y&&y!==e&&r.call(y,s)&&(a=y),v.prototype=m.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;i(this,"_invoke",{value:function(i,s){function o(){return new e((function(a,o){!function i(a,s,o,c){var l;a=f(t[a],t,s);if("throw"!==a.type)return(s=(l=a.arg).value)&&"object"==Object(n.a)(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){i("next",t,o,c)}),(function(t){i("throw",t,o,c)})):e.resolve(s).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,c)}));c(a.arg)}(i,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 C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function $(t){if(t){var e,n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:k}}function k(){return{value:void 0,done:!0}}return i(b,"constructor",{value:p.prototype=v,configurable:!0}),i(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}},g(_.prototype),u(_.prototype,o,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var s=new _(d(e,r,n,i),a);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},g(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),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=$,C.prototype={constructor:C,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 n(r,n){return s.type="throw",s.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;0<=i;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var o=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(o&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;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,h):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),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),I(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(r=i.completion).type&&(n=r.arg,I(i)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:$(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},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(e.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(i.a)(l().mark((function t(r){var n;return l().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),n=Object.keys(e.formItem),e.userData.userInfo?(n.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(t.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,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var a,s,o,c;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),n=new C(n||[]);return i(e,"_invoke",{value:(a=t,s=r,o=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return k()}for(o.method=t,o.arg=e;;){var r=o.delegate;if(r&&(r=function t(e,r){var n=r.method,i=e.iterator[n];return void 0===i?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=f(i,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(i=n.arg,i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,o),r)){if(r===h)continue;return r}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===c)throw c="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);if(c="executing",r=f(a,s,o),"normal"===r.type){if(c=o.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:o.done}}"throw"===r.type&&(c="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 h={};function m(){}function p(){}function v(){}a={};var y=(l(a,s,(function(){return this})),Object.getPrototypeOf),b=(y=y&&y(y($([]))),y&&y!==e&&r.call(y,s)&&(a=y),v.prototype=m.prototype=Object.create(a));function g(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var a;i(this,"_invoke",{value:function(i,s){function o(){return new e((function(a,o){!function i(a,s,o,c){var l;a=f(t[a],t,s);if("throw"!==a.type)return(s=(l=a.arg).value)&&"object"==Object(n.a)(s)&&r.call(s,"__await")?e.resolve(s.__await).then((function(t){i("next",t,o,c)}),(function(t){i("throw",t,o,c)})):e.resolve(s).then((function(t){l.value=t,o(l)}),(function(t){return i("throw",t,o,c)}));c(a.arg)}(i,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 C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function $(t){if(t){var e,n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:k}}function k(){return{value:void 0,done:!0}}return i(b,"constructor",{value:p.prototype=v,configurable:!0}),i(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},g(_.prototype),l(_.prototype,o,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var s=new _(u(e,r,n,i),a);return t.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},g(b),l(b,c,"Generator"),l(b,s,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=$,C.prototype={constructor:C,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 n(r,n){return s.type="throw",s.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;0<=i;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var o=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(o&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;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,h):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),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),I(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(r=i.completion).type&&(n=r.arg,I(i)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:$(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}r("65a5"),s={name:"userDetails",components:{userInfo:s,userEditForm:Object(c.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"user-info"},[r("Form",{ref:"formItem",attrs:{rules:t.ruleValidate,model:t.formItem,"label-width":100},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("FormItem",{attrs:{label:"用户ID"}},[r("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("FormItem",{attrs:{label:"真实姓名:",prop:"real_name"}},[r("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("FormItem",{attrs:{label:"手机号码:",prop:"phone"}},[r("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("FormItem",{attrs:{label:"生日:"}},[r("DatePicker",{staticClass:"form-sty",attrs:{type:"date",value:t.formItem.birthday,placeholder:"请选择生日",format:"yyyy-MM-dd"},on:{"on-change":function(e){t.formItem.birthday=e}}})],1)],1),r("div",{staticClass:"item"},[r("FormItem",{attrs:{label:"身份证号:"}},[r("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("FormItem",{attrs:{label:"用户地址:"}},[r("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("FormItem",{attrs:{label:"登录密码:",prop:"pwd"}},[r("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("FormItem",{attrs:{label:"确认密码:",prop:"true_pwd"}},[r("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("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,n){return r("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)],1)],1),r("div",{staticClass:"item"},[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,n){return r("Option",{key:n,attrs:{value:e.id}},[t._v(t._s(e.group_name))])})),1)],1)],1),r("div",{staticClass:"item lang"},[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,n){return r("Tag",{key:n,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("新增标签")])])])],1),r("div",{staticClass:"item lang"},[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)],1),r("div",{staticClass:"item lang"},[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)],1),r("div",{staticClass:"item lang"},[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("div",{staticClass:"section"},[r("div",{staticClass:"section-hd"},[t._v("用户备注")]),r("div",{staticClass:"section-bd"},[r("div",{staticClass:"item"},[r("FormItem",{attrs:{label:"用户备注:"}},[r("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("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,"12045700",null).exports},data:function(){return{isEdit:!1,theme2:"light",list:[{val:"user",label:"用户信息"},{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(t){t||(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(i.a)(d().mark((function t(r){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===r.status?(n=r.data,e.detailsData=n.headerList,e.psInfo=n.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)}))},pageChange:function(t){this.userFrom.page=t,this.changeType(this.userFrom.type)},changeType:function(t){var e=this;this.loading=!0,this.userFrom.type=t,this.activeName=t,this.isEdit=!1,"user"!=t&&(""===this.userFrom.type&&(this.userFrom.type="order"),t={id:this.userId,datas:this.userFrom},Object(a.n)(t).then(function(){var t=Object(i.a)(d().mark((function t(r){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200!==r.status?t.next=21:(n=r.data,e.userLists=n.list,e.total=n.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:"积分变化",key:"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("b9a7"),r("7514"),u=Object(c.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticStyle:{width:"100%"}},[r("Drawer",{attrs:{title:"用户详情",closable:!1,width:"1100",scrollable:""},on:{"on-visible-change":t.draChange},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.spinShow?r("Spin",{attrs:{size:"large",fix:""}}):t._e(),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,n){return r("span",{key:n,staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v(t._s(e.title+""+e.value))])})),0)]),r("div",{staticClass:"edit-btn"},[t.isEdit?t._e():r("Button",{attrs:{type:"primary"},on:{click:t.edit}},[t._v("编辑")]),t.isEdit?r("Button",{staticClass:"mr20",on:{click:t.edit}},[t._v("取消")]):t._e(),t.isEdit?r("Button",{attrs:{type:"primary"},on:{click:t.editSave}},[t._v("保存")]):t._e()],1)]),r("Row",{staticClass:"mt25",attrs:{type:"flex",justify:"space-between"}},[r("Col",{attrs:{span:"24"}},[r("Tabs",{staticClass:"mb20",attrs:{value:t.activeName},on:{"on-click":t.changeType}},t._l(t.list,(function(t,e){return r("TabPane",{key:e,attrs:{name:t.val,label:t.label}})})),1)],1),r("Col",{attrs:{span:"24"}},["user"===t.activeName?[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}})]:[r("Table",{ref:"table",attrs:{columns:t.columns,data:t.userLists,"max-height":"400",loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"number",fn:function(e){return e=e.row,[r("div",{class:e.pm?"plusColor":"reduceColor"},[t._v("\n "+t._s(e.pm?"+"+e.number:"-"+e.number)+"\n ")])]}}])}),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)]],2)],1)],1)],1)}),[],!1,null,"5c439a6a",null),e.a=u.exports},aadb:function(t,e,r){},b9a7:function(t,e,r){"use strict";var n=r("4c18");r.n(n).a},c5c4:function(t,e,r){},df38:function(t,e,r){}}]);