answer.wxml 5.0 KB

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