index.wxml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <My_NavTabs tabsList="{{tabsList}}" tabsIndex="{{tabsIndex}}" bindsetIndex="setIndex" />
  2. <view hidden="{{tabsIndex==2}}">
  3. <!-- 直播账号信息 -->
  4. <My_liveAccountMsg title='直播账号信息'>
  5. <view slot='but' wx:if="{{accountStatus==1}}" class="msgBox-but">
  6. <van-button custom-class="custom-class-msgBox-but" catchtap="showMyModel">我要开播</van-button>
  7. </view>
  8. <view slot='con'>
  9. <view wx:if="{{accountStatus==1}}" class="live-msg">
  10. <view class="live-msg-row">
  11. <view class="row-title">直播账号</view>
  12. <view class="row-content u-line-1">{{accountMsg.channelid}}</view>
  13. </view>
  14. <view class="live-msg-row">
  15. <view class="row-title">账号密码</view>
  16. <view class="row-content u-line-1">{{accountMsg.channelpasswd}}</view>
  17. </view>
  18. <view class="live-msg-row">
  19. <view class="row-title">web端开播地址</view>
  20. <view class="row-content u-line-1">{{accountMsg.fliveurl_web}}</view>
  21. <view class="row-title copy" data-url='{{accountMsg.fliveurl_web}}' catchtap="copyTheAddress">复制</view>
  22. </view>
  23. </view>
  24. <view wx:if="{{accountStatus!=1 && isSy}}" class="go-to-apply-for" catchtap="applyForLive">
  25. {{accountStatus==3?'暂无账号 点击申请 ':'正在申请中 请稍等 '}}<image style="width: 20rpx; height: 22rpx; margin-left: 8rpx;" src="/static/icon-07.png"></image>
  26. </view>
  27. <view wx:if="{{accountStatus!=1 && !isSy}}" class="go-to-apply-for">
  28. 暂无展会直播账号
  29. </view>
  30. </view>
  31. </My_liveAccountMsg>
  32. <!-- 观看信息 -->
  33. <My_liveAccountMsg wx:if="{{accountStatus==1}}" title='观看信息'>
  34. <view slot='but' class="msgBox-but">
  35. <van-button open-type='share' custom-class="custom-class-msgBox-but">一键分享</van-button>
  36. </view>
  37. <view slot='con'>
  38. <view class="live-msg">
  39. <view class="live-msg-row">
  40. <view class="row-title">观看地址</view>
  41. <view class="row-content u-line-1">{{accountMsg.fliveshowurl}}</view>
  42. <view class="row-title copy" data-url='{{accountMsg.fliveshowurl}}' catchtap="copyTheAddress">复制</view>
  43. </view>
  44. </view>
  45. </view>
  46. </My_liveAccountMsg>
  47. <!-- 数据 -->
  48. <view wx:if="{{accountStatus==1}}" class="msgBox clearfix" style="white-space:nowrap;">
  49. <!-- 标题和按钮 -->
  50. <view class="msgBox-title-and-but">
  51. <view class="msgBox-title">直播数据
  52. </view>
  53. </view>
  54. <!-- 圆角tabs -->
  55. <view style="height: 18rpx;"></view>
  56. <My_RoundedCornerButtonTabs list='{{buttonTabs}}' bind:tabsSelectedIitem='tabsSelectedIitem'></My_RoundedCornerButtonTabs>
  57. <!-- 实时聊天信息 -->
  58. <view class="live-chat" hidden="{{CheckTheType!='当前直播'}}">
  59. <view class="live-chat-title">观看人数:{{onlineNumber}}</view>
  60. <scroll-view scroll-y class="live-chat-concent">
  61. <view class="live-chat-mag" wx:for="{{oldDialogue}}">
  62. <view class="live-chat-mag-userName">{{item.nickname}}:</view>
  63. <view class="live-chat-mag-text">{{item.content}}</view>
  64. <view class="live-chat-mag-time">{{item.datetime}}</view>
  65. </view>
  66. </scroll-view>
  67. </view>
  68. <!-- 数据宫格 -->
  69. <view hidden="{{CheckTheType!='历史直播'}}" class="live-chat" style="height: 274rpx;" hidden="{{CheckTheType!='历史直播'}}">
  70. <view class="live-chat-title">直播场次:
  71. <picker mode="selector" range='{{sessionList}}' bindchange='selectorChange'>{{showStartTime}}
  72. <image style="width: 14rpx; height: 8rpx;margin-bottom: 5rpx; margin-left: 10rpx;" src="/static/icon-13.png" />
  73. </picker>
  74. </view>
  75. <view class="data-grid">
  76. <view>
  77. <view class="title">观看次数(次)</view>
  78. <view class="number">{{liveDataCountForSession.viewCounts}}</view>
  79. </view>
  80. <view>
  81. <view class="title">观看人数(人)</view>
  82. <view class="number">{{liveDataCountForSession.viewers}}</view>
  83. </view>
  84. <view>
  85. <view class="title">观看时长(分钟)</view>
  86. <view class="number">{{liveDataCountForSession.viewDuration}}</view>
  87. </view>
  88. <view>
  89. <view class="title">人均观看次数(次)</view>
  90. <view class="number">{{liveDataCountForSession.viewCountsAvg}}</view>
  91. </view>
  92. <view>
  93. <view class="title">人均观看时长(分钟)</view>
  94. <view class="number">{{liveDataCountForSession.viewDurationAvg}}</view>
  95. </view>
  96. </view>
  97. </view>
  98. <scroll-view scroll-x="{{true}}" class="data-formlist">
  99. <!-- 表头 -->
  100. <view class="data-formlist-header live-for-details">
  101. <view class="w200rpx">用户名称</view>
  102. <view style="width: 180rpx;">用户id</view>
  103. <view style="width: 160rpx;">观看时长</view>
  104. <view style="width: 240rpx;">进入时间</view>
  105. <view style="width: 140rpx;">地区</view>
  106. <view style="width: 140rpx;">城市</view>
  107. <view style="width: 200rpx;">观众ip</view>
  108. <view style="width: 180rpx;">观看终端</view>
  109. <view style="width: 140rpx;">场次</view>
  110. <view style="width: 180rpx;">观看类型</view>
  111. </view>
  112. <!-- 表格 -->
  113. <view wx:for="{{CheckTheType=='当前直播'?crLiveUserList:liveUserList}}" class="data-formlist-row live-for-details {{listRowIndex==index?'acRow':''}}" data-index="{{index}}" catchtap="listRowAvtion">
  114. <view class="w200rpx u-line-1">{{item.name}}</view>
  115. <view class="u-line-1" style="width: 180rpx;">{{item.userid}}</view>
  116. <view class="u-line-1" style="width: 160rpx;">{{item.playduration}}</view>
  117. <view class="u-line-1" style="width: 240rpx;">{{item.datetime}}</view>
  118. <view class="u-line-1" style="width: 140rpx;">{{item.province}}</view>
  119. <view class="u-line-1" style="width: 140rpx;">{{item.city}}</view>
  120. <view class="u-line-1" style="width: 200rpx;">{{item.ipaddress}}</view>
  121. <view class="u-line-1" style="width: 180rpx;">{{item.ismobile=='Y'?'手机':'电脑'}}</view>
  122. <view class="u-line-1" style="width: 140rpx;">{{item.viewcount}}</view>
  123. <view class="u-line-1" style="width: 180rpx;">{{item.viewtype=='live'?'直播':'回放'}}</view>
  124. </view>
  125. </scroll-view>
  126. <!-- 分页 -->
  127. <My_paging show="{{liveSessionList.length>=1}}" count='{{dataTypes==0?pageNumber:userPageNumber}}' bind:lifeClick='buttonLifeClick' bind:rightClick='buttonRightClick'></My_paging>
  128. </view>
  129. </view>
  130. <view hidden="{{tabsIndex!=2}}">
  131. <My_liveAccountMsg title='观看信息'>
  132. <view slot='con' class="clearfix" style="padding-left: 10rpx;">
  133. <view wx:for="{{partnerLiveList}}" class="exhibition" data-index="{{index}}" catchtap="toLive">
  134. <image class="exhibition-img" src="{{item.channelcoverimageurl}}" mode="aspectFill"></image>
  135. <view class="exhibition-bottom">
  136. <view class="exhibition-bottom-title u-line-1">{{item.fagentname}}</view>
  137. <view class="exhibition-bottom-data">
  138. <image src="/static/icon-11.png" />
  139. <view class="exhibition-bottom-data-text u-line-1">{{item.viewers}}</view>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </My_liveAccountMsg>
  145. </view>
  146. <!-- 自定义model -->
  147. <My_showModel isShow='{{myShowModel}}' content="直播地址:{{accountMsg.fliveurl_web}}" confirm='一键复制' cancel='知道了' bindcallBack='showModelCallBack' />
  148. <!-- 自定义model -->
  149. <My_showModel isShow='{{myShowModel2}}' content="您的私域直播账号正在申请中" hideCancel />