index.wxml 8.5 KB

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