1 |
- import{d as q,cr as A,b as D,r as y,f as E,o as h,c as J,i as a,w as r,a as l,l as M,a2 as R,j as v,y as S,U as B,s as C,v as H,J as O,cx as P,E as W,br as X,_ as F,__tla as G}from"./index-af173888.js";import K,{__tla as L}from"./main-efb6986a.js";import{W as N,__tla as Q}from"./main-26111fdd.js";import{u as Y,U as Z,__tla as $}from"./useUpload-4e2d78e4.js";import{u as tt,__tla as at}from"./useMessage-170c1b43.js";import{__tla as et}from"./index-a33d7937.js";import{__tla as lt}from"./index-54b8f773.js";import{__tla as rt}from"./main-74339a6f.js";import{__tla as ot}from"./el-image-fdde0035.js";import{__tla as ut}from"./el-image-viewer-0d82b94c.js";import{__tla as _t}from"./main-91abe1eb.js";import{__tla as it}from"./index-f187aea8.js";import{__tla as st}from"./index-0ed9f1ba.js";import{__tla as ct}from"./formatTime-8a6f6c49.js";let V,nt=Promise.all([(()=>{try{return G}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})()]).then(async()=>{V=F(q({__name:"TabVideo",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(b,{emit:I}){const U=tt(),g={Authorization:"Bearer "+A()},w=b,x=I,e=D({get:()=>w.modelValue,set:t=>x("update:modelValue",t)}),_=y(!1),n=y([]),i=E({accountId:e.value.accountId,type:"video",title:"",introduction:""}),k=t=>Y(Z.Video,10)(t),j=t=>{if(t.code!==0)return U.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;n.value=[],i.title="",i.introduction="",d(t.data)},d=t=>{_.value=!1,e.value.mediaId=t.mediaId,e.value.url=t.url,e.value.name=t.name,t.title&&(e.value.title=t.title||""),t.introduction&&(e.value.description=t.introduction||"")};return(t,o)=>{const m=B,s=C,p=H,f=O,z=P,c=W,T=X;return h(),J("div",null,[a(s,null,{default:r(()=>[a(m,{modelValue:l(e).title,"onUpdate:modelValue":o[0]||(o[0]=u=>l(e).title=u),class:"input-margin-bottom",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"},null,8,["modelValue"]),a(m,{class:"input-margin-bottom",modelValue:l(e).description,"onUpdate:modelValue":o[1]||(o[1]=u=>l(e).description=u),placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"},null,8,["modelValue"]),a(s,{class:"ope-row",justify:"center"},{default:r(()=>[l(e).url?(h(),M(l(K),{key:0,url:l(e).url},null,8,["url"])):R("",!0)]),_:1}),a(c,null,{default:r(()=>[a(s,{style:{"text-align":"center"},align:"middle"},{default:r(()=>[a(c,{span:12},{default:r(()=>[a(f,{type:"success",onClick:o[2]||(o[2]=u=>_.value=!0)},{default:r(()=>[v(" \u7D20\u6750\u5E93\u9009\u62E9 "),a(p,{icon:"ep:circle-check"})]),_:1}),a(z,{title:"\u9009\u62E9\u89C6\u9891",modelValue:l(_),"onUpdate:modelValue":o[3]||(o[3]=u=>S(_)?_.value=u:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:r(()=>[a(l(N),{type:"video","account-id":l(e).accountId,onSelectMaterial:d},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(c,{span:12},{default:r(()=>[a(T,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:g,multiple:"",limit:1,"file-list":l(n),data:l(i),"before-upload":k,"on-success":j},{default:r(()=>[a(f,{type:"primary"},{default:r(()=>[v("\u65B0\u5EFA\u89C6\u9891 "),a(p,{icon:"ep:upload"})]),_:1})]),_:1},8,["file-list","data"])]),_:1})]),_:1})]),_:1})]),_:1})])}}}),[["__scopeId","data-v-bf7e1f5e"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/components/wx-reply/components/TabVideo.vue"]])});export{nt as __tla,V as default};
|