classroom_assessment.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!--pages/classroom_assessment/classroom_assessment.wxml-->
  2. <view class='container'>
  3. <view class='wrapper'>
  4. <view class='li' wx:if='{{!isClass}}'>
  5. <view class='li-star'>
  6. <block>
  7. <view class='li-star-list'>
  8. <block wx:for="{{5}}" wx:key='{{index}}'>
  9. <image class="star-image" style="left:{{item*25}}rpx" src="{{lever>item?selectedSrc:normalSrc}}">
  10. <!-- <view class="item" style="left:0rpx" data-key="{{item+0.5}}" bindtap="selectLeft"></view> -->
  11. <view class="item" data-key="{{item+1}}" bindtap="selectRight"></view>
  12. </image>
  13. </block>
  14. </view>
  15. <view class='tag'>
  16. <button class="tag-btn {{item.status=='active'||item.active==1?'tag-btn-active':''}}" disabled='{{item.active==1}}' wx:for='{{tagList[0]}}' wx:key='index' data-index='{{index}}' bindtap='clickTag'>{{item.labelName}}</button>
  17. </view>
  18. </block>
  19. </view>
  20. <view class='li-btn' bindtap='submitAssessment'>提交</view>
  21. </view>
  22. <view class='li' wx:if='{{isClass}}'>
  23. <view class='li-star'>
  24. <block>
  25. <view class='li-star-list'>
  26. <block wx:for="{{5}}" wx:key='{{index}}'>
  27. <image class="star-image" style="left:{{item*25}}rpx" src="{{lever>item?selectedSrc:normalSrc}}">
  28. <!-- <view class="item" style="left:0rpx" data-key="{{item+0.5}}" bindtap="selectLeft"></view> -->
  29. <view class="item" data-key="{{item+1}}" bindtap="{{isJudge ==0?'selectRight':''}}"></view>
  30. </image>
  31. </block>
  32. </view>
  33. <view class='tag'>
  34. <button class="tag-btn {{item.status=='active'||item.active==1?'tag-btn-active':''}}" disabled='{{item.active==1}}' wx:for='{{tagList[0]}}' wx:key='index' data-index='{{index}}' bindtap="clickTag" wx:if='{{isJudge ==0}}'>{{item.labelName}}</button>
  35. <button class="tag-btn {{item.active==1?'tag-btn-active':''}}" disabled='{{item.active==1}}' wx:for='{{tagList[0].label}}' wx:key='index' data-index='{{index}}' bindtap="{{isJudge ==0?'clickTag':''}}" wx:if='{{isJudge ==1}}'>{{item.labelName}}</button>
  36. </view>
  37. </block>
  38. </view>
  39. <view class='li-btn' bindtap='checkTeacher' wx:if='{{isJudge ==0}}'>提交</view>
  40. </view>
  41. </view>
  42. </view>