会员支付管理后台-用于提供会员管理小程序支付的api接口,与后台数据管理展示
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
5.4 KiB

import{d as P,r as f,n as g,N as t,h,c as C,y as I,I as V,w as n,e as a,a as i,t as p,u as o,B,i as D,L as F,U as S,W as T,X as L,_ as R,Y as W,E as $,$ as q}from"./index-6010b07e.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as j}from"./index-4718d422.js";import"./el-form-item-4ed993c7.js";/* empty css */import{_ as v,$ as A,a0 as O}from"./sys-0f76aff3.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-cc99af21.js";/* empty css */import"./attachment-bc20fd95.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-6f0143c4.js";/* empty css */import"./_plugin-vue_export-helper-c27b6911.js";const X={class:"main-container"},Y={class:"panel-title !text-sm"},z={class:"text-[12px] text-[#a9a9a9]"},G={class:"text-[12px] text-[#a9a9a9]"},H={class:"panel-title !text-sm"},J={class:"panel-title !text-sm"},K={class:"fixed-footer-wrap"},M={class:"fixed-footer"},Ie=P({__name:"system",setup(Q){const m=f(!0),b=f(),e=g({site_name:"",logo:"",desc:"",latitude:"",keywords:"",longitude:"",province_id:"",city_id:"",district_id:"",address:"",full_address:"",business_hours:"",phone:"",front_end_name:"",front_end_logo:"",icon:"",wechat_code:"",enterprise_wechat:"",tel:""});(async(u=0)=>{const l=await(await v()).data;Object.keys(e).forEach(d=>{l[d]!=null&&(e[d]=l[d])});const r=await(await A()).data;e.wechat_code=r.wechat_code,e.enterprise_wechat=r.enterprise_wechat,e.tel=r.tel,b.value=F(),m.value=!1})();const w=f(),x=g({site_name:[{required:!0,message:t("siteNamePlaceholder"),trigger:"blur"}],front_end_name:[{required:!0,message:t("frontEndNamePlaceholder"),trigger:"blur"}]}),y=async u=>{m.value||!u||await u.validate(async l=>{l&&(m.value=!0,O(e).then(()=>{m.value=!1,E()}).catch(()=>{m.value=!1}))})},E=async()=>{const u=await(await v()).data;S.set({key:"siteInfo",data:u})};return(u,l)=>{const r=T,d=L,c=j,_=R,k=W,N=$,U=q;return h(),C("div",X,[I((h(),V(k,{model:e,"label-width":"150px",ref_key:"formRef",ref:w,rules:x,class:"page-form"},{default:n(()=>[a(_,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[i("h3",Y,p(o(t)("websiteInfo")),1),a(d,{label:o(t)("siteName"),prop:"site_name"},{default:n(()=>[a(r,{modelValue:e.site_name,"onUpdate:modelValue":l[0]||(l[0]=s=>e.site_name=s),placeholder:o(t)("siteNamePlaceholder"),class:"input-width",clearable:"",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:o(t)("logo")},{default:n(()=>[i("div",null,[a(c,{modelValue:e.logo,"onUpdate:modelValue":l[1]||(l[1]=s=>e.logo=s)},null,8,["modelValue"]),i("p",z,p(o(t)("logoPlaceholder")),1)])]),_:1},8,["label"]),a(d,{label:o(t)("icon")},{default:n(()=>[i("div",null,[a(c,{modelValue:e.icon,"onUpdate:modelValue":l[2]||(l[2]=s=>e.icon=s)},null,8,["modelValue"]),i("p",G,p(o(t)("iconPlaceholder")),1)])]),_:1},8,["label"]),a(d,{label:o(t)("keywords")},{default:n(()=>[a(r,{modelValue:e.keywords,"onUpdate:modelValue":l[3]||(l[3]=s=>e.keywords=s),placeholder:o(t)("keywordsPlaceholder"),class:"input-width",clearable:"",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:o(t)("desc")},{default:n(()=>[a(r,{modelValue:e.desc,"onUpdate:modelValue":l[4]||(l[4]=s=>e.desc=s),type:"textarea",rows:"4",clearable:"",placeholder:o(t)("descPlaceholder"),class:"input-width",maxlength:"100"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),a(_,{class:"box-card !border-none",shadow:"never"},{default:n(()=>[i("h3",H,p(o(t)("frontEndInfo")),1),a(d,{label:o(t)("frontEndName")},{default:n(()=>[a(r,{modelValue:e.front_end_name,"onUpdate:modelValue":l[5]||(l[5]=s=>e.front_end_name=s),placeholder:o(t)("frontEndNamePlaceholder"),class:"input-width",clearable:"",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:o(t)("frontEndLogo")},{default:n(()=>[a(c,{modelValue:e.front_end_logo,"onUpdate:modelValue":l[6]||(l[6]=s=>e.front_end_logo=s)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1}),b.value=="admin"?(h(),V(_,{key:0,class:"box-card !border-none",shadow:"never"},{default:n(()=>[i("h3",J,p(o(t)("serviceInformation")),1),a(d,{label:o(t)("contactsTel")},{default:n(()=>[a(r,{modelValue:e.tel,"onUpdate:modelValue":l[7]||(l[7]=s=>e.tel=s),placeholder:o(t)("contactsTelPlaceholder"),class:"input-width",clearable:"",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),a(d,{label:o(t)("wechatCode")},{default:n(()=>[a(c,{modelValue:e.wechat_code,"onUpdate:modelValue":l[8]||(l[8]=s=>e.wechat_code=s)},null,8,["modelValue"])]),_:1},8,["label"]),a(d,{label:o(t)("customerServiceCode")},{default:n(()=>[a(c,{modelValue:e.enterprise_wechat,"onUpdate:modelValue":l[9]||(l[9]=s=>e.enterprise_wechat=s)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})):B("",!0)]),_:1},8,["model","rules"])),[[U,m.value]]),i("div",K,[i("div",M,[a(N,{type:"primary",loading:m.value,onClick:l[10]||(l[10]=s=>y(w.value))},{default:n(()=>[D(p(o(t)("save")),1)]),_:1},8,["loading"])])])])}}});export{Ie as default};