徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
40 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3f9bc656"],{"06ff":function(t,e,r){},"31b4":function(t,e,r){"use strict";var n=r("9860"),o=r.n(n),i=r("b6bd"),a=r("2f62");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={name:"edit",components:{formCreate:o.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(a.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,default:0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e,r=this;(setTimeout((function(){r.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,e=t,Object(i.a)({url:this.FromData.action,method:this.FromData.method,data:e}).then((function(t){r.$parent.getList(),r.$Message.success(t.msg),r.modals=!1,setTimeout((function(){r.$emit("submitFail")}),1e3)})).catch((function(t){r.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},f=(r("c262"),r("2877")),d=Object(f.a)(l,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("Modal",{class:t.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,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:{"on-submit":t.onSubmit}})],2)],1):t._e()}),[],!1,null,"2850396f",null);e.a=d.exports},"3fe8":function(t,e,r){"use strict";r("c0f0")},"58c2":function(t,e,r){"use strict";r("06ff")},"5b9e":function(t,e,r){"use strict";r.r(e);var n=r("2f62"),o=r("b562"),i=r("c42b"),a=r("31b4"),s=r("a8e0");function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,a=Object.create(i.prototype),s=new T(n||[]);return o(a,"_invoke",{value:E(t,r,s)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};f(x,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(V([])));j&&j!==r&&n.call(j,a)&&(x=j);var L=_.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,s){var c=h(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=m;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=P(s,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?v:p,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function C(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 F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function V(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=_,o(L,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),f(S.prototype,s,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(L),f(L,l,"Generator"),f(L,a,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=V,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},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),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:V(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function l(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function f(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){l(i,n,o,a,s,"next",t)}function s(t){l(i,n,o,a,s,"throw",t)}a(void 0)}))}}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p={name:"user",components:{newsCategory:i.a,editFrom:a.a,sendFrom:s.a},data:function(){return{tagidList:[],isShowSend:!0,maxCols:4,scrollerHeight:"600",contentTop:"130",contentWidth:"98%",modal13:!1,timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},formValidate:{limit:15,page:1,nickname:"",data:"",tagid_list:"",sex:"",groupid:0,subscribe:"",export:2},loading:!1,tabList:[],total:0,value2:"",grid:{xl:8,lg:8,md:8,sm:24,xs:24},columns4:[{type:"selection",min:60,align:"center"},{title:"ID",key:"uid"},{title:"微信用户名称",key:"nickname"},{title:"头像",slot:"headimgurl"},{title:"性别",slot:"sex"},{title:"地区",slot:"country"},{title:"是否关注公众号",slot:"subscribe"},{title:"用户分组",key:"groupid"},{title:"用户标签",key:"tagid_list"},{title:"操作",slot:"createModalFrame",fixed:"right",width:100}],tagList:[],groupList:[],FromData:null,selectionList:[],user_ids:""}},computed:h(h({},Object(n.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getListTag(),this.getList()},methods:{changeMenu:function(t,e){var r=this;switch(e){case"1":this.editGroup("app/wechat/user_group/".concat(t.openid,"/edit"));break;case"2":this.editGroup("app/wechat/user_tag/".concat(t.openid,"/edit"));break;default:var n={title:"同步该用户标签",url:"app/wechat/syn_tag/".concat(t.openid),method:"PUT",ids:""};this.$modalSure(n).then((function(t){r.$Message.success(t.msg),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))}},editGroup:function(t){var e=this;Object(o.c)(t).then(function(){var t=f(c().mark((function t(r){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=r.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},submitFail:function(){this.getList()},submitModel:function(){this.getList()},onSend:function(){0===this.selectionList.length?this.$Message.warning("请选择要发送优惠券的用户"):(this.$refs.sends.modals=!0,this.$refs.sends.getList())},onSendPic:function(){0===this.selectionList.length?this.$Message.warning("请选择要发送图文消息的用户"):this.modal13=!0},onSelectTab:function(t){this.selectionList=t;var e=[];this.selectionList.map((function(t){e.push(t.uid)})),this.user_ids=e.join(",")},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.getList()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.getList()},getListTag:function(){var t=this,e={id:"",name:"全部"};Object(o.o)().then(function(){var r=f(c().mark((function r(n){var o;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=n.data,t.tagList=o.tagList,t.groupList=o.groupList,t.groupList.unshift(e);case 4:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},getList:function(){var t=this;this.loading=!0,this.formValidate.sex=this.formValidate.sex||"",this.formValidate.subscribe=this.formValidate.subscribe||"",this.formValidate.tagid_list=this.tagidList.join(","),Object(o.H)(this.formValidate).then(function(){var e=f(c().mark((function e(r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.tabList=n.list,t.total=n.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.getList()}}},g=(r("58c2"),r("2877")),v=Object(g.a)(p,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}})],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"table_box"},[e("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("Row",{attrs:{gutter:24,type:"flex",justify:"end"}},[e("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[e("FormItem",{attrs:{label:t.fromList.title+":"}},[e("RadioGroup",{staticClass:"mr15",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(r,n){return e("Radio",{key:n,attrs:{label:r.val}},[t._v("\n "+t._s(r.text)+"\n ")])})),1),e("DatePicker",{staticClass:"width20",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{"on-change":t.onchangeTime}})],1)],1),e("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[e("FormItem",{attrs:{label:"用户分组:"}},[e("RadioGroup",{attrs:{type:"button"},model:{value:t.formValidate.groupid,callback:function(e){t.$set(t.formValidate,"groupid",e)},expression:"formValidate.groupid"}},t._l(t.groupList,(function(r,n){return e("Radio",{key:n,attrs:{label:r.id}},[t._v(t._s(r.name))])})),1)],1)],1),e("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[e("FormItem",{attrs:{label:"用户标签:"}},[e("TagSelect",{model:{value:t.tagidList,callback:function(e){t.tagidList=e},expression:"tagidList"}},t._l(t.tagList,(function(r,n){return e("TagSelectOption",{key:n,attrs:{name:r.id}},[t._v(t._s(r.name))])})),1)],1)],1),e("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[e("Col",{attrs:{xl:7,lg:12,md:12,sm:24,xs:24}},[e("FormItem",{attrs:{label:"用户名称:"}},[e("Input",{directives:[{name:"width",rawName:"v-width",value:"90%",expression:"'90%'"}],attrs:{placeholder:"请输入用户名称"},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1)],1),e("Col",{staticClass:"sex_box",attrs:{xl:7,lg:12,md:12,sm:24,xs:24}},[e("FormItem",{attrs:{label:"性别:"}},[e("Select",{staticClass:"percentage9",attrs:{clearable:""},model:{value:t.formValidate.sex,callback:function(e){t.$set(t.formValidate,"sex",e)},expression:"formValidate.sex"}},[e("Option",{attrs:{value:"1"}},[t._v("男")]),e("Option",{attrs:{value:"2"}},[t._v("女")]),e("Option",{attrs:{value:"0"}},[t._v("保密")])],1)],1)],1),e("Col",{staticClass:"subscribe_box",attrs:{xl:7,lg:12,md:12,sm:24,xs:24}},[e("FormItem",{attrs:{label:"是否关注公众号:"}},[e("Select",{staticClass:"percentage9",attrs:{clearable:""},model:{value:t.formValidate.subscribe,callback:function(e){t.$set(t.formValidate,"subscribe",e)},expression:"formValidate.subscribe"}},[e("Option",{attrs:{value:"1"}},[t._v("是")]),e("Option",{attrs:{value:"0"}},[t._v("否")])],1)],1)],1),e("Col",{staticClass:"btn_box",attrs:{xl:3,lg:3,md:3,sm:24,xs:24}},[e("FormItem",[e("Button",{staticClass:"userSearch",attrs:{type:"primary",icon:"ios-search",label:"default"},on:{click:t.userSearchs}},[t._v("搜索")])],1)],1)],1),e("Divider",{attrs:{dashed:""}}),e("Col",{attrs:{span:"24"}},[e("Button",{staticClass:"mr20",attrs:{type:"primary"},on:{click:t.onSend}},[t._v("发送优惠券")]),e("Button",{staticClass:"greens mr20",attrs:{size:"default"},on:{click:t.onSendPic}},[e("Icon",{attrs:{type:"md-list"}}),t._v("\n 发送图文消息\n ")],1)],1)],1)],1)],1),e("Table",{ref:"selection",staticClass:"mt25",attrs:{columns:t.columns4,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},on:{"on-selection-change":t.onSelectTab},scopedSlots:t._u([{key:"headimgurl",fn:function(t){var r=t.row;return t.index,[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.headimgurl,expression:"row.headimgurl"}]})])])]}},{key:"sex",fn:function(r){var n=r.row;return[e("span",{directives:[{name:"show",rawName:"v-show",value:1===n.sex,expression:"row.sex === 1"}]},[t._v("男")]),e("span",{directives:[{name:"show",rawName:"v-show",value:2===n.sex,expression:"row.sex === 2"}]},[t._v("女")]),e("span",{directives:[{name:"show",rawName:"v-show",value:0===n.sex,expression:"row.sex === 0"}]},[t._v("保密")])]}},{key:"country",fn:function(r){var n=r.row;return[e("span",[t._v(t._s(n.country+n.province+n.city))])]}},{key:"subscribe",fn:function(r){var n=r.row;return[e("span",{directives:[{name:"show",rawName:"v-show",value:1===n.subscribe,expression:"row.subscribe === 1"}]},[t._v("关注")]),e("span",{directives:[{name:"show",rawName:"v-show",value:0===n.subscribe,expression:"row.subscribe === 0"}]},[t._v("未关注")])]}},{key:"createModalFrame",fn:function(r){var n=r.row;return[[e("Dropdown",{on:{"on-click":function(e){return t.changeMenu(n,e)}}},[e("a",{attrs:{href:"javascript:void(0)"}},[t._v("操作\n "),e("Icon",{attrs:{type:"ios-arrow-down"}})],1),e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:n.subscribe,expression:"row.subscribe"}],attrs:{name:"1"}},[t._v("修改分组")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:n.subscribe,expression:"row.subscribe"}],attrs:{name:"2"}},[t._v("修改标签")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:n.subscribe,expression:"row.subscribe"}],attrs:{name:"3"}},[t._v("同步标签")]),e("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:!n.subscribe,expression:"!row.subscribe"}]},[t._v("无法操作")])],1)],1)]]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),e("send-from",{ref:"sends",attrs:{userIds:t.user_ids}}),e("Modal",{staticClass:"modelBox",attrs:{scrollable:"",title:"发送消息","z-index":100,width:"1200",height:"800","footer-hide":""},model:{value:t.modal13,callback:function(e){t.modal13=e},expression:"modal13"}},[t.modal13?e("news-category",{attrs:{isShowSend:t.isShowSend,userIds:t.user_ids,scrollerHeight:t.scrollerHeight,contentTop:t.contentTop,contentWidth:t.contentWidth,maxCols:t.maxCols}}):t._e()],1)],1)}),[],!1,null,"63392414",null);e.default=v.exports},a8e0:function(t,e,r){"use strict";var n=r("c24f");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),s=new T(n||[]);return a(i,"_invoke",{value:E(t,r,s)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",g="executing",v="completed",b={};function y(){}function w(){}function _(){}var x={};f(x,u,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(V([])));j&&j!==r&&n.call(j,u)&&(x=j);var L=_.prototype=y.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,a,s,u){var c=h(t[i],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==o(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=m;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=P(s,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=h(e,r,n);if("normal"===c.type){if(o=n.done?v:p,c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function C(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 F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function V(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(o(e)+" is not iterable")}return w.prototype=_,a(L,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(S.prototype),f(S.prototype,c,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(L),f(L,l,"Generator"),f(L,u,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=V,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(F),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},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),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),F(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;F(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:V(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},e}function a(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}var s={name:"send",props:{userIds:{type:String,default:""},isAll:{type:Number|String,default:0},where:{type:Object,default:function(){return{}}}},created:function(){},data:function(){return{modals:!1,loading:!1,couponList:[],columns:[{title:"优惠券名称",key:"title",align:"center",minWidth:100},{title:"优惠券面值",slot:"coupon_price",align:"center",minWidth:80},{title:"优惠券最低消费",key:"use_min_price",align:"center",minWidth:150},{title:"优惠券有效期限",key:"coupon_time",align:"center",minWidth:120},{title:"操作",slot:"action",align:"center",width:120}],page:{page:1,limit:15,coupon_title:"",type:"send"},total:0}},methods:{getList:function(t){var e=this;this.loading=!0,Object(n.d)(this.page).then(function(){var t,r=(t=i().mark((function t(r){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===r.status?(n=r.data,e.couponList=n.list,e.total=n.count,e.loading=!1):(e.loading=!1,e.$Message.error(r.msg));case 1:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function s(t){a(i,n,o,s,u,"next",t)}function u(t){a(i,n,o,s,u,"throw",t)}s(void 0)}))});return function(t){return r.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 n=this,o={title:e,info:"发送优惠券后将无法撤回,请谨慎操作!",num:r,url:"marketing/coupon/user/grant",method:"post",ids:{id:t.id,all:this.isAll}};0==this.isAll?o.ids.uid=this.userIds:1==this.isAll&&(o.ids.uid=this.userIds,o.ids.where={city:this.where.city,country:this.where.country,field_key:this.where.field_key,group_id:this.where.group_id,isMember:this.where.isMember,is_promoter:this.where.is_promoter,label_id:this.where.label_id,level:this.where.level,nickname:this.where.nickname,pay_count:this.where.pay_count,province:this.where.province,sex:this.where.sex,status:this.where.status,user_time:this.where.user_time,user_time_type:this.where.user_time_type,user_type:this.where.user_type}),this.$modalSure(o).then((function(t){n.$Message.success(t.msg)})).catch((function(t){n.$Message.error(t.msg)}))}}},u=(r("3fe8"),r("2877")),c=Object(u.a)(s,(function(){var t=this,e=t._self._c;return e("div",[e("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"}},[e("div",{staticClass:"acea-row"},[e("span",{staticClass:"sp"},[t._v("优惠券名称:")]),e("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),e("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_price",fn:function(r){var n=r.row;return[1==n.coupon_type?e("span",[t._v(t._s(n.coupon_price)+"元")]):t._e(),2==n.coupon_type?e("span",[t._v(t._s(parseFloat(n.coupon_price)/10)+"折("+t._s(n.coupon_price.toString().split(".")[0])+"%)")]):t._e()]}},{key:"action",fn:function(r){var n=r.row,o=r.index;return[e("a",{on:{click:function(e){return t.sendGrant(n,"发送优惠券",o)}}},[t._v("发送")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.page.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"ea8d1cf8",null);e.a=c.exports},c0f0:function(t,e,r){},c24f:function(t,e,r){"use strict";r.d(e,"X",(function(){return o})),r.d(e,"N",(function(){return i})),r.d(e,"M",(function(){return a})),r.d(e,"k",(function(){return s})),r.d(e,"r",(function(){return u})),r.d(e,"d",(function(){return c})),r.d(e,"h",(function(){return l})),r.d(e,"g",(function(){return f})),r.d(e,"q",(function(){return d})),r.d(e,"s",(function(){return h})),r.d(e,"J",(function(){return m})),r.d(e,"P",(function(){return p})),r.d(e,"L",(function(){return g})),r.d(e,"K",(function(){return v})),r.d(e,"f",(function(){return b})),r.d(e,"e",(function(){return y})),r.d(e,"n",(function(){return w})),r.d(e,"R",(function(){return _})),r.d(e,"p",(function(){return x})),r.d(e,"Q",(function(){return O})),r.d(e,"cb",(function(){return j})),r.d(e,"U",(function(){return L})),r.d(e,"S",(function(){return k})),r.d(e,"T",(function(){return S})),r.d(e,"W",(function(){return E})),r.d(e,"V",(function(){return P})),r.d(e,"Y",(function(){return C})),r.d(e,"v",(function(){return F})),r.d(e,"w",(function(){return T})),r.d(e,"Z",(function(){return V})),r.d(e,"i",(function(){return D})),r.d(e,"bb",(function(){return N})),r.d(e,"C",(function(){return I})),r.d(e,"db",(function(){return M})),r.d(e,"m",(function(){return $})),r.d(e,"ab",(function(){return G})),r.d(e,"F",(function(){return A})),r.d(e,"B",(function(){return R})),r.d(e,"A",(function(){return W})),r.d(e,"z",(function(){return z})),r.d(e,"D",(function(){return B})),r.d(e,"y",(function(){return U})),r.d(e,"x",(function(){return H})),r.d(e,"u",(function(){return Y})),r.d(e,"t",(function(){return J})),r.d(e,"o",(function(){return q})),r.d(e,"l",(function(){return K})),r.d(e,"G",(function(){return Q})),r.d(e,"I",(function(){return X})),r.d(e,"eb",(function(){return Z})),r.d(e,"O",(function(){return tt})),r.d(e,"E",(function(){return et})),r.d(e,"b",(function(){return rt})),r.d(e,"a",(function(){return nt})),r.d(e,"fb",(function(){return ot})),r.d(e,"j",(function(){return it})),r.d(e,"c",(function(){return at})),r.d(e,"H",(function(){return st}));var n=r("b6bd");function o(t){return Object(n.a)({url:"user/user",method:"get",params:t})}function i(t){return Object(n.a)({url:"setting/config/user/".concat(t),method:"get"})}function a(t,e){return Object(n.a)({url:"setting/config/user/".concat(t),method:"post",data:e})}function s(t){return Object(n.a)({url:"user/user/".concat(t,"/edit"),method:"get"})}function u(t){return Object(n.a)({url:"user/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function c(t){return Object(n.a)({url:"marketing/coupon/grant",method:"get",params:t})}function l(t){return Object(n.a)({url:"user/edit_other/".concat(t),method:"get"})}function f(t){return Object(n.a)({url:"user/user/".concat(t),method:"get"})}function d(t){return Object(n.a)({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function h(t){return Object(n.a)({url:"user/user_level/vip_list",method:"get",params:t})}function m(t){return Object(n.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function p(t,e){return Object(n.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function g(t){return Object(n.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function v(t){return Object(n.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function b(t){return Object(n.a)({url:"/user/user_level/create_task",method:"get",params:t})}function y(t){return Object(n.a)({url:"user/user_level/create",method:"get",params:t})}function w(t){return Object(n.a)({url:"user/give_level/".concat(t),method:"get"})}function _(t){return Object(n.a)({url:"user/user_group/list",method:"get",params:t})}function x(t){return Object(n.a)({url:"user/user_group/add/".concat(t),method:"get"})}function O(t){return Object(n.a)({url:"setting/update_admin",method:"PUT",data:t})}function j(t){return Object(n.a)({url:"user/set_group",method:"post",data:t})}function L(t){return Object(n.a)({url:"user/user_label",method:"get",params:t})}function k(t,e){return Object(n.a)({url:"user/user_label/add/".concat(t),method:"get",params:e})}function S(t){return Object(n.a)({url:"user/user_label_cate/all",method:"get",params:t})}function E(t){return Object(n.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function P(t){return Object(n.a)({url:"user/user_label_cate/create",method:"get"})}function C(t){return Object(n.a)({url:"/user/member_batch/index",method:"get",params:t})}function F(t,e){return Object(n.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function T(t,e){return Object(n.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function V(t,e){return Object(n.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function D(t,e){return Object(n.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function N(){return Object(n.a)({url:"/user/member/ship",method:"get"})}function I(t,e){return Object(n.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function M(){return Object(n.a)({url:"/user/user/syncUsers",method:"get"})}function $(){return Object(n.a)({url:"/user/user/create",method:"get"})}function G(){return Object(n.a)({url:"/user/member_scan",method:"get"})}function A(t,e){return Object(n.a)({url:"user/label/".concat(t),method:"post",data:e})}function R(t){return Object(n.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function W(){return Object(n.a)({url:"user/member/right",method:"get"})}function z(t){return Object(n.a)({url:"/user/member/record",method:"get",params:t})}function B(){return Object(n.a)({url:"user/member/ship_select",method:"get"})}function U(t){return Object(n.a)({url:"user/member_card/set_status",method:"get",params:t})}function H(t){return Object(n.a)({url:"user/member_ship/set_ship_status",method:"get",params:t})}function Y(t,e){return Object(n.a)({url:"user/member_agreement/save/".concat(t),method:"post",data:e})}function J(){return Object(n.a)({url:"user/member/agreement",method:"get"})}function q(t){return Object(n.a)({url:"user/give_level_time/".concat(t),method:"get"})}function K(t){return Object(n.a)({url:"user/label/".concat(t),method:"get"})}function Q(t){return Object(n.a)({url:"user/save_set_label",method:"put",data:t})}function X(t){return Object(n.a)({url:"setting/info",method:"get"})}function Z(t){return Object(n.a)({url:"user/visit_list/".concat(t.id),method:"get",params:t.datas})}function tt(t){return Object(n.a)({url:"user/spread_list/".concat(t.id),method:"get",params:t.datas})}function et(t){return Object(n.a)({url:"user/user/".concat(t.uid),method:"put",data:t})}function rt(t,e){return Object(n.a)({url:"agent/set_agent_agreement/".concat(t),method:"post",data:e})}function nt(){return Object(n.a)({url:"agent/get_agent_agreement",method:"get"})}function ot(){return Object(n.a)({url:"user/synchro/work/label",method:"get"})}function it(t){return Object(n.a)({url:"user/user/extend_info/".concat(t),method:"get"})}function at(t){return Object(n.a)({url:"user/batch_process",method:"post",data:t})}function st(t,e){return Object(n.a)({url:"/user/member/save/content/".concat(t),method:"post",data:e})}},c262:function(t,e,r){"use strict";r("c54c")},c54c:function(t,e,r){}}]);