code-origin/server/public/admin/assets/information.dcbaeb88.js

2 lines
7.5 KiB
JavaScript
Executable File

import{_ as b}from"./index.1cf7e9ba.js";import{B as w,C as D,I as v,D as V,w as h}from"./element-plus.317dd699.js";import{_ as x}from"./picker.2d7b0472.js";import{a as j,b as q}from"./website.6098630e.js";import{u as U}from"./index.ffa405f0.js";import{d as _,r as k,$ as y,af as O,o as n,c as M,U as e,L as i,M as P,K as L,a as l,S as G}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.f7363e4f.js";import"./axios.3af9fe4b.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.882ba4be.js";import"./index.b92353f0.js";import"./index.vue_vue_type_script_setup_true_lang.f549c02e.js";import"./index.5030ec54.js";import"./index.8721dbdb.js";import"./index.vue_vue_type_script_setup_true_lang.a60e2335.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.eee17a05.js";import"./vue.7e66a746.js";import"./sortablejs.d9cb9a0e.js";import"./lodash.873faf2b.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.1a2c9cae.js";import"./color.3050aad5.js";import"./clone.3b081931.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.21f7a9fd.js";import"./ms.a9ae1d6d.js";import"./nprogress.fd69c5bf.js";import"./vue-clipboard3.9796a14d.js";import"./clipboard.2bdac801.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const I={class:"website-information"},S=l("div",{class:"text-xl font-medium mb-[20px]"},"\u540E\u53F0\u8BBE\u7F6E",-1),N={class:"w-80"},W=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),R=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),K=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),T=l("div",{class:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1),$={class:"w-80"},z=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),H=l("div",{class:"text-xl font-medium mb-[20px]"},"PC\u7AEF\u8BBE\u7F6E",-1),J=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A120*28px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Q={class:"w-80"},X=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Y={class:"w-80"},Z={class:"w-80"},ee=G("\u4FDD\u5B58"),ue=_({name:"webInformation"}),Xe=_({...ue,setup(oe){const d=k(),c=U(),u=y({name:"",web_favicon:"",web_logo:"",login_image:"",shop_name:"",shop_logo:"",pc_logo:"",pc_title:"",pc_desc:"",pc_ico:"",pc_keywords:""}),g={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"]}]},F=async()=>{const m=await j();for(const o in u)u[o]=m[o]},f=async()=>{var m;await((m=d.value)==null?void 0:m.validate()),await q(u),c.getConfig(),F()};return F(),(m,o)=>{const a=w,r=D,s=x,p=v,C=V,A=h,E=b,B=O("perms");return n(),M("div",I,[e(C,{ref_key:"formRef",ref:d,rules:g,class:"ls-form",model:u,"label-width":"120px"},{default:i(()=>[e(p,{shadow:"never",class:"!border-none"},{default:i(()=>[S,e(r,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:i(()=>[l("div",N,[e(a,{modelValue:u.name,"onUpdate:modelValue":o[0]||(o[0]=t=>u.name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7F51\u7AD9\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(r,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"web_favicon",required:""},{default:i(()=>[l("div",null,[e(s,{modelValue:u.web_favicon,"onUpdate:modelValue":o[1]||(o[1]=t=>u.web_favicon=t),limit:1},null,8,["modelValue"]),W])]),_:1}),e(r,{label:"\u7F51\u7AD9LOGO",prop:"web_logo",required:""},{default:i(()=>[l("div",null,[e(s,{modelValue:u.web_logo,"onUpdate:modelValue":o[2]||(o[2]=t=>u.web_logo=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),R])]),_:1}),e(r,{label:"\u767B\u5F55\u9875\u5E7F\u544A\u56FE",prop:"login_image",required:""},{default:i(()=>[l("div",null,[e(s,{modelValue:u.login_image,"onUpdate:modelValue":o[3]||(o[3]=t=>u.login_image=t),modelModifiers:{trim:!0},limit:1},null,8,["modelValue"]),K])]),_:1})]),_:1}),e(p,{shadow:"never",class:"!border-none mt-4"},{default:i(()=>[T,e(r,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:i(()=>[l("div",$,[e(a,{modelValue:u.shop_name,"onUpdate:modelValue":o[4]||(o[4]=t=>u.shop_name=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u524D\u53F0\u540D\u79F0",maxlength:"30","show-word-limit":""},null,8,["modelValue"])])]),_:1}),e(r,{label:"\u524D\u53F0LOGO",prop:"shop_logo"},{default:i(()=>[l("div",null,[e(s,{modelValue:u.shop_logo,"onUpdate:modelValue":o[5]||(o[5]=t=>u.shop_logo=t),limit:1},null,8,["modelValue"]),z])]),_:1})]),_:1}),e(p,{shadow:"never",class:"!border-none mt-4"},{default:i(()=>[H,e(r,{label:"PC\u7AEFLOGO",prop:"pc_logo"},{default:i(()=>[l("div",null,[e(s,{modelValue:u.pc_logo,"onUpdate:modelValue":o[6]||(o[6]=t=>u.pc_logo=t),limit:1},null,8,["modelValue"]),J])]),_:1}),e(r,{label:"\u7F51\u7AD9\u6807\u9898",prop:"pc_title"},{default:i(()=>[l("div",Q,[e(a,{modelValue:u.pc_title,"onUpdate:modelValue":o[7]||(o[7]=t=>u.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(r,{label:"\u7F51\u7AD9\u56FE\u6807",prop:"pc_ico"},{default:i(()=>[l("div",null,[e(s,{modelValue:u.pc_ico,"onUpdate:modelValue":o[8]||(o[8]=t=>u.pc_ico=t),limit:1},null,8,["modelValue"]),X])]),_:1}),e(r,{label:"\u7F51\u7AD9\u63CF\u8FF0",prop:"pc_desc"},{default:i(()=>[l("div",Y,[e(a,{modelValue:u.pc_desc,"onUpdate:modelValue":o[9]||(o[9]=t=>u.pc_desc=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u63CF\u8FF0"},null,8,["modelValue"])])]),_:1}),e(r,{label:"\u7F51\u7AD9\u5173\u952E\u8BCD",prop:"pc_keywords"},{default:i(()=>[l("div",Z,[e(a,{modelValue:u.pc_keywords,"onUpdate:modelValue":o[10]||(o[10]=t=>u.pc_keywords=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165PC\u7AEF\u7F51\u7AD9\u5173\u952E\u8BCD"},null,8,["modelValue"])])]),_:1})]),_:1})]),_:1},8,["model"]),P((n(),L(E,null,{default:i(()=>[e(A,{type:"primary",onClick:f},{default:i(()=>[ee]),_:1})]),_:1})),[[B,["setting.web.web_setting/setWebsite"]]])])}}});export{Xe as default};