cshenfu
2024-06-27 58aa6e282bb343503be3cb198948328ea3ed7b79
1
<view class="page_bg data-v-d72d03a8"><view class="top_nav data-v-d72d03a8"><image class="image_1 data-v-d72d03a8" src="/static/local/3546451940011a031009b939a8b26314.png" data-event-opts="{{[['tap',[['pageBack',['$event']]]]]}}" bindtap="__e"></image><view class="cate data-v-d72d03a8">{{cardHidden?pageTitle:'答题卡'}}</view><block wx:if="{{!checkAnswer}}"><block data-event-opts="{{[['tap',[['collectQuestion',['$event']]]]]}}" bindtap="__e" class="data-v-d72d03a8"><u-icon class="more_fun data-v-d72d03a8" vue-id="0e726f4c-1" name="more-dot-fill" data-event-opts="{{[['^tap',[['e0']]]]}}" bind:tap="__e" bind:__l="__l"></u-icon><block wx:if="{{collection}}"><view class="collection_bg data-v-d72d03a8"><block wx:if="{{$root.g0}}"><block class="data-v-d72d03a8"><u-icon vue-id="0e726f4c-2" name="star" color="#fff" size="32" class="data-v-d72d03a8" bind:__l="__l"></u-icon>收藏本题</block></block><block wx:else><block class="data-v-d72d03a8"><u-icon vue-id="0e726f4c-3" name="star-fill" color="#fff" size="32" class="data-v-d72d03a8" bind:__l="__l"></u-icon>已收藏本题</block></block></view></block></block></block></view><view class="main data-v-d72d03a8"><view class="exam_title data-v-d72d03a8">{{detail.title}}</view><pw-swiper scoped-slots-compiler="augmented" class="pw_swiper data-v-d72d03a8 vue-ref" vue-id="0e726f4c-4" list="{{questionList}}" dataIndex="{{currentIndex}}" data-ref="swiper" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view class="scroll_bg data-v-d72d03a8" scroll-y="{{true}}" wx:if="{{$root.m0}}"><view class="item_top data-v-d72d03a8"><text class="item_type data-v-d72d03a8">{{$root.m1}}</text><text class="number data-v-d72d03a8"><text class="data-v-d72d03a8">{{$root.m2['index']+1}}</text>{{'/ '+$root.g1}}</text></view><mp-html class="item_body data-v-d72d03a8" vue-id="{{('0e726f4c-5')+','+('0e726f4c-4')}}" content="{{$root.m3['item'].title}}" bind:__l="__l"></mp-html><block wx:if="{{$root.m4}}"><view class="single data-v-d72d03a8"><block wx:for="{{$root.l0}}" wx:for-item="answer" wx:for-index="a_index"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" data-event-params="{{({a_index,answer:answer.$orig})}}" class="answer_item data-v-d72d03a8" bindtap="__e"><view class="{{['left_icon','data-v-d72d03a8',(a_index==answercard[answer.m6['item']._id].a)?'selected':'']}}">{{''+letter[a_index]+''}}</view>{{''+answer.$orig.content+''}}</view></block></view></block><block wx:if="{{$root.m7['item'].type==2}}"><view class="single data-v-d72d03a8"><block wx:for="{{$root.l1}}" wx:for-item="answer" wx:for-index="a_index"><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" data-event-params="{{({a_index,answer:answer.$orig})}}" class="answer_item data-v-d72d03a8" bindtap="__e"><view class="{{['left_icon','data-v-d72d03a8',(answer.m9)?'selected':'']}}">{{''+letter[a_index]+''}}</view>{{''+answer.$orig.content+''}}</view></block></view></block><block wx:if="{{checkAnswer}}"><view class="answer_check data-v-d72d03a8"><view class="check_title data-v-d72d03a8">答案解析</view><view class="right_answer data-v-d72d03a8">{{"正确答案:"+$root.m10}}</view><mp-html class="check_detail data-v-d72d03a8" vue-id="{{('0e726f4c-6')+','+('0e726f4c-4')}}" content="{{$root.m11['item'].analysis}}" bind:__l="__l"></mp-html></view></block></scroll-view></pw-swiper><view class="{{['end_nav','data-v-d72d03a8',(!cardHidden)?'end_nav_show':'']}}"><block wx:if="{{cardHidden}}"><block class="data-v-d72d03a8"><view data-event-opts="{{[['tap',[['changeIndex',['before']]]]]}}" class="{{['btn','data-v-d72d03a8',(currentIndex==0)?'cant':'']}}" bindtap="__e">上一题</view><view class="icon data-v-d72d03a8"><image class="image_8 data-v-d72d03a8" src="/static/local/16403089344736532213.png"></image><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="text data-v-d72d03a8" bindtap="__e">答题卡</view></view><block wx:if="{{checkAnswer==false}}"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" class="icon data-v-d72d03a8" bindtap="__e"><image class="image_8 data-v-d72d03a8" src="/static/local/16403089465091811020.png"></image><view class="text data-v-d72d03a8">答案解析</view></view></block><block wx:else><view data-event-opts="{{[['tap',[['collectQuestion',['$event']]]]]}}" class="icon data-v-d72d03a8" bindtap="__e"><block wx:if="{{$root.g2}}"><block class="data-v-d72d03a8"><u-icon vue-id="0e726f4c-7" name="star" color="#000" size="42" class="data-v-d72d03a8" bind:__l="__l"></u-icon><view class="text data-v-d72d03a8">收藏</view></block></block><block wx:else><block class="data-v-d72d03a8"><u-icon vue-id="0e726f4c-8" name="star-fill" color="#000" size="42" class="data-v-d72d03a8" bind:__l="__l"></u-icon><view class="text data-v-d72d03a8">已收藏</view></block></block></view></block><block wx:if="{{$root.g3}}"><block class="data-v-d72d03a8"><view data-event-opts="{{[['tap',[['changeIndex',['after']]]]]}}" class="btn data-v-d72d03a8" bindtap="__e">下一题</view></block></block><block wx:else><block class="data-v-d72d03a8"><view data-event-opts="{{[['tap',[['sendExam']]]]}}" class="btn data-v-d72d03a8" bindtap="__e">交卷</view></block></block></block></block><block wx:else><block class="data-v-d72d03a8"><scroll-view class="card_bg data-v-d72d03a8" scroll-y="{{true}}"><view class="card_top data-v-d72d03a8"><text class="ready data-v-d72d03a8"></text>已选<text class="not_ready data-v-d72d03a8"></text>未选</view><view class="card_main data-v-d72d03a8"><block wx:if="{{single}}"><block class="data-v-d72d03a8"><view class="title data-v-d72d03a8">单选题</view><block wx:for="{{questionList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="_id"><block wx:if="{{item.type==1}}"><view data-event-opts="{{[['tap',[['e5',['$event']]]]]}}" data-event-params="{{({item})}}" class="item_bg data-v-d72d03a8" bindtap="__e"><view class="{{['item','data-v-d72d03a8',(answercard[item._id].r!=0)?'selected':'']}}">{{''+item.no+''}}</view></view></block></block></block></block><block wx:if="{{more}}"><block class="data-v-d72d03a8"><view class="title data-v-d72d03a8">多选题</view><block wx:for="{{questionList}}" wx:for-item="item" wx:for-index="__i1__" wx:key="_id"><block wx:if="{{item.type==2}}"><view data-event-opts="{{[['tap',[['e6',['$event']]]]]}}" data-event-params="{{({item})}}" class="item_bg data-v-d72d03a8" bindtap="__e"><view class="{{['item','data-v-d72d03a8',(answercard[item._id].r!=0)?'selected':'']}}">{{''+item.no+''}}</view></view></block></block></block></block><block wx:if="{{judge}}"><block class="data-v-d72d03a8"><view class="title data-v-d72d03a8">判断题</view><block wx:for="{{questionList}}" wx:for-item="item" wx:for-index="__i2__" wx:key="_id"><block wx:if="{{item.type==3}}"><view data-event-opts="{{[['tap',[['e7',['$event']]]]]}}" data-event-params="{{({item})}}" class="item_bg data-v-d72d03a8" bindtap="__e"><view class="{{['item','data-v-d72d03a8',(answercard[item._id].r!=0)?'selected':'']}}">{{''+item.no+''}}</view></view></block></block></block></block></view></scroll-view><view data-event-opts="{{[['tap',[['sendExam']]]]}}" class="save_btn data-v-d72d03a8" bindtap="__e">交卷</view></block></block></view></view><u-modal vue-id="0e726f4c-9" show-title="{{false}}" content="{{content}}" show-cancel-button="{{true}}" value="{{modalShow}}" data-event-opts="{{[['^confirm',[['sendExamAnswer']]],['^input',[['__set_model',['','modalShow','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" class="data-v-d72d03a8" bind:__l="__l"></u-modal><u-toast vue-id="0e726f4c-10" data-ref="uToast" class="data-v-d72d03a8 vue-ref" bind:__l="__l"></u-toast></view>