live.wxml 1.3 KB

123456789101112131415161718192021222324
  1. <!--pages/live/live.wxml-->
  2. <view class="liveBg">
  3. <image wx:if="{{!isLive}}" class="image" src="../../assets/image/nolive.jpg" mode="aspectFill" />
  4. <video class="video" enable-play-gesture="{{true}}" enable-progress-gesture="{{false}}" play-btn-position="center" show-progress="{{false}}" src="{{liveData.liveUrl || liveData.backUrl}}" binderror="liveerr" bindplay="liveing" autoplay />
  5. </view>
  6. <view wx:if="{{!liveData.is_activityName}}">
  7. <mp-cell title="{{liveData.title}}"></mp-cell>
  8. <!-- <view class="tabs">
  9. <view wx:if="{{liveData.introduce}}" class="tab-item" data-type="简介" bind:tap="select">
  10. <view class="tab-item-text">简介
  11. <view class="{{'tab-item-line ' + (type === '简介' ? 'tab-item-act' : '')}}"></view>
  12. </view>
  13. </view>
  14. <view class="tab-item" data-type="评论" bind:tap="select">
  15. <view class="tab-item-text">评论
  16. <view class="{{'tab-item-line ' + (type === '评论' ? 'tab-item-act' : '')}}"></view>
  17. </view>
  18. </view>
  19. </view> -->
  20. <rich-text wx:if="{{type === '简介' && liveData.introduce}}" style="width:730rpx;margin: 10rpx auto;display:block" nodes="{{liveData.introduce}}" />
  21. <!-- <view wx:if="{{type === '评论' && liveData.introduce}}">
  22. <button type="primary" open-type="getUserInfo" bindgetuserinfo="getUser">获取用户信息</button>
  23. </view> -->
  24. </view>