skinRecord.wxml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <view class="flex-column" style="height: 100%;">
  2. <!-- <view class="user-info flex-align-center">
  3. <image src="{{userInfo.avatar_url || '/images/my/header.png'}}" class="avatar"></image>
  4. <view class="info-right flex1">
  5. <text class="nick-name">{{userInfo.nickname || '微信用户'}}</text>
  6. <view class="intro flex-align-center">
  7. <view class="gender flex-center" style="margin-right: 14rpx;"
  8. wx:if="{{ userInfo.sex == 1 || userInfo.sex == 2 }}">
  9. <image src="/images/icon_gender_{{userInfo.sex}}.png"></image>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="skin-status">
  14. <text style="font-size: 24rpx;">对比上次检测({{detail.last_day_num}}天前)</text>
  15. <view class="status flex-center">{{detail.last_result == 'better' ? '皮肤变好' : '皮肤变差'}}</view>
  16. </view>
  17. </view> -->
  18. <wux-spin class="flex-column" nested spinning="{{ spinning }}" size="large" tip="加载中...">
  19. <view class="user-info flex-align-center">
  20. <view class="info-right flex-column flex1 ellipsis">
  21. <text class="skin-status">{{detail.last_result == 'better' ? '皮肤变好' : '皮肤变差'}}</text>
  22. <text style="color: #999;font-size: 24rpx;margin: 8rpx 0 20rpx;">上次检查:{{detail.last_day_num}}天前</text>
  23. <view class="intro flex ">
  24. <view class="flex-align-center" wx:if="{{ userInfo.sex == 1 || userInfo.sex == 2 }}">
  25. <image src="/images/icon_record_07.png"></image>
  26. <text>{{ userInfo.sex == 1 ? '男' : '女' }}</text>
  27. </view>
  28. <view class="flex-align-center flex1 ellipsis" style="margin-left: 36rpx;">
  29. <image src="/images/icon_record_06.png"></image>
  30. <text class="flex1 ellipsis">{{userInfo.nickname || '微信用户'}}</text>
  31. </view>
  32. </view>
  33. </view>
  34. <image src="https://we-spa.oss-cn-shenzhen.aliyuncs.com/wxapp/20220317/icon_record_05.png" class="avatar"></image>
  35. </view>
  36. <view class="tabs flex-column flex1">
  37. <view class="tabs-wrap flex-justify-space-between">
  38. <view class="item {{current == 0 ? 'active' : ''}}" bindtap="onTabsChange" data-id="0">检测分析</view>
  39. <view class="item {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">问题详解</view>
  40. <view class="item {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">改善方案</view>
  41. </view>
  42. <view class="tabs-content flex-column flex1">
  43. <analysis current="{{ current }}" analysis="{{detail.analysis}}" class="flex1" style="display: {{ current == 0 ? 'block' : 'none' }};"></analysis>
  44. <explanation index="{{ current }}" explanation="{{ detail.details }}" class="flex1" style="display: {{ current == 1 ? 'block' : 'none' }};"></explanation>
  45. <plan analysis="{{detail.analysis}}" analysis_id="{{id}}" fromList="{{fromList}}" plan="{{detail.improve}}" class="flex1" style="display: {{ current == 2 ? 'block' : 'none' }};"></plan>
  46. </view>
  47. </view>
  48. <wux-landscape visible="{{ !visible && detail && detail.question && detail.question.length > 0 }}" maskClosable="{{ true }}" closable="{{ false }}" bind:close="onCancelUse" class="skin-popup" catchtouchmove="true">
  49. <view class="use-popup flex-column">
  50. <text style="font-size: 36rpx;height: 150rpx;line-height: 150rpx;">皮肤问诊卡</text>
  51. <text style="font-size: 24rpx;color: #FF3A13;text-align: left;margin-bottom: 40rpx;">【温馨提示】根据您填写的信息,将会影响推荐的准确度,请务必认真填写哟~</text>
  52. <scroll-view scroll-y style="height:600rpx">
  53. <view class="item flex-column" wx:for="{{ detail.question }}" wx:key="index">
  54. <text style="text-align: left;font-size: 28rpx;color: #000;">{{index + 1}}.{{ item.question }}</text>
  55. <view class="btn-box flex-justify-space-around">
  56. <view class="btn-change flex-align-center" data-status="1" data-index="{{index}}" bindtap="onChangeStatus">
  57. <image src="/images/icon_{{ item.status == 1 ? '13' : '12' }}.png"></image>
  58. <text style="font-size: 28rpx;">是</text>
  59. </view>
  60. <view class="btn-change flex-align-center" data-status="0" data-index="{{index}}" bindtap="onChangeStatus">
  61. <image src="/images/icon_{{ item.status == 0 ? '13' : '12' }}.png"></image>
  62. <text style="font-size: 28rpx;">否</text>
  63. </view>
  64. </view>
  65. </view>
  66. </scroll-view>
  67. <view class="use-btn flex-justify-space-around">
  68. <view class="btn cancel flex-center" bindtap="onCancelUse">暂不提交</view>
  69. <view class="btn confirm flex-center" bindtap="onConfirmUse">确认提交</view>
  70. </view>
  71. </view>
  72. </wux-landscape>
  73. </wux-spin>
  74. </view>