quest-5.wxml
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<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>