TabMusic-a4e56e3c.js 4.1 KB

1
  1. import{d as E,bj as H,K,r as U,e as R,o as c,c as M,f as t,w as r,a,v as S,g as _,n as x,O as P,j as W,i as X,C as F,bl as G,E as J,b0 as L,V as N,_ as Q,__tla as Y}from"./index-11e4820e.js";import{W as Z,__tla as $}from"./main-6c876e45.js";import{u as tt,U as at,__tla as et}from"./useUpload-7eca9e2f.js";import{u as lt,__tla as rt}from"./useMessage-06ddf735.js";import{__tla as ut}from"./index-c8f58bd0.js";import{__tla as it}from"./index-dd73c59d.js";import{__tla as ot}from"./main-811efd88.js";import{__tla as st}from"./el-image-17e8bc54.js";import{__tla as dt}from"./el-image-viewer-c4f5814f.js";import{__tla as _t}from"./main-5f2e1efb.js";import{__tla as mt}from"./main-12949ceb.js";import{__tla as nt}from"./index-68e6267b.js";import{__tla as ct}from"./index-9f4abd5e.js";import{__tla as pt}from"./formatTime-f6a2c881.js";let j,ft=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return pt}catch{}})()]).then(async()=>{let p,f,y,h,V;p=["src"],f={class:"thumb-but"},y=_("div",{style:{margin:"20px 0"}},null,-1),h=_("div",{style:{margin:"20px 0"}},null,-1),V=_("div",{style:{margin:"20px 0"}},null,-1),j=Q(E({__name:"TabMusic",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(k,{emit:w}){const I=lt(),q={Authorization:"Bearer "+H()},T=k,z=w,e=K({get:()=>T.modelValue,set:u=>z("update:modelValue",u)}),o=U(!1),v=U([]),m=R({accountId:e.value.accountId,type:"thumb",title:"",introduction:""}),C=u=>tt(at.Image,2)(u),O=u=>{if(u.code!==0)return I.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+u.msg),!1;v.value=[],m.title="",m.introduction="",g(u.data)},g=u=>{o.value=!1,e.value.thumbMediaId=u.mediaId,e.value.thumbMediaUrl=u.url};return(u,l)=>{const A=W,s=X,b=F,B=G,n=J,D=L,d=N;return c(),M("div",null,[t(s,{align:"middle",justify:"center"},{default:r(()=>[t(n,{span:6},{default:r(()=>[t(s,{align:"middle",justify:"center",class:"thumb-div"},{default:r(()=>[t(n,{span:24},{default:r(()=>[t(s,{align:"middle",justify:"center"},{default:r(()=>[a(e).thumbMediaUrl?(c(),M("img",{key:0,style:{width:"100px"},src:a(e).thumbMediaUrl},null,8,p)):(c(),S(A,{key:1,icon:"ep:plus"}))]),_:1}),t(s,{align:"middle",justify:"center",style:{"margin-top":"2%"}},{default:r(()=>[_("div",f,[t(B,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:q,multiple:"",limit:1,"file-list":a(v),data:a(m),"before-upload":C,"on-success":O},{trigger:r(()=>[t(b,{type:"primary",link:""},{default:r(()=>[x("\u672C\u5730\u4E0A\u4F20")]),_:1})]),default:r(()=>[t(b,{type:"primary",link:"",onClick:l[0]||(l[0]=i=>o.value=!0),style:{"margin-left":"5px"}},{default:r(()=>[x("\u7D20\u6750\u5E93\u9009\u62E9 ")]),_:1})]),_:1},8,["file-list","data"])])]),_:1})]),_:1})]),_:1}),t(D,{title:"\u9009\u62E9\u56FE\u7247",modelValue:a(o),"onUpdate:modelValue":l[1]||(l[1]=i=>P(o)?o.value=i:null),width:"80%","append-to-body":"","destroy-on-close":""},{default:r(()=>[t(a(Z),{type:"image","account-id":a(e).accountId,onSelectMaterial:g},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),t(n,{span:18},{default:r(()=>[t(d,{modelValue:a(e).title,"onUpdate:modelValue":l[2]||(l[2]=i=>a(e).title=i),placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"},null,8,["modelValue"]),y,t(d,{modelValue:a(e).description,"onUpdate:modelValue":l[3]||(l[3]=i=>a(e).description=i),placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"},null,8,["modelValue"])]),_:1})]),_:1}),h,t(d,{modelValue:a(e).musicUrl,"onUpdate:modelValue":l[4]||(l[4]=i=>a(e).musicUrl=i),placeholder:"\u8BF7\u8F93\u5165\u97F3\u4E50\u94FE\u63A5"},null,8,["modelValue"]),V,t(d,{modelValue:a(e).hqMusicUrl,"onUpdate:modelValue":l[5]||(l[5]=i=>a(e).hqMusicUrl=i),placeholder:"\u8BF7\u8F93\u5165\u9AD8\u8D28\u91CF\u97F3\u4E50\u94FE\u63A5"},null,8,["modelValue"])])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/components/wx-reply/components/TabMusic.vue"]])});export{ft as __tla,j as default};