docterItem.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="doctor">
  3. <view class="doctor-info">
  4. <view class="doctor-avatar">
  5. <image class="doctor-avatar" :src="item.avatar" mode="aspectFill"></image>
  6. <view class="num-box">{{item.orderNumber}}次接诊</view>
  7. </view>
  8. <view>
  9. <text class="doctor-name">{{item.doctorName}}</text>
  10. <text class="technical-title">{{item.position}}</text>
  11. </view>
  12. <view class="price-box">
  13. <text class="price-box-unit">¥</text>
  14. <text class="price-box-integer">
  15. <block v-for="(price,index) in item.prices" :key="index">
  16. {{price.price.toFixed(2)}} <text v-if="index==0" style="color: #FF5C03">-</text>
  17. </block>
  18. </text>
  19. <!-- <text class="price-box-decimal">.00</text> -->
  20. <text class="price-box-text">/次</text>
  21. </view>
  22. <view class="sc">
  23. <image src="@/static/image/home1/index_sc_font.png" mode="aspectFill"></image>
  24. <view class="sc-desc">{{item.speciality}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. name: "docterItem",
  32. props: {
  33. item:{
  34. type:Object,
  35. default:function(){
  36. return {};
  37. }
  38. },
  39. },
  40. data() {
  41. return {
  42. };
  43. }
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. .doctor {
  48. width: 320rpx;
  49. padding: 32rpx 0 30rpx;
  50. background: #FFFFFF;
  51. border-radius: 16rpx 16rpx 16rpx 16rpx;
  52. &-avatar {
  53. position: relative;
  54. image {
  55. width: 140rpx;
  56. height: 140rpx;
  57. background: #D3D2CE;
  58. border-radius: 70rpx 70rpx 70rpx 70rpx;
  59. margin-bottom: 22rpx;
  60. }
  61. .num-box {
  62. white-space: nowrap;
  63. height: 36rpx;
  64. padding: 0 12rpx;
  65. background: #2C261F;
  66. border-radius: 6rpx 6rpx 6rpx 6rpx;
  67. font-size: 20rpx;
  68. color: #F0CBB1;
  69. line-height: 36rpx;
  70. position: absolute;
  71. bottom: 18rpx;
  72. left: 50%;
  73. transform: translate(-50%,0);
  74. }
  75. }
  76. &-info {
  77. display: flex;
  78. flex-direction: column;
  79. align-items: center;
  80. padding: 0 20rpx;
  81. }
  82. &-name {
  83. font-family: PingFang SC, PingFang SC;
  84. font-weight: 500;
  85. font-size: 28rpx;
  86. color: #222222;
  87. line-height: 33rpx;
  88. margin-right: 12rpx;
  89. }
  90. .technical-title {
  91. font-family: PingFang SC, PingFang SC;
  92. font-weight: 400;
  93. font-size: 24rpx;
  94. color: #999999;
  95. line-height: 28rpx;
  96. }
  97. .price-box {
  98. font-family: Roboto, Roboto;
  99. font-weight: bold;
  100. font-size: 36rpx;
  101. color: #FF5C03;
  102. margin: 22rpx 0;
  103. &-unit {
  104. font-weight: 600;
  105. font-size: 20rpx;
  106. }
  107. &-integer {
  108. font-size: 26rpx;
  109. }
  110. &-decimal {
  111. font-weight: 600;
  112. font-size: 20rpx;
  113. }
  114. &-text {
  115. font-family: PingFang SC, PingFang SC;
  116. font-weight: 500;
  117. font-size: 22rpx;
  118. }
  119. }
  120. .sc {
  121. width: 100%;
  122. height: 40rpx;
  123. background: #FEFAF3;
  124. border-radius: 8rpx 8rpx 8rpx 8rpx;
  125. border: 1rpx solid #FBEDD1;
  126. padding: 0 20rpx;
  127. box-sizing: border-box;
  128. display: flex;
  129. align-items: center;
  130. image {
  131. width: 40rpx;
  132. height: 20rpx;
  133. padding-right: 18rpx;
  134. flex-shrink: 0;
  135. position: relative;
  136. &:after {
  137. content: "";
  138. width: 0;
  139. height: 16rpx;
  140. border: 1rpx solid #F8E5C0;
  141. position: absolute;
  142. right: 9rpx;
  143. bottom: 0;
  144. }
  145. }
  146. &-desc {
  147. flex: 1;
  148. overflow: hidden;
  149. white-space: nowrap;
  150. text-overflow: ellipsis;
  151. }
  152. }
  153. }
  154. </style>