index.wxml 7.0 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}}"></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. <scroll-view scroll-x="{{true}}" class="data-formlist">
  45. <!-- 表头 -->
  46. <view class="data-formlist-header">
  47. <view class="w200rpx">开始时间</view>
  48. <view style="width: 180rpx;">直播id</view>
  49. <view style="width: 160rpx;">观看次数(次)</view>
  50. <view style="width: 200rpx;">观看时长(分钟)</view>
  51. <view style="width: 240rpx;">描述</view>
  52. </view>
  53. <!-- 表格 -->
  54. <view wx:for="{{liveSessionList}}" wx:key="index" class="data-formlist-row {{optionRow==index?'option-row':''}}" data-index="{{index}}" catchtap="optionItemIndex">
  55. <view class="w200rpx u-line-1">{{item.starttime}}</view>
  56. <view class="u-line-1" style="width: 180rpx;">{{item.sessionid}}</view>
  57. <view class="u-line-1" style="width: 160rpx;">{{item.liveuv}}</view>
  58. <view class="u-line-1" style="width: 200rpx;">{{item.duration}}</view>
  59. <view class="u-line-1" style="width: 240rpx; display: flex; align-items: center;">
  60. <input disabled="{{true}}" style="width: 100%; text-align: center;" type="text" value="{{item.description==null?'暂无':item.description}}" />
  61. </view>
  62. <view class="more-but-box" wx:if="{{optionRow==index}}">
  63. <view class="more-but" data-index="{{index}}" catchtap="viewDetails">更多</view>
  64. </view>
  65. </view>
  66. </scroll-view>
  67. </view>
  68. <!-- 场次详情数据 -->
  69. <!-- 数据宫格 -->
  70. <view hidden="{{dataTypes!=1}}">
  71. <view class="data-grid">
  72. <view>
  73. <view class="title">观看次数(次)</view>
  74. <view class="number">{{liveDataCountForSession.viewCounts}}</view>
  75. </view>
  76. <view>
  77. <view class="title">观看人数(人)</view>
  78. <view class="number">{{liveDataCountForSession.viewers}}</view>
  79. </view>
  80. <view>
  81. <view class="title">观看时长(分钟)</view>
  82. <view class="number">{{liveDataCountForSession.viewDuration}}</view>
  83. </view>
  84. <view>
  85. <view class="title">人均观看次数(次)</view>
  86. <view class="number">{{liveDataCountForSession.viewCountsAvg}}</view>
  87. </view>
  88. <view>
  89. <view class="title">人均观看时长(分钟)</view>
  90. <view class="number">{{liveDataCountForSession.viewDurationAvg}}</view>
  91. </view>
  92. </view>
  93. <scroll-view scroll-x="{{true}}" class="data-formlist">
  94. <!-- 表头 -->
  95. <view class="data-formlist-header live-for-details">
  96. <view class="w200rpx">用户名称</view>
  97. <view style="width: 180rpx;">用户id</view>
  98. <view style="width: 160rpx;">观看时长</view>
  99. <view style="width: 240rpx;">进入时间</view>
  100. <view style="width: 140rpx;">地区</view>
  101. <view style="width: 140rpx;">城市</view>
  102. <view style="width: 200rpx;">观众ip</view>
  103. <view style="width: 180rpx;">观看终端</view>
  104. <view style="width: 140rpx;">场次</view>
  105. <view style="width: 180rpx;">观看类型</view>
  106. </view>
  107. <!-- 表格 -->
  108. <view wx:for="{{liveUserList}}" class="data-formlist-row live-for-details">
  109. <view class="w200rpx u-line-1">{{item.name}}</view>
  110. <view class="u-line-1" style="width: 180rpx;">{{item.userid}}</view>
  111. <view class="u-line-1" style="width: 160rpx;">{{item.playduration}}</view>
  112. <view class="u-line-1" style="width: 240rpx;">{{item.datetime}}</view>
  113. <view class="u-line-1" style="width: 140rpx;">{{item.province}}</view>
  114. <view class="u-line-1" style="width: 140rpx;">{{item.city}}</view>
  115. <view class="u-line-1" style="width: 200rpx;">{{item.ipaddress}}</view>
  116. <view class="u-line-1" style="width: 180rpx;">{{item.ismobile=='Y'?'手机':'电脑'}}</view>
  117. <view class="u-line-1" style="width: 140rpx;">{{item.viewcount}}</view>
  118. <view class="u-line-1" style="width: 180rpx;">{{item.viewtype=='live'?'直播':'回放'}}</view>
  119. </view>
  120. </scroll-view>
  121. </view>
  122. <view class="paging-button">
  123. <view>
  124. <van-button custom-class="paging-button-class" catchtap="buttonRightClick"></van-button>
  125. <view class="paging-button-icon icon-right">
  126. <van-icon name="arrow" />
  127. </view>
  128. </view>
  129. <text>{{dataTypes==0?pageNumber:userPageNumber}}</text>
  130. <view>
  131. <van-button custom-class="paging-button-class" catchtap="buttonLifeClick"></van-button>
  132. <view class="paging-button-icon icon-left">
  133. <van-icon name="arrow-left" />
  134. </view>
  135. </view>
  136. </view>
  137. </view>