xin_li_xuan_zhuan.wxml 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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='{{isXlxz}}'>
  7. <image src='../../image/xlxz.png' class='guide-img'></image>
  8. <view class='guide-btn' bindtap='actionAnswer'>开始答题</view>
  9. </view>
  10. <!-- 心理旋转 -->
  11. <view wx:if='{{!isXlxz}}'>
  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: 89rpx;height: 102rpx;'></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: 110rpx;height: 110rpx;'></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'>{{item.title}}</view>
  37. <image src='{{item.imgTitle}}' class='li-image' style='width: {{item.id==0?93:175}}rpx;height: {{item.id==0?105:156}}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: 110rpx;height: 110rpx;'></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?210:165}}rpx;height: {{item.id==0?210:175}}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: 130rpx;height: 130rpx;'></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?260:258}}rpx;height: {{item.id==0?249:187}}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?133:122}}rpx;height: {{item.id==0?133:135}}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?203:175}}rpx;height: {{item.id==0?242:156}}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: {{val.id==0?123:124}}rpx;height: {{item.id==0?145:138}}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?235:181}}rpx;height: {{item.id==0?224:196}}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. <image src='{{val.img}}' class='li-items-img' style='width: {{item.id==0?122:140}}rpx;height: {{item.id==0?122:140}}rpx;'></image>
  117. <view class='li-items-text' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  118. <image wx:if='{{!isYes&&val.status=="active"}}' src='../../image/no.png' class='li-items-text'></image>
  119. <image wx:if='{{isYes&&val.status=="active"}}' src='../../image/yes.png' class='li-items-text'></image>
  120. </view>
  121. </view>
  122. <view class='li-yes' wx:if='{{isAnswer}}'>
  123. <view wx:if='{{isYes}}'>回答正确</view>
  124. <view wx:if='{{!isYes}}'>回答错误</view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </view>