import{q as g,t as b}from"./index.565ea1db.js";import{d as V,b as h,c as a,e as F,f as x,h as o,i as l,u as _,g as D,m as s,E as A,_ as E}from"./index.0308b213.js";const y={class:"setting-form"},B=s("\u662F"),C=s("\u5426"),k={class:"operation-btn"},N=s("\u63D0\u4EA4"),S=V({setup(U){const e=h({appid:"",franchiser_id:"",restaurant_id:"",is_dev:1,develop_url:"",product_url:"",min_price:""}),c=()=>{g(e).then(()=>{i(),A.success("\u4FDD\u5B58\u6210\u529F")})},i=()=>{b().then(t=>{console.log(t),t=t.data,e.appid=t.appid,e.franchiser_id=t.franchiser_id,e.restaurant_id=t.restaurant_id,e.is_dev=t.is_dev,e.develop_url=t.develop_url,e.product_url=t.product_url,e.min_price=t.min_price})};return i(),(t,u)=>{const r=a("el-radio"),m=a("el-radio-group"),d=a("el-form-item"),p=a("el-input"),f=a("el-form"),v=a("el-button");return F(),x("div",y,[o(f,{model:_(e),"label-width":"170px"},{default:l(()=>[o(d,{label:"\u662F\u5426\u5F00\u53D1\u73AF\u5883"},{default:l(()=>[o(m,{modelValue:_(e).is_dev,"onUpdate:modelValue":u[0]||(u[0]=n=>_(e).is_dev=n)},{default:l(()=>[o(r,{label:1},{default:l(()=>[B]),_:1}),o(r,{label:0},{default:l(()=>[C]),_:1})]),_:1},8,["modelValue"])]),_:1}),o(d,{label:"\u5F00\u53D1url"},{default:l(()=>[o(p,{modelValue:_(e).develop_url,"onUpdate:modelValue":u[1]||(u[1]=n=>_(e).develop_url=n)},null,8,["modelValue"])]),_:1}),o(d,{label:"\u751F\u4EA7url"},{default:l(()=>[o(p,{modelValue:_(e).product_url,"onUpdate:modelValue":u[2]||(u[2]=n=>_(e).product_url=n)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),D("div",k,[o(v,{type:"primary",onClick:c},{default:l(()=>[N]),_:1})])])}}});const I=E(S,[["__scopeId","data-v-893f5bd9"]]);export{I as default};
