sendEmailDetail.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view>
  3. <cu-custom bgColor="bg-blue" :isBack="true">
  4. <block slot="backText">返回</block>
  5. <block slot="content"> {{mailCompose.mailDTO.title}}</block>
  6. </cu-custom>
  7. <view class="cu-bar bg-white solid-bottom">
  8. <view class="mail grid col-1 margin-top-sm action " >
  9. <view class=" text-gray text-sm">
  10. <text class="title padding-right-xs" >发件人:</text> 自己
  11. </view>
  12. <view class=" text-gray text-sm">
  13. <text class="title padding-right-xs" >收件人:</text>{{mailCompose.receiverNames}}
  14. </view>
  15. <view class=" text-gray text-sm">
  16. <text class="title padding-right-xs" >时间:</text>{{mailCompose.sendTime}}
  17. </view>
  18. </view>
  19. </view>
  20. <view class="padding bg-white">
  21. <view class="text-left padding">
  22. <view v-html="mailCompose.mailDTO.content"></view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import mailComposeService from "@/api/mail/mailComposeService";
  29. export default {
  30. data() {
  31. return {
  32. mailCompose: {
  33. mailDTO: {
  34. title: ''
  35. },
  36. sender: {
  37. name: ''
  38. }
  39. }
  40. }
  41. },
  42. onLoad: function (option) {
  43. mailComposeService.queryById(option.id).then(({data})=>{
  44. this.mailCompose = data
  45. });
  46. },
  47. methods: {
  48. }
  49. }
  50. </script>
  51. <style>
  52. .mail .title {
  53. min-width: calc(4em + 0px);
  54. text-align: right;
  55. display: inline-block
  56. }
  57. </style>