index.wxml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <view style="height: 14rpx;"></view>
  2. <My_NavTabs tabsList="{{tabsList}}" tabsIndex="{{tabsIndex}}" bindsetIndex="setIndex" liveDownload="{{accountStatus==1}}" />
  3. <!-- 私域直播 -->
  4. <My_liveAccountMsg wx:if="{{tabsIndex==0}}" accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}">
  5. <view class="msgBox-but">
  6. <van-button open-type='share' custom-class="custom-class-msgBox-but">一键分享</van-button>
  7. </view>
  8. </My_liveAccountMsg>
  9. <!-- 展会直播 -->
  10. <My_liveAccountMsg wx:else accountStatus="{{accountStatus}}" accountMsg="{{accountMsg}}" isSY="{{false}}">
  11. <view class="msgBox-but">
  12. <van-button open-type='share' custom-class="custom-class-msgBox-but">一键分享</van-button>
  13. </view>
  14. </My_liveAccountMsg>
  15. <!-- 数据 -->
  16. <view wx:if="{{accountStatus==1}}" class="msgBox clearfix" style="white-space:nowrap;">
  17. <!-- 标题和按钮 -->
  18. <view class="msgBox-title-and-but">
  19. <view wx:if="{{dataTypes==0}}" class="msgBox-title">直播数据</view>
  20. <view wx:else class="msgBox-title">直播场次:{{showStartTime}}</view>
  21. <view wx:if="{{dataTypes==1}}" class="dataReturn" catchtap="returnLiveData">
  22. <van-icon style="margin-right: -10rpx;" name="arrow-left" />
  23. <van-icon style="margin-right: -5rpx;" name="arrow-left" />
  24. 返回场次列表
  25. </view>
  26. </view>
  27. <!-- 数据表格 -->
  28. <view hidden="{{dataTypes!=0}}">
  29. <!-- 数据宫格 -->
  30. <view class="data-grid">
  31. <view>
  32. <view class="title">观看次数(次)</view>
  33. <view class="number">{{liveDataCount.viewCounts}}</view>
  34. </view>
  35. <view>
  36. <view class="title">观看人数(人)</view>
  37. <view class="number">{{liveDataCount.viewers}}</view>
  38. </view>
  39. <view>
  40. <view class="title">观看时长(分钟)</view>
  41. <view class="number">{{liveDataCount.viewDuration}}</view>
  42. </view>
  43. <view>
  44. <view class="title">人均观看次数(次)</view>
  45. <view class="number">{{liveDataCount.viewCountsAvg}}</view>
  46. </view>
  47. <view>
  48. <view class="title">人均观看时长(分钟)</view>
  49. <view class="number">{{liveDataCount.viewDurationAvg}}</view>
  50. </view>
  51. </view>
  52. <block wx:if="{{liveSessionList.length>=1}}">
  53. <scroll-view scroll-x="{{true}}" class="data-formlist">
  54. <!-- 表头 -->
  55. <view class="data-formlist-header">
  56. <view class="w200rpx">开始时间</view>
  57. <view style="width: 180rpx;">直播id</view>
  58. <view style="width: 160rpx;">观看次数(次)</view>
  59. <view style="width: 200rpx;">观看时长(分钟)</view>
  60. <view style="width: 240rpx;">描述</view>
  61. </view>
  62. <!-- 表格 -->
  63. <view wx:for="{{liveSessionList}}" wx:key="index" class="data-formlist-row {{optionRow==index?'option-row':''}}" data-index="{{index}}" catchtap="optionItemIndex">
  64. <view class="w200rpx u-line-1">{{item.starttime}}</view>
  65. <view class="u-line-1" style="width: 180rpx;">{{item.sessionid}}</view>
  66. <view class="u-line-1" style="width: 160rpx;">{{item.liveuv}}</view>
  67. <view class="u-line-1" style="width: 200rpx;">{{item.duration}}</view>
  68. <view class="u-line-1" style="width: 240rpx; display: flex; align-items: center;">
  69. <input disabled="{{true}}" style="width: 100%; text-align: center;" type="text" value="{{item.description==null?'暂无':item.description}}" />
  70. </view>
  71. <view class="more-but-box" wx:if="{{optionRow==index}}">
  72. <view class="more-but" data-index="{{index}}" catchtap="viewDetails">更多</view>
  73. </view>
  74. </view>
  75. </scroll-view>
  76. </block>
  77. </view>
  78. <!-- 数据宫格 -->
  79. <view hidden="{{dataTypes!=1}}">
  80. <view class="data-grid">
  81. <view>
  82. <view class="title">观看次数(次)</view>
  83. <view class="number">{{liveDataCountForSession.viewCounts}}</view>
  84. </view>
  85. <view>
  86. <view class="title">观看人数(人)</view>
  87. <view class="number">{{liveDataCountForSession.viewers}}</view>
  88. </view>
  89. <view>
  90. <view class="title">观看时长(分钟)</view>
  91. <view class="number">{{liveDataCountForSession.viewDuration}}</view>
  92. </view>
  93. <view>
  94. <view class="title">人均观看次数(次)</view>
  95. <view class="number">{{liveDataCountForSession.viewCountsAvg}}</view>
  96. </view>
  97. <view>
  98. <view class="title">人均观看时长(分钟)</view>
  99. <view class="number">{{liveDataCountForSession.viewDurationAvg}}</view>
  100. </view>
  101. </view>
  102. <scroll-view scroll-x="{{true}}" class="data-formlist">
  103. <!-- 表头 -->
  104. <view class="data-formlist-header live-for-details">
  105. <view class="w200rpx">用户名称</view>
  106. <view style="width: 180rpx;">用户id</view>
  107. <view style="width: 160rpx;">观看时长</view>
  108. <view style="width: 240rpx;">进入时间</view>
  109. <view style="width: 140rpx;">地区</view>
  110. <view style="width: 140rpx;">城市</view>
  111. <view style="width: 200rpx;">观众ip</view>
  112. <view style="width: 180rpx;">观看终端</view>
  113. <view style="width: 140rpx;">场次</view>
  114. <view style="width: 180rpx;">观看类型</view>
  115. </view>
  116. <!-- 表格 -->
  117. <view wx:for="{{liveUserList}}" class="data-formlist-row live-for-details">
  118. <view class="w200rpx u-line-1">{{item.name}}</view>
  119. <view class="u-line-1" style="width: 180rpx;">{{item.userid}}</view>
  120. <view class="u-line-1" style="width: 160rpx;">{{item.playduration}}</view>
  121. <view class="u-line-1" style="width: 240rpx;">{{item.datetime}}</view>
  122. <view class="u-line-1" style="width: 140rpx;">{{item.province}}</view>
  123. <view class="u-line-1" style="width: 140rpx;">{{item.city}}</view>
  124. <view class="u-line-1" style="width: 200rpx;">{{item.ipaddress}}</view>
  125. <view class="u-line-1" style="width: 180rpx;">{{item.ismobile=='Y'?'手机':'电脑'}}</view>
  126. <view class="u-line-1" style="width: 140rpx;">{{item.viewcount}}</view>
  127. <view class="u-line-1" style="width: 180rpx;">{{item.viewtype=='live'?'直播':'回放'}}</view>
  128. </view>
  129. </scroll-view>
  130. </view>
  131. <view wx:if="{{liveSessionList.length>=1}}" class="paging-button">
  132. <view>
  133. <van-button custom-class="paging-button-class" catchtap="buttonRightClick"></van-button>
  134. <view class="paging-button-icon icon-right">
  135. <van-icon name="arrow" />
  136. </view>
  137. </view>
  138. <text>{{dataTypes==0?pageNumber:userPageNumber}}</text>
  139. <view>
  140. <van-button custom-class="paging-button-class" catchtap="buttonLifeClick"></van-button>
  141. <view class="paging-button-icon icon-left">
  142. <van-icon name="arrow-left" />
  143. </view>
  144. </view>
  145. </view>
  146. </view>