普兆健康管家前端代码仓库
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.

72 lines
1.4 KiB

  1. <template>
  2. <view class="header">
  3. <view class="flex info">
  4. <view class="flex label">
  5. <text>BMI 指数</text>
  6. <text class="highlight">{{ BMI || '-' }}</text>
  7. </view>
  8. <view class="progress">
  9. <!-- todo: check -->
  10. <progressBar :progress="BMI" :total="30"></progressBar>
  11. </view>
  12. </view>
  13. <view class="desc">
  14. * 你的身体质量指数BMI=19.8 kg/m2属于正常范围请继续均衡饮食合理运动
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import progressBar from '@/pages_order/components/progressBar.vue';
  20. export default {
  21. components: {
  22. progressBar,
  23. },
  24. props: {
  25. BMI: {
  26. type: Number,
  27. default: null,
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped lang="scss">
  33. .info {
  34. column-gap: 32rpx;
  35. justify-content: flex-start;
  36. }
  37. .label {
  38. font-family: PingFang SC;
  39. font-weight: 400;
  40. font-size: 36rpx;
  41. line-height: 1.2;
  42. color: #252545CC;
  43. .highlight {
  44. margin-left: 8rpx;
  45. font-size: 64rpx;
  46. font-weight: 600;
  47. line-height: 1.4;
  48. font-family: PingFang SC;
  49. color: transparent;
  50. background-image: linear-gradient(to right, #4B348F, #845CFA);
  51. background-clip: text;
  52. display: inline-block;
  53. }
  54. }
  55. .progress {
  56. width: 222rpx;
  57. }
  58. .desc {
  59. margin-top: 4rpx;
  60. font-family: PingFang SC;
  61. font-weight: 400;
  62. font-size: 24rpx;
  63. line-height: 1.5;
  64. color: #989898;
  65. }
  66. </style>