kong_jian_xiang_xiang.wxml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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='{{isKjxx}}'>
  7. <image src='../../image/kjxx.png' class='guide-img'></image>
  8. <view class='guide-btn' bindtap='actionAnswer'>开始答题</view>
  9. </view>
  10. <!-- 空间想象 -->
  11. <view wx:if='{{!isKjxx}}'>
  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: 232rpx;height: 158rpx;'></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'>
  20. <image src='{{val.img}}' class='li-items-img' style='width: 100rpx;height: 100rpx;'></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-yes' wx:if='{{isAnswer}}'>
  27. <view wx:if='{{isYes}}'>回答正确</view>
  28. <view wx:if='{{!isYes}}'>回答错误</view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 第一关 -->
  33. <view wx:if='{{level==1}}'>
  34. <view class='li' wx:for='{{allList[1]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  35. <view class='li-red-title'>下面开始正式测试</view>
  36. <view class='li-text' style="padding-top:10rpx;">{{item.title}}</view>
  37. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?408:277}}rpx;height: {{item.id==0?155:259}}rpx;'></image>
  38. <view class='li-all'>
  39. <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'>
  40. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?100:132}}rpx;height: 100rpx;'></image>
  41. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  42. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  43. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  44. </view>
  45. </view>
  46. <view class='li-yes' wx:if='{{isAnswer}}'>
  47. <view wx:if='{{isYes}}'>回答正确</view>
  48. <view wx:if='{{!isYes}}'>回答错误</view>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 第二关 -->
  53. <view wx:if='{{level==2}}'>
  54. <view class='li' wx:for='{{allList[2]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  55. <view class='li-text'>{{item.title}}</view>
  56. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?345:292}}rpx;height: {{item.id==0?260:170}}rpx;'></image>
  57. <view class='li-all'>
  58. <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'>
  59. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?102:155}}rpx;height: {{item.id==0?108:164}}rpx;'></image>
  60. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  61. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  62. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  63. </view>
  64. </view>
  65. <view class='li-yes' wx:if='{{isAnswer}}'>
  66. <view wx:if='{{isYes}}'>回答正确</view>
  67. <view wx:if='{{!isYes}}'>回答错误</view>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 第三关 -->
  72. <view wx:if='{{level==3}}'>
  73. <view class='li' wx:for='{{allList[3]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  74. <view class='li-text'>{{item.title}}</view>
  75. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?524:220}}rpx;height: {{item.id==0?183:234}}rpx;'></image>
  76. <view class='li-all'>
  77. <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'>
  78. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?140:128}}rpx;height: {{item.id==0?160:170}}rpx;'></image>
  79. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  80. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  81. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  82. </view>
  83. </view>
  84. <view class='li-yes' wx:if='{{isAnswer}}'>
  85. <view wx:if='{{isYes}}'>回答正确</view>
  86. <view wx:if='{{!isYes}}'>回答错误</view>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 第四关 -->
  91. <view wx:if='{{level==4}}'>
  92. <view class='li' wx:for='{{allList[4]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  93. <view class='li-text'>{{item.title}}</view>
  94. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?299:345}}rpx;height: {{item.id==0?206:260}}rpx;'></image>
  95. <view class='li-all'>
  96. <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'>
  97. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?155:108}}rpx;height: {{item.id==0?164:130}}rpx;'></image>
  98. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  99. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  100. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  101. </view>
  102. </view>
  103. <view class='li-yes' wx:if='{{isAnswer}}'>
  104. <view wx:if='{{isYes}}'>回答正确</view>
  105. <view wx:if='{{!isYes}}'>回答错误</view>
  106. </view>
  107. </view>
  108. </view>
  109. <!-- 第五关 -->
  110. <view wx:if='{{level==5}}'>
  111. <view class='li' wx:for='{{allList[5]}}' wx:key='index' wx:if='{{item.id==isOne}}'>
  112. <view class='li-text'>{{item.title}}</view>
  113. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?479:386}}rpx;height: {{item.id==0?316:298}}rpx;'></image>
  114. <view class='li-all'>
  115. <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'>
  116. <view wx:if='{{item.id==0}}' class='li-items-select'>{{val.img}}</view>
  117. <image wx:if='{{item.id==1}}' src='{{val.img}}' class='li-items-img' style='width: 130rpx;height: 100rpx;'></image>
  118. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  119. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  120. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  121. </view>
  122. </view>
  123. <view class='li-yes' wx:if='{{isAnswer}}'>
  124. <view wx:if='{{isYes}}'>回答正确</view>
  125. <view wx:if='{{!isYes}}'>回答错误</view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>
  131. </view>