瑶都万能墙
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.

107 lines
1.8 KiB

7 months ago
7 months ago
7 months ago
6 months ago
7 months ago
  1. <template>
  2. <view class="item" @click="$emit('click')">
  3. <image :src="item.imageTitle"
  4. @click.stop="previewImage([item.imageTitle])"
  5. mode="aspectFill"></image>
  6. <view class="text">
  7. <view class="title">
  8. {{ item.title }}
  9. </view>
  10. <view class="createBy">
  11. {{ item.num }}余座
  12. {{ item.startTime }}出发
  13. </view>
  14. <view class="createBy">
  15. {{ item.startAddress }}
  16. {{ item.endAddress }}
  17. </view>
  18. <view class="createBy">
  19. <view class="">
  20. {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
  21. </view>
  22. <callPhone
  23. style="margin-left: auto;"
  24. :phone="item.phone"
  25. title="司机"/>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. import mixinsSex from '@/mixins/sex.js'
  32. export default {
  33. mixins: [mixinsSex],
  34. props: ['item'],
  35. data() {
  36. return {
  37. };
  38. },
  39. methods: {
  40. callPhone(){
  41. uni.makePhoneCall({
  42. phoneNumber: this.item.phone
  43. })
  44. },
  45. },
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .item {
  50. height: 220rpx;
  51. width: 100%;
  52. background-color: #fff;
  53. overflow: hidden;
  54. border-radius: 10rpx;
  55. color: #777;
  56. display: flex;
  57. font-size: 24rpx;
  58. margin: 30rpx 0;
  59. position: relative;
  60. image {
  61. width: 50%;
  62. height: 100%;
  63. }
  64. .text {
  65. display: flex;
  66. flex-direction: column;
  67. padding: 16rpx;
  68. width: 50%;
  69. .title {
  70. font-size: 30rpx;
  71. font-weight: 600;
  72. color: #000;
  73. }
  74. .createBy {
  75. display: flex;
  76. margin-top: auto;
  77. line-height: 40rpx;
  78. justify-content: space-between;
  79. &>view {
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. }
  84. .phone{
  85. background-color: rgba($uni-color, 0.2);
  86. color: $uni-color;
  87. padding: 8rpx 16rpx;
  88. border-radius: 10rpx;
  89. margin-left: auto;
  90. image{
  91. width: 20rpx;
  92. height: 20rpx;
  93. }
  94. }
  95. }
  96. }
  97. }
  98. </style>