index.wxml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <view style="height: 14rpx;"></view>
  2. <My_NavTabs tabsList="{{tabsList}}" tabsIndex="{{tabsIndex}}" bindsetIndex="setIndex" />
  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 wx:if="{{dataTypes==0}}" class="msgBox-title">直播数据</view>
  52. <view wx:else class="msgBox-title">直播场次:{{showStartTime}}</view>
  53. <view wx:if="{{dataTypes==1}}" class="dataReturn" catchtap="returnLiveData">
  54. <van-icon style="margin-right: -10rpx;" name="arrow-left" />
  55. <van-icon style="margin-right: -5rpx;" name="arrow-left" />
  56. 返回场次列表
  57. </view>
  58. </view>
  59. <!-- 数据表格 -->
  60. <view hidden="{{dataTypes!=0}}">
  61. <!-- 数据宫格 -->
  62. <view class="data-grid">
  63. <view>
  64. <view class="title">观看次数(次)</view>
  65. <view class="number">{{liveDataCount.viewCounts}}</view>
  66. </view>
  67. <view>
  68. <view class="title">观看人数(人)</view>
  69. <view class="number">{{liveDataCount.viewers}}</view>
  70. </view>
  71. <view>
  72. <view class="title">观看时长(分钟)</view>
  73. <view class="number">{{liveDataCount.viewDuration}}</view>
  74. </view>
  75. <view>
  76. <view class="title">人均观看次数(次)</view>
  77. <view class="number">{{liveDataCount.viewCountsAvg}}</view>
  78. </view>
  79. <view>
  80. <view class="title">人均观看时长(分钟)</view>
  81. <view class="number">{{liveDataCount.viewDurationAvg}}</view>
  82. </view>
  83. </view>
  84. <block wx:if="{{liveSessionList.length>=1}}">
  85. <scroll-view scroll-x="{{true}}" class="data-formlist">
  86. <!-- 表头 -->
  87. <view class="data-formlist-header">
  88. <view class="w200rpx">开始时间</view>
  89. <view style="width: 180rpx;">直播id</view>
  90. <view style="width: 160rpx;">观看次数(次)</view>
  91. <view style="width: 200rpx;">观看时长(分钟)</view>
  92. <view style="width: 240rpx;">描述</view>
  93. </view>
  94. <!-- 表格 -->
  95. <view wx:for="{{liveSessionList}}" wx:key="index" class="data-formlist-row {{optionRow==index?'option-row':''}}" data-index="{{index}}" catchtap="optionItemIndex">
  96. <view class="w200rpx u-line-1">{{item.starttime}}</view>
  97. <view class="u-line-1" style="width: 180rpx;">{{item.sessionid}}</view>
  98. <view class="u-line-1" style="width: 160rpx;">{{item.liveuv}}</view>
  99. <view class="u-line-1" style="width: 200rpx;">{{item.duration}}</view>
  100. <view class="u-line-1" style="width: 240rpx; display: flex; align-items: center;">
  101. <input disabled="{{true}}" style="width: 100%; text-align: center;" type="text" value="{{item.description==null?'暂无':item.description}}" />
  102. </view>
  103. <view class="more-but-box" wx:if="{{optionRow==index}}">
  104. <view class="more-but" data-index="{{index}}" catchtap="viewDetails">更多</view>
  105. </view>
  106. </view>
  107. </scroll-view>
  108. </block>
  109. </view>
  110. <!-- 数据宫格 -->
  111. <view hidden="{{dataTypes!=1}}">
  112. <view class="data-grid">
  113. <view>
  114. <view class="title">观看次数(次)</view>
  115. <view class="number">{{liveDataCountForSession.viewCounts}}</view>
  116. </view>
  117. <view>
  118. <view class="title">观看人数(人)</view>
  119. <view class="number">{{liveDataCountForSession.viewers}}</view>
  120. </view>
  121. <view>
  122. <view class="title">观看时长(分钟)</view>
  123. <view class="number">{{liveDataCountForSession.viewDuration}}</view>
  124. </view>
  125. <view>
  126. <view class="title">人均观看次数(次)</view>
  127. <view class="number">{{liveDataCountForSession.viewCountsAvg}}</view>
  128. </view>
  129. <view>
  130. <view class="title">人均观看时长(分钟)</view>
  131. <view class="number">{{liveDataCountForSession.viewDurationAvg}}</view>
  132. </view>
  133. </view>
  134. <scroll-view scroll-x="{{true}}" class="data-formlist">
  135. <!-- 表头 -->
  136. <view class="data-formlist-header live-for-details">
  137. <view class="w200rpx">用户名称</view>
  138. <view style="width: 180rpx;">用户id</view>
  139. <view style="width: 160rpx;">观看时长</view>
  140. <view style="width: 240rpx;">进入时间</view>
  141. <view style="width: 140rpx;">地区</view>
  142. <view style="width: 140rpx;">城市</view>
  143. <view style="width: 200rpx;">观众ip</view>
  144. <view style="width: 180rpx;">观看终端</view>
  145. <view style="width: 140rpx;">场次</view>
  146. <view style="width: 180rpx;">观看类型</view>
  147. </view>
  148. <!-- 表格 -->
  149. <view wx:for="{{liveUserList}}" class="data-formlist-row live-for-details">
  150. <view class="w200rpx u-line-1">{{item.name}}</view>
  151. <view class="u-line-1" style="width: 180rpx;">{{item.userid}}</view>
  152. <view class="u-line-1" style="width: 160rpx;">{{item.playduration}}</view>
  153. <view class="u-line-1" style="width: 240rpx;">{{item.datetime}}</view>
  154. <view class="u-line-1" style="width: 140rpx;">{{item.province}}</view>
  155. <view class="u-line-1" style="width: 140rpx;">{{item.city}}</view>
  156. <view class="u-line-1" style="width: 200rpx;">{{item.ipaddress}}</view>
  157. <view class="u-line-1" style="width: 180rpx;">{{item.ismobile=='Y'?'手机':'电脑'}}</view>
  158. <view class="u-line-1" style="width: 140rpx;">{{item.viewcount}}</view>
  159. <view class="u-line-1" style="width: 180rpx;">{{item.viewtype=='live'?'直播':'回放'}}</view>
  160. </view>
  161. </scroll-view>
  162. </view>
  163. <view wx:if="{{liveSessionList.length>=1}}" class="paging-button">
  164. <view>
  165. <van-button custom-class="paging-button-class" catchtap="buttonRightClick"></van-button>
  166. <view class="paging-button-icon icon-right">
  167. <van-icon name="arrow" />
  168. </view>
  169. </view>
  170. <text>{{dataTypes==0?pageNumber:userPageNumber}}</text>
  171. <view>
  172. <van-button custom-class="paging-button-class" catchtap="buttonLifeClick"></van-button>
  173. <view class="paging-button-icon icon-left">
  174. <van-icon name="arrow-left" />
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. <!-- 自定义model -->
  180. <My_showModel isShow='{{myShowModel}}' content="直播地址:+{{accountMsg.fliveurl_web}}" confirm='一键复制' cancel='知道了' bindcallBack='showModelCallBack' />
  181. <!-- 自定义model -->
  182. <My_showModel isShow='{{myShowModel2}}' content="您的私域直播账号正在申请中" hideCancel />