|
@@ -4,7 +4,7 @@
|
|
<view class="view-wrap">
|
|
<view class="view-wrap">
|
|
<view class="exam-count-down">
|
|
<view class="exam-count-down">
|
|
{{types[type]}} ({{total-index}}/{{total}})
|
|
{{types[type]}} ({{total-index}}/{{total}})
|
|
- <text style="margin-left:10rpx;margin-right:10rpx" >{{showResult?'背景模式':'答题模式'}}</text>
|
|
|
|
|
|
+ <text style="margin-left:10rpx;margin-right:10rpx" >{{showResult?'背题模式':'答题模式'}}</text>
|
|
<i-switch value="{{showResult}}" bind:change="onChange"></i-switch>
|
|
<i-switch value="{{showResult}}" bind:change="onChange"></i-switch>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -16,7 +16,7 @@
|
|
<i-cell wx:if="{{info.type ==2}}">
|
|
<i-cell wx:if="{{info.type ==2}}">
|
|
<view class="single">
|
|
<view class="single">
|
|
<rich-text nodes="[单]{{info.title}}" />
|
|
<rich-text nodes="[单]{{info.title}}" />
|
|
- <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}">
|
|
|
|
|
|
+ <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}" >
|
|
<label class="radio" wx:for="{{preList}}" wx:for-item="answer" wx:key="answerId"
|
|
<label class="radio" wx:for="{{preList}}" wx:for-item="answer" wx:key="answerId"
|
|
wx:if="{{info['answer'+(index+1)]}}">
|
|
wx:if="{{info['answer'+(index+1)]}}">
|
|
<view class="radio-answer">
|
|
<view class="radio-answer">
|
|
@@ -48,7 +48,7 @@
|
|
<rich-text nodes="[多]{{info.title}}" />
|
|
<rich-text nodes="[多]{{info.title}}" />
|
|
<checkbox-group class="checkbox-answer" style="margin-top:30rpx" bindchange="checkboxChange"
|
|
<checkbox-group class="checkbox-answer" style="margin-top:30rpx" bindchange="checkboxChange"
|
|
data-index="{{index}}">
|
|
data-index="{{index}}">
|
|
- <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer" wx:key="answerId"
|
|
|
|
|
|
+ <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer"
|
|
wx:if="{{info['answer'+(index+1)]}}">
|
|
wx:if="{{info['answer'+(index+1)]}}">
|
|
<view class="checkbox-answer">
|
|
<view class="checkbox-answer">
|
|
<checkbox color="#2d8cf0" value="{{index+1}}" checked="{{filter.isSelect(index+1,info.select)}}">
|
|
<checkbox color="#2d8cf0" value="{{index+1}}" checked="{{filter.isSelect(index+1,info.select)}}">
|
|
@@ -78,7 +78,7 @@
|
|
<view>
|
|
<view>
|
|
<rich-text nodes="[判]{{info.title}}" />
|
|
<rich-text nodes="[判]{{info.title}}" />
|
|
<radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}">
|
|
<radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}">
|
|
- <label class="radio" wx:for="{{2}}" wx:for-item="answer">
|
|
|
|
|
|
+ <label class="radio" wx:for="{{2}}" wx:for-item="answer" wx:key="index">
|
|
<view class="radio-answer">
|
|
<view class="radio-answer">
|
|
<radio color="#2d8cf0" value="{{index+1}}" checked="{{info.select==index+1}}">
|
|
<radio color="#2d8cf0" value="{{index+1}}" checked="{{info.select==index+1}}">
|
|
{{preList[index]}}. {{info['answer'+(index+1)]}}
|
|
{{preList[index]}}. {{info['answer'+(index+1)]}}
|
|
@@ -111,11 +111,11 @@
|
|
<view class="single">
|
|
<view class="single">
|
|
<rich-text nodes="[单]{{item.title}}" />
|
|
<rich-text nodes="[单]{{item.title}}" />
|
|
<radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}" data-cid="{{cid}}">
|
|
<radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}" data-cid="{{cid}}">
|
|
- <label class="radio" wx:for="{{preList}}" wx:for-item="answer" wx:key="answerId"
|
|
|
|
- wx:if="{{item['answer'+(index+1)]}}">
|
|
|
|
|
|
+ <label class="radio" wx:for="{{preList}}" wx:for-item="answer" wx:key="answerId" wx:for-index="pindex"
|
|
|
|
+ wx:if="{{item['answer'+(pindex+1)]}}">
|
|
<view class="radio-answer">
|
|
<view class="radio-answer">
|
|
- <radio color="#2d8cf0" value="{{index+1}}" checked="{{item.select==index+1}}">
|
|
|
|
- {{preList[index]}}. {{item['answer'+(index+1)]}}
|
|
|
|
|
|
+ <radio color="#2d8cf0" value="{{pindex+1}}" checked="{{item.select==pindex+1}}">
|
|
|
|
+ {{preList[pindex]}}. {{item['answer'+(pindex+1)]}}
|
|
</radio>
|
|
</radio>
|
|
</view>
|
|
</view>
|
|
</label>
|
|
</label>
|
|
@@ -143,11 +143,11 @@
|
|
<checkbox-group class="checkbox-answer" style="margin-top:30rpx" data-cid="{{cid}}"
|
|
<checkbox-group class="checkbox-answer" style="margin-top:30rpx" data-cid="{{cid}}"
|
|
bindchange="checkboxChange"
|
|
bindchange="checkboxChange"
|
|
data-index="{{index}}">
|
|
data-index="{{index}}">
|
|
- <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer" wx:key="answerId"
|
|
|
|
- wx:if="{{item['answer'+(index+1)]}}">
|
|
|
|
|
|
+ <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer" wx:key="answerId" wx:for-index="pindex"
|
|
|
|
+ wx:if="{{item['answer'+(pindex+1)]}}">
|
|
<view class="checkbox-answer">
|
|
<view class="checkbox-answer">
|
|
- <checkbox color="#2d8cf0" value="{{index+1}}" checked="{{filter.isSelect(index+1,info.select)}}">
|
|
|
|
- {{answer}}. {{item['answer'+(index+1)]}}
|
|
|
|
|
|
+ <checkbox color="#2d8cf0" value="{{pindex+1}}" checked="{{filter.isSelect(pindex+1,item.select)}}">
|
|
|
|
+ {{answer}}. {{item['answer'+(pindex+1)]}}
|
|
</checkbox>
|
|
</checkbox>
|
|
</view>
|
|
</view>
|
|
</label>
|
|
</label>
|