answer.wxml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!--pages/contest/answer/answer.wxml-->
  2. <wxs src="../../../utils/util.wxs" module="format" />
  3. <view>
  4. <image mode="widthFix" src="../../../imgs/contest/answer/bg.png" class="bg"></image>
  5. <image src="../../../imgs/contest/ranking/home.png" class="home" style="top:{{statusBar}}px" bindtap="goHome"></image>
  6. <view class="page-title" style="padding-top:{{statusBar}}px">参加竞赛</view>
  7. <view class="top">
  8. <view class="top-title">您已回答
  9. <view class="time">
  10. {{format.formatTime(time)}}
  11. </view>秒!
  12. </view>
  13. <view class="top-nav">
  14. <view class="{{pagination.page==item?'active':''}}" wx:for="{{[1,2,3,4,5]}}" bindtap="bindNavTagger" data-index="{{item}}">第{{(item-1)*10+1}}-{{item*10}}题</view>
  15. </view>
  16. </view>
  17. <view class="content">
  18. <view class="content-title">2022年冬奥会知识竞赛</view>
  19. <view class="content-item" wx:for="{{questionList}}" wx:key="index">
  20. <view class="problem">
  21. <view class="problem-num">
  22. <image mode="widthFix" class="problem-icon" src="../../../imgs/contest/answer/icon.png"></image>
  23. <view class="problem-index">{{(pagination.page-1)*10+index+1}}</view>
  24. </view>
  25. <view class="problem-text">{{item.topic}}</view>
  26. </view>
  27. <view class="problem-key-list">
  28. <view class="border {{pattern?'pattern':''}} {{chooseList[(pagination.page-1)*10+index]==num?'active':''}}" bindtap="{{pattern?'':'clickChoose'}}" data-index="{{num}}" data-questionIndex="{{(pagination.page-1)*10+index}}" wx:for="{{item.options}}" wx:for-item="i" wx:for-index="num">{{['A','B','C','D'][num]}}. {{i.optionContent}}</view>
  29. </view>
  30. </view>
  31. <!-- <view class="content-item">
  32. <view class="problem">
  33. <view class="problem-num">
  34. <image mode="widthFix" class="problem-icon" src="../../../imgs/contest/answer/icon.png"></image>
  35. <view class="problem-index">1</view>
  36. </view>
  37. <view class="problem-text">现代奥林匹克圣火传递起于哪一年?</view>
  38. </view>
  39. <view class="problem-key-list">
  40. <view class="active-R">A. 1936年</view>
  41. <view class="">A. 1936年</view>
  42. </view>
  43. </view> -->
  44. </view>
  45. <!-- <view class="arrow-group" wx:if="{{!pattern}}">
  46. <image class="" mode="widthFix" src="../../../imgs/contest/answer/left{{pagination.page==1?'':'-active'}}.png" bindtap="{{pagination.page==1?'':'bindNavTagger'}}" data-index="{{pagination.page-1}}"></image>
  47. <image class="" mode="widthFix" src="../../../imgs/contest/answer/right{{pagination.page==5?'':'-active'}}.png" bindtap="{{pagination.page==5?'':'bindNavTagger'}}" data-index="{{pagination.page+1}}"></image>
  48. </view> -->
  49. <view class="next-one" data-index="2" bindtap="{{isupdate?'showToggle':'bindNavTagger'}}" wx:if="{{!pattern&&pagination.page==1||isupdate}}">{{isupdate?'提交':'下一页'}}</view>
  50. <view class="button-group-R" wx:else>
  51. <view class="back" bindtap="{{pattern?'updateTagger':'bindNavTagger'}}" data-index="{{pagination.page-1}}">{{pattern?'修改':'上一页'}}</view>
  52. <view class="next" bindtap="{{pagination.page==5?'showToggle':'bindNavTagger'}}" data-index="{{pagination.page+1}}">{{pagination.page==5?'提交':'下一页'}}</view>
  53. </view>
  54. <!-- 确认框 -->
  55. <view class="mask" wx:if="{{show}}" bindtap="showToggle">
  56. </view>
  57. <view class="confirm" wx:if="{{show}}">
  58. <image mode="widthFix" class="confirm-bg" src="../../../imgs/contest/answer/confirm-bg.png"></image>
  59. <view class="confirm-content">
  60. <image mode="widthFix" class="warning-icon" src="../../../imgs/contest/answer/warning.png"></image>
  61. <view class="confim-title">{{allAnswer?'您已答完全部题,确认提交吗?':isupdate?'您的答题已修改,确认提交吗?':'您未答完全部题,确认提交吗?'}}</view>
  62. <view class="button-group" wx:if="{{!isupdate}}">
  63. <view bindtap="patternToggle">预览答题</view>
  64. <view bindtap="clickConfim">提交</view>
  65. </view>
  66. <view class="button-group" wx:else>
  67. <view class="confim-button" bindtap="clickConfim">提交</view>
  68. </view>
  69. <image mode="widthFix" src="../../../imgs/contest/answer/close.png" class="close-icon" bindtap="showToggle"></image>
  70. </view>
  71. </view>
  72. </view>