瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.3 KiB

7 months ago
  1. <template>
  2. <view class="item">
  3. <image :src="item.image &&
  4. item.image.split(',')[0]" mode="aspectFill"></image>
  5. <view class="text">
  6. <view class="title">
  7. {{ item.title }}
  8. </view>
  9. <view class="titleSub">
  10. {{ item.titleSub }}
  11. </view>
  12. <view class="createBy">
  13. 工作时间
  14. {{ item.workTime }}
  15. </view>
  16. <view class="createTime">
  17. {{ item.address }}
  18. <!-- {{ $dayjs(item.createTime).format('YYYY-MM-DD') }} -->
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. props: ['item'],
  26. data() {
  27. return {
  28. }
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .item {
  36. height: 200rpx;
  37. width: 100%;
  38. background-color: #fff;
  39. overflow: hidden;
  40. border-radius: 10rpx;
  41. color: #777;
  42. display: flex;
  43. font-size: 24rpx;
  44. margin: 30rpx 0;
  45. image {
  46. width: 50%;
  47. height: 100%;
  48. }
  49. .text {
  50. display: flex;
  51. flex-direction: column;
  52. padding: 16rpx;
  53. width: 50%;
  54. .title {
  55. font-size: 30rpx;
  56. font-weight: 600;
  57. color: #000;
  58. margin-bottom: 10rpx;
  59. }
  60. .titleSub{
  61. }
  62. .createBy {
  63. display: flex;
  64. margin-top: auto;
  65. margin-bottom: 10rpx;
  66. justify-content: space-between;
  67. &>view {
  68. display: flex;
  69. align-items: center;
  70. justify-content: center;
  71. }
  72. }
  73. }
  74. }
  75. </style>