import{C as e,s as t,b as s,d as a,o as l,e as i,w as c,i as o,G as n,k as r,y as m,z as d,f as u,F as f,h as _,A as p,m as g,S as x,p as h}from"./index-520dfaee.js";import{a as y}from"./s-layout.5146c957.js";import{_ as v}from"./mp-html.30fd211a.js";import{_ as b}from"./su-image.ba5fb633.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";const I=j({__name:"log-item",props:{item:{type:Object,default(){}},index:{type:Number,default:0},data:{type:Object,default(){}}},setup(h){var y;const j=h,I=e({commentImages:[]});return null==(y=j.item.images)||y.forEach((e=>{I.commentImages.push(t.$url.cdn(e))})),(e,t)=>{const y=p,j=g,w=s(a("mp-html"),v),k=s(a("su-image"),b),F=x;return l(),i(j,{class:"log-content-box ss-flex"},{default:c((()=>[o(j,{class:"log-icon ss-flex-col ss-col-center ss-m-r-20"},{default:c((()=>[o(y,{class:n(["cicon-title",0===h.index?"activity-color":""])},null,8,["class"]),h.data.length-1!=h.index?(l(),i(j,{key:0,class:"line"})):r("",!0)])),_:1}),o(j,null,{default:c((()=>{var e;return[o(j,{class:"text"},{default:c((()=>[m(d(h.item.log_type_text),1)])),_:1}),o(w,{class:"richtext",content:h.item.content},null,8,["content"]),(null==(e=h.item.images)?void 0:e.length)?(l(),i(j,{key:0,class:""},{default:c((()=>[o(F,{class:"scroll-box","scroll-x":"","scroll-anchoring":""},{default:c((()=>[o(j,{class:"ss-flex"},{default:c((()=>[(l(!0),u(f,null,_(h.item.images,(e=>(l(),i(j,{key:e,class:"ss-m-r-20"},{default:c((()=>[o(k,{class:"content-img",isPreview:"",previewList:I.commentImages,current:h.index,src:e,height:120,width:120,mode:"aspectFit"},null,8,["previewList","current","src"])])),_:2},1024)))),128))])),_:1})])),_:1})])),_:1})):r("",!0),o(j,{class:"date"},{default:c((()=>[m(d(h.item.create_time),1)])),_:1})]})),_:1})])),_:1})}}},[["__scopeId","data-v-2fd3f486"]]),w=j({__name:"log",setup(n){const r=e({active:1,commentImages:[],list:[{title:"买家下单",desc:"2018-11-11"},{title:"卖家发货",desc:"2018-11-12"},{title:"买家签收",desc:"2018-11-13"},{title:"交易完成",desc:"2018-11-14"}]});return h((e=>{r.aftersaleId=e.id,async function(e){const{code:s,data:a}=await t.$api.order.aftersale.detail(e);1===s&&(r.info=a.logs)}(e.id)})),(e,t)=>{const n=g,m=s(a("s-layout"),y);return l(),i(m,{title:"售后进度"},{default:c((()=>[o(n,{class:"log-box"},{default:c((()=>[(l(!0),u(f,null,_(r.info,((e,t)=>(l(),i(n,{key:e.title},{default:c((()=>[o(I,{item:e,index:t,data:r.info},null,8,["item","index","data"])])),_:2},1024)))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-5e1108ec"]]);export{w as default};
