1 |
- import{d as oe,e as $,r as q,w as ne,n as ue,o,c as _,C as c,f as r,B as s,E as z,a,F as _e,R as se,A as G,D as p,a2 as ie,_ as H,K as de,a8 as pe,S as me,U as ye,L as he,I as ve,a$ as fe,M as Ve,N as ge,__tla as be}from"./index-e8bff8cb.js";import we,{__tla as ke}from"./main-974ce862.js";import Ue,{__tla as Pe}from"./main-555e2935.js";import{W as Ie,__tla as xe}from"./main-72778113.js";import{u as Ae,__tla as Ce}from"./useMessage-de42a595.js";import{_ as Ke}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ee}from"./TabNews-1cd859a0.js";import{__tla as Me}from"./TabText.vue_vue_type_script_setup_true_lang-8bc4f5b9.js";import{__tla as je}from"./TabImage-af69f9af.js";import{__tla as Be}from"./useUpload-4185b598.js";import{__tla as Se}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{__tla as We}from"./index-35928fe5.js";import{__tla as De}from"./el-image-7cacfc0f.js";import{__tla as Fe}from"./el-image-viewer-aab7739e.js";import{__tla as Le}from"./main-e1788fb7.js";import{__tla as Ne}from"./main.vue_vue_type_script_setup_true_lang-dc78df78.js";import{__tla as Re}from"./index-417b4018.js";import{__tla as Te}from"./index-2a11aba2.js";import{__tla as Ye}from"./formatTime-4fdd5566.js";import{__tla as $e}from"./TabVoice-b774d9cb.js";import{__tla as qe}from"./TabVideo-caa3e5e7.js";import{__tla as ze}from"./TabMusic.vue_vue_type_script_setup_true_lang-2f88b7ed.js";let J,Ge=Promise.all([(()=>{try{return be}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return $e}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return ze}catch{}})()]).then(async()=>{let V,n,g,b,w,k,U,P,I,x,A,C,K,E,M,j,B,S,W,D,F,L,N,R;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"},C=n(()=>c("span",null,"\u8DF3\u8F6C\u94FE\u63A5\uFF1A",-1)),K={key:1,class:"configur_content"},E={class:"applet"},M=n(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684 appid \uFF1A",-1)),j={class:"applet"},B=n(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u9875\u9762\u8DEF\u5F84\uFF1A",-1)),S={class:"applet"},W=n(()=>c("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u5907\u7528\u7F51\u9875\uFF1A",-1)),D=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)),F={key:2,class:"configur_content"},L={key:0,class:"select-item"},N={key:1},R={key:3,class:"configur_content"},J=Ke(oe({__name:"MenuEditor",props:{accountId:{},modelValue:{},isParent:{type:Boolean}},emits:["delete","update:modelValue"],setup(m,{emit:O}){const Q=Ae(),T=m,Y=O,e=$({get:()=>T.modelValue,set(u){Y("update:modelValue",u)}}),y=q(!1),v=q(!1),X=$(()=>{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&&Q.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=H,i=de,d=pe,ae=me,le=ye,te=H,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=>Y("delete"))},{default:s(()=>[r(h,{icon:"ep:delete"}),z(" \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(),G(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",K,[c("div",E,[M,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",j,[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",S,[W,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"])]),D])):p("",!0),a(e).type==="article_view_limited"?(o(),_("div",F,[r(f,null,{default:s(()=>[a(e)&&a(e).replyArticles?(o(),_("div",L,[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",N,[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(()=>[z(" \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":T.accountId,onSelectMaterial:Z},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1})])):p("",!0),a(e).type==="click"||a(e).type==="scancode_waitmsg"?(o(),_("div",R,[a(v)?(o(),G(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{Ge as __tla,J as default};
|