index.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <wxs module="util" src="../../../wxs/util-fun.wxs"></wxs>
  2. <view>
  3. <view>
  4. <video id="myVideo" src="{{item.url}}" autoplay initial-time="{{item.position}}" show-fullscreen-btn
  5. bindtimeupdate="timeUpdate" show-play-btn="false" show-screen-lock-button="true" object-fit="cover"
  6. wx:if="{{onPlay}}"></video>
  7. <image src="{{info.tb}}" mode="widthFix" style="width:100%;" wx:else />
  8. </view>
  9. <!-- <view class="tc p20 fs30">
  10. <text>学时: {{info.getXs/10}}/{{info.totalXs/10}}</text>
  11. <text style="margin-left:10rpx">最高分: {{info.score}}</text>
  12. </view> -->
  13. <view class="cate-section">
  14. <view class="cate-item">
  15. <i-avatar size="40" color="#e96900a0"> {{info.getXs/10}} </i-avatar>
  16. <text class="pt20">获得学时</text>
  17. </view>
  18. <view class="cate-item">
  19. <i-avatar size="40" color="#e96900a0"> {{info.totalXs/10}} </i-avatar>
  20. <text class="pt20">总学时</text>
  21. </view>
  22. <view class="cate-item">
  23. <i-avatar size="40" color="#e96900a0"> {{info.score}} </i-avatar>
  24. <text class="pt20">最高分</text>
  25. </view>
  26. <view class="cate-item" bindtap="gotoExam">
  27. <i-avatar size="40" color="#e96900a0"> {{info.score>60?'是':'否'}} </i-avatar>
  28. <text class="pt20">进入考试</text>
  29. </view>
  30. </view>
  31. <view wx:for="{{mediaList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="mt20">
  32. <i-card title="{{item.name}}" bindtap="playMedia" data-index="{{index}}">
  33. <view slot="content">视频学时: {{item.xs/10}}</view>
  34. <view slot="footer">
  35. 学习进度:{{util.getPercent(item) }}%
  36. </view>
  37. </i-card>
  38. </view>
  39. <modal title="iOS端暂不支持虚拟支付业务" confirm-text="保存图片" hidden="{{!buyModel}}" no-cancel="true" bindconfirm="modalConfirm">
  40. <image src="{{info.code_url}}" mode="widthFix" style="width:100%"></image>
  41. <view style="color:red;text-align:center;">
  42. <text> IOS端暂不支持虚拟支付业务</text>
  43. </view>
  44. </modal>
  45. </view>