import{_ as k}from"./index.7fa39a5d.js";import{K as x,I as H,G as N,H as R,D as q,C as I,w as S,F as U}from"./element-plus.9cae3cb1.js";import{r as C}from"./index.60ed7c6d.js";import{d as b,_ as G,aq as F,o as i,c as T,V as t,M as e,u,a as p,S as l,L as _,R as K,T as L,O as B}from"./@vue.96c135a1.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.f4694335.js";import"./@element-plus.07bd0514.js";import"./dayjs.37feae28.js";import"./@amap.8a62addd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.d6737109.js";import"./axios.c6b9fe3d.js";import"./vue-router.64fdcd9a.js";import"./pinia.aebd7275.js";import"./css-color-function.7f53c13d.js";import"./color.4952d479.js";import"./clone.dd01d7ea.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.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.80787eb0.js";import"./tslib.60310f1a.js";import"./zrender.6f33727c.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.3d7ee361.js";function M(m){return C.post({url:"/channel.web_page_setting/setConfig",params:m})}function O(){return C.get({url:"/channel.web_page_setting/getConfig"})}const j=p("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),z={class:"w-80"},J={class:"flex-1 min-w-0 break-words"},P=b({name:"h5Config"}),he=b({...P,setup(m){const o=G({status:0,page_status:0,page_url:"",url:""}),d=async()=>{const c=await O();for(const a in o)o[a]=c[a]},D=async()=>{await M(o),d()};return d(),(c,a)=>{const w=x,f=H,s=N,g=R,n=q,v=I,E=S,V=U,A=k,h=F("copy"),y=F("perms");return i(),T("div",null,[t(f,{class:"!border-none",shadow:"never"},{default:e(()=>[t(w,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1AH5\u8BBE\u7F6E",closable:!1,"show-icon":""})]),_:1}),t(f,{class:"!border-none mt-4",shadow:"never"},{default:e(()=>[t(V,{ref:"formRef",model:u(o),"label-width":"120px"},{default:e(()=>[t(n,{label:"\u6E20\u9053\u72B6\u6001",required:"",prop:"status"},{default:e(()=>[p("div",null,[t(g,{modelValue:u(o).status,"onUpdate:modelValue":a[0]||(a[0]=r=>u(o).status=r)},{default:e(()=>[t(s,{label:1},{default:e(()=>[l("\u5F00\u542F")]),_:1}),t(s,{label:0},{default:e(()=>[l("\u5173\u95ED")]),_:1})]),_:1},8,["modelValue"]),j])]),_:1}),t(n,{label:"\u5173\u95ED\u540E\u8BBF\u95EE\u9875\u9762",prop:"page_status"},{default:e(()=>[t(g,{modelValue:u(o).page_status,"onUpdate:modelValue":a[1]||(a[1]=r=>u(o).page_status=r)},{default:e(()=>[t(s,{label:0},{default:e(()=>[l("\u7A7A\u9875\u9762")]),_:1}),t(s,{label:1},{default:e(()=>[l("\u81EA\u5B9A\u4E49\u94FE\u63A5")]),_:1})]),_:1},8,["modelValue"])]),_:1}),u(o).page_status==1?(i(),_(n,{key:0,label:"",prop:"page_url"},{default:e(()=>[p("div",z,[t(v,{modelValue:u(o).page_url,"onUpdate:modelValue":a[2]||(a[2]=r=>u(o).page_url=r),placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684url"},null,8,["modelValue"])])]),_:1})):K("",!0),t(n,{label:"\u8BBF\u95EE\u94FE\u63A5"},{default:e(()=>[p("div",J,[l(L(u(o).url)+" ",1),B((i(),_(E,null,{default:e(()=>[l("\u590D\u5236")]),_:1})),[[h,u(o).url]])])]),_:1})]),_:1},8,["model"])]),_:1}),B((i(),_(A,null,{default:e(()=>[t(E,{type:"primary",onClick:D},{default:e(()=>[l("\u4FDD\u5B58")]),_:1})]),_:1})),[[y,["channel.web_page_setting/setConfig"]]])])}}});export{he as default};
