1 |
- import{d as C,d0 as D,e as T,r as y,x as q,o as h,c as B,f as a,A as r,a as l,C as K,a3 as M,D as v,a2 as F,a9 as H,K as J,Q as O,J as P,a_ as Q,H as S,bh as W,_ as E,__tla as G}from"./index-286756b9.js";import L,{__tla as N}from"./main-53b5a2f2.js";import{W as R,__tla as X}from"./main-fb0230ec.js";import{u as Y,U as Z,__tla as $}from"./useUpload-3c8bb42c.js";import{u as tt,__tla as at}from"./useMessage-084b1e70.js";import{__tla as et}from"./index-ed6c67a8.js";import{__tla as lt}from"./index-fb47c94c.js";import{__tla as rt}from"./main-2691e73f.js";import{__tla as ot}from"./el-image-73c105b7.js";import{__tla as ut}from"./el-image-viewer-e0e5d3be.js";import{__tla as _t}from"./main-12ab9f27.js";import{__tla as it}from"./index-dab960b4.js";import{__tla as nt}from"./index-2090e37e.js";import{__tla as st}from"./formatTime-83e416ef.js";let V,ct=Promise.all([(()=>{try{return G}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return X}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 nt}catch{}})(),(()=>{try{return st}catch{}})()]).then(async()=>{V=E(C({__name:"TabVideo",props:{modelValue:{type:Object,required:!0}},emits:["update:modelValue"],setup(b,{emit:x}){const I=tt(),g={Authorization:"Bearer "+D()},w=b,U=x,e=T({get:()=>w.modelValue,set:t=>U("update:modelValue",t)}),_=y(!1),c=y([]),i=q({accountId:e.value.accountId,type:"video",title:"",introduction:""}),k=t=>Y(Z.Video,10)(t),z=t=>{if(t.code!==0)return I.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;c.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=H,n=J,p=O,f=P,j=Q,s=S,A=W;return h(),B("div",null,[a(n,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(n,{class:"ope-row",justify:"center"},{default:r(()=>[l(e).url?(h(),K(l(L),{key:0,url:l(e).url},null,8,["url"])):M("",!0)]),_:1}),a(s,null,{default:r(()=>[a(n,{style:{"text-align":"center"},align:"middle"},{default:r(()=>[a(s,{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(j,{title:"\u9009\u62E9\u89C6\u9891",modelValue:l(_),"onUpdate:modelValue":o[3]||(o[3]=u=>F(_)?_.value=u:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:r(()=>[a(l(R),{type:"video","account-id":l(e).accountId,onSelectMaterial:d},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(s,{span:12},{default:r(()=>[a(A,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:g,multiple:"",limit:1,"file-list":l(c),data:l(i),"before-upload":k,"on-success":z},{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","D:/zx/mall-newfeifan-zx-admin/src/views/mp/components/wx-reply/components/TabVideo.vue"]])});export{ct as __tla,V as default};
|