index.wxml 946 B

1234567891011121314151617181920
  1. <!--pages/index/index.wxml-->
  2. <scroll-view scroll-y='true' style="height:100vh">
  3. <view class="container">
  4. <view class="action-container">
  5. <view class="btn-container" bindtap="scan" style="opacity: {{enableScan ? 1.0 : 0.3}}">
  6. <view class="action-btn">
  7. <image mode="aspectFit" src='/assets/scan.png' style='width:32px;height:32px;'></image>
  8. </view>
  9. <view class="action-label">请扫描题目二维码</view>
  10. </view>
  11. </view>
  12. <block wx:if="{{paper != null && paper.courseId > 0}}">
  13. <text class="question-title">{{paper.courseName}}</text>
  14. <text class="question-info">{{subTitle}}</text>
  15. </block>
  16. <AudioPanel id='audio' bind:enableScan="onScanEnable" paper="{{paper}}" wx:if="{{questionType == 'AUDIO'}}"></AudioPanel>
  17. <PicturePanel id='pic' paper="{{paper}}" cancelAll="{{isTokenInValid}}" wx:if="{{questionType == 'PIC'}}"></PicturePanel>
  18. </view>
  19. </scroll-view>