1234567891011121314151617181920212223242526272829 |
- <view class="top">
- 满分{{data.full_mark}}分/{{data.time_limit}}分钟
- <text bindtap="post">交卷</text>
- <view class="count">倒计时 {{time}}</view>
- </view>
- <!-- 判断 -->
- <view class="content" wx:for="{{data.questions}}" hidden="{{idx != index+1}}" wx:key="idx">
- <view class="num">{{index+1}}、{{item.title}}
- <image wx:if="{{item.type == 1}}" src="../../images/danx.svg" mode="widthFix"></image>
- <image wx:if="{{item.type == 2}}" src="../../images/duox.svg" mode="widthFix"></image>
- <image wx:if="{{item.type == 3}}" src="../../images/pd.svg" mode="widthFix"></image>
- </view>
- <!-- <view class="ques"> {{item.title}} </view> -->
- <view class="ans">
- <checkbox-group wx:if="{{item.type == 2}}" bindchange='answer' data-id='{{item.id}}'>
- <view wx:for="{{item.options}}" wx:for-item="opt" wx:key="*this">
- <checkbox color="#358BFF" value="{{opt[0]}}">{{opt}}</checkbox></view>
- </checkbox-group>
- <radio-group wx:else bindchange='answer' data-id='{{item.id}}'>
- <view wx:for="{{item.options}}" wx:for-item="opt" wx:key="*this">
- <radio color="#358BFF" value="{{opt[0]}}">{{opt}}</radio></view>
- </radio-group>
- </view>
- </view>
- <view class="btn">
- <text class="{{idx<=1?'hide':''}}" bindtap="prev">上一题</text>
- <text class="{{idx>=data.questions.length?'hide':''}}" bindtap="next">下一题</text>
- </view>
|