MenuEditor-6e0d136a.js 7.8 KB

1
  1. import{d as ce,e as N,r as O,O as ne,ap as se,o as c,c as o,j as u,i as r,w as _,l as R,a,F as oe,C as _e,k as J,S as p,R as ie,n as L,s as de,Y as pe,G as me,H as ye,p as ve,E as he,aA as fe,v as Ve,x as ge,_ as be,__tla as we}from"./index-66208f93.js";import ke,{__tla as Ue}from"./main-f0174d91.js";import Pe,{__tla as xe}from"./main-b57448be.js";import{W as Ie,__tla as Ae}from"./main-eff723b2.js";import{u as Ee,__tla as qe}from"./useMessage-798a77de.js";import{__tla as Ce}from"./TabNews-e1554687.js";import{__tla as je}from"./TabText-847ef1fc.js";import{__tla as Ke}from"./TabImage-6dcd0cf2.js";import{__tla as Me}from"./useUpload-7c6f4f89.js";import{__tla as ze}from"./index-2c78829d.js";import{__tla as Se}from"./index-bd81327d.js";import{__tla as We}from"./el-image-5afdbf9a.js";import{__tla as Ye}from"./el-image-viewer-3d1b9860.js";import{__tla as Be}from"./main-1ea38fbd.js";import{__tla as De}from"./main-d3c3164d.js";import{__tla as Fe}from"./index-9cd8adbe.js";import{__tla as Ge}from"./index-6b1372f7.js";import{__tla as He}from"./formatTime-54a7e363.js";import{__tla as Ne}from"./TabVoice-01cb0b5f.js";import{__tla as Oe}from"./TabVideo-641cff7f.js";import{__tla as Re}from"./TabMusic-72974b55.js";let Q,Je=Promise.all([(()=>{try{return we}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return je}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return We}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ge}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Re}catch{}})()]).then(async()=>{let V,n,g,b,w,k,U,P,x,I,A,E,q,C,j,K,M,z,S,W,Y,B,D,F;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-4a32e789"),m=m(),ge(),m),g={class:"configure_page"},b={class:"delete_btn"},w=n(()=>u("span",null,"\u83DC\u5355\u540D\u79F0\uFF1A",-1)),k={key:0},U={class:"menu_content"},P=n(()=>u("span",null,"\u83DC\u5355\u6807\u8BC6\uFF1A",-1)),x={class:"menu_content"},I=n(()=>u("span",null,"\u83DC\u5355\u5185\u5BB9\uFF1A",-1)),A={key:0,class:"configur_content"},E=n(()=>u("span",null,"\u8DF3\u8F6C\u94FE\u63A5\uFF1A",-1)),q={key:1,class:"configur_content"},C={class:"applet"},j=n(()=>u("span",null,"\u5C0F\u7A0B\u5E8F\u7684 appid \uFF1A",-1)),K={class:"applet"},M=n(()=>u("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u9875\u9762\u8DEF\u5F84\uFF1A",-1)),z={class:"applet"},S=n(()=>u("span",null,"\u5C0F\u7A0B\u5E8F\u7684\u5907\u7528\u7F51\u9875\uFF1A",-1)),W=n(()=>u("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)),Y={key:2,class:"configur_content"},B={key:0,class:"select-item"},D={key:1},F={key:3,class:"configur_content"},Q=be(ce({__name:"MenuEditor",props:{accountId:{type:Number,required:!0},modelValue:{type:null,required:!0},isParent:{type:Boolean,required:!0}},emits:["delete","update:modelValue"],setup(m,{emit:T}){const X=Ee(),G=m,H=T,e=N({get:()=>G.modelValue,set(s){H("update:modelValue",s)}}),y=O(!1),h=O(!1),Z=N(()=>{var s;return!(((s=e.value.children)==null?void 0:s.length)>0)});ne(e,()=>{h.value=!1,se(()=>{h.value=!0})});const $=s=>{const l=s.articleId,v=s.content.newsItem;v.length>1&&X.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=[],v.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(s,l)=>{const v=L,i=de,d=pe,ae=me,le=ye,te=L,f=ve,re=he,ue=fe;return c(),o("div",null,[u("div",g,[u("div",b,[r(i,{type:"danger",onClick:l[0]||(l[0]=t=>H("delete"))},{default:_(()=>[r(v,{icon:"ep:delete"}),R(" \u5220\u9664\u5F53\u524D\u83DC\u5355 ")]),_:1})]),u("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:s.isParent?4:7,clearable:""},null,8,["modelValue","maxlength"])]),a(Z)?(c(),o("div",k,[u("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"])]),u("div",x,[I,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:_(()=>[(c(!0),o(oe,null,_e(a(V),t=>(c(),J(ae,{label:t.label,value:t.value,key:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a(e).type==="view"?(c(),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"?(c(),o("div",q,[u("div",C,[j,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"])]),u("div",K,[M,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"])]),u("div",z,[S,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"])]),W])):p("",!0),a(e).type==="article_view_limited"?(c(),o("div",Y,[r(f,null,{default:_(()=>[a(e)&&a(e).replyArticles?(c(),o("div",B,[r(a(Pe),{articles:a(e).replyArticles},null,8,["articles"]),r(f,{class:"ope-row",justify:"center",align:"middle"},{default:_(()=>[r(i,{type:"danger",circle:"",onClick:ee},{default:_(()=>[r(te,{icon:"ep:delete"})]),_:1})]),_:1})])):(c(),o("div",D,[r(f,{justify:"center"},{default:_(()=>[r(re,{span:24,style:{"text-align":"center"}},{default:_(()=>[r(i,{type:"success",onClick:l[8]||(l[8]=t=>y.value=!0)},{default:_(()=>[R(" \u7D20\u6750\u5E93\u9009\u62E9 "),r(v,{icon:"ep:circle-check"})]),_:1})]),_:1})]),_:1})])),r(ue,{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:_(()=>[r(a(Ie),{type:"news","account-id":G.accountId,onSelectMaterial:$},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1})])):p("",!0),a(e).type==="click"||a(e).type==="scancode_waitmsg"?(c(),o("div",F,[a(h)?(c(),J(a(ke),{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-4a32e789"],["__file","D:/zx/mall-newfeifan-zx-business/src/views/mp/menu/components/MenuEditor.vue"]])});export{Je as __tla,Q as default};