(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cd3efcf"],{"7d2b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{model:e.formValidate,"label-width":"100px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-col",{attrs:{span:24}},[a("el-form-item",[a("ueditor-from",{staticStyle:{width:"100%"},attrs:{content:e.formValidate.agree},model:{value:e.formValidate.agree,callback:function(t){e.$set(e.formValidate,"agree",t)},expression:"formValidate.agree"}})],1)],1),e._v(" "),a("el-form-item",{staticStyle:{"margin-top":"30px"}},[a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:e.previewProtol}},[e._v("预览")]),e._v(" "),a("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSubmit("formValidate")}}},[e._v("提交")])],1)],1)],1),e._v(" "),a("div",{staticClass:"Box"},[e.modals?a("el-dialog",{staticClass:"addDia",attrs:{visible:e.modals,title:"",height:"30%","custom-class":"dialog-scustom"},on:{"update:visible":function(t){e.modals=t}}},[a("div",{staticClass:"agreement"},[a("h3",[e._v("用户协议与隐私政策")]),e._v(" "),a("div",{staticClass:"content"},[a("div",{domProps:{innerHTML:e._s(e.formValidate.agree)}})])])]):e._e()],1)],1)},i=[],n=a("c80c"),o=(a("96cf"),a("3b8d")),r=a("ef0d"),c=a("c24f"),l={name:"UserAgreement",components:{ueditorFrom:r["a"]},data:function(){return{modals:!1,props:{emitPath:!1},formValidate:{agree:""},content:"",fullscreenLoading:!1}},mounted:function(){this.getInfo()},methods:{getInfo:function(){var e=this;this.fullscreenLoading=!0,Object(c["p"])("sys_coupon_agree").then((function(t){var a=t.data;e.formValidate={agree:a.sys_coupon_agree},e.fullscreenLoading=!1})).catch((function(t){e.$message.error(t.message),e.fullscreenLoading=!1}))},handleSubmit:function(e){var t=this;""!==this.formValidate.agree&&this.formValidate.agree?Object(c["Z"])("sys_coupon_agree",this.formValidate).then(function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(a){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.fullscreenLoading=!1,t.$message.success(a.message);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.fullscreenLoading=!1,t.$message.error(e.message)})):this.$message.warning("请输入协议信息!")},previewProtol:function(){this.modals=!0}}},d=l,u=(a("9d4c"),a("2877")),m=Object(u["a"])(d,s,i,!1,null,"d70abc6a",null);t["default"]=m.exports},"9d4c":function(e,t,a){"use strict";a("e1c4")},e1c4:function(e,t,a){}}]);