suyuan/public/admin/assets/information.3bcfab72.js

2 lines
7.5 KiB
JavaScript

import{_ as b}from"./index.c54e75e2.js";import{B as w,C as D,H as v,D as V,w as h}from"./element-plus.c4a2af8a.js";import{_ as x}from"./picker.71c413a3.js";import{a as j,b as q}from"./website.c3fcf66f.js";import{u as U}from"./index.7c5c8d56.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.ff93117e.js";import"./axios.eb055ccc.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.36a7ea39.js";import"./index.a05ee0ed.js";import"./index.vue_vue_type_script_setup_true_lang.2a46e71f.js";import"./index.71315001.js";import"./index.48a4b326.js";import"./index.vue_vue_type_script_setup_true_lang.f10703bb.js";import"./usePaging.160b82b8.js";import"./vue3-video-play.4851e3ad.js";import"./vuedraggable.2903c55e.js";import"./vue.305b70ee.js";import"./sortablejs.9ffc750f.js";import"./lodash.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const S={class:"website-information"},I=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),H=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:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1),T={class:"w-80"},$=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),z=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",S,[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(()=>[I,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"]),H])]),_:1})]),_:1}),e(p,{shadow:"never",class:"!border-none mt-4"},{default:i(()=>[K,e(r,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:i(()=>[l("div",T,[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"]),$])]),_:1})]),_:1}),e(p,{shadow:"never",class:"!border-none mt-4"},{default:i(()=>[z,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};