quest-5.wxml 3.3 KB
<view class="top">
    <text>错题</text>
    <view class="top-1">
        <view class="top-2 {{current==index?'cb':''}}" wx:for="{{data.List}}" wx:key='key'>
            <view class="" bindtap="gochoose" data-index="{{index}}">{{item.evaluation_subject_id}}</view>
        </view>
    </view>
</view>

<!--  -->
<!-- 音频 -->
<block wx:if="{{list.audio_file}}">
    <view class="audio" id="audio">
        <view style="width:686rpx;margin:0 auto">
            <slider-audio id="audio" audio-src="{{list.audio_file}}" audioName="{{list.title}}"></slider-audio>
        </view>
    </view>
    <view class="audio_play" bindtap="PlayState">
        <image class="audio_img" src="../../img/ic_voice56@2x.png"></image>
    </view>
</block>
<!-- 视屏 -->
<view class="vide" wx:if="{{list.video_file}}">
    <video src="{{list.video_file}}" show-center-play-btn="{{true}}"></video>
</view>
<!-- 单词 -->
<!-- <view class="title">question</view>
<view class="icon">
    <image src="/img/ic_voice56@2x.png" bindtap="goAudio"></image>
</view> -->
<!-- 答案 -->
<view wx:for="{{list.option}}" wx:key='key' wx:if="{{item.key_text&&list.video_file ||item.key_audio}}">
    <view bindtap="bind_choose" data-index="{{index}}" data-answer="{{item.key}}">
        <view class="list_box bg1 {{item.key==list.UserChoose?'cr':''}} {{item.daan==1?'cy':''}}" >
            <view class="flex_between" style="padding:16rpx 32rpx">
                <view class="list_choose">{{item.key}}<text>{{item.key_text}}</text>
                </view>
                <view>
                    <image src="/img/ic_erro@2x.png" wx:if="{{item.key==list.UserChoose}}"></image>
                    <image src="/img/ic_suss@2x.png" wx:if="{{item.daan==1}}"></image>
                    <!-- <image src="/img/ic_voice40@2x.png" bindtap="goAudio" data-audio="{{item.key_audio}}"
                        wx:if="{{item.key_audio}}"></image> -->
                </view>
            </view>
            <view class="appd-3">
                <block wx:if="{{item.analysis_audio}}">
                    解析
                    <image src="/img/ic_voice40@2x.png" bindtap="goAudio" data-audio="{{item.analysis_audio}}"></image>
                </block>
                <block wx:else>
                    {{item.analysis_text}}
                </block>
            </view>

        </view>

    </view>
</view>
<!-- 图片题 -->
<view class="appd">
    <view class="appd-0" wx:for="{{list.option}}" wx:key='key' bindtap="bind_choose" data-index="{{index}}"
        data-answer="{{item.key}}" wx:if="{{item.key_image}}">
        <view class="appd-1 {{item.daan==1?'cr_ye':''}}  {{item.key==list.UserChoose?'cr':''}}">
            {{item.key}}
            <image src="/img/ic_righ.png" wx:if="{{item.daan==1}}"></image>
            <image src="/img/ic_erro@2x.png" wx:if="{{item.key==list.UserChoose}}"></image>
        </view>
        <view class="appd-2 {{item.daan==1?'cr_ye':''}}  {{item.key==list.UserChoose?'cr_b':''}}">
            <image src="{{item.key_image}}"></image>
        </view>
        <view class="appd-3">
            <block wx:if="{{item.analysis_audio}}">
                解析
                <image src="/img/ic_voice40@2x.png" bindtap="goAudio" data-audio="{{item.analysis_audio}}"></image>
            </block>
            <block wx:else>
                {{item.analysis_text}}
            </block>
        </view>

    </view>
</view>