docterItem.vue 2.9 KB

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