analysis.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <view class="tabs flex-column">
  2. <scroll-view class="flex1" scroll-y>
  3. <view class="progress-box padding flex-justify-center flex-column border-radius">
  4. <view class="title flex-justify-space-between flex-align-center">
  5. <!-- <image src="/images/icon_record_01.png" class="icon"></image> -->
  6. <text>本次肤质</text>
  7. <text style="font-family: PingFangSC-Regular, PingFang SC;color: #FA7D22;">{{ analysis.skin_result.skin_name }}</text>
  8. </view>
  9. <view class="progress flex">
  10. <view class="sum flex-column flex-align-center">
  11. <view class="">
  12. <text style="font-size:68rpx;font-family: PingFangSC-Semibold, PingFang SC;">{{ analysis.score }}</text>
  13. <text style="font-size:24rpx;">分</text>
  14. </view>
  15. <text style="font-size: 24rpx; font-family: PingFangSC-Regular, PingFang SC; color: #999999;">皮肤得分</text>
  16. </view>
  17. <view class="flex1">
  18. <view class="progress-top" style="left:{{analysis.score + '%'}};">
  19. <view class="flex-column flex-center" style="margin-left: -100%;">
  20. <view class="flex pos-abs">
  21. <text>肤质</text>
  22. <text wx:if="{{analysis.score <= 30}}">差</text>
  23. <text wx:if="{{analysis.score <= 49 && analysis.score >= 31}}">较差</text>
  24. <text wx:if="{{analysis.score <= 65 && analysis.score >= 50}}">一般</text>
  25. <text wx:if="{{analysis.score >= 66}}">优</text>
  26. </view>
  27. <view class="triangle-down"></view>
  28. </view>
  29. </view>
  30. <view class="flex-align-center" style="height: 56rpx;">
  31. <wux-progress activeColor="#FF7B53" backgroundColor="#FAF2EC" class="flex1" show-info="{{ false }}" percent="{{ analysis.score }}" shape="square" />
  32. </view>
  33. <view class="text flex-justify-space-around" style="margin-top: 8rpx;">
  34. <text class="{{ analysis.score <= 30 ? 'active' : '' }} line">差</text>
  35. <text class="{{ analysis.score <= 49 && analysis.score >= 31 ? 'active' : '' }} line">较差</text>
  36. <text class="{{ analysis.score <= 65 && analysis.score >= 50 ? 'active' : '' }} line">一般</text>
  37. <text class="{{ analysis.score >= 66 ? 'active' : '' }}">优</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="padding summary border-radius">
  43. <view class="title flex-align-center">
  44. <!-- <image src="/images/icon_record_02.png" class="icon"></image> -->
  45. <text>皮肤总结</text>
  46. <!-- <text style="font-family: PingFangSC-Medium, PingFang SC;color: #FA7D22;">{{ analysis.skin_result.skin_name }}</text> -->
  47. </view>
  48. <view class="item" wx:for="{{ analysis.skin_result.list }}" wx:key="index">
  49. <image src="/images/icon_record_new_0{{index}}.png"></image>
  50. <text class="T" style="font-size: 28rpx;font-family: PingFangSC-Medium, PingFang SC;">{{ item.name }}:</text>
  51. <text class="t" style="font-size: 28rpx;color: #666;margin-top: 10rpx;">{{ item.suggest }}</text>
  52. </view>
  53. </view>
  54. <view class="padding border-radius">
  55. <view class="title flex-align-center">
  56. <!-- <image src="/images/icon_record_03.png" class="icon"></image> -->
  57. <text>皮肤各项指标</text>
  58. </view>
  59. <view class="canvas">
  60. <ec-canvas id="mychart-dom-bar" canvas-id="mychart-graph" ec="{{ ec }}"></ec-canvas>
  61. </view>
  62. <view class="btn flex-center" bindtap="goToDetail">查看改善方案</view>
  63. </view>
  64. </scroll-view>
  65. </view>