import{az as m,d as C,r as i,b as w,c as a,e as x,k as y,i as e,h as o,u as d,m as s,E}from"./index.0308b213.js";const S=()=>m.request({url:"addon/memberStoreRecharge.web.member_store_recharge_setting/getConfig"}),V=r=>m.request({url:"addon/memberStoreRecharge.web.member_store_recharge_setting/setConfig",method:"POST",data:r}),k=s("\u5F00"),B=s("\u5173"),F=s("\u63D0\u4EA4"),A=C({setup(r){i([]),i(1);let n=w({is_open:0});const p=()=>{V(n).then(t=>{E.success("\u8BBE\u7F6E\u6210\u529F"),l()})},l=()=>{S().then(t=>{console.log(t),t&&t.data&&(n.is_open=t.data.is_open)})};return l(),(t,_)=>{const u=a("el-radio"),f=a("el-radio-group"),c=a("el-form-item"),g=a("el-button"),b=a("el-card");return x(),y(b,{shadow:"always",style:{"margin-top":"20px"}},{default:e(()=>[o(c,{label:"\u5F00\u5173"},{default:e(()=>[o(f,{modelValue:d(n).is_open,"onUpdate:modelValue":_[0]||(_[0]=h=>d(n).is_open=h)},{default:e(()=>[o(u,{label:1},{default:e(()=>[k]),_:1}),o(u,{label:0},{default:e(()=>[B]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(c,{label:"",class:"continer-item"},{default:e(()=>[o(g,{type:"primary",onClick:p},{default:e(()=>[F]),_:1})]),_:1})]),_:1})}}});export{A as default};
