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

144 lines
2.7 KiB

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