新增列表中展示发送人和时间

pull/30/head
taoshihan1991 5 years ago
parent 44c81c72a9
commit 58a04c9700

@ -61,11 +61,11 @@
<el-main class="mainMain">
<div class="block">
<el-timeline>
<el-timeline-item v-for="item in folderlist.mails" v-bind:key="item.Id" timestamp="2018/4/12" placement="top">
<el-timeline :reverse="true">
<el-timeline-item v-for="item in folderlist.mails" v-bind:key="item.Id" :timestamp="item.Date" placement="top">
<el-card>
<h4><{item.Subject}></h4>
<p>王小虎 提交于 2018/4/12 20:46</p>
<p><{item.From}> 发送于 <{item.Date}></p>
</el-card>
</el-timeline-item>
</el-timeline>

@ -135,6 +135,12 @@ func GetFolderMail(server string, email string, password string, folder string,
mailitem.Subject = ret
mailitem.Id = msg.SeqNum
mailitem.Fid = folder
mailitem.Date=msg.Envelope.Date.String()
from:=""
for _,s:=range msg.Envelope.Sender{
from+=s.Address()
}
mailitem.From=from
mailPagelist.MailItems = append(mailPagelist.MailItems, mailitem)
}
return mailPagelist.MailItems

Loading…
Cancel
Save