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
11 KiB
1 lines
11 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-217943ae"],{4486:function(t,e,r){},"4b65":function(t,e,r){"use strict";r.r(e);var n=r("a069"),u=r("c24f"),o=r("2f62");function c(t){return(c="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 a(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 i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={components:{WangEditor:n.a},data:function(){return{id:0,agreement:{title:"",content:"",status:1},content:"",spinShow:!1}},created:function(){this.memberAgreement()},computed:i(i({},Object(o.e)("admin/layout",["isMobile","menuCollapse"])),{},{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"},labelBottom:function(){return this.isMobile?void 0:15}}),methods:{getEditorContent:function(t){this.agreement.content=t},memberAgreement:function(){var t=this;this.spinShow=!0,Object(u.t)().then((function(e){t.spinShow=!1;var r=e.data,n=r.title,u=r.content,o=r.status,c=r.id;t.agreement.title=n,t.agreement.content=u,t.content=u,t.agreement.status=o,t.id=c})).catch((function(e){t.$Message.error(e),t.spinShow=!1}))},memberAgreementSave:function(){var t=this;this.$Spin.show(),Object(u.u)(this.id,this.agreement).then((function(e){t.$Spin.hide(),t.$Message.success("保存成功"),t.memberAgreement()})).catch((function(e){t.$Spin.hide(),t.$Message.error(e.msg)}))}}},l=(r("88e7"),r("2877")),m=Object(l.a)(d,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Form",{attrs:{"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"协议名称:"}},[e("Input",{model:{value:t.agreement.title,callback:function(e){t.$set(t.agreement,"title",e)},expression:"agreement.title"}})],1),e("FormItem",{attrs:{label:"协议内容:"}},[e("WangEditor",{attrs:{content:t.content},on:{editorContent:t.getEditorContent}})],1),e("FormItem",{attrs:{label:"开启状态:"}},[e("i-switch",{attrs:{size:"large","true-value":1,"false-value":0},model:{value:t.agreement.status,callback:function(e){t.$set(t.agreement,"status",e)},expression:"agreement.status"}},[e("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),e("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])],1)],1),t.spinShow?e("Spin",{attrs:{fix:""}}):t._e()],1),e("Card",{staticClass:"fixed-card",style:{left:"".concat(t.menuCollapse?t.isMobile?"0":"80px":"200px")},attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-center"},[e("Button",{attrs:{type:"primary"},on:{click:t.memberAgreementSave}},[t._v("保存")])],1)])],1)}),[],!1,null,"52ac2395",null);e.default=m.exports},"88e7":function(t,e,r){"use strict";r("4486")},c24f:function(t,e,r){"use strict";r.d(e,"X",(function(){return u})),r.d(e,"N",(function(){return o})),r.d(e,"M",(function(){return c})),r.d(e,"k",(function(){return a})),r.d(e,"r",(function(){return i})),r.d(e,"d",(function(){return s})),r.d(e,"h",(function(){return d})),r.d(e,"g",(function(){return l})),r.d(e,"q",(function(){return m})),r.d(e,"s",(function(){return f})),r.d(e,"J",(function(){return b})),r.d(e,"P",(function(){return h})),r.d(e,"L",(function(){return p})),r.d(e,"K",(function(){return g})),r.d(e,"f",(function(){return O})),r.d(e,"e",(function(){return j})),r.d(e,"n",(function(){return _})),r.d(e,"R",(function(){return v})),r.d(e,"p",(function(){return y})),r.d(e,"Q",(function(){return w})),r.d(e,"cb",(function(){return S})),r.d(e,"U",(function(){return P})),r.d(e,"S",(function(){return k})),r.d(e,"T",(function(){return x})),r.d(e,"W",(function(){return C})),r.d(e,"V",(function(){return M})),r.d(e,"Y",(function(){return E})),r.d(e,"v",(function(){return $})),r.d(e,"w",(function(){return A})),r.d(e,"Z",(function(){return D})),r.d(e,"i",(function(){return T})),r.d(e,"bb",(function(){return U})),r.d(e,"C",(function(){return F})),r.d(e,"db",(function(){return I})),r.d(e,"m",(function(){return W})),r.d(e,"ab",(function(){return B})),r.d(e,"F",(function(){return J})),r.d(e,"B",(function(){return z})),r.d(e,"A",(function(){return N})),r.d(e,"z",(function(){return q})),r.d(e,"D",(function(){return G})),r.d(e,"y",(function(){return H})),r.d(e,"x",(function(){return K})),r.d(e,"u",(function(){return L})),r.d(e,"t",(function(){return Q})),r.d(e,"o",(function(){return R})),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 ut})),r.d(e,"j",(function(){return ot})),r.d(e,"c",(function(){return ct})),r.d(e,"H",(function(){return at}));var n=r("b6bd");function u(t){return Object(n.a)({url:"user/user",method:"get",params:t})}function o(t){return Object(n.a)({url:"setting/config/user/".concat(t),method:"get"})}function c(t,e){return Object(n.a)({url:"setting/config/user/".concat(t),method:"post",data:e})}function a(t){return Object(n.a)({url:"user/user/".concat(t,"/edit"),method:"get"})}function i(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 d(t){return Object(n.a)({url:"user/edit_other/".concat(t),method:"get"})}function l(t){return Object(n.a)({url:"user/user/".concat(t),method:"get"})}function m(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 b(t){return Object(n.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function h(t,e){return Object(n.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function p(t){return Object(n.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function g(t){return Object(n.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function O(t){return Object(n.a)({url:"/user/user_level/create_task",method:"get",params:t})}function j(t){return Object(n.a)({url:"user/user_level/create",method:"get",params:t})}function _(t){return Object(n.a)({url:"user/give_level/".concat(t),method:"get"})}function v(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 S(t){return Object(n.a)({url:"user/set_group",method:"post",data:t})}function P(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 x(t){return Object(n.a)({url:"user/user_label_cate/all",method:"get",params:t})}function C(t){return Object(n.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function M(t){return Object(n.a)({url:"user/user_label_cate/create",method:"get"})}function E(t){return Object(n.a)({url:"/user/member_batch/index",method:"get",params:t})}function $(t,e){return Object(n.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function A(t,e){return Object(n.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function D(t,e){return Object(n.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function T(t,e){return Object(n.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function U(){return Object(n.a)({url:"/user/member/ship",method:"get"})}function F(t,e){return Object(n.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function I(){return Object(n.a)({url:"/user/user/syncUsers",method:"get"})}function W(){return Object(n.a)({url:"/user/user/create",method:"get"})}function B(){return Object(n.a)({url:"/user/member_scan",method:"get"})}function J(t,e){return Object(n.a)({url:"user/label/".concat(t),method:"post",data:e})}function z(t){return Object(n.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function N(){return Object(n.a)({url:"user/member/right",method:"get"})}function q(t){return Object(n.a)({url:"/user/member/record",method:"get",params:t})}function G(){return Object(n.a)({url:"user/member/ship_select",method:"get"})}function H(t){return Object(n.a)({url:"user/member_card/set_status",method:"get",params:t})}function K(t){return Object(n.a)({url:"user/member_ship/set_ship_status",method:"get",params:t})}function L(t,e){return Object(n.a)({url:"user/member_agreement/save/".concat(t),method:"post",data:e})}function Q(){return Object(n.a)({url:"user/member/agreement",method:"get"})}function R(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 ut(){return Object(n.a)({url:"user/synchro/work/label",method:"get"})}function ot(t){return Object(n.a)({url:"user/user/extend_info/".concat(t),method:"get"})}function ct(t){return Object(n.a)({url:"user/batch_process",method:"post",data:t})}function at(t,e){return Object(n.a)({url:"/user/member/save/content/".concat(t),method:"post",data:e})}}}]); |