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
2.6 KiB
1 lines
2.6 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-872d0d5e"],{"3c1e":function(t,e,a){"use strict";a("77269")},77269:function(t,e,a){},"7c5f2":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",[a("el-tabs",{attrs:{"tab-position":"left"},on:{"tab-click":t.tabStatus},model:{value:t.editableTabsValue,callback:function(e){t.editableTabsValue=e},expression:"editableTabsValue"}},t._l(t.tabList,(function(e,i){return a("el-tab-pane",{key:i,attrs:{label:e.label,name:e.key}},[a("div",{staticClass:"content"},[a("div",{staticClass:"phoneBox"},[a("div",{staticClass:"fontBox",domProps:{innerHTML:t._s(t.formValidate.agree)}})]),t._v(" "),a("div",{staticClass:"ueditor"},[a("div",{staticClass:"font"},[a("span",{staticClass:"gang"}),t._v(" "+t._s(e.label)+"\n ")]),t._v(" "),a("ueditor-from",{attrs:{content:t.formValidate.agree},model:{value:t.formValidate.agree,callback:function(e){t.$set(t.formValidate,"agree",e)},expression:"formValidate.agree"}})],1)])])})),1),t._v(" "),a("div",{staticClass:"btn"},[a("el-button",{staticClass:"button",attrs:{type:"primary"},on:{click:t.submenus}},[t._v("提交")])],1)],1)])],1)},s=[],n=(a("7f7f"),a("c80c")),l=(a("96cf"),a("3b8d")),c=a("ef0d"),r=a("90e7"),o={name:"agreements",components:{ueditorFrom:c["a"]},data:function(){return{tabList:[{title:"用户协议",id:1},{title:"隐私政策",id:2},{title:"入驻协议",id:3},{title:"关于我们",id:4},{title:"资质证照",id:5},{title:"平台规则",id:6},{title:"注销声明",id:7},{title:"注销重要提示",id:8}],formValidate:{agree:""},editableTabsValue:""}},created:function(){var t=this;Object(r["z"])().then((function(e){t.tabList=e.data,t.editableTabsValue=e.data[0].key,t.getInfo(t.editableTabsValue)}))},methods:{getInfo:function(t){var e=this;Object(r["v"])(t).then((function(t){e.formValidate.agree=t.data[e.editableTabsValue]}))},submenus:function(){var t=this;""!==this.formValidate.agree&&this.formValidate.agree?Object(r["J"])(this.editableTabsValue,this.formValidate).then(function(){var e=Object(l["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.$message.success(a.message);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)})):this.$message.warning("请输入协议信息!")},tabStatus:function(t){this.getInfo(t.name)}}},d=o,u=(a("3c1e"),a("2877")),b=Object(u["a"])(d,i,s,!1,null,"7a849d2b",null);e["default"]=b.exports}}]); |