question.wxml
3.6 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<view class="porogress">
<text>{{curent}}</text>
<text>/</text>
<text>{{clockData.Count}}</text>
</view>
<view class="nav">
剩余时间 {{hhh}}:{{mmm}}:{{sss}}
</view>
<!-- 文本 -->
<view class="essay" wx:if="{{list.title}}">
<text>{{list.title}}</text>
</view>
<view class="image" wx:if="{{list.images.length != 0}}">
<swiper indicator-dots autoplay interval="{{2000}}">
<block wx:for="{{list.images}}" wx:key="index">
<swiper-item bindtap="previewImage" data-img="{{item}}">
<view style="display: flex;justify-content: center;padding: 32rpx;">
<image src="{{item}}" mode="widthFix"></image>
</view>
</swiper-item>
</block>
</swiper>
</view>
<!-- 音频 -->
<block wx:if="{{list.audio_file}}">
<view class="audio" id="audio">
<view style="width:686rpx;margin:0 auto">
<!-- list.title wx:if="Reset"-->
<slider-audio wx:if="{{list.audio_file}}" id="audio" audio-src="{{list.audio_file}}" audioName="{{}}" show-progress="{{false}}"></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>
<text style="display: block;text-align: center;font-size: 24rpx;margin-top: 15rpx;">点击播放按钮播放动画片!</text>
</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 ||item.key_audio}}">
<view bindtap="bind_choose" data-index="{{index}}" data-answer="{{item.key}}" >
<view class="list bg1 {{nav==index?'bg2':''}}">
<view class="list_choose">{{item.key}}<text>{{item.key_text}}</text> </view>
<view>
<!-- <image src="/img/ic_suss@2x.png" wx:if="{{nav==index}}"></image> -->
<image catchtap="goAudio" data-index="{{index}}" data-audio="{{item.key_audio}}" src="{{item.image_select ? '/img/play.png': '/img/ic_voice40@2x.png'}}"
wx:if="{{item.key_audio}}"></image>
</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 {{nav==index?'cr_ye':''}}">
{{item.key}}
<!-- <image src="/img/ic_righ.png" wx:if="{{nav==index}}"></image> -->
</view>
<view class="appd-2 {{nav==index?'cr_ye':''}}">
<image src="{{item.key_image}}" mode="widthFix"></image>
</view>
</view>
</view>
<view class="btn_bar">
<view class="button" bindtap="previous" wx:if="{{curent != 1}}">
上一题
</view>
<view class="button" bindtap="nextClick">
{{curent==clockData.Count?'交卷':' 下一题'}}
</view>
</view>
<!-- 测评结束 -->
<view class="mask" bindtap="closeMask" wx:if="{{show}}">
<!-- <image src="/img/img_star@2x.png"></image> -->
</view>
<view class="denglu" wx:if="{{show}}">
<view>测评结束</view>
<view>当前得分<text>{{analysis.UserTextScore}}</text> </view>
<view>总分<text>{{analysis.CountScore}}</text> </view>
<view class="button" bindtap="gototram">查看解析</view>
</view>