|
@@ -18,23 +18,19 @@
|
|
|
</view>
|
|
|
<view class="content">
|
|
|
<view class="content-title">2022年冬奥会知识竞赛</view>
|
|
|
- <view class="content-item">
|
|
|
+ <view class="content-item" wx:for="{{questionList}}" wx:key="index">
|
|
|
<view class="problem">
|
|
|
<view class="problem-num">
|
|
|
<image mode="widthFix" class="problem-icon" src="../../../imgs/contest/answer/icon.png"></image>
|
|
|
- <view class="problem-index">1</view>
|
|
|
+ <view class="problem-index">{{(pagination.page-1)*10+index+1}}</view>
|
|
|
</view>
|
|
|
- <view class="problem-text">现代奥林匹克圣火传递起于哪一年?</view>
|
|
|
+ <view class="problem-text">{{item.topic}}</view>
|
|
|
</view>
|
|
|
<view class="problem-key-list">
|
|
|
- <view class="{{pattern?'':'active'}} border">A. 1936年</view>
|
|
|
- <view class="border">A. 1936年</view>
|
|
|
- <view class="">A. 1936年</view>
|
|
|
- <view class="">A. 1936年</view>
|
|
|
+ <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>
|
|
|
</view>
|
|
|
- <view class="bd-b"></view>
|
|
|
</view>
|
|
|
- <view class="content-item">
|
|
|
+ <!-- <view class="content-item">
|
|
|
<view class="problem">
|
|
|
<view class="problem-num">
|
|
|
<image mode="widthFix" class="problem-icon" src="../../../imgs/contest/answer/icon.png"></image>
|
|
@@ -45,20 +41,17 @@
|
|
|
<view class="problem-key-list">
|
|
|
<view class="active-R">A. 1936年</view>
|
|
|
<view class="">A. 1936年</view>
|
|
|
- <view class="">A. 1936年</view>
|
|
|
- <view class="">A. 1936年</view>
|
|
|
</view>
|
|
|
- <view class="bd-b" wx:if="{{pattern}}"></view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<!-- <view class="arrow-group" wx:if="{{!pattern}}">
|
|
|
<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>
|
|
|
<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>
|
|
|
</view> -->
|
|
|
- <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>
|
|
|
+ <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>
|
|
|
<view class="button-group-R" wx:else>
|
|
|
- <view class="back" bindtap="{{pattern?'':'bindNavTagger'}}" data-index="{{pagination.page-1}}">{{pattern?'修改':'上一页'}}</view>
|
|
|
- <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>
|
|
|
+ <view class="back" bindtap="{{pattern?'updateTagger':'bindNavTagger'}}" data-index="{{pagination.page-1}}">{{pattern?'修改':'上一页'}}</view>
|
|
|
+ <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>
|
|
|
</view>
|
|
|
|
|
|
<!-- 确认框 -->
|
|
@@ -70,7 +63,7 @@
|
|
|
<image mode="widthFix" class="warning-icon" src="../../../imgs/contest/answer/warning.png"></image>
|
|
|
<view class="confim-title">{{isupdate?'您的答题已修改,确认提交吗?':'您未答完全部题,确认提交吗?'}}</view>
|
|
|
<view class="button-group" wx:if="{{!isupdate}}">
|
|
|
- <view>预览答题</view>
|
|
|
+ <view bindtap="patternToggle">预览答题</view>
|
|
|
<view bindtap="clickConfim">提交</view>
|
|
|
</view>
|
|
|
<view class="button-group" wx:else>
|