rankingItem.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="item">
  3. <view class="item-img">
  4. <img src="/static/img/dd.png" alt="" />
  5. </view>
  6. <view class="item-info">
  7. <view class="item-title-box">
  8. <view class="item-title">
  9. <view class="item-name">
  10. <!-- <dict-tag :options="lrr_service_category" :value="data.serviceCategory" /> -->
  11. 姓名: {{ }}
  12. </view>
  13. <dict-tag :options="lrr_service_status" :value="data.orderStatus" />
  14. </view>
  15. <view class="item-de">类别:</view>
  16. <view class="item-de">综合评分:</view>
  17. <view class="item-de">技能简介:</view>
  18. <!-- <view class="item-de">
  19. 服务地址:{{ data.address }}
  20. </view> -->
  21. </view>
  22. <view class="item-box">
  23. <view>
  24. <dict-tag :options="lrr_study" :value="data.serviceType" v-if="data.serviceCategory === 2" />
  25. <dict-tag :options="lrr_chitchat" :value="data.serviceType" v-if="data.serviceCategory === 1" />
  26. </view>
  27. <view class="rank-num">
  28. <!-- <label class="rank-label">No.</label>11 -->
  29. <img src="/static/img/no1.png" alt="" class="no-img" />
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script setup>
  36. import { inject } from 'vue';
  37. import DictTag from '@/components/DictTag/index.vue'
  38. import { computed } from 'vue';
  39. const props = defineProps({
  40. data: {
  41. type: Object,
  42. default: () => {
  43. return {}
  44. }
  45. },
  46. });
  47. const inject_click = inject('onClick');
  48. const lrr_chitchat = inject('lrr_chitchat');
  49. const lrr_study = inject('lrr_study');
  50. const lrr_service_status = inject('lrr_service_status');
  51. const btn_style = ` width: 120rpx; height: 50rpx; font-size: 24rpx;border-radius: 25rpx;margin-left: 12rpx;`;
  52. /**
  53. * 1: 查看
  54. * 2:沟通
  55. * 3:上传照片
  56. */
  57. function onClick() {
  58. inject_click(props.data, 1);
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .item {
  63. height: 120px;
  64. border-radius: 10px;
  65. background: rgba(255, 255, 255, 1);
  66. padding: 12px;
  67. margin-bottom: 12px;
  68. display: flex;
  69. .item-img {
  70. width: 96px;
  71. height: 96px;
  72. margin-right: 12px;
  73. image {
  74. height: 100%;
  75. width: 100%;
  76. }
  77. }
  78. .item-info {
  79. flex: 1;
  80. display: flex;
  81. // flex-direction: column;
  82. align-items: center;
  83. justify-content: space-between;
  84. .item-title-box {
  85. .item-title {
  86. font-size: 14px;
  87. font-weight: 700;
  88. letter-spacing: 0px;
  89. // line-height: 20.27px;
  90. color: rgba(51, 51, 51, 1);
  91. text-align: left;
  92. vertical-align: top;
  93. margin-bottom: 10px;
  94. display: flex;
  95. align-content: center;
  96. justify-content: space-between;
  97. .item-name {
  98. flex: 1;
  99. display: flex;
  100. // display: -webkit-box;
  101. // -webkit-box-orient: vertical;
  102. // -webkit-line-clamp: 1;
  103. // overflow: hidden;
  104. // text-overflow: ellipsis;
  105. // word-break: break-all;
  106. }
  107. .item-tag {
  108. // color: #3c9cff;
  109. }
  110. }
  111. .item-de {
  112. font-size: 12px;
  113. font-weight: 500;
  114. letter-spacing: 0px;
  115. line-height: 21.38px;
  116. color: rgba(153, 153, 153, 1);
  117. text-align: left;
  118. vertical-align: top;
  119. display: -webkit-box;
  120. -webkit-box-orient: vertical;
  121. -webkit-line-clamp: 2;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. word-break: break-all;
  125. }
  126. }
  127. .item-box {
  128. display: flex;
  129. align-content: flex-end;
  130. justify-content: space-between;
  131. .item-price {
  132. font-size: 18px;
  133. font-weight: 500;
  134. letter-spacing: 0px;
  135. line-height: 21.09px;
  136. color: rgba(246, 74, 31, 1);
  137. text-align: center;
  138. vertical-align: top;
  139. .item-price-yuan {
  140. font-size: 13px;
  141. font-weight: 700;
  142. letter-spacing: 0px;
  143. line-height: 21.09px;
  144. color: rgba(246, 74, 31, 1);
  145. }
  146. }
  147. .item-btns {
  148. display: flex;
  149. }
  150. }
  151. }
  152. .no-img {
  153. width: 47px;
  154. height: 36px;
  155. }
  156. .rank-num {
  157. font-size: 20px;
  158. font-weight: 700;
  159. line-height: 23.44px;
  160. color: rgba(51, 51, 51, 1);
  161. }
  162. .rank-label{
  163. font-size: 14px;
  164. font-weight: 500;
  165. line-height: 16.41px;
  166. color: rgba(153, 153, 153, 1);
  167. }
  168. }
  169. </style>