MenuEditor-0d9f9918.js 7.8 KB

1
  1. import{d as oe,J as z,r as D,K as ne,am as ue,o,c as _,g as c,f as r,w as s,m as G,a,F as _e,n as se,q as H,O as p,N as ie,_ as L,B as de,U as pe,x as me,y as ye,i as he,E as ve,a$ as fe,p as Ve,j as ge,__tla as be}from"./index-2eab2d23.js";import we,{__tla as ke}from"./main-6787445e.js";import Ue,{__tla as Pe}from"./main-74cfbf31.js";import{W as Ie,__tla as xe}from"./main-16c68401.js";import{u as Ae,__tla as Ee}from"./useMessage-171aa63e.js";import{_ as Ke}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as je}from"./TabNews-e6b53f0c.js";import{__tla as Ce}from"./TabText.vue_vue_type_script_setup_true_lang-684c2db6.js";import{__tla as Me}from"./TabImage-5c826f21.js";import{__tla as Be}from"./useUpload-1c63b1eb.js";import{__tla as We}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{__tla as qe}from"./index-cc63c3c4.js";import{__tla as Fe}from"./el-image-2171f3ff.js";import{__tla as Je}from"./el-image-viewer-5d14bc77.js";import{__tla as Ne}from"./main-ec2be832.js";import{__tla as Oe}from"./main.vue_vue_type_script_setup_true_lang-0610a4e1.js";import{__tla as Se}from"./index-4663832c.js";import{__tla as Ye}from"./index-5f871167.js";import{__tla as $e}from"./formatTime-41155543.js";import{__tla as ze}from"./TabVoice-07daad5d.js";import{__tla as De}from"./TabVideo-c2bd716c.js";import{__tla as Ge}from"./TabMusic.vue_vue_type_script_setup_true_lang-0e983a81.js";let Q,He=Promise.all([(()=>{try{return be}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Ge}catch{}})()]).then(async()=>{let V,n,g,b,w,k,U,P,I,x,A,E,K,j,C,M,B,W,q,F,J,N,O,S;V=[{value:"view",label:"\u8DF3\u8F6C\u7F51\u9875"},{value:"miniprogram",label:"\u8DF3\u8F6C\u5C0F\u7A0B\u5E8F"},{value:"click",label:"\u70B9\u51FB\u56DE\u590D"},{value:"article_view_limited",label:"\u8DF3\u8F6C\u56FE\u6587\u6D88\u606F"},{value:"scancode_push",label:"\u626B\u7801\u76F4\u63A5\u8FD4\u56DE\u7ED3\u679C"},{value:"scancode_waitmsg",label:"\u626B\u7801\u56DE\u590D"},{value:"pic_sysphoto",label:"\u7CFB\u7EDF\u62CD\u7167\u53D1\u56FE"},{value:"pic_photo_or_album",label:"\u62CD\u7167\u6216\u8005\u76F8\u518C"},{value:"pic_weixin",label:"\u5FAE\u4FE1\u76F8\u518C"},{value:"location_select",label:"\u9009\u62E9\u5730\u7406\u4F4D\u7F6E"}],n=m=>(Ve("data-v-09346818"),m=m(),ge(),m),g={class:"configure_page"},b={class:"delete_btn"},w=n(()=>c("span",null,"\u83DC\u5355\u540D\u79F0\uFF1A",-1)),k={key:0},U={class:"menu_content"},P=n(()=>c("span",null,"\u83DC\u5355\u6807\u8BC6\uFF1A",-1)),I={class:"menu_content"},x=n(()=>c("span",null,"\u83DC\u5355\u5185\u5BB9\uFF1A",-1)),A={key:0,class:"configur_content"},E=n(()=>c("span",null,"\u8DF3\u8F6C\u94FE\u63A5\uFF1A",-1)),K={key:1,class:"configur_content"},j={class:"applet"},C=n(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684 appid \uFF1A",-1)),M={class:"applet"},B=n(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u9875\u9762\u8DEF\u5F84\uFF1A",-1)),W={class:"applet"},q=n(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u5907\u7528\u7F51\u9875\uFF1A",-1)),F=n(()=>c("p",{class:"blue"},"tips:\u9700\u8981\u548C\u516C\u4F17\u53F7\u8FDB\u884C\u5173\u8054\u624D\u53EF\u4EE5\u628A\u5C0F\u7A0B\u5E8F\u7ED1\u5B9A\u5E26\u5FAE\u4FE1\u83DC\u5355\u4E0A\u54DF\uFF01",-1)),J={key:2,class:"configur_content"},N={key:0,class:"select-item"},O={key:1},S={key:3,class:"configur_content"},Q=Ke(oe({__name:"MenuEditor",props:{accountId:{},modelValue:{},isParent:{type:Boolean}},emits:["delete","update:modelValue"],setup(m,{emit:R}){const T=Ae(),Y=m,$=R,e=z({get:()=>Y.modelValue,set(u){$("update:modelValue",u)}}),y=D(!1),v=D(!1),X=z(()=>{var u;return!(((u=e.value.children)==null?void 0:u.length)>0)});ne(e,()=>{v.value=!1,ue(()=>{v.value=!0})});const Z=u=>{const l=u.articleId,h=u.content.newsItem;h.length>1&&T.alertWarning("\u60A8\u9009\u62E9\u7684\u662F\u591A\u56FE\u6587\uFF0C\u5C06\u9ED8\u8BA4\u8DF3\u8F6C\u7B2C\u4E00\u7BC7"),y.value=!1,e.value.articleId=l,e.value.replyArticles=[],h.forEach(i=>{e.value.replyArticles.push({title:i.title,description:i.digest,picUrl:i.picUrl,url:i.url})})},ee=()=>{delete e.value.articleId,delete e.value.replyArticles};return(u,l)=>{const h=L,i=de,d=pe,ae=me,le=ye,te=L,f=he,re=ve,ce=fe;return o(),_("div",null,[c("div",g,[c("div",b,[r(i,{type:"danger",onClick:l[0]||(l[0]=t=>$("delete"))},{default:s(()=>[r(h,{icon:"ep:delete"}),G(" \u5220\u9664\u5F53\u524D\u83DC\u5355 ")]),_:1})]),c("div",null,[w,r(d,{class:"input_width",modelValue:a(e).name,"onUpdate:modelValue":l[1]||(l[1]=t=>a(e).name=t),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355\u540D\u79F0",maxlength:u.isParent?4:7,clearable:""},null,8,["modelValue","maxlength"])]),a(X)?(o(),_("div",k,[c("div",U,[P,r(d,{class:"input_width",modelValue:a(e).menuKey,"onUpdate:modelValue":l[2]||(l[2]=t=>a(e).menuKey=t),placeholder:"\u8BF7\u8F93\u5165\u83DC\u5355 KEY",clearable:""},null,8,["modelValue"])]),c("div",I,[x,r(le,{modelValue:a(e).type,"onUpdate:modelValue":l[3]||(l[3]=t=>a(e).type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9",class:"menu_option"},{default:s(()=>[(o(!0),_(_e,null,se(a(V),t=>(o(),H(ae,{label:t.label,value:t.value,key:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a(e).type==="view"?(o(),_("div",A,[E,r(d,{class:"input_width",modelValue:a(e).url,"onUpdate:modelValue":l[4]||(l[4]=t=>a(e).url=t),placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5",clearable:""},null,8,["modelValue"])])):p("",!0),a(e).type==="miniprogram"?(o(),_("div",K,[c("div",j,[C,r(d,{class:"input_width",modelValue:a(e).miniProgramAppId,"onUpdate:modelValue":l[5]||(l[5]=t=>a(e).miniProgramAppId=t),placeholder:"\u8BF7\u8F93\u5165\u5C0F\u7A0B\u5E8F\u7684appid",clearable:""},null,8,["modelValue"])]),c("div",M,[B,r(d,{class:"input_width",modelValue:a(e).miniProgramPagePath,"onUpdate:modelValue":l[6]||(l[6]=t=>a(e).miniProgramPagePath=t),placeholder:"\u8BF7\u8F93\u5165\u5C0F\u7A0B\u5E8F\u7684\u9875\u9762\u8DEF\u5F84\uFF0C\u5982\uFF1Apages/index",clearable:""},null,8,["modelValue"])]),c("div",W,[q,r(d,{class:"input_width",modelValue:a(e).url,"onUpdate:modelValue":l[7]||(l[7]=t=>a(e).url=t),placeholder:"\u4E0D\u652F\u6301\u5C0F\u7A0B\u5E8F\u7684\u8001\u7248\u672C\u5BA2\u6237\u7AEF\u5C06\u6253\u5F00\u672C\u7F51\u9875",clearable:""},null,8,["modelValue"])]),F])):p("",!0),a(e).type==="article_view_limited"?(o(),_("div",J,[r(f,null,{default:s(()=>[a(e)&&a(e).replyArticles?(o(),_("div",N,[r(a(Ue),{articles:a(e).replyArticles},null,8,["articles"]),r(f,{class:"ope-row",justify:"center",align:"middle"},{default:s(()=>[r(i,{type:"danger",circle:"",onClick:ee},{default:s(()=>[r(te,{icon:"ep:delete"})]),_:1})]),_:1})])):(o(),_("div",O,[r(f,{justify:"center"},{default:s(()=>[r(re,{span:24,style:{"text-align":"center"}},{default:s(()=>[r(i,{type:"success",onClick:l[8]||(l[8]=t=>y.value=!0)},{default:s(()=>[G(" \u7D20\u6750\u5E93\u9009\u62E9 "),r(h,{icon:"ep:circle-check"})]),_:1})]),_:1})]),_:1})])),r(ce,{title:"\u9009\u62E9\u56FE\u6587",modelValue:a(y),"onUpdate:modelValue":l[9]||(l[9]=t=>ie(y)?y.value=t:null),width:"80%","destroy-on-close":""},{default:s(()=>[r(a(Ie),{type:"news","account-id":Y.accountId,onSelectMaterial:Z},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1})])):p("",!0),a(e).type==="click"||a(e).type==="scancode_waitmsg"?(o(),_("div",S,[a(v)?(o(),H(a(we),{key:0,modelValue:a(e).reply,"onUpdate:modelValue":l[10]||(l[10]=t=>a(e).reply=t)},null,8,["modelValue"])):p("",!0)])):p("",!0)])):p("",!0)])])}}}),[["__scopeId","data-v-09346818"]])});export{He as __tla,Q as default};