zhi_xing_gong_neng.wxml 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!--pages/zhi_xing_gong_neng/zhi_xing_gong_neng.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='{{isZxgn}}'>
  7. <image src='../../image/zxgn.png' class='guide-img'></image>
  8. <view class='guide-btn' bindtap='actionAnswer' style="bottom:3%;">开始答题</view>
  9. </view>
  10. <!-- 执行功能 -->
  11. <view wx:if='{{!isZxgn}}'>
  12. <!-- 练习关-->
  13. <view class='li' wx:if='{{level==0&&index==0}}' wx:for='{{exerciseList}}' wx:key='index'>
  14. <view class='li-text'>
  15. <view class='li-red-title'>正式测试前先练习一下吧:</view>
  16. </view>
  17. <view class='li-num'>
  18. <view wx:for='{{item.answerList}}' wx:for-item='val' wx:for-index='key' wx:key='key' wx:if='{{key==0}}' data-lindex="{{0}}" data-mindex='{{key}}' bindtap='exerciseSelectItems'>
  19. <view class='li-num-small'>6</view>
  20. <view class='li-num-btn' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  21. <image wx:if='{{val.status=="active"&&!isYes}}' src='../../image/no.png' class='li-items-text'></image>
  22. <image wx:if='{{val.status=="active"&&isYes}}' src='../../image/yes.png' class='li-items-text'></image>
  23. </view>
  24. <view wx:for='{{item.answerList}}' wx:for-item='val' wx:for-index='key' wx:key='key' wx:if='{{key==1}}' data-lindex="{{0}}" data-mindex='{{key}}' bindtap='exerciseSelectItems'>
  25. <view class='li-num-small'>9</view>
  26. <view class='li-num-btn' wx:if='{{val.status!="active"}}' >{{val.text}}</view>
  27. <image wx:if='{{val.status=="active"&&!isYes}}' src='../../image/no.png' class='li-items-text'></image>
  28. <image wx:if='{{val.status=="active"&&isYes}}' src='../../image/yes.png' class='li-items-text'></image>
  29. </view>
  30. </view>
  31. <view class='li-yes' wx:if='{{isAnswer}}'>
  32. <view wx:if='{{isYes}}'>回答正确</view>
  33. <view wx:if='{{!isYes}}'>回答错误</view>
  34. </view>
  35. </view>
  36. <!-- 第一道 -->
  37. <view class='li' wx:if='{{level==1&&isWay==item.idx}}' wx:for='{{oneList}}' wx:key='index'>
  38. <view class='li-text'>
  39. <text class='li-text-big'></text>
  40. <view class='li-red-title' wx:if='{{item.idx==0}}'>下面开始正式测试</view>
  41. <view>
  42. <text>{{item.idx+1}}</text>
  43. <text style='color:#999999;font-size:30rpx;'>/10</text>
  44. </view>
  45. </view>
  46. <view class='li-num'>
  47. <view wx:for='{{item.answerList}}' wx:for-item='val' wx:for-index='key' wx:key='key' wx:if='{{key==0}}' data-lindex="{{index}}" data-mindex='{{key}}' bindtap='selectItems'>
  48. <view class='li-num-small' wx:if='{{isWay==index&&index!=1&&index!=4&&index!=2&&index!=7&&index!=9}}'>{{val.num}}</view>
  49. <view class='li-num-small' wx:if='{{index==1}}'>{{smallList[val.num]}}</view>
  50. <view class='li-num-small' wx:if='{{index==2}}'>{{randomList[val.num]}}</view>
  51. <view class='li-num-small' wx:if='{{index==4}}'>{{bigList[val.num]}}</view>
  52. <view class='li-num-small' wx:if='{{index==7}}'>{{randomList[val.num]}}</view>
  53. <view class='li-num-small' wx:if='{{index==9}}'>{{bigList[val.num]}}</view>
  54. <view class='li-num-btn' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  55. <image wx:if='{{val.status=="active"&&!isYes}}' src='../../image/no.png' class='li-items-text'></image>
  56. <image wx:if='{{val.status=="active"&&isYes}}' src='../../image/yes.png' class='li-items-text'></image>
  57. </view>
  58. <view wx:for='{{item.answerList}}' wx:for-item='val' wx:for-index='key' wx:key='key' wx:if='{{key==1}}' data-lindex="{{index}}" data-mindex='{{key}}' bindtap='selectItems'>
  59. <view class='li-num-small' wx:if='{{isWay==index&&index!=1&&index!=4&&index!=9}}'>{{val.num}}</view>
  60. <view class='li-num-small' wx:if='{{index==1}}'>{{bigList[val.num]}}</view>
  61. <view class='li-num-small' wx:if='{{index==4}}'>{{smallList[val.num]}}</view>
  62. <view class='li-num-small' wx:if='{{index==9}}'>{{smallList[val.num]}}</view>
  63. <view class='li-num-btn' wx:if='{{val.status!="active"}}'>{{val.text}}</view>
  64. <image wx:if='{{val.status=="active"&&!isYes}}' src='../../image/no.png' class='li-items-text'></image>
  65. <image wx:if='{{val.status=="active"&&isYes}}' src='../../image/yes.png' class='li-items-text'></image>
  66. </view>
  67. </view>
  68. <view class='li-yes' wx:if='{{isAnswer}}'>
  69. <view wx:if='{{isYes}}'>回答正确</view>
  70. <view wx:if='{{!isYes}}'>回答错误</view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>