testSkin.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <import src="../../../components/local/wxParse/wxParse"></import>
  2. <view class="skin-box">
  3. <!-- 检测肤质年龄 -->
  4. <view class="skin-detail">
  5. <view class="skin-detail-top">
  6. <view class="skin-time">检测时间:{{skinInfo.create_time}}</view>
  7. <view class="skin-history" bindtap="goHistory" wx:if="{{isHistory}}">历史报告</view>
  8. </view>
  9. <view class="skin-detail-bottom">
  10. <view class="skin-type">
  11. <view>肤质</view>
  12. <view>{{skin_type[skinInfo.skin_type-1]}}</view>
  13. </view>
  14. <view class="skin-line"></view>
  15. <view class="skin-age">
  16. <view class="skin-age-one"><text class="skin-age-text">肤龄:</text><text class="age">{{skinInfo.skin_age}}</text>岁</view>
  17. <view class="skin-age-two" wx:if="{{ageStatus==0}}">
  18. <view class="">比实际年龄年轻{{ageChange}}岁</view>
  19. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221107/%E4%BD%8E%402x.png"></image>
  20. </view>
  21. <view class="skin-age-two" wx:if="{{ageStatus==1}}">
  22. <view class="">比实际年龄高{{ageChange}}岁</view>
  23. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20221107/%E9%AB%98%402x.png"></image>
  24. </view>
  25. <view class="skin-age-two" wx:if="{{ageStatus==2}}">
  26. <view class="">同实际年龄相同</view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- 皮肤状态 -->
  32. <view class="skin-status">
  33. <view class="skin-status-title">
  34. <view class="title-line"></view>
  35. <view style="position: relative;">您的皮肤状态
  36. </view>
  37. </view>
  38. <view class="skin-status-content">{{skinInfo.skin_status}}</view>
  39. <view wx:if="{{skinLevel==0}}" class="skin-status-problem">
  40. 健康</view>
  41. <view wx:if="{{skinLevel!=0}}" class="skin-status-problem">
  42. <view class="skin-status-problem-circle"></view>
  43. {{skinLevelList[skinLevel]}}问题
  44. </view>
  45. <view class="problem-box">
  46. <view class="problem-item" wx:key="index" wx:for="{{skinInfo.degree.list}}">
  47. {{item.name}} | {{item.value}}
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 护理建议 -->
  52. <view class="skin-suggest">
  53. <view class="skin-suggest-title">
  54. <view class="suggest-title-line"></view>
  55. <view class="title">护理建议</view>
  56. </view>
  57. <view class="suggest-box" wx:key="index" wx:for="{{skinInfo.suggest_list}}">
  58. <view class="suggest-item">
  59. <view class="suggest-item-title">{{item.title}}</view>
  60. <view class="suggest-item-content">
  61. <!-- {{item.content}} -->
  62. <template is="wxParse" data="{{wxParseData:askItemsArr[index]}}"></template>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- 为你推荐 -->
  68. <view class="skin-recommend">
  69. <view class="skin-recommend-title">
  70. <view class="recommend-line"></view>为你推荐
  71. </view>
  72. <view class="recommend-box">
  73. <view class="recommend-item" data-id="{{item.id}}" bindtap="goGoodsDetail" wx:key="index" wx:for="{{skinInfo.goods_list}}">
  74. <view class="recommend-item-image">
  75. <image src="{{item.cover_url}}"></image>
  76. </view>
  77. <view class="recommend-item-title">{{item.goods_name}}</view>
  78. <view class="recommend-item-icon">
  79. <image src="../../../images/go_on.png"></image>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <!-- 查看您的专属护理方案 -->
  85. <view wx:if="{{isRadio}}" class="goPlan" bindtap="goPlan">{{skinInfo.has_scheme==1?'查看我的专业护肤方案':'生成我的专业护肤方案'}}</view>
  86. </view>