import{D as m,d as x,r as b,b as h,c as i,e as g,f as w,h as a,i as l,u as o,g as V,m as E,E as y,_ as k}from"./index.76214426.js";const F=()=>m.get("merchant/shop.oauthSetting/getInfo"),v=u=>m.post("merchant/shop.oauthSetting/setInfo",u),B={class:"setting-form"},D={class:"operation-btn"},I=E("\u63D0\u4EA4"),A=x({setup(u){b("");const e=h({weixin_appid:"",weixin_appsecret:"",ali_appid:"",apply_app_auth_token:""}),r=()=>{F().then(n=>{console.log(n);const t=n.data;e.weixin_appid=t.weixin_appid,e.weixin_appsecret=t.weixin_appsecret,e.ali_appid=t.ali_appid,e.apply_app_auth_token=t.apply_app_auth_token})},c=()=>{v(e).then(n=>{console.log(n),y({message:"\u8BBE\u7F6E\u6210\u529F",type:"success"})})};return r(),(n,t)=>{const _=i("el-input"),s=i("el-form-item"),d=i("el-form"),f=i("el-button");return g(),w("div",B,[a(d,{model:o(e),"label-width":"120px"},{default:l(()=>[a(s,{label:"\u5FAE\u4FE1appid"},{default:l(()=>[a(_,{modelValue:o(e).weixin_appid,"onUpdate:modelValue":t[0]||(t[0]=p=>o(e).weixin_appid=p)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a(d,{model:o(e),"label-width":"120px"},{default:l(()=>[a(s,{label:"\u5FAE\u4FE1appsecret"},{default:l(()=>[a(_,{modelValue:o(e).weixin_appsecret,"onUpdate:modelValue":t[1]||(t[1]=p=>o(e).weixin_appsecret=p)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a(d,{model:o(e),"label-width":"120px"},{default:l(()=>[a(s,{label:"\u652F\u4ED8\u5B9Dappid"},{default:l(()=>[a(_,{modelValue:o(e).ali_appid,"onUpdate:modelValue":t[2]||(t[2]=p=>o(e).ali_appid=p)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a(d,{model:o(e),"label-width":"120px"},{default:l(()=>[a(s,{label:"\u652F\u4ED8\u5B9D\u6388\u6743token"},{default:l(()=>[a(_,{modelValue:o(e).apply_app_auth_token,"onUpdate:modelValue":t[3]||(t[3]=p=>o(e).apply_app_auth_token=p)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),V("div",D,[a(f,{type:"primary",onClick:c},{default:l(()=>[I]),_:1})])])}}});const S=k(A,[["__scopeId","data-v-959bd2b2"]]);export{S as default};