suyuan-breed/public/admin/assets/h5.18cd304a.js

2 lines
3.5 KiB
JavaScript

import{_ as y}from"./index.65ffcc98.js";import{T as k,J as x,R,S as N,C as S,B as H,w as T,D as U}from"./element-plus.ae8e286c.js";import{r as B}from"./index.fccb4ef5.js";import{d as C,_ as q,ae as E,o as n,c as I,T as e,K as t,L as F,J as _,a as i,Q as J,R as a,S as G}from"./@vue.108c970a.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.664390f6.js";import"./axios.4ebfdb3f.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"./lodash.e92d81a1.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.dbf33394.js";import"./color.e1b5fced.js";import"./clone.0a4e8ac3.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.f174a91e.js";import"./ms.a9ae1d6d.js";import"./nprogress.d7c3ab1b.js";import"./vue-clipboard3.add720e2.js";import"./clipboard.01ea18f5.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";function K(p){return B.post({url:"/channel.web_page_setting/setConfig",params:p})}function L(){return B.get({url:"/channel.web_page_setting/getConfig"})}const Q=a("\u5F00\u542F"),j=a("\u5173\u95ED"),z=i("div",{class:"form-tips"},"\u72B6\u6001\u4E3A\u5173\u95ED\u65F6\uFF0C\u5C06\u4E0D\u5BF9\u5916\u63D0\u4F9B\u670D\u52A1\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C",-1),M=a("\u7A7A\u9875\u9762"),O=a("\u81EA\u5B9A\u4E49\u94FE\u63A5"),P={class:"w-80"},W={class:"flex-1 min-w-0 break-words"},X=a("\u590D\u5236"),Y=a("\u4FDD\u5B58"),Z=C({name:"h5Config"}),Ht=C({...Z,setup(p){const o=q({status:0,page_status:0,page_url:"",url:""}),m=async()=>{const d=await L();for(const u in o)o[u]=d[u]},b=async()=>{await K(o),m()};return m(),(d,u)=>{const D=k,c=x,s=R,f=N,r=S,h=H,g=T,w=U,v=y,V=E("copy"),A=E("perms");return n(),I("div",null,[e(c,{class:"!border-none",shadow:"never"},{default:t(()=>[e(D,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1AH5\u8BBE\u7F6E",closable:!1,"show-icon":""})]),_:1}),e(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[e(w,{ref:"formRef",model:o,"label-width":"120px"},{default:t(()=>[e(r,{label:"\u6E20\u9053\u72B6\u6001",required:"",prop:"status"},{default:t(()=>[i("div",null,[e(f,{modelValue:o.status,"onUpdate:modelValue":u[0]||(u[0]=l=>o.status=l)},{default:t(()=>[e(s,{label:1},{default:t(()=>[Q]),_:1}),e(s,{label:0},{default:t(()=>[j]),_:1})]),_:1},8,["modelValue"]),z])]),_:1}),e(r,{label:"\u5173\u95ED\u540E\u8BBF\u95EE\u9875\u9762",prop:"page_status"},{default:t(()=>[e(f,{modelValue:o.page_status,"onUpdate:modelValue":u[1]||(u[1]=l=>o.page_status=l)},{default:t(()=>[e(s,{label:0},{default:t(()=>[M]),_:1}),e(s,{label:1},{default:t(()=>[O]),_:1})]),_:1},8,["modelValue"])]),_:1}),o.page_status==1?(n(),_(r,{key:0,label:"",prop:"page_url"},{default:t(()=>[i("div",P,[e(h,{modelValue:o.page_url,"onUpdate:modelValue":u[2]||(u[2]=l=>o.page_url=l),placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684url"},null,8,["modelValue"])])]),_:1})):J("",!0),e(r,{label:"\u8BBF\u95EE\u94FE\u63A5"},{default:t(()=>[i("div",W,[a(G(o.url)+" ",1),F((n(),_(g,null,{default:t(()=>[X]),_:1})),[[V,o.url]])])]),_:1})]),_:1},8,["model"])]),_:1}),F((n(),_(v,null,{default:t(()=>[e(g,{type:"primary",onClick:b},{default:t(()=>[Y]),_:1})]),_:1})),[[A,["channel.web_page_setting/setConfig"]]])])}}});export{Ht as default};