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