problem_list.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!--pages/problem_list/problem_list.wxml-->
  2. <import src="../../templates/header/header.wxml" />
  3. <import src="../../templates/footer_parent/footer.wxml" />
  4. <import src="../../templates/nodata/nodata.wxml" />
  5. <view class='container'>
  6. <template is='header' data='{{...headerData}}'></template>
  7. <view class='wrapper container-distance'>
  8. <!-- 头部导航 -->
  9. <view class='fixed'>
  10. <!-- <view class="fixed-items">
  11. <view class='fixed-item {{navIndex == index ? "fixed-item-active" : ""}}' wx:for='{{navList}}' wx:key='{{index}}' data-index='{{index}}' bindtap='selectNavIndexCtl'>{{item.text}}</view>
  12. </view> -->
  13. </view>
  14. <view class='li' wx:if='{{list.length!=0}}' wx:for='{{list}}' wx:key='index' data-method='{{({problemPictureId:item.problemPictureId,resolutionStatus:item.resolutionStatus})}}' data-url='problem_report' bindtap='navigateCtl'>
  15. <image src='../../image/dai_jie_da.png' class='li-logo' wx:if='{{item.resolutionStatus!=1}}'></image>
  16. <image src='../../image/yi_jie_da.png' class='li-logo' wx:if='{{item.resolutionStatus==1}}'></image>
  17. <view class='li-head'>
  18. <image class='li-head-img' src='../../image/nan_yi_tu_biao.png'></image>
  19. <view class='li-head-times'>{{item.createTime}}</view>
  20. </view>
  21. <view class='li-img'>
  22. <image wx:if='{{item.problemPicturePath}}' mode='aspectFill' src='{{baseImgUrl+item.problemPicturePath + thumbnail}}' class='li-img-url'></image>
  23. </view>
  24. <view class='li-subject'>
  25. <image src='../../image/yu_wen.png' class='li-subject-img' wx:if='{{item.subject=="语文"}}'></image>
  26. <image src='../../image/shu_xue.png' class='li-subject-img' wx:if='{{item.subject=="数学"}}'></image>
  27. <image src='../../image/ying_yu.png' class='li-subject-img' wx:if='{{item.subject=="英语"}}'></image>
  28. <text wx:if='{{item.subject=="语文"}}' class="li-subject-items">语文</text>
  29. <text wx:if='{{item.subject=="数学"}}' class="li-subject-items">数学</text>
  30. <text wx:if='{{item.subject=="英语"}}' class="li-subject-items">英语</text>
  31. </view>
  32. </view>
  33. <template wx:if='{{list.length==0}}' is='nodata-three'></template>
  34. <view class='li-footer'></view>
  35. </view>
  36. <template is='footer' data='{{...footerData}}'></template>
  37. </view>