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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-3068cbcc.2f3ac24d.js

1 lines
2.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3068cbcc"],{"6ca1":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("h3",{staticClass:"title"},[e._v("用户协议与隐私政策")]),e._v(" "),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"),r=(a("96cf"),a("3b8d")),o=a("ef0d"),l=a("c24f"),c={name:"UserAgreement",components:{ueditorFrom:o["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(l["p"])("sys_user_agree").then((function(t){var a=t.data;e.formValidate={agree:a.sys_user_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(l["Z"])("sys_user_agree",this.formValidate).then(function(){var e=Object(r["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=c,u=(a("ee57"),a("2877")),m=Object(u["a"])(d,s,i,!1,null,"91c85d1e",null);t["default"]=m.exports},b002:function(e,t,a){},ee57:function(e,t,a){"use strict";a("b002")}}]);