question.wxml
4.2 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
97
98
99
<view class="questop">
{{quesname}}
<view class="topnum">{{one}}/{{questionlist.length}}</view>
</view>
<view class="quesboxpage">
<view class="quesbox" wx:for="{{questionlist}}" wx:key="" wx:if="{{item.show==true}}">
<view class="quesname">{{index+1}}. {{item.title}} <text wx:if="{{item.red_title!=''}}" class="redtitle">{{item.red_title}}</text></view>
<view class="quesimg" wx:if="{{item.image!=''}}">
<image src="{{item.image}}" mode="aspectFit"></image>
</view>
<view class="supply" wx:if="{{item.supply!=''}}">
<text> {{item.supply}}</text>
</view>
<view class="quesboxlist">
<view class="quesboxitem {{sela==true?'quesactive':''}}" bindtap="selyuana" data-id="{{item.id}}" data-answer="A">
<view class="quesboxitemleft" >
<image src="/img/yesa.png" wx:if="{{sela==true}}"></image>
<image src="/img/noa.png" wx:else></image>
</view>
<view class="quesboxitemright {{sela==true?'nametive':''}}">{{item.selectA}}</view>
</view>
<view class="quesboxitem {{selb==true?'quesactive':''}}" bindtap="selyuanb" data-id="{{item.id}}" data-answer="B">
<view class="quesboxitemleft">
<image src="/img/yesb.png" wx:if="{{selb==true}}"></image>
<image src="/img/nob.png" wx:else></image>
</view>
<view class="quesboxitemright {{selb==true?'nametive':''}}">{{item.selectB}}</view>
</view>
<view class="quesboxitem {{selc==true?'quesactive':''}}" bindtap="selyuanc" data-id="{{item.id}}" data-answer="C">
<view class="quesboxitemleft">
<image src="/img/yesc.png" wx:if="{{selc==true}}"></image>
<image src="/img/noc.png" wx:else></image>
</view>
<view class="quesboxitemright {{selc==true?'nametive':''}}">{{item.selectC}}</view>
</view>
<view class="quesboxitem {{seld==true?'quesactive':''}}" bindtap="selyuand" data-id="{{item.id}}" data-answer="D">
<view class="quesboxitemleft">
<image src="/img/yesd.png" wx:if="{{seld==true}}"></image>
<image src="/img/nod.png" wx:else></image>
</view>
<view class="quesboxitemright {{seld==true?'nametive':''}}">{{item.selectD}}</view>
</view>
</view>
<view class="quesfoot">
<view class="quesfootleft lef {{kxuan==1?'kactive':''}} " bindtap="shang" data-index="{{index}}" data-id="{{item.id}}">上一题</view>
<view class="quesfootleft {{kxuan==2?'kactive':''}}" bindtap="next" data-index="{{index}}" data-id="{{item.id}}">下一题</view>
</view>
</view>
</view>
<!-- <view class="quesboxpage" wx:if="{{one==2}}">
<view class="quesbox">
<view class="quesname">2. 经常出现不小心打翻、打烂东西、爬楼梯、走路不小心摔跤现象</view>
<view class="quesboxlist">
<view class="quesboxitem {{sela==true?'quesactive':''}}" bindtap="selyuana" data-id="1">
<view class="quesboxitemleft">
<image src="/img/yesa.png" wx:if="{{sela==true}}"></image>
<image src="/img/noa.png" wx:else></image>
</view>
<view class="quesboxitemright {{sela==true?'nametive':''}}">从不</view>
</view>
<view class="quesboxitem {{selb==true?'quesactive':''}}" bindtap="selyuanb" data-id="2">
<view class="quesboxitemleft">
<image src="/img/yesb.png" wx:if="{{selb==true}}"></image>
<image src="/img/nob.png" wx:else></image>
</view>
<view class="quesboxitemright {{selb==true?'nametive':''}}">偶尔</view>
</view>
<view class="quesboxitem {{selc==true?'quesactive':''}}" bindtap="selyuanc" data-id="3">
<view class="quesboxitemleft">
<image src="/img/yesc.png" wx:if="{{selc==true}}"></image>
<image src="/img/noc.png" wx:else></image>
</view>
<view class="quesboxitemright {{selc==true?'nametive':''}}">经常</view>
</view>
<view class="quesboxitem {{seld==true?'quesactive':''}}" bindtap="selyuand" data-id="4">
<view class="quesboxitemleft">
<image src="/img/yesd.png" wx:if="{{seld==true}}"></image>
<image src="/img/nod.png" wx:else></image>
</view>
<view class="quesboxitemright {{seld==true?'nametive':''}}">总是</view>
</view>
</view>
</view>
</view> -->