index.wxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <view class='picker'>
  2. <view class='selector'>
  3. <text class='font12 white'>| 参加的宝贝:</text>
  4. <picker class='select' bindchange="bindChildChange" disabled="{{childs.length <= 0}}" value="{{indexs.child}}" range-key="name" range="{{childs}}">
  5. <text wx:if="{{childs.length > 0}}">{{childs[indexs.child].name}}</text>
  6. <text wx:else>还没有参加的儿童</text>
  7. </picker>
  8. </view>
  9. <view class='selector'>
  10. <text class='font12 white'>| 营前课活动:</text>
  11. <picker class='select' bindchange="bindActivityChange" disabled="{{actives.length <= 0}}" value="{{indexs.activity}}" range="{{actives}}">
  12. <text wx:if="{{actives.length > 0}}">{{actives[indexs.activity]}}</text>
  13. <text wx:else>还没有营前课的活动</text>
  14. </picker>
  15. </view>
  16. </view>
  17. <block wx:if="{{info}}">
  18. <view class='content-box content-pad user-info relative'>
  19. <image class='course_seal' src='https://img.bbztx.com/image_test/upload/thumbs/20221031/logo/1667196445914092714.png'></image>
  20. <view class='head relative' bindtap='updateHead'>
  21. <view class='head-bg' wx:if="{{!info.avatar}}">点击上传头像</view>
  22. <image src='{{info.avatar ? info.avatar : "/images/default_logo.jpg"}}'></image>
  23. </view>
  24. <view class='user-i-box'>
  25. {{info.name}} <text class='solt' wx:if="{{info.show == 1 && info.number > 0}}">{{info.number}}组</text>
  26. <view class='ui-c-box mTop10'>
  27. <view class='ui-c-item line'>
  28. <view class='gray font12'>个人积分\n</view>
  29. <navigator url='/pages/account/course/integral?name={{info.name}}&integral={{info.personalScore || 0}}&campId={{info.id}}&playerId={{info.playerId}}' class='mTop5' hover-class='none'>
  30. <text class='font25 subtitleColor'>{{info.personalScore || 0}}</text>
  31. <text class='icon-arrow'></text>
  32. </navigator>
  33. </view>
  34. <view class='ui-c-item'>
  35. <block wx:if="{{info.show == 1}}">
  36. <view class='gray font12'>小组人均积分\n</view>
  37. <view class='font25 subtitleColor mTop5'>{{info.teamScore}}</view>
  38. </block>
  39. <block wx:else>
  40. <view class='gray font12'>超越\n</view>
  41. <view class='font25 subtitleColor mTop5'>{{info.rankRate}}<text class='subtitleColor font12'>%</text><text class='gray font12'>的伙伴</text></view>
  42. </block>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class='content-box content-pad ui-course-box' wx:if="{{info.show == 1 && info.players.length > 0}}">
  48. <view class='title'>
  49. <text class='icon-member'></text>小组成员
  50. </view>
  51. <view class='ui-course-content ui-players'>
  52. <view class='ui-head' wx:for="{{info.players}}" wx:key="*this">
  53. <image src='{{item.avatar ? item.avatar : "/images/default_logo.jpg"}}'></image>
  54. <text>{{item.name}}</text>
  55. <text>{{item.score}}</text>
  56. </view>
  57. </view>
  58. </view>
  59. <view class='content-box content-pad ui-course-box'>
  60. <view class='title'>
  61. <text class='icon-ranking'></text>{{info.show == 1 ? '小组人均积分':'积分'}}排名
  62. </view>
  63. <view class='ui-course-content ec-canvas'>
  64. <ec-canvas id="mychart" canvas-id="mychart-line" ec="{{ ec }}"></ec-canvas>
  65. </view>
  66. </view>
  67. </block>
  68. <view class='ui-course-study' wx:if="{{list.length > 0}}">
  69. <view class='content-pad ui-course-box'>
  70. <view class='title'>
  71. <text class='icon-study'></text>营前学习
  72. </view>
  73. </view>
  74. <block wx:for="{{list}}" wx:key="*this">
  75. <view class='content-box content-pad ui-course-box course-camp'>
  76. <view class='course-camp-title'>
  77. <text class='solt'>{{item.timeInterval}}</text>{{item.title}}
  78. </view>
  79. <view class='font12 step'>
  80. <text class='subtitleColor'>|第一步|</text>学习视频
  81. </view>
  82. <view class='ui-c-box video mTop10'>
  83. <block wx:for="{{item.videoArr}}" wx:for-item="video" wx:key="*this" wx:for-index="idx">
  84. <view class='ui-c-item'>
  85. <video class='course-camp-video' bindfullscreenchange="fullscreen" wx:if='{{index == indexs.videoParent && idx == indexs.video}}' id='video_{{index}}_{{idx}}' src='{{item.videoM3u8Arr[idx]}}' bindended="playEnd"></video>
  86. <view bindtap='videoPlay' class='course-camp-video relative' wx:else data-parentindex='{{index}}' data-index='{{idx}}'>
  87. <text class='icon-video-play'></text>
  88. <view class='course-camp-video bg'></view>
  89. <image class='course-camp-video' src='{{video}}?x-oss-process=video/snapshot,t_7000,f_jpg,w_105,h_70,m_fast'></image>
  90. </view>
  91. </view>
  92. </block>
  93. </view>
  94. <view class='font12 step mTop20'>
  95. <text class='subtitleColor'>|第二步|</text>趣味挑战
  96. </view>
  97. <view class='mTop10 buttons-row buttons-gutter'>
  98. <button data-url="/pages/account/course/module/answer?playerId={{info.playerId}}&courseId={{item.id}}&rank={{item.choiceQuestionRank}}" bindtap='navigatorUrl' class='button button-radius button-subtitle button-mini{{item.choiceQuestionStatus == 1 ? " button-border":""}}' wx:if="{{item.choiceQuestionNum > 0}}">
  99. 选择题 <text class='icon-camp-ok' wx:if="{{item.choiceQuestionStatus == 1}}"></text>
  100. </button>
  101. <button data-url="/pages/account/course/module/video?playerId={{info.playerId}}&courseId={{item.id}}" bindtap='navigatorUrl' class='button button-radius button-subtitle button-mini{{item.videoSampleStatus == 1 ? " button-border":""}}' wx:if="{{item.videoSampleNum > 0}}">
  102. 小任务 <text class='icon-camp-ok' wx:if="{{item.videoSampleStatus == 1}}"></text>
  103. </button>
  104. <button data-url="/pages/account/course/read/list?courseId={{item.id}}&playerId={{info.playerId}}" bindtap='navigatorUrl' class='button button-radius button-subtitle button-mini{{item.furterReadingStatus == 1 ? " button-border":""}}' wx:if="{{item.futherReadingNum > 0}}">
  105. 扩展阅读 <text class='icon-camp-ok' wx:if="{{item.furterReadingStatus == 1}}"></text>
  106. </button>
  107. </view>
  108. </view>
  109. </block>
  110. </view>
  111. <view class='content-box content-pad' style='height: calc((100% - 235rpx*1) / 1);' hidden='{{noData}}'>
  112. <view class='noData' style='margin-top:260rpx;'>
  113. <text class="icon icon-info"></text><text>~暂无营前课信息~</text>
  114. </view>
  115. </view>