import{M as V}from"./index.dfdc0704.js";import{d as C,g}from"./setting.880d1998.js";import{d as v,b as c,c as a,e as m,f as F,h as s,i,g as u,u as o,n as E,A as w,m as y,E as A,R as B,S as D,_ as z}from"./index.0308b213.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";const x=n=>(B("data-v-b14ee436"),n=n(),D(),n),S=x(()=>u("span",null,"\u63A8\u5E7F\u6D77\u62A5 \u8BBE\u7F6E",-1)),U={style:{display:"flex"}},$={style:{flex:"1"}},k=y("\u63D0\u4EA4"),I={class:"poster-preview",style:{flex:"1"}},N=x(()=>u("h3",null,"\u6D77\u62A5\u9884\u89C8",-1)),M={style:{display:"flex","align-items":"center"}},P=y(" \u7F29\u653E\uFF1A "),R={class:"preview-container",ref:"previewContainer"},T=["src"],j=v({setup(n){const e=c({bg:"",qrcode_position_x:0,qrcode_position_y:0,qrcode_size:0}),_=c({rate:1});(()=>{C().then(r=>{console.log(r);const t=r.poster;e.bg=t.bg,e.qrcode_position_x=t.qrcode_position_x,e.qrcode_position_y=t.qrcode_position_y,e.qrcode_size=t.qrcode_size})})();const f=()=>{g(e).then(r=>{A.success("\u4FEE\u6539\u6210\u529F")})};return(r,t)=>{const d=a("el-form-item"),p=a("el-input"),b=a("el-button"),h=a("el-slider"),q=a("el-card");return m(),F("div",null,[s(q,{shadow:"always",style:{"margin-top":"20px"}},{header:i(()=>[S]),default:i(()=>[u("div",U,[u("div",$,[s(d,{label:"\u63A8\u5E7F\u6D77\u62A5"},{default:i(()=>[s(V,{modelValue:o(e).bg,"onUpdate:modelValue":t[0]||(t[0]=l=>o(e).bg=l),limit:1,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(d,{label:"\u4E8C\u7EF4\u7801\u5927\u5C0F"},{default:i(()=>[s(p,{modelValue:o(e).qrcode_size,"onUpdate:modelValue":t[1]||(t[1]=l=>o(e).qrcode_size=l),placeholder:"\u8BF7\u8F93\u5165\u4E8C\u7EF4\u7801\u5927\u5C0F",style:{width:"150px"}},null,8,["modelValue"])]),_:1}),s(d,{label:"\u4E8C\u7EF4\u7801\u4F4D\u7F6E\u8BBE\u7F6Ex"},{default:i(()=>[s(p,{modelValue:o(e).qrcode_position_x,"onUpdate:modelValue":t[2]||(t[2]=l=>o(e).qrcode_position_x=l),placeholder:"\u8BF7\u8F93\u5165\u4E8C\u7EF4\u7801\u4F4D\u7F6Ex",style:{width:"150px"}},null,8,["modelValue"])]),_:1}),s(d,{label:"\u4E8C\u7EF4\u7801\u4F4D\u7F6E\u8BBE\u7F6Ey"},{default:i(()=>[s(p,{modelValue:o(e).qrcode_position_y,"onUpdate:modelValue":t[3]||(t[3]=l=>o(e).qrcode_position_y=l),placeholder:"\u8BF7\u8F93\u5165\u4E8C\u7EF4\u7801\u4F4D\u7F6Ey",style:{width:"150px"}},null,8,["modelValue"])]),_:1}),s(d,{label:"",class:"continer-item"},{default:i(()=>[s(b,{type:"primary",onClick:f},{default:i(()=>[k]),_:1})]),_:1})]),u("div",I,[N,u("div",M,[P,s(h,{style:{width:"320px"},modelValue:o(_).rate,"onUpdate:modelValue":t[4]||(t[4]=l=>o(_).rate=l),max:2,step:.1},null,8,["modelValue","step"])]),u("div",R,[o(e).bg?(m(),F("div",{key:0,class:"poster-content",style:E({transform:`scale(${o(_).rate})`})},[u("img",{src:o(e).bg,class:"poster-bg",alt:"\u6D77\u62A5\u80CC\u666F"},null,8,T),u("div",{class:"poster-qrcode",style:E({width:`${o(e).qrcode_size}px`,height:`${o(e).qrcode_size}px`,left:`${o(e).qrcode_position_x}px`,top:`${o(e).qrcode_position_y}px`})}," \u4E8C\u7EF4\u7801\u533A\u57DF ",4)],4)):w("",!0)],512)])])]),_:1})])}}});const Y=z(j,[["__scopeId","data-v-b14ee436"]]);export{Y as default};
