徐总多门店
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 line
11 KiB

3 months ago
(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(