You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pk8f3pmu2/pages/exercise_result/exercise_result.wxml

44 lines
1.9 KiB

<view class="container">
<view class="error" wx:if="{{page_status==1&&results.length==0}}">
结果未公布
</view>
<view class="error" wx:if="{{error}}">
{{error}}
</view>
<view class="result-list" style="margin:0 -12px;">
<block wx:for="{{results}}" wx:for-item="result">
<view class="question" style="margin:7px 2px; padding:4px 12px; background:white; border-radius: 10rpx;">
<view class="question-title">
<text class="hint">第{{result.ques_position}}题</text>
<text>{{result.ques_title}}</text>
<text class="hint">{{result.effictive_counts||0}}人作答</text>
<text class="error">正确率:{{result.right_percent}}%</text>
</view>
<view wx:if="{{result.ques_type==0 || result.ques_type==1 || result.ques_type==2}}" class="choices">
<block wx:for="{{result.ques_details}}" wx:for-item="detail">
<view class="choice">
<radio checked="{{detail.choice_right_boolean}}" disabled>
<text class="choice-text">{{detail.choice_text}}</text>
<text class="error">{{detail.choice_users_count}}人</text>
</radio>
<progress active show-info duration="7" border-radius="2" percent="{{detail.choice_percent*100}}"></progress>
</view>
</block>
</view>
<view wx:elif="{{result.ques_type==3 || result.ques_type==4}}" class="choices">
<block wx:for="{{result.ques_details}}" wx:for-item="detail">
<view class="choice">
<text class="choice-text">{{detail.choice_text}}</text>
<text class="error">{{detail.choice_users_count}}人</text>
<progress active show-info duration="7" border-radius="2" percent="{{detail.choice_percent*100}}"></progress>
</view>
</block>
</view>
<view wx:else class="choices">
暂不支持此类题目
</view>
</view>
</block>
</view>
</view>