explanation.wxml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <view class="tabs flex-column">
  2. <scroll-view class="tabs-title" scroll-x bindscroll="scrollMove" scroll-left='{{scrollLeft}}' scroll-with-animation="true">
  3. <view class="flex">
  4. <view id="scroll-item-{{index}}" class="item flex-align-center {{current == index ? 'active' : '' }}" wx:for="{{ explanation }}" wx:key="index" data-index="{{index}}" bindtap="onChangeNav">
  5. {{item.name}}
  6. </view>
  7. </view>
  8. </scroll-view>
  9. <scroll-view class="tabs-list flex1" scroll-into-view="{{toView}}" scroll-y scroll-with-animation="true" bindscroll="scrollMoveY" style="height:0;" bindscrolltolower="scrolltolower">
  10. <block wx:for="{{explanation}}" wx:key="index">
  11. <view style="padding: 10rpx 28rpx;" class="item-box" id="{{'item' + index}}">
  12. <view class="item flex-column border-radius">
  13. <view class="flex-justify-space-between">
  14. <text style="font-family: PingFangSC-Medium, PingFang SC;">{{ item.name }}</text>
  15. <text style="font-family: PingFangSC-Medium, PingFang SC;color: #FA7D22;">{{item.main_item.name}}{{item.main_item.num}}</text>
  16. </view>
  17. <!-- <view class="flex-align-center" style="margin: 30rpx 0 48rpx;">
  18. <text style="font-family: PingFangSC-Medium, PingFang SC;color: #FA7D22;">{{item.main_item.name}} {{item.main_item.num}}</text>
  19. <text style="font-size: 24rpx;color: #666666;">{{item.last_desc}}</text>
  20. </view> -->
  21. <view class="flex" style="margin: 36rpx 0 52rpx;">
  22. <view class="item-img-box">
  23. <image class="default-img" src="{{item.image}}" bindtap="onPopupState" data-type="{{ false }}" data-item="{{ item }}" data-value="{{true}}"></image>
  24. <image class="last-real-image" src="{{item.last_real_image}}" bindtap="onPopupState" data-type="{{ true }}" data-item="{{ item }}" data-value="{{true}}" wx:if="{{ item.last_real_image }}"></image>
  25. </view>
  26. <view class="item-content flex1">
  27. <view class="flex" style="margin-bottom: 42rpx;">
  28. <text>本次分数:</text>
  29. <text>{{ item.score }}分</text>
  30. </view>
  31. <view class="flex flex-align-center" wx:for="{{ item.items }}" wx:for-item="newItem" wx:key="index" style="margin-bottom: 12rpx;">
  32. <text style="font-size: 24rpx;color: #5E5A6C;">{{ newItem.name }}:</text>
  33. <text style="font-size: 24rpx;color: #5E5A6C;font-family: PingFangSC-Semibold;">{{ newItem.num }}个</text>
  34. <!-- <view class="flex" wx:if="{{ index == 0 && item.last_desc }}">
  35. <image style="width: 14rpx;height: 24rpx;margin: 0 16rpx 0 26rpx;" src="/images/icon_skin_0{{ item.last_desc == 'up' ? 2 : 1 }}.png"></image>
  36. <text style="font-size: 24rpx; font-family: PingFangSC-Regular, PingFang SC; color: #FF4148;">{{item.last_desc}}</text>
  37. </view> -->
  38. </view>
  39. </view>
  40. </view>
  41. <!-- <view class="flex-column flex-align-center">
  42. <image src="{{item.image}}"></image>
  43. <view class="btn-box flex">
  44. <view class="btn flex-center img" style="margin-right: 46rpx;" bindtap="onPopupState" data-type="{{ false }}" data-item="{{ item }}" data-value="{{true}}">{{ item.name }}检测图</view>
  45. <view class="btn flex-center" bindtap="onPopupState" data-type="{{ true }}" data-item="{{ item }}" data-value="{{true}}" wx:if="{{ item.last_real_image }}">上次图片</view>
  46. </view>
  47. <text style="font-size: 36rpx;font-family: PingFangSC-Medium, PingFang SC;">您本次{{ item.name }}评分: {{item.score}}分</text>
  48. </view>
  49. <view class="flex flex-justify-space-between" style="margin: 50rpx 0 30rpx;">
  50. <view class="flex-column flex-align-center" wx:for="{{ item.items }}" wx:key="index">
  51. <text style="color: #666666;">{{ item.num }}</text>
  52. <text style="color: #666666;">{{ item.name }}</text>
  53. </view>
  54. </view> -->
  55. <!-- <view class="suggest"></view> -->
  56. <text style="background: #F8F8F8;border-radius: 16rpx;padding: 28rpx 24rpx;font-size: 28rpx;color: #666;">{{ item.suggest }}</text>
  57. </view>
  58. </view>
  59. </block>
  60. </scroll-view>
  61. </view>
  62. <wux-landscape visible="{{ posterPopup }}" maskClosable="{{ true }}" closable="{{ true }}" bind:close="onPopupState" class="poster" newPrefixCls="wux-popup-widtn" data-value="{{false}}">
  63. <view class="img-box">
  64. <image src="{{ posterType ? posterItem.last_real_image : posterItem.real_image }}" class="popup-img" />
  65. <image src="/images/icon_record_bg.png" class="popup-pos" />
  66. </view>
  67. <view class="btn" bindtap="onSwitchType" wx:if="{{ posterItem.last_real_image }}">
  68. 查看{{ posterType ? posterItem.name+'检测图' : '上次图片' }}
  69. </view>
  70. </wux-landscape>