tu_xing_tui_li.wxml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!--pages/tu_xing_tui_li/tu_xing_tui_li.wxml-->
  2. <view class='container'>
  3. <image src='../../image/block.png' class='block' style="padding-top:{{statusBar+10}}px" bindtap='blockCtl'></image>
  4. <view class='wrapper' style="margin-top:{{statusBar-10}}px">
  5. <view class="white" wx:if="{{isWhite}}"></view>
  6. <view class='li' wx:if='{{isTxtl}}'>
  7. <image src='../../image/txtl.png' class='guide-img'></image>
  8. <view class='guide-btn' bindtap='actionAnswer'>开始答题</view>
  9. </view>
  10. <!-- 图形推理 -->
  11. <view wx:if='{{!isTxtl}}'>
  12. <!-- 练习关 -->
  13. <view wx:if='{{level==0}}'>
  14. <view class='li' wx:for='{{allList[0]}}' wx:key='index'>
  15. <view class='li-red-title'>{{item.header}}</view>
  16. <view class='li-text' style="padding-top:10rpx;">{{item.title}}</view>
  17. <image src='{{item.imgTitle}}' class='li-image' style='width: 278rpx;height: 184rpx;'></image>
  18. <view class='li-all'>
  19. <view class='li-items' wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{0}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key<3}}'>
  20. <image src='{{val.img}}' class='li-items-img' style='width: 130rpx;height: 80rpx;'></image>
  21. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  22. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  23. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  24. </view>
  25. </view>
  26. <view class='li-all'>
  27. <view class='li-items'wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{0}}" data-mindex='{{index}}' data-sindex='{{key}}' wx:if='{{key>2}}' bindtap='selectItems'>
  28. <image src='{{val.img}}' class='li-items-img' style='width: 130rpx;height:80rpx;'></image>
  29. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  30. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  31. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  32. </view>
  33. </view>
  34. <view class='li-yes' wx:if='{{isAnswer}}'>
  35. <view wx:if='{{isYes}}'>回答正确</view>
  36. <view wx:if='{{!isYes}}'>回答错误</view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 第一关 -->
  41. <view wx:if='{{level==1}}'>
  42. <view class='li' wx:for='{{allList[1]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  43. <view class='li-red-title'>下面开始正式测试</view>
  44. <view class='li-text'>{{item.title}}</view>
  45. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?324:286}}rpx;height: {{item.id==0?199:213}}rpx;'></image>
  46. <view class='li-all'>
  47. <view class='li-items' wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{1}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key<3}}'>
  48. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?160:140}}rpx;height: {{item.id==1?100:90}}rpx;'></image>
  49. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  50. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  51. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  52. </view>
  53. </view>
  54. <view class='li-all'>
  55. <view class='li-items'wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{1}}" data-mindex='{{index}}' data-sindex='{{key}}' wx:if='{{key>2}}' bindtap='selectItems'>
  56. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?160:140}}rpx;height: {{item.id==0?100:90}}rpx;'></image>
  57. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  58. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  59. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  60. </view>
  61. </view>
  62. <view class='li-yes' wx:if='{{isAnswer}}'>
  63. <view wx:if='{{isYes}}'>回答正确</view>
  64. <view wx:if='{{!isYes}}'>回答错误</view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 第二关 -->
  69. <view wx:if='{{level==2}}'>
  70. <view class='li' wx:for='{{allList[2]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  71. <view class='li-text'>{{item.title}}</view>
  72. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?341:315}}rpx;height: {{item.id==0?222:210}}rpx;'></image>
  73. <view class='li-all'>
  74. <view class='li-items' wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{2}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key<4}}'>
  75. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?110:120}}rpx;height: {{item.id==0?76:100}}rpx;'></image>
  76. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  77. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  78. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  79. </view>
  80. </view>
  81. <view class='li-all'>
  82. <view class='li-items'wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{2}}" data-mindex='{{index}}' data-sindex='{{key}}' wx:if='{{key>3}}' bindtap='selectItems'>
  83. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?110:120}}rpx;height: {{item.id==0?76:100}}rpx;'></image>
  84. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  85. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  86. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  87. </view>
  88. </view>
  89. <view class='li-yes' wx:if='{{isAnswer}}'>
  90. <view wx:if='{{isYes}}'>回答正确</view>
  91. <view wx:if='{{!isYes}}'>回答错误</view>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 第三关 -->
  96. <view wx:if='{{level==3}}'>
  97. <view class='li' wx:for='{{allList[3]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  98. <view class='li-text'>{{item.title}}</view>
  99. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?313:345}}rpx;height: {{item.id==0?209:227}}rpx;'></image>
  100. <view class='li-all'>
  101. <view class='li-items' wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{3}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key<4}}'>
  102. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?120:130}}rpx;height: {{item.id==0?100:80}}rpx;'></image>
  103. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  104. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  105. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  106. </view>
  107. </view>
  108. <view class='li-all'>
  109. <view class='li-items'wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{3}}" data-mindex='{{index}}' data-sindex='{{key}}' wx:if='{{key>3}}' bindtap='selectItems'>
  110. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?120:130}}rpx;height: {{item.id==0?100:80}}rpx;'></image>
  111. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  112. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  113. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  114. </view>
  115. </view>
  116. <view class='li-yes' wx:if='{{isAnswer}}'>
  117. <view wx:if='{{isYes}}'>回答正确</view>
  118. <view wx:if='{{!isYes}}'>回答错误</view>
  119. </view>
  120. </view>
  121. </view>
  122. <!-- 第四关 -->
  123. <view wx:if='{{level==4}}'>
  124. <view class='li' wx:for='{{allList[4]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  125. <view class='li-text'>{{item.title}}</view>
  126. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?339:310}}rpx;height: {{item.id==0?217:210}}rpx;'></image>
  127. <view class='li-all'>
  128. <view class='li-items' wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{4}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key<4}}'>
  129. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?120:109}}rpx;height: {{item.id==0?100:80}}rpx;'></image>
  130. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  131. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  132. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  133. </view>
  134. </view>
  135. <view class='li-all'>
  136. <view class='li-items'wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{4}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key>3}}'>
  137. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?120:109}}rpx;height: {{item.id==0?100:80}}rpx;'></image>
  138. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  139. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  140. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  141. </view>
  142. </view>
  143. <view class='li-yes' wx:if='{{isAnswer}}'>
  144. <view wx:if='{{isYes}}'>回答正确</view>
  145. <view wx:if='{{!isYes}}'>回答错误</view>
  146. </view>
  147. </view>
  148. </view>
  149. <!-- 第五关 -->
  150. <view wx:if='{{level==5}}'>
  151. <view class='li' wx:for='{{allList[5]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  152. <view class='li-text'>{{item.title}}</view>
  153. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?326:333}}rpx;height: {{item.id==0?220:222}}rpx;'></image>
  154. <view class='li-all'>
  155. <view class='li-items' wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{5}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key<4}}'>
  156. <image src='{{val.img}}' class='li-items-img' style='width: 120rpx;height: 100rpx;'></image>
  157. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  158. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  159. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  160. </view>
  161. </view>
  162. <view class='li-all'>
  163. <view class='li-items'wx:for='{{item.answerList[isRandom]}}' wx:key='key' wx:for-item='val' wx:for-index='key' data-lindex="{{5}}" data-mindex='{{index}}' data-sindex='{{key}}' bindtap='selectItems' wx:if='{{key>3}}'>
  164. <image src='{{val.img}}' class='li-items-img' style='width: 120rpx;height: 100rpx;'></image>
  165. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  166. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  167. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  168. </view>
  169. </view>
  170. <view class='li-yes' wx:if='{{isAnswer}}'>
  171. <view wx:if='{{isYes}}'>回答正确</view>
  172. <view wx:if='{{!isYes}}'>回答错误</view>
  173. </view>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. </view>