answer.wxml 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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">
  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">1</view>
  26. </view>
  27. <view class="problem-text">现代奥林匹克圣火传递起于哪一年?</view>
  28. </view>
  29. <view class="problem-key-list">
  30. <view class="{{pattern?'':'active'}} border">A. 1936年</view>
  31. <view class="border">A. 1936年</view>
  32. <view class="">A. 1936年</view>
  33. <view class="">A. 1936年</view>
  34. </view>
  35. <view class="bd-b"></view>
  36. </view>
  37. <view class="content-item">
  38. <view class="problem">
  39. <view class="problem-num">
  40. <image mode="widthFix" class="problem-icon" src="../../../imgs/contest/answer/icon.png"></image>
  41. <view class="problem-index">1</view>
  42. </view>
  43. <view class="problem-text">现代奥林匹克圣火传递起于哪一年?</view>
  44. </view>
  45. <view class="problem-key-list">
  46. <view class="active-R">A. 1936年</view>
  47. <view class="">A. 1936年</view>
  48. <view class="">A. 1936年</view>
  49. <view class="">A. 1936年</view>
  50. </view>
  51. <view class="bd-b" wx:if="{{pattern}}"></view>
  52. </view>
  53. </view>
  54. <!-- <view class="arrow-group" wx:if="{{!pattern}}">
  55. <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>
  56. <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>
  57. </view> -->
  58. <view class="next-one" style="background-image: url('../../../imgs/contest/answer/confim-button-bg.png');" data-index="2" bindtap="{{isupdate?'提交':'bindNavTagger'}}" wx:if="{{pagination.page==1||isupdate}}">{{isupdate?'提交':'下一页'}}</view>
  59. <view class="button-group-R" wx:else>
  60. <view class="back" bindtap="{{pattern?'':'bindNavTagger'}}" data-index="{{pagination.page-1}}">{{pattern?'修改':'上一页'}}</view>
  61. <view class="next" style="background-image: url('../../../imgs/contest/answer/confim-button-bg-2.png');" bindtap="{{pagination.page==5?'':'bindNavTagger'}}" data-index="{{pagination.page+1}}">{{pagination.page==5?'提交':'下一页'}}</view>
  62. </view>
  63. <!-- 确认框 -->
  64. <view class="mask" wx:if="{{show}}" bindtap="showToggle">
  65. </view>
  66. <view class="confirm" wx:if="{{show}}">
  67. <image mode="widthFix" class="confirm-bg" src="../../../imgs/contest/answer/confirm-bg.png"></image>
  68. <view class="confirm-content">
  69. <image mode="widthFix" class="warning-icon" src="../../../imgs/contest/answer/warning.png"></image>
  70. <view class="confim-title">{{isupdate?'您的答题已修改,确认提交吗?':'您未答完全部题,确认提交吗?'}}</view>
  71. <view class="button-group" wx:if="{{!isupdate}}">
  72. <view>预览答题</view>
  73. <view bindtap="clickConfim">提交</view>
  74. </view>
  75. <view class="button-group" wx:else>
  76. <view class="confim-button" bindtap="clickConfim">提交</view>
  77. </view>
  78. <image mode="widthFix" src="../../../imgs/contest/answer/close.png" class="close-icon" bindtap="showToggle"></image>
  79. </view>
  80. </view>
  81. </view>