1 |
- import{d as oe,e as X,r as Y,O as se,ao as ue,o,c as _,k as c,i as r,w as n,m as D,a,F as _e,C as ne,j as J,l as p,R as ie,_ as L,q as de,X as pe,G as me,H as ye,s as he,E as ve,az as fe,v as Ve,x as ge,__tla as be}from"./index-1e808f2e.js";import we,{__tla as ke}from"./main-8798f0ef.js";import Ue,{__tla as Pe}from"./main-fae03c69.js";import{W as Ie,__tla as xe}from"./main-7080b19d.js";import{u as Ae,__tla as Ce}from"./useMessage-5f9e8917.js";import{_ as Ee}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as je}from"./TabNews-85923e2b.js";import{__tla as Ke}from"./TabText.vue_vue_type_script_setup_true_lang-2d568111.js";import{__tla as Me}from"./TabImage-ce08097d.js";import{__tla as We}from"./useUpload-3083c231.js";import{__tla as qe}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{__tla as ze}from"./index-73afebcf.js";import{__tla as Be}from"./el-image-263fb014.js";import{__tla as Fe}from"./el-image-viewer-dddb6285.js";import{__tla as Ge}from"./main-c2ebd06d.js";import{__tla as He}from"./main.vue_vue_type_script_setup_true_lang-068c3b56.js";import{__tla as Oe}from"./index-1a14fda3.js";import{__tla as Re}from"./index-6e04feee.js";import{__tla as Se}from"./formatTime-a348c3be.js";import{__tla as Xe}from"./TabVoice-ce8309cb.js";import{__tla as Ye}from"./TabVideo-5d915b7f.js";import{__tla as De}from"./TabMusic.vue_vue_type_script_setup_true_lang-4033d899.js";let N,Je=Promise.all([(()=>{try{return be}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return De}catch{}})()]).then(async()=>{let V,s,g,b,w,k,U,P,I,x,A,C,E,j,K,M,W,q,z,B,F,G,H,O;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"}],s=m=>(Ve("data-v-09346818"),m=m(),ge(),m),g={class:"configure_page"},b={class:"delete_btn"},w=s(()=>c("span",null,"\u83DC\u5355\u540D\u79F0\uFF1A",-1)),k={key:0},U={class:"menu_content"},P=s(()=>c("span",null,"\u83DC\u5355\u6807\u8BC6\uFF1A",-1)),I={class:"menu_content"},x=s(()=>c("span",null,"\u83DC\u5355\u5185\u5BB9\uFF1A",-1)),A={key:0,class:"configur_content"},C=s(()=>c("span",null,"\u8DF3\u8F6C\u94FE\u63A5\uFF1A",-1)),E={key:1,class:"configur_content"},j={class:"applet"},K=s(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684 appid \uFF1A",-1)),M={class:"applet"},W=s(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u9875\u9762\u8DEF\u5F84\uFF1A",-1)),q={class:"applet"},z=s(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u5907\u7528\u7F51\u9875\uFF1A",-1)),B=s(()=>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)),F={key:2,class:"configur_content"},G={key:0,class:"select-item"},H={key:1},O={key:3,class:"configur_content"},N=Ee(oe({__name:"MenuEditor",props:{accountId:{},modelValue:{},isParent:{type:Boolean}},emits:["delete","update:modelValue"],setup(m,{emit:Q}){const T=Ae(),R=m,S=Q,e=X({get:()=>R.modelValue,set(u){S("update:modelValue",u)}}),y=Y(!1),v=Y(!1),Z=X(()=>{var u;return!(((u=e.value.children)==null?void 0:u.length)>0)});se(e,()=>{v.value=!1,ue(()=>{v.value=!0})});const $=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=>S("delete"))},{default:n(()=>[r(h,{icon:"ep:delete"}),D(" \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(Z)?(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:n(()=>[(o(!0),_(_e,null,ne(a(V),t=>(o(),J(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,[C,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",E,[c("div",j,[K,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,[W,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",q,[z,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"])]),B])):p("",!0),a(e).type==="article_view_limited"?(o(),_("div",F,[r(f,null,{default:n(()=>[a(e)&&a(e).replyArticles?(o(),_("div",G,[r(a(Ue),{articles:a(e).replyArticles},null,8,["articles"]),r(f,{class:"ope-row",justify:"center",align:"middle"},{default:n(()=>[r(i,{type:"danger",circle:"",onClick:ee},{default:n(()=>[r(te,{icon:"ep:delete"})]),_:1})]),_:1})])):(o(),_("div",H,[r(f,{justify:"center"},{default:n(()=>[r(re,{span:24,style:{"text-align":"center"}},{default:n(()=>[r(i,{type:"success",onClick:l[8]||(l[8]=t=>y.value=!0)},{default:n(()=>[D(" \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:n(()=>[r(a(Ie),{type:"news","account-id":R.accountId,onSelectMaterial:$},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1})])):p("",!0),a(e).type==="click"||a(e).type==="scancode_waitmsg"?(o(),_("div",O,[a(v)?(o(),J(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{Je as __tla,N as default};
|