import{F as f}from"./index.d8717905.js";import{aq as g,ar as y}from"./setting.644fa418.js";import{d as b,b as F,c as d,e as w,f as x,h as e,i as a,u as o,m as u,E as V,_ as D}from"./index.0308b213.js";const B=u("\u516C\u4F17\u53F7"),E=u("\u5C0F\u7A0B\u5E8F"),z=u("\u662F"),k=u("\u5426"),C=u("\u662F"),v=u("\u5426"),A=u("\u662F"),N=u("\u5426"),G=u("\u4FDD\u5B58"),U=b({setup(S){const t=F({getcash_channel:{wechat:"wechat"},getcash_type:{weixin:0,alipay:0,alipaybank:0}});(()=>{g().then(_=>{t.getcash_channel.wechat=_.channel.wechat||"wechat",t.getcash_type.weixin=Number(_.type.weixin)||0,t.getcash_type.alipay=Number(_.type.alipay)||0,t.getcash_type.alipaybank=Number(_.type.alipaybank)||0,console.log(_)})})();const p=async _=>{y(t).then(l=>{V({type:"success",message:"\u4FDD\u5B58\u6210\u529F"})})};return(_,l)=>{const s=d("el-radio"),c=d("el-radio-group"),i=d("el-form-item"),m=d("el-card"),r=d("el-form"),h=d("el-button");return w(),x("div",null,[e(r,{ref:"formRef",model:o(t),"label-width":"160px",size:"default","label-position":"top"},{default:a(()=>[e(m,{shadow:"always","body-style":{padding:"20px"}},{default:a(()=>[e(i,{label:"\u5FAE\u4FE1\u63D0\u73B0\u6E20\u9053"},{default:a(()=>[e(c,{modelValue:o(t).getcash_channel.wechat,"onUpdate:modelValue":l[0]||(l[0]=n=>o(t).getcash_channel.wechat=n)},{default:a(()=>[e(s,{label:"wechat",size:"large"},{default:a(()=>[B]),_:1}),e(s,{label:"wxapp",size:"large"},{default:a(()=>[E]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5F00\u542F\u63D0\u73B0\u5230\u5FAE\u4FE1"},{default:a(()=>[e(c,{modelValue:o(t).getcash_type.weixin,"onUpdate:modelValue":l[1]||(l[1]=n=>o(t).getcash_type.weixin=n)},{default:a(()=>[e(s,{label:1,size:"large"},{default:a(()=>[z]),_:1}),e(s,{label:0,size:"large"},{default:a(()=>[k]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5F00\u542F\u63D0\u73B0\u5230\u652F\u4ED8\u5B9D"},{default:a(()=>[e(c,{modelValue:o(t).getcash_type.alipay,"onUpdate:modelValue":l[2]||(l[2]=n=>o(t).getcash_type.alipay=n)},{default:a(()=>[e(s,{label:1,size:"large"},{default:a(()=>[C]),_:1}),e(s,{label:0,size:"large"},{default:a(()=>[v]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u5F00\u542F\u652F\u4ED8\u5B9D\u63D0\u73B0\u5230\u94F6\u884C\u5361"},{default:a(()=>[e(c,{modelValue:o(t).getcash_type.alipaybank,"onUpdate:modelValue":l[3]||(l[3]=n=>o(t).getcash_type.alipaybank=n)},{default:a(()=>[e(s,{label:1,size:"large"},{default:a(()=>[A]),_:1}),e(s,{label:0,size:"large"},{default:a(()=>[N]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"]),e(f,null,{default:a(()=>[e(h,{type:"primary",onClick:p},{default:a(()=>[G]),_:1})]),_:1})])}}});const T=D(U,[["__scopeId","data-v-8841097b"]]);export{T as default};
