(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6760c381"],{7928:function(t,s,e){"use strict";e("a044")},a044:function(t,s,e){},c387:function(t,s,e){"use strict";e.r(s);var a=e("9ab4"),i=e("1b40"),l=e("b3ad"),r=e("f175");var c=e("6ddb");let n=class extends i.e{constructor(){super(...arguments),this.form={status:1,url:""}}getH5Settings(){r.a.get("/settings.h5.h_five_setting/getConfig").then(t=>{this.form=t}).catch(()=>{})}putH5SettingsSet(){var t;(t={status:this.form.status},r.a.post("/settings.h5.h_five_setting/setConfig",t)).then(t=>{this.getH5Settings()}).catch(()=>{})}onCopy(t){Object(c.b)(t).then(()=>{this.$message.success("复制成功")}).catch(t=>{this.$message.error("复制失败")})}created(){this.getH5Settings()}};n=Object(a.a)([Object(i.a)({components:{MaterialSelect:l.a}})],n);var o=n,u=(e("7928"),e("2877")),f=Object(u.a)(o,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"h5_store"},[e("el-form",{ref:"formRef",attrs:{model:t.form,"label-width":"140px",size:"small"}},[e("div",{staticClass:"ls-card m-t-16"},[e("div",{staticClass:"card-content m-t-24"},[e("el-form-item",{attrs:{label:"H5状态"}},[e("div",{staticClass:"flex"},[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":t.styleConfig.primary,"inactive-color":"#f4f4f5"},model:{value:t.form.status,callback:function(s){t.$set(t.form,"status",s)},expression:"form.status"}}),e("span",{staticClass:"m-l-16"},[t._v(t._s(t.form.status?"开启":"关闭"))])],1),e("div",{staticClass:"muted xs m-r-16"},[t._v("渠道状态为关闭时，将不对外提供服务，请谨慎操作")])]),e("el-form-item",{attrs:{label:"访问链接"}},[e("el-input",{staticClass:"ls-input m-r-10",attrs:{size:"small",disabled:""},model:{value:t.form.url,callback:function(s){t.$set(t.form,"url",s)},expression:"form.url"}}),e("el-button",{attrs:{size:"small"},on:{click:function(s){return t.onCopy(t.form.url)}}},[t._v("复制")])],1)],1)])]),e("div",{staticClass:"bg-white ls-fixed-footer"},[e("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(s){return t.putH5SettingsSet()}}},[t._v("保存")])],1)])],1)}),[],!1,null,"ee1da6ec",null);s.default=f.exports}}]);