polyv.wxml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <view
  2. wx:if="{{ !isBanned }}"
  3. class="plv-mp-watch-page {{ iPhoneX ? 'plv-mp-watch-page__x' : '' }} {{ isPPTNormal ? 'plv-mp-watch-page__ppt' : ''}}"
  4. style="width: {{ windowSize.width }}px; height: {{ windowSize.height }}px"
  5. >
  6. <view class="plv-mp-watch-top {{ isSwitched ? 'plv-mp-watch_switch' : '' }}">
  7. <view class="plv-mp-watch__player" style="z-index: {{ !isSwitched || curMenuData.menuType === MENU_TYPE.DOC ? 1001 : -1 }}">
  8. <!-- 播放器 -->
  9. <player wx:if="{{ applyData.type !== 'stop' }}"
  10. class="plv-mp-watch-player"
  11. videoOption="{{ videoOption }}"
  12. vodSeek="{{ seekTime }}"
  13. skin="{{ watchThemeModel.pageSkin }}"
  14. danmuText="{{ danmuText }}"
  15. menuType="{{ curMenuData.menuType }}"
  16. isSwitched="{{ isSwitched }}"
  17. allowDanmu="{{ allowDanmu }}"
  18. skinAlwaysShow="{{ skinAlwaysShow }}"
  19. usePlayerSkin="{{ usePlayerSkin }}"
  20. bind:onLiveStatusChange="playerLiveStatusChange"
  21. bind:onLiveStorageProgress="playerLiveStorageProgress"
  22. bind:onVodProgress="playerVodProgress"
  23. bind:onVodEnd="playerVodEnd"
  24. bind:onError="playerError"
  25. bind:onLiveVodEnd="playerVodEnd"
  26. />
  27. <!-- 连麦 -->
  28. <concat wx:if="{{ chatInit && channelDetail.status === 'Y' }}"
  29. class="plv-mp-concat"
  30. channelDetail="{{ channelDetail }}"
  31. aspect="{{ aspect }}"
  32. applyData="{{ applyData }}"
  33. bindrefreshStatus="handleRefreshStatus"
  34. bindstop="handleStop"
  35. skin="{{ watchThemeModel.pageSkin }}"/>
  36. </view>
  37. <view class="plv-mp-watch__ppt {{pptInFullScreen ? 'ppt-full-screen' : ''}}"
  38. style="z-index:{{ curMenuData.menuType === MENU_TYPE.DOC || isSwitched ? 99 : -1 }}">
  39. <view style="display:{{curMenuData.menuType === MENU_TYPE.DOC || isSwitched ?'block':'none'}}" class="plv-ppt-content">
  40. <image bindtap="switchPlayPpt" mode="aspectFit"
  41. style="z-index: {{ !showSwitch || pptInFullScreen ? -1 : 101 }}"
  42. class="plv-mp-btn_switch" src="../../assets/images/change-position.png" />
  43. <ppt
  44. wx:if="{{ scene === 'ppt' }}"
  45. id="plvMpWatchPPT"
  46. chatData="{{channelDetail}}"
  47. videoId="{{videoId}}"
  48. vidCurrentTime="{{vodPlayerProgress}}"
  49. pptSize='{{pptSize}}'
  50. pptDelayTime='{{pptDelayTime}}'
  51. togglePaint='{{ togglePaint }}'
  52. skin="{{ watchThemeModel.pageSkin }}"
  53. bind:pptPageChange="handlePptPageChange"
  54. bindtap="handleClickPPT"
  55. requestUrl="{{requestUrl}}"
  56. ></ppt>
  57. <ppt-bar
  58. wx:if="{{ scene === 'ppt' }}"
  59. id="plvMpWatchPPTBar"
  60. bind:clickFullBtn="handleClickFullBtn"
  61. bind:clickPrevBtn="handleClickPrevBtn"
  62. bind:clickNextBtn="handleClickNextBtn"
  63. bind:clickBackPageBtn="handleClickBackPageBtn"
  64. showFullBtn="{{ !isSwitched }}"
  65. iPhoneX="{{iPhoneX}}"
  66. ></ppt-bar>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="plv-mp-watch-content">
  71. <view class="plv-mp-watch-content__inner plv-skin-{{ watchThemeModel.pageSkin }}">
  72. <view class="plv-mp-watch-middle {{ showConcatApply ? 'plv-mp-watch-middle__concat' : '' }}"
  73. style="z-index:{{ pptInFullScreen ? 88 : 99 }}">
  74. <menu-bar
  75. wx:if="{{ menuList.length }}"
  76. class="plv-mp-watch-menu"
  77. menuList="{{ menuList }}"
  78. skin="{{ watchThemeModel.pageSkin }}"
  79. activeIndex="{{ menuIndex }}"
  80. wrapWidth="{{ windowSize.width }}"
  81. hasNewQuiz="{{ hasNewQuiz }}"
  82. plvInsideUse="{{ plvInsideUse }}"
  83. bindchangeMenu="handleChangeMenu"></menu-bar>
  84. <view
  85. class="plv-mp-concat-apply {{ applyData.type === 'apply' ? '' : 'plv-mp-concat-apply-red'}}"
  86. bindtap="handleApply">
  87. <view class="plv-concat-apply__view">{{ applyData.txt }}</view>
  88. </view>
  89. </view>
  90. <view class="plv-mp-watch-content__menu">
  91. <block wx:if="{{ curMenuData.menuType === MENU_TYPE.CHAT }}">
  92. <chatroom
  93. class="plv-mp-watch-chatroom"
  94. showBulletin="{{ hasBulletin }}"
  95. skin="{{ watchThemeModel.pageSkin }}"
  96. channelDetail="{{ channelDetail }}"
  97. bind:onTapBulletin="handleShowBulletin"
  98. />
  99. </block>
  100. <block wx:if="{{ curMenuData.menuType === MENU_TYPE.QUIZ }}">
  101. <quiz skin="{{ watchThemeModel.pageSkin }}"/>
  102. </block>
  103. <block wx:if="{{ curMenuData.menuType === MENU_TYPE.QA && plvInsideUse }}">
  104. <new-ask liveType="{{ liveType }}" skin="{{ watchThemeModel.pageSkin }}" iPhoneX="{{ iPhoneX }}"/>
  105. </block>
  106. <block wx:if="{{ curMenuData.menuType === MENU_TYPE.DESC }}">
  107. <live-introduction
  108. skin="{{ watchThemeModel.pageSkin }}"
  109. liveType="{{ liveType }}"
  110. channelDetail="{{ channelDetail }}"/>
  111. </block>
  112. <block wx:if="{{ curMenuData.menuType === MENU_TYPE.TEXT }}">
  113. <menu-custom
  114. skin="{{ watchThemeModel.pageSkin }}"
  115. parseHtml="{{ curMenuData.content }}" />
  116. </block>
  117. <block wx:if="{{ curMenuData.menuType === MENU_TYPE.CHAPTER }}">
  118. <chapter
  119. bind:onTapChapter="handleChangeChapter"
  120. skin="{{ watchThemeModel.pageSkin }}"
  121. vodCurTime="{{ vodPlayerProgress }}"
  122. chapterList="{{ chapterList }}"
  123. />
  124. </block>
  125. <sign-in
  126. wx:if="false"
  127. bind:onSignShow="handleSignShow"
  128. />
  129. <!-- <block wx:if="{{ curMenuData.menuType === MENU_TYPE.PLAYBACK }}"> -->
  130. <play-back
  131. class="{{ curMenuData.menuType === MENU_TYPE.PLAYBACK ? '' : 'hide' }}"
  132. skin="{{ watchThemeModel.pageSkin }}"
  133. playbackList="{{ channelDetail.playbackList }}"
  134. nextVod="{{ nextVod }}"
  135. liveStatus="{{ channelDetail.status }}"
  136. bind:onTapPlayback="handlePlayback"
  137. />
  138. <!-- </block> -->
  139. </view>
  140. <!-- 聊天室连接超时提示 -->
  141. <view class="plv-mp-watch-chat-overtime" wx:if="{{ chatOvertime }}">
  142. <view class="plv-mp-watch-chat-overtime__title">
  143. <view>聊天室连接失败</view>
  144. <view>请尝试刷新解决</view>
  145. <view>如无法解决请联系管理员</view>
  146. </view>
  147. </view>
  148. <!-- 答题卡 -->
  149. <answer-card
  150. wx:if="{{hasAnswerCard}}"
  151. class="plv-mp-watch-answer-card {{ answerShow }}"
  152. style="z-index: {{ answerCardIndex }}"
  153. answerCardSize="{{ answerCardSize }}"
  154. bind:onAnswerCardShow="handleShowAnswerCard" />
  155. <!-- 公告 -->
  156. <bulletin wx:if="false" show="{{ isShowBulletin }}" bulletinStr="{{ bulletin }}" bind:onClose="handleHideBulletin" zIndex="{{ bulletinIndex }}" />
  157. <lottery zIndex="{{ lotteryIndex }}" wx:if="{{ plvInsideUse }}" bind:showPptPaint="showPptPaint" />
  158. <!-- 问卷 -->
  159. <question zIndex="{{ questionIndex }}" bind:showPptPaint="showPptPaint" />
  160. <!-- 问卷结果 -->
  161. <questionnaire-result zIndex="{{questionnaireResultZindex}}" bind:showPptPaint="showPptPaint"></questionnaire-result>
  162. </view>
  163. </view>
  164. </view>
  165. <view wx:else class="plv-mp-watch-page plv-mp-watch-page__banned"></view>