AllMessage.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div class="flex justify-between itmes-start px-16 py-8 mb-12">
  3. <!-- <template #icon> -->
  4. <div class="w-265 shrink-0 box-border flex justify-start itmes-start">
  5. <div class="w-32 h-32 shrink-0 rounded-full mr-8 overflow-hidden">
  6. <img
  7. v-if="itemData?.headImageUrl"
  8. class="w-full h-full object-cover"
  9. :src="itemData?.headImageUrl"
  10. alt=""
  11. />
  12. <img
  13. v-else
  14. class="w-full h-full object-cover"
  15. src="https://www.xiaoyaotravel.com/_nuxt/default_avatar.gSq5JxK1.png"
  16. alt=""
  17. />
  18. </div>
  19. <!-- </template> -->
  20. <!-- <template #title> -->
  21. <div>
  22. <div class="-mt-5">
  23. <span class="text-sm text-black-6 pr-4">{{ itemData.name }} 暖阳</span>
  24. <div :class="`inline-block box-border px-6 text-sm text-[#FF9300] bg-[#FF9300]/[0.08]`">
  25. {{ state(itemData?.fansState)?.text ? '' : '粉丝' }}
  26. </div>
  27. </div>
  28. <h1 class="font-semibold text-black-3 text-base">赞了你的游记</h1>
  29. <p class="text-black-9 text-sm">2024-12-24 15:47</p>
  30. </div>
  31. </div>
  32. <!-- </template> -->
  33. <!-- <template #value> -->
  34. <div class="w-71 h-47 shrink-0 rounded-[4px] overflow-hidden">
  35. <img
  36. v-if="itemData?.travelNoteUrl"
  37. class="w-full h-full object-cover"
  38. :src="itemData?.travelNoteUrl"
  39. alt=""
  40. />
  41. <img
  42. v-else
  43. class="w-full h-full object-cover"
  44. src="~/assets/img/comment/H5_default.png"
  45. alt=""
  46. />
  47. </div>
  48. <!-- </template> -->
  49. </div>
  50. </template>
  51. <script setup>
  52. const listColor = [
  53. {
  54. text: '粉丝',
  55. color: '#FF9300'
  56. },
  57. {
  58. text: '互关',
  59. color: '#3369E7'
  60. }
  61. ]
  62. defineProps({
  63. itemData: {
  64. type: Object,
  65. default: () => ({})
  66. }
  67. })
  68. const state = (parmas) => {
  69. return listColor[parmas]
  70. }
  71. </script>
  72. <style lang="scss" scoped></style>