suyuan/public/admin/assets/information.61eda61d.js

2 lines
7.5 KiB
JavaScript

import{_ as b}from"./index.f2c29013.js";import{B as w,C as D,I as v,D as V,w as h}from"./element-plus.5df6f736.js";import{_ as x}from"./picker.966d5ace.js";import{a as j,b as q}from"./website.9bfe58d8.js";import{u as k}from"./index.1f78e617.js";import{d as _,r as U,_ as y,ae as O,o as n,c as P,T as e,K as i,L as M,J as L,a as l,R as G}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.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.5f547370.js";import"./index.39d7fad9.js";import"./index.vue_vue_type_script_setup_true_lang.1938e45e.js";import"./index.75a5ec45.js";import"./index.301703a6.js";import"./index.vue_vue_type_script_setup_true_lang.dc1b37d1.js";import"./usePaging.2a59f422.js";import"./vue3-video-play.5aacf00d.js";import"./vuedraggable.882c7954.js";import"./vue.d688b76a.js";import"./sortablejs.1b122128.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const I={class:"website-information"},N=l("div",{class:"text-xl font-medium mb-[20px]"},"\u540E\u53F0\u8BBE\u7F6E",-1),R={class:"w-80"},S=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),W=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:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),J=l("div",{class:"text-xl font-medium mb-[20px]"},"\u524D\u53F0\u8BBE\u7F6E",-1),K={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),Q=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A120*28px\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),X={class:"w-80"},Y=l("div",{class:"form-tips"},"\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A100*100\u50CF\u7D20\uFF0C\u652F\u6301jpg\uFF0Cjpeg\uFF0Cpng\u683C\u5F0F",-1),Z={class:"w-80"},$={class:"w-80"},ee=G("\u4FDD\u5B58"),ue=_({name:"webInformation"}),Ye=_({...ue,setup(oe){const d=U(),c=k(),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(),P("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(()=>[N,e(r,{label:"\u7F51\u7AD9\u540D\u79F0",prop:"name"},{default:i(()=>[l("div",R,[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"]),S])]),_: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"]),W])]),_: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"]),T])]),_:1})]),_:1}),e(p,{shadow:"never",class:"!border-none mt-4"},{default:i(()=>[J,e(r,{label:"\u524D\u53F0\u540D\u79F0",prop:"shop_name"},{default:i(()=>[l("div",K,[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"]),Q])]),_:1}),e(r,{label:"\u7F51\u7AD9\u6807\u9898",prop:"pc_title"},{default:i(()=>[l("div",X,[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"]),Y])]),_:1}),e(r,{label:"\u7F51\u7AD9\u63CF\u8FF0",prop:"pc_desc"},{default:i(()=>[l("div",Z,[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",$,[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"]),M((n(),L(E,null,{default:i(()=>[e(A,{type:"primary",onClick:f},{default:i(()=>[ee]),_:1})]),_:1})),[[B,["setting.web.web_setting/setWebsite"]]])])}}});export{Ye as default};