lihaiMiddleOfficeAdminWeb/build/admin/assets/information.40658cec.js
2025-03-20 10:25:32 +08:00

2 lines
7.8 KiB
JavaScript

import{_ as D}from"./index.a48c03c4.js";import{L as w,B as V,C as c,D as x,w as j}from"./element-plus.2acb577d.js";import{_ as q}from"./picker.c51c629b.js";import{a as U,b as k}from"./website.a5e8049d.js";import{u as y}from"./index.81df6f20.js";import{d as _,r as O,Z as M,am as P,o as g,c as L,U as e,L as r,a as i,u as l,M as G,K as I,R as N}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.f292cd50.js";import"./index.c82c3401.js";import"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import"./index.8caf87ac.js";import"./usePaging.23706826.js";import"./vuedraggable.38fc8f37.js";import"./vue.93503b42.js";import"./sortablejs.f19edb47.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const R={class:"website-information"},S={class:"w-80"},W={class:"w-80"},K={class:"w-80"},T={class:"w-80"},Z={class:"w-80"},z=_({name:"webInformation"}),Lu=_({...z,setup(H){const d=O(),f=y(),o=M({name:"",web_favicon:"",web_logo:"",login_image:"",h5_favicon:"",shop_name:"",shop_logo:"",pc_logo:"",pc_title:"",pc_desc:"",pc_ico:"",pc_keywords:""}),C={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",trigger:["blur"]}],web_favicon:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}],web_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7AD9logo",trigger:["change"]}],login_image:[{required:!0,message:"\u8BF7\u9009\u62E9\u767B\u5F55\u9875\u5E7F\u544A\u56FE",trigger:["change"]}],shop_name:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E97\u94FA/\u5546\u57CE\u540D\u79F0",trigger:["blur"]}],shop_logo:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u57CELOGO",trigger:["change"]}],pc_logo:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEFLOGO",trigger:["change"]}],pc_title:[{required:!0,message:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",trigger:["blur"]}],pc_ico:[{required:!0,message:"\u8BF7\u9009\u62E9PC\u7AEF\u7F51\u7AD9\u56FE\u6807",trigger:["change"]}]},n=async()=>{const F=await U();for(const u in o)o[u]=F[u]},A=async()=>{var F;await((F=d.value)==null?void 0:F.validate()),await k(o),f.getConfig(),n()};return n(),(F,u)=>{const s=V,m=c,p=q,a=w,E=x,B=j,b=D,v=P("perms");return g(),L("div",R,[e(E,{ref_key:"formRef",ref:d,rules:C,class:"ls-form",model:l(o),"label-width":"120px"},{default:r(()=>[e(a,{shadow:"never",class:"!border-none"},{default:r(()=>[u[15]||(u[15]=i("div",{class:"text-xl font-medium mb-[20px]"},"\u540E\u53F0\u8BBE\u7F6E",-1)),e(m,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:r(()=>[i("div",S,[e(s,{modelValue:l(o).name,"onUpdate:modelValue":u[0]||(u[0]=t=>l(o).name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(m,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[e(p,{modelValue:l(o).web_favicon,"onUpdate:modelValue":u[1]||(u[1]=t=>l(o).web_favicon=t),limit:1},null,8,["modelValue"]),u[12]||(u[12]=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1))])]),_:1}),e(m,{label:"\u7F51\u7AD9LOGO",prop:"web_logo",required:""},{default:r(()=>[i("div",null,[e(p,{modelValue:l(o).web_logo,"onUpdate:modelValue":u[2]||(u[2]=t=>l(o).web_logo=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),u[13]||(u[13]=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1))])]),_:1}),e(m,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"login_image",required:""},{default:r(()=>[i("div",null,[e(p,{modelValue:l(o).login_image,"onUpdate:modelValue":u[3]||(u[3]=t=>l(o).login_image=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),u[14]||(u[14]=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1))])]),_:1})]),_:1}),e(a,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[u[18]||(u[18]=i("div",{class:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1)),e(m,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:r(()=>[i("div",W,[e(s,{modelValue:l(o).shop_name,"onUpdate:modelValue":u[4]||(u[4]=t=>l(o).shop_name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u524D\u53F0\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(m,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:r(()=>[i("div",null,[e(p,{modelValue:l(o).h5_favicon,"onUpdate:modelValue":u[5]||(u[5]=t=>l(o).h5_favicon=t),limit:1},null,8,["modelValue"]),u[16]||(u[16]=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1))])]),_:1}),e(m,{label:"\u524D\u53F0LOGO",prop:"shop_logo"},{default:r(()=>[i("div",null,[e(p,{modelValue:l(o).shop_logo,"onUpdate:modelValue":u[6]||(u[6]=t=>l(o).shop_logo=t),limit:1},null,8,["modelValue"]),u[17]||(u[17]=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1))])]),_:1})]),_:1}),e(a,{shadow:"never",class:"!border-none mt-4"},{default:r(()=>[u[21]||(u[21]=i("div",{class:"text-xl font-medium mb-[20px]"},"PC\u7AEF\u8BBE\u7F6E",-1)),e(m,{label:"PC\u7AEFLOGO",prop:"pc_logo"},{default:r(()=>[i("div",null,[e(p,{modelValue:l(o).pc_logo,"onUpdate:modelValue":u[7]||(u[7]=t=>l(o).pc_logo=t),limit:1},null,8,["modelValue"]),u[19]||(u[19]=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A120*28px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1))])]),_:1}),e(m,{label:"\u7F51\u7AD9\u6807\u9898",prop:"pc_title"},{default:r(()=>[i("div",K,[e(s,{modelValue:l(o).pc_title,"onUpdate:modelValue":u[8]||(u[8]=t=>l(o).pc_title=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u6807\u9898",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(m,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"pc_ico"},{default:r(()=>[i("div",null,[e(p,{modelValue:l(o).pc_ico,"onUpdate:modelValue":u[9]||(u[9]=t=>l(o).pc_ico=t),limit:1},null,8,["modelValue"]),u[20]||(u[20]=i("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1))])]),_:1}),e(m,{label:"\u7F51\u7AD9\u63CF\u8FF0",prop:"pc_desc"},{default:r(()=>[i("div",T,[e(s,{modelValue:l(o).pc_desc,"onUpdate:modelValue":u[10]||(u[10]=t=>l(o).pc_desc=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u63CF\u8FF0"},null,8,["modelValue"])])]),_:1}),e(m,{label:"\u7F51\u7AD9\u5173\u952E\u8BCD",prop:"pc_keywords"},{default:r(()=>[i("div",Z,[e(s,{modelValue:l(o).pc_keywords,"onUpdate:modelValue":u[11]||(u[11]=t=>l(o).pc_keywords=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u5173\u952E\u8BCD"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["model"]),G((g(),I(b,null,{default:r(()=>[e(B,{type:"primary",onClick:A},{default:r(()=>u[22]||(u[22]=[N("\u4FDD\u5B58")])),_:1})]),_:1})),[[v,["setting.web.web_setting/setWebsite"]]])])}}});export{Lu as default};