index.wxml 7.2 KB

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