course-action-bar.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <wxs src="course-action-bar.wxs" module="planAction"/>
  2. <view wx:if="{{isPre == logicStatusEnum.NO}}">
  3. <view class="fast" wx:if="{{!showBottom}}">
  4. <view class='space mr10'
  5. wx:if="{{planAction.isShowCheck(item, obj.isOnline)}}"
  6. >
  7. <van-button color="#FF4330" plain round size="mini" custom-class="btn" catch:tap="check">
  8. {{planAction.convertCheck(item.signStatus)}}
  9. </van-button>
  10. </view>
  11. <view class='space mr10' wx:if="{{planAction.isShowQuestion(item)}}">
  12. <van-button color="#8FC31F" plain round size="mini" custom-class="btn" catch:tap="question">
  13. {{planAction.convertQuestion(item.questionDone)}}
  14. </van-button>
  15. </view>
  16. <view class='space' wx:if="{{planAction.isShowExam(item)}}">
  17. <van-button color="#009CED" plain round size="mini" custom-class="btn" catch:tap="exam">
  18. {{planAction.convertExam(item.examDone)}}
  19. </van-button>
  20. </view>
  21. </view>
  22. <view class="bottom" wx:else>
  23. <view class="course-action">
  24. <view class="left mr40"
  25. wx:if="{{planAction.isShowCheck(item, obj.isOnline)}}"
  26. bind:tap="check"
  27. >
  28. <van-image width="35rpx" height="35rpx" fit="cover" src="/images/ic_course_check.png"/>
  29. {{planAction.convertCheck(item.signStatus)}}
  30. </view>
  31. <view class="left"
  32. wx:if="{{planAction.isShowLive(item,type)}}"
  33. bind:tap="live"
  34. >
  35. <van-image width="35rpx" height="35rpx" fit="cover" src="/images/ic_plan_live.png"/>
  36. {{planAction.convertLive(item.liveStatus, true)}}
  37. </view>
  38. <view class="space"></view>
  39. <edu-txt src="/images/ic_take_exam.png" text="{{planAction.convertQuestion(item.questionDone)}}"
  40. bind:tap="question"
  41. wx:if="{{planAction.isShowQuestion(item)}}"/>
  42. <edu-button button-style="btn2" size="small" title="{{planAction.convertExam(item.examDone)}}"
  43. bind:click="exam" wx:if="{{planAction.isShowExam(item)}}"/>
  44. </view>
  45. <edu-safe-area/>
  46. </view>
  47. </view>