(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0874cbb0"],{"2c67":function(e,t,n){},d873:function(e,t,n){"use strict";n("2c67")},d9e3:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[n("el-tabs",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:system:agreement:user:info","platform:system:agreement:merincomming:info","platform:system:agreement:userprivacy:info","platform:system:agreement:useraccountcancel:info","platform:system:agreement:useraccountcancelnotice:info","platform:system:agreement:aboutus:info","platform:system:agreement:intelligent:info","platform:system:agreement:platfromrule:info","platform:system:agreement:coupon:agreement:info"],expression:"[\n 'platform:system:agreement:user:info',\n 'platform:system:agreement:merincomming:info',\n 'platform:system:agreement:userprivacy:info',\n 'platform:system:agreement:useraccountcancel:info',\n 'platform:system:agreement:useraccountcancelnotice:info',\n 'platform:system:agreement:aboutus:info',\n 'platform:system:agreement:intelligent:info',\n 'platform:system:agreement:platfromrule:info',\n 'platform:system:agreement:coupon:agreement:info',\n ]"}],attrs:{"tab-position":"left"},on:{"tab-click":e.tabStatus},model:{value:e.agreementValue,callback:function(t){e.agreementValue=t},expression:"agreementValue"}},e._l(e.tabList,(function(t,r){return n("el-tab-pane",{key:r,attrs:{label:t.title,name:t.info}},[n("div",{staticClass:"content"},[n("div",{staticClass:"phoneBox"},[n("div",{staticClass:"fontBox",domProps:{innerHTML:e._s(e.formValidate.agreement)}})]),e._v(" "),n("div",{staticClass:"ueditor"},[n("div",{staticClass:"font"},[n("span",{staticClass:"gang"}),e._v(" "+e._s(t.title))]),e._v(" "),n("Tinymce",{key:e.keyIndex,model:{value:e.formValidate.agreement,callback:function(t){e.$set(e.formValidate,"agreement",t)},expression:"formValidate.agreement"}})],1)])])})),1),e._v(" "),n("div",{staticClass:"btn"},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:system:agreement:user:save","platform:system:agreement:merincomming:save","platform:system:agreement:userprivacy:save","platform:system:agreement:useraccountcancel:save","platform:system:agreement:useraccountcancelnotice:save","platform:system:agreement:aboutus:save","platform:system:agreement:intelligent:save","platform:system:agreement:platfromrule:save","platform:system:agreement:coupon:agreement:save"],expression:"[\n 'platform:system:agreement:user:save',\n 'platform:system:agreement:merincomming:save',\n 'platform:system:agreement:userprivacy:save',\n 'platform:system:agreement:useraccountcancel:save',\n 'platform:system:agreement:useraccountcancelnotice:save',\n 'platform:system:agreement:aboutus:save',\n 'platform:system:agreement:intelligent:save',\n 'platform:system:agreement:platfromrule:save',\n 'platform:system:agreement:coupon:agreement:save',\n ]"}],staticClass:"button",attrs:{type:"primary"},on:{click:e.submenus}},[e._v("提交")])],1)],1)])],1)},a=[],o=n("8256"),i=n("b775");function s(e){return i["a"].get("admin/platform/agreement/".concat(e))}function c(e,t){return Object(i["a"])({url:"admin/platform/agreement/".concat(e),method:"POST",data:t})}var u=n("e350");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function m(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),s=new C(r||[]);return a(i,"_invoke",{value:j(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",g="suspendedYield",v="executing",y="completed",d={};function b(){}function w(){}function x(){}var L={};u(L,i,(function(){return this}));var _=Object.getPrototypeOf,E=_&&_(_(T([])));E&&E!==n&&r.call(E,i)&&(L=E);var k=x.prototype=b.prototype=Object.create(L);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(a,o,i,s){var c=p(e[a],e,o);if("throw"!==c.type){var u=c.arg,m=u.value;return m&&"object"==l(m)&&r.call(m,"__await")?t.resolve(m.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(m).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function j(t,n,r){var a=h;return function(o,i){if(a===v)throw new Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var c=P(s,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===h)throw a=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=v;var u=p(t,n,r);if("normal"===u.type){if(a=r.done?y:g,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(a=y,r.method="throw",r.arg=u.arg)}}}function P(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=p(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;N(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}function f(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){f(o,r,a,i,s,"next",e)}function s(e){f(o,r,a,i,s,"throw",e)}i(void 0)}))}}var h={name:"agreements",components:{Tinymce:o["a"]},data:function(){return{loading:!1,tabList:[{title:"用户协议",id:1,info:"userinfo",save:"usersave"},{title:"隐私协议",id:2,info:"userprivacyinfo",save:"userprivacysave"},{title:"入驻协议",id:3,info:"merincomminginfo",save:"merincommingsave"},{title:"关于我们",id:4,info:"aboutusinfo",save:"aboutussave"},{title:"资质证照",id:5,info:"intelligentinfo",save:"intelligentsave"},{title:"平台规则",id:6,info:"platfromruleinfo",save:"platfromrulesave"},{title:"注销协议",id:7,info:"useraccountcancelinfo",save:"useraccountcancelsave"},{title:"注销声明",id:8,info:"useraccountcancelnoticeinfo",save:"useraccountcancelnoticesave"},{title:"优惠券协议",id:8,info:"coupon/agreement/info",save:"coupon/agreement/save"}],formValidate:{agreement:""},agreementValue:"userinfo",agreementSave:"usersave",keyIndex:0}},created:function(){Object(u["a"])(["platform:system:agreement:user:info","platform:system:agreement:merincomming:info","platform:system:agreement:userprivacy:info","platform:system:agreement:useraccountcancel:info","platform:system:agreement:useraccountcancelnotice:info","platform:system:agreement:aboutus:info","platform:system:agreement:intelligent:info","platform:system:agreement:platfromrule:info","platform:system:agreement:coupon:agreement:info"])&&this.getInfo(this.agreementValue)},methods:{checkPermi:u["a"],getInfo:function(e){var t=this;this.loading=!0,this.formValidate.agreement="",s(e).then((function(e){t.formValidate.agreement=e?JSON.parse(e).agreement:"",t.keyIndex+=1,t.loading=!1}))},submenus:function(){var e=this;if(""===this.formValidate.agreement||!this.formValidate.agreement)return this.$message.warning("请输入协议信息!");c(this.agreementSave,this.formValidate).then(function(){var t=p(m().mark((function t(n){return m().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success("保存成功");case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},tabStatus:function(e){this.getInfo(e.name),this.agreementSave=this.tabList[e.index].save}}},g=h,v=(n("d873"),n("2877")),y=Object(v["a"])(g,r,a,!1,null,"34537ba4",null);t["default"]=y.exports}}]);