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
16 KiB
1 lines
16 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-24925c49"],{"49f2":function(t,e,r){},"6d86":function(t,e,r){"use strict";r.r(e);var n=r("2f62"),o=r("c24f"),u=r("b0e7"),a=r("a069");function i(t){return(i="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(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 s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={components:{uploadPictures:u.a,WangEditor:a.a},data:function(){return{thead:[{title:"权益名称",key:"title"},{title:"展示名称",key:"show_title"},{title:"权益图标(80x80)",slot:"image"},{title:"权益简介",key:"explain"},{title:"权益状态",slot:"status"},{title:"操作",slot:"action"}],tbody:[],loading:!1,total:0,page:1,limit:30,modal1:!1,form:{id:"",right_type:"",title:"",show_title:"",image:"",explain:"",number:1,status:1},rules:{title:[{required:!0,message:"请输入权益名称",trigger:"blur"}],show_title:[{required:!0,message:"请输入展示名称",trigger:"blur"}],image:[{required:!0,message:"请上传权益图标"}],explain:[{required:!0,message:"请输入权益简介",trigger:"blur"}],number:[{required:!0,type:"integer",message:"请输入正整数"}]},modal2:!1,gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},modal3:!1,content:""}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(n.e)("media",["isMobile"])),created:function(){this.getRightList()},methods:{getRightList:function(){var t=this;this.loading=!0,Object(o.A)().then((function(e){var r=e.data,n=r.count,o=r.list;t.loading=!1,t.total=n,t.tbody=o})).catch((function(e){t.loading=!1,t.$Message.error(e)}))},statusChange:function(t){this.form.id=t.id,this.form.right_type=t.right_type,this.form.title=t.title,this.form.show_title=t.show_title,this.form.image=t.image,this.form.explain=t.explain,this.form.number=t.number,this.form.status=t.status,this.rightSave()},edit:function(t){this.modal1=!0,this.form.id=t.id,this.form.status=t.status,this.form.right_type=t.right_type,this.form.title=t.title,this.form.show_title=t.show_title,this.form.image=t.image,this.form.explain=t.explain,this.form.number=t.number},pageChange:function(t){this.page=t,this.getRightList()},rightSave:function(){var t=this;Object(o.B)(this.form).then((function(e){t.modal1=!1,t.getRightList(),t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))},formSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t&&e.rightSave()}))},callImage:function(){this.modal2=!0},getPic:function(t){this.form.image=t.att_dir,this.modal2=!1},editRight:function(t){this.modal3=!0,this.form.id=t.id,this.content=t.content},getEditorContent:function(t){this.content=t},saveMemberContent:function(){var t=this;Object(o.H)(this.form.id,{content:this.content}).then((function(e){t.modal3=!1,t.$Message.success(e.msg),t.getRightList()})).catch((function(e){t.$Message.error(e.msg)}))}}},m=(r("de08"),r("2877")),d=Object(m.a)(l,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Table",{attrs:{columns:t.thead,data:t.tbody,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"image",fn:function(t){var r=t.row;return[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image-wrap"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.image,expression:"row.image"}]})])]}},{key:"status",fn:function(r){var n=r.row;return[e("i-switch",{attrs:{value:n.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.statusChange(n)}},model:{value:n.status,callback:function(e){t.$set(n,"status",e)},expression:"row.status"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("启用")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("禁用")])])]}},{key:"action",fn:function(r){var n=r.row;return[e("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.editRight(n)}}},[t._v("权益介绍")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.page,"page-size":t.limit,"show-elevator":"","show-total":""},on:{"on-change":t.pageChange}})],1)],1),e("Modal",{attrs:{title:"权益介绍"},on:{"on-ok":t.saveMemberContent},model:{value:t.modal3,callback:function(e){t.modal3=e},expression:"modal3"}},[e("WangEditor",{staticStyle:{width:"100%"},attrs:{content:t.content},on:{editorContent:t.getEditorContent}})],1),e("Modal",{attrs:{title:"编辑会员权益","footer-hide":""},model:{value:t.modal1,callback:function(e){t.modal1=e},expression:"modal1"}},[e("Form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":80}},[e("Input",{staticClass:"display-add",model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}}),e("Input",{staticClass:"display-add",model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}}),e("Input",{staticClass:"display-add",model:{value:t.form.right_type,callback:function(e){t.$set(t.form,"right_type",e)},expression:"form.right_type"}}),e("FormItem",{attrs:{label:"权益名称",prop:"title"}},[e("Input",{attrs:{placeholder:"请输入权益名称",disabled:""},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),e("FormItem",{attrs:{label:"展示名称",prop:"show_title"}},[e("Input",{attrs:{maxlength:"8",placeholder:"请输入展示名称"},model:{value:t.form.show_title,callback:function(e){t.$set(t.form,"show_title",e)},expression:"form.show_title"}})],1),e("FormItem",{attrs:{label:"权益图标",prop:"image"}},[e("div",{staticClass:"image-group",on:{click:t.callImage}},[t.form.image?e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.form.image,expression:"form.image"}]}):e("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1),e("Input",{staticClass:"display-add",model:{value:t.form.image,callback:function(e){t.$set(t.form,"image",e)},expression:"form.image"}})],1),e("FormItem",{attrs:{label:"权益简介",prop:"show_title"}},[e("Input",{attrs:{type:"textarea",maxlength:"8",autosize:{minRows:2,maxRows:10},placeholder:"请输入权益简介"},model:{value:t.form.explain,callback:function(e){t.$set(t.form,"explain",e)},expression:"form.explain"}})],1),e("FormItem",{directives:[{name:"show",rawName:"v-show",value:"coupon"!==t.form.right_type&&"vip_price"!==t.form.right_type,expression:"form.right_type !== 'coupon' && form.right_type !== 'vip_price'"}],attrs:{label:"offline"===t.form.right_type||"express"===t.form.right_type||"vip_price"===t.form.right_type?"折扣数(%)":"invter_yon"===t.form.right_type?"返佣额(¥)":"积分倍数",prop:"number"}},[e("InputNumber",{attrs:{min:1,max:"offline"===t.form.right_type?100:1e4},model:{value:t.form.number,callback:function(e){t.$set(t.form,"number",e)},expression:"form.number"}})],1),e("FormItem",[e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.formSubmit("form")}}},[t._v("提交")])],1)],1)],1),e("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"选择权益图标"},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[e("uploadPictures",{directives:[{name:"show",rawName:"v-show",value:t.modal2,expression:"modal2"}],attrs:{isChoice:"单选",gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}})],1)],1)}),[],!1,null,"08df9510",null);e.default=d.exports},c24f:function(t,e,r){"use strict";r.d(e,"X",(function(){return o})),r.d(e,"N",(function(){return u})),r.d(e,"M",(function(){return a})),r.d(e,"k",(function(){return i})),r.d(e,"r",(function(){return c})),r.d(e,"d",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"g",(function(){return m})),r.d(e,"q",(function(){return d})),r.d(e,"s",(function(){return f})),r.d(e,"J",(function(){return h})),r.d(e,"P",(function(){return g})),r.d(e,"L",(function(){return b})),r.d(e,"K",(function(){return p})),r.d(e,"f",(function(){return _})),r.d(e,"e",(function(){return v})),r.d(e,"n",(function(){return O})),r.d(e,"R",(function(){return j})),r.d(e,"p",(function(){return y})),r.d(e,"Q",(function(){return w})),r.d(e,"cb",(function(){return x})),r.d(e,"U",(function(){return k})),r.d(e,"S",(function(){return P})),r.d(e,"T",(function(){return C})),r.d(e,"W",(function(){return I})),r.d(e,"V",(function(){return S})),r.d(e,"Y",(function(){return $})),r.d(e,"v",(function(){return M})),r.d(e,"w",(function(){return F})),r.d(e,"Z",(function(){return R})),r.d(e,"i",(function(){return z})),r.d(e,"bb",(function(){return E})),r.d(e,"C",(function(){return N})),r.d(e,"db",(function(){return T})),r.d(e,"m",(function(){return q})),r.d(e,"ab",(function(){return B})),r.d(e,"F",(function(){return D})),r.d(e,"B",(function(){return L})),r.d(e,"A",(function(){return U})),r.d(e,"z",(function(){return J})),r.d(e,"D",(function(){return W})),r.d(e,"y",(function(){return A})),r.d(e,"x",(function(){return H})),r.d(e,"u",(function(){return G})),r.d(e,"t",(function(){return K})),r.d(e,"o",(function(){return Q})),r.d(e,"l",(function(){return V})),r.d(e,"G",(function(){return X})),r.d(e,"I",(function(){return Y})),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 ut})),r.d(e,"c",(function(){return at})),r.d(e,"H",(function(){return it}));var n=r("b6bd");function o(t){return Object(n.a)({url:"user/user",method:"get",params:t})}function u(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 i(t){return Object(n.a)({url:"user/user/".concat(t,"/edit"),method:"get"})}function c(t){return Object(n.a)({url:"user/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function s(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 m(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 f(t){return Object(n.a)({url:"user/user_level/vip_list",method:"get",params:t})}function h(t){return Object(n.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function g(t,e){return Object(n.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function b(t){return Object(n.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function p(t){return Object(n.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function _(t){return Object(n.a)({url:"/user/user_level/create_task",method:"get",params:t})}function v(t){return Object(n.a)({url:"user/user_level/create",method:"get",params:t})}function O(t){return Object(n.a)({url:"user/give_level/".concat(t),method:"get"})}function j(t){return Object(n.a)({url:"user/user_group/list",method:"get",params:t})}function y(t){return Object(n.a)({url:"user/user_group/add/".concat(t),method:"get"})}function w(t){return Object(n.a)({url:"setting/update_admin",method:"PUT",data:t})}function x(t){return Object(n.a)({url:"user/set_group",method:"post",data:t})}function k(t){return Object(n.a)({url:"user/user_label",method:"get",params:t})}function P(t,e){return Object(n.a)({url:"user/user_label/add/".concat(t),method:"get",params:e})}function C(t){return Object(n.a)({url:"user/user_label_cate/all",method:"get",params:t})}function I(t){return Object(n.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function S(t){return Object(n.a)({url:"user/user_label_cate/create",method:"get"})}function $(t){return Object(n.a)({url:"/user/member_batch/index",method:"get",params:t})}function M(t,e){return Object(n.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function F(t,e){return Object(n.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function R(t,e){return Object(n.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function z(t,e){return Object(n.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function E(){return Object(n.a)({url:"/user/member/ship",method:"get"})}function N(t,e){return Object(n.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function T(){return Object(n.a)({url:"/user/user/syncUsers",method:"get"})}function q(){return Object(n.a)({url:"/user/user/create",method:"get"})}function B(){return Object(n.a)({url:"/user/member_scan",method:"get"})}function D(t,e){return Object(n.a)({url:"user/label/".concat(t),method:"post",data:e})}function L(t){return Object(n.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function U(){return Object(n.a)({url:"user/member/right",method:"get"})}function J(t){return Object(n.a)({url:"/user/member/record",method:"get",params:t})}function W(){return Object(n.a)({url:"user/member/ship_select",method:"get"})}function A(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 G(t,e){return Object(n.a)({url:"user/member_agreement/save/".concat(t),method:"post",data:e})}function K(){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 V(t){return Object(n.a)({url:"user/label/".concat(t),method:"get"})}function X(t){return Object(n.a)({url:"user/save_set_label",method:"put",data:t})}function Y(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 ut(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 it(t,e){return Object(n.a)({url:"/user/member/save/content/".concat(t),method:"post",data:e})}},de08:function(t,e,r){"use strict";r("49f2")}}]); |