(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4ed91784"],{"48c6":function(t,e,s){"use strict";s.r(e);var a=s("9ab4"),i=s("1b40"),r=s("f175");let n=class extends i.e{constructor(){super(...arguments),this.form={tencent_map_key:""},this.rules={tencent_map_key:[{required:!0,message:"请输入腾讯地图的配置Key"}]}}initFormData(){r.a.get("/settings.shop.shop_setting/getMapKey").then(t=>{this.form=t}).catch(()=>{this.$message.error("数据加载失败，请刷新重载")})}onSubmitFrom(t){this.$refs[t].validate(t=>{if(!t)return;const e=this.$loading({text:"保存中"});var s;(s={...this.form},r.a.post("/settings.shop.shop_setting/setMapKey",s)).then(()=>{this.$message.success("保存成功")}).catch(()=>{this.$message.error("保存失败")}).finally(()=>{e.close()})})}created(){this.initFormData()}};n=Object(a.a)([i.a],n);var c=n,l=(s("e6d9"),s("2877")),o=Object(l.a)(c,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"map-setting"},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"120px",size:"small"}},[s("div",{staticClass:"ls-card"},[s("div",{staticClass:"card-title"},[t._v("地图设置")]),s("div",{staticClass:"card-content m-t-24"},[s("el-form-item",{attrs:{label:"腾讯地图配置",prop:"tencent_map_key"}},[s("el-input",{staticClass:"ls-input",attrs:{placeholder:"请输入腾讯地图的配置Key"},model:{value:t.form.tencent_map_key,callback:function(e){t.$set(t.form,"tencent_map_key",e)},expression:"form.tencent_map_key"}}),s("div",{staticClass:"muted m-t-10"},[t._v(" 如果没有Key，可前往：https://lbs.qq.com/ 申请 "),s("br"),t._v(" 使用场景：1、PC端门店自提，获取地理定位；2、后台创建门店时需要获取地理位置 ")])],1)],1)])]),s("div",{staticClass:"bg-white ls-fixed-footer"},[s("div",{staticClass:"row-center flex",staticStyle:{height:"100%"}},[s("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onSubmitFrom("form")}}},[t._v("保存")])],1)])],1)}),[],!1,null,"ccd98098",null);e.default=o.exports},"760c":function(t,e,s){},e6d9:function(t,e,s){"use strict";s("760c")}}]);