workDetail.wxml 1.0 KB

1234567891011121314151617181920212223
  1. <view class="work-detail">
  2. <!-- 是否批改 -->
  3. <view class="work-header">
  4. <text>{{className}}-{{studentName}}</text>
  5. <text>{{module.getTime(workData.createTime)}}</text>
  6. <text>{{workData.homeworkName}}</text>
  7. </view>
  8. <view class="work-body" bindtap="onClickShow">
  9. <van-image width="100%" height="100%" src="{{workData.homeworkPath}}" />
  10. </view>
  11. <van-overlay show="{{ show }}" bind:click="onClickHide">
  12. <view class="over">
  13. <canvas type="2d" id="myCanvas" catchtap style="height: {{optionsSize.height}}px;width:{{optionsSize.width}}px" bindtouchstart="touchStart" bindtouchmove="touchMove" />
  14. <view class="btn-attr">
  15. <van-button type="info" catchtap="saveCanvasImage">上传批改</van-button>
  16. <van-button catchtap="onClickHide">关闭批改</van-button>
  17. </view>
  18. </view>
  19. </van-overlay>
  20. </view>
  21. <van-toast id="van-toast" />
  22. <van-notify id="van-notify" />
  23. <wxs src="../../../utils/getTime.wxs" module="module" />