兼兼街公众号代码
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.

146 lines
3.0 KiB

  1. <template>
  2. <view class="active-card">
  3. <view class="active-title">人找车{{item.title}}</view>
  4. <view class="active-time flex align-center">
  5. <text>始发终点{{item.outGo}} - {{item.toGo}}</text>
  6. </view>
  7. <view class="active-add flex align-center">
  8. <text>乘坐人数{{item.sum}} </text>
  9. </view>
  10. <view class="active-time2 flex align-center">
  11. <text>出发时间{{item.outGoTime}}</text>
  12. </view>
  13. <view class="active-menu flex align-center justify-between">
  14. <view class="menu-price">
  15. <!-- <text class="unit"></text>
  16. <text class="price">{{item.money}}</text> -->
  17. <!-- <text>价格面议</text> -->
  18. </view>
  19. <view class="menu-btn" @click="seeDetail">{{text}}</view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default{
  25. props:{
  26. text:{
  27. type:String,
  28. default:'查看详情'
  29. },
  30. item:{
  31. type:Object,
  32. },
  33. i:{
  34. type:Number,
  35. }
  36. },
  37. data(){
  38. return{
  39. }
  40. },
  41. methods:{
  42. seeDetail(){
  43. this.$emit('seeDetail',this.item)
  44. }
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .active-card {
  50. background: #ffffff;
  51. border-radius: 12rpx;
  52. box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
  53. overflow: hidden;
  54. padding-bottom: 10rpx;
  55. margin-bottom: 20rpx;
  56. .active-title {
  57. word-wrap:break-word;
  58. word-break:break-all;
  59. font-size: 32rpx;
  60. color: #000;
  61. font-weight: 700;
  62. margin-top: 20rpx;
  63. line-height: 60rpx;
  64. /* 文本不会换行显示 */
  65. white-space: nowrap;
  66. /* 超出盒子部分隐藏 */
  67. overflow: hidden;
  68. /* 文本超出的部分打点显示 */
  69. text-overflow: ellipsis;
  70. }
  71. .active-time {
  72. word-wrap:break-word;
  73. word-break:break-all;
  74. color: #707070;
  75. font-size: 28rpx;
  76. margin: 20rpx 0;
  77. image {
  78. width: 33rpx;
  79. height: 33rpx;
  80. margin-right: 27rpx;
  81. }
  82. /* 文本不会换行显示 */
  83. white-space: nowrap;
  84. /* 超出盒子部分隐藏 */
  85. overflow: hidden;
  86. /* 文本超出的部分打点显示 */
  87. text-overflow: ellipsis;
  88. }
  89. .active-add {
  90. color: #707070;
  91. font-size: 28rpx;
  92. word-wrap:break-word;
  93. word-break:break-all;
  94. /* 文本不会换行显示 */
  95. white-space: nowrap;
  96. /* 超出盒子部分隐藏 */
  97. overflow: hidden;
  98. /* 文本超出的部分打点显示 */
  99. text-overflow: ellipsis;
  100. // overflow: hidden;/*这个参数根据需求来决定要不要*/
  101. image {
  102. width: 30rpx;
  103. height: 35rpx;
  104. margin-right: 27rpx;
  105. }
  106. }
  107. .active-time2 {
  108. color: #707070;
  109. font-size: 28rpx;
  110. margin: 20rpx 0;
  111. image {
  112. width: 33rpx;
  113. height: 33rpx;
  114. margin-right: 27rpx;
  115. }
  116. }
  117. .active-menu {
  118. margin-top: 21rpx;
  119. padding: 0 10rpx;
  120. .menu-price {
  121. font-size: 32rpx;
  122. .price {
  123. color: #D33D3E;
  124. font-size: 40rpx;
  125. }
  126. }
  127. .menu-btn {
  128. width: 213rpx;
  129. height: 79rpx;
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. //background-color: #00CCCC;
  134. //border-radius: 40rpx;
  135. color: #00CCCC;
  136. font-size: 32rpx;
  137. }
  138. }
  139. }
  140. </style>