moreShopAdmin/build/admin/assets/information.05ea0cfc.js

2 lines
8.0 KiB
JavaScript

import{_ as D}from"./index.ee1c3aba.js";import{C as w,D as V,L as c,F as x,w as j}from"./element-plus.91c68cc0.js";import{_ as q}from"./picker.ef5d1750.js";import{a as U,b as k}from"./website.ed47d55a.js";import{u as y}from"./index.e9c2eb26.js";import{d as _,r as O,Z as M,ap 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.76ce7aa3.js";import"./lodash-es.f52bd8b1.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.9ffef7f8.js";import"./@element-plus.73235148.js";import"./dayjs.0112e2c7.js";import"./@babel.80d29b7b.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.d78ce335.js";import"./index.vue_vue_type_style_index_0_scoped_d380c88d_lang.cf0d972e.js";import"./index.2efc98a8.js";import"./index.vue_vue_type_script_setup_true_lang.863ae816.js";import"./index.ece4e136.js";import"./usePaging.f8c888e4.js";import"./vuedraggable.c04c7c0c.js";import"./vue.3299ef77.js";import"./sortablejs.c62bcaf8.js";import"./lodash.4e6d2a38.js";import"./axios.cffda5ac.js";import"./jspdf.6c61b9d3.js";import"./fflate.0418c72f.js";import"./vue-router.10bd5b90.js";import"./pinia.f3529286.js";import"./css-color-function.bb8c34b2.js";import"./color.fbd63fe8.js";import"./clone.31a3aa2c.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.b502f541.js";import"./vue-clipboard3.e775fc74.js";import"./clipboard.6417898a.js";import"./echarts.5016c48c.js";import"./zrender.58d022a1.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8d65305c.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"}),Ru=_({...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=w,m=V,p=q,a=c,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{Ru as default};