index.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <view style="height: 14rpx;"></view>
  2. <My_NavTabs tabsList="{{tabsList}}" tabsIndex="{{tabsIndex}}" bindsetIndex="setIndex" liveDownload="{{true}}" />
  3. <view class="msgBox">
  4. <!-- 标题和按钮 -->
  5. <view class="msgBox-title-and-but">
  6. <view class="msgBox-title">直播账号信息</view>
  7. <view class="msgBox-but">
  8. <van-button custom-class="custom-class-msgBox-but">一键开播</van-button>
  9. </view>
  10. </view>
  11. <!-- 直播信息 -->
  12. <view wx:if="{{accountStatus==1}}" class="account-information">
  13. <view class="account-information-row">
  14. <view>
  15. <view class="title" style="margin-right: 8rpx;">密码</view>{{accountMsg.channelpasswd}}
  16. </view>
  17. <view>
  18. <view class="title">直播间地址</view>
  19. <view class="chained-address u-line-1">{{accountMsg.fliveshowurl}}</view>
  20. <view data-url="{{accountMsg.fliveshowurl}}" class="chained-address-copy" bindtap="copyTheAddress">复制</view>
  21. </view>
  22. </view>
  23. <view class="account-information-row">
  24. <view>
  25. <view class="title">助教地址</view>
  26. <view class="chained-address u-line-1">{{accountMsg.fassistanturl}}</view>
  27. <view data-url="{{accountMsg.fassistanturl}}" class="chained-address-copy" bindtap="copyTheAddress">复制</view>
  28. </view>
  29. </view>
  30. <view class="account-information-row">
  31. <view>
  32. <view class="title">客户端开播地址</view>
  33. <view class="chained-address u-line-1">{{accountMsg.fliveurl_client}}</view>
  34. <view data-url="{{accountMsg.fliveurl_client}}" class="chained-address-copy" bindtap="copyTheAddress">复制</view>
  35. </view>
  36. </view>
  37. <view class="account-information-row">
  38. <view>
  39. <view class="title">web端开播地址</view>
  40. <view class="chained-address u-line-1">{{accountMsg.fliveurl_web}}</view>
  41. <view data-url="{{accountMsg.fliveurl_web}}" class="chained-address-copy" bindtap="copyTheAddress">复制</view>
  42. </view>
  43. </view>
  44. </view>
  45. <view wx:else class="go-to-apply-for" catchtap="applyForLive">
  46. {{accountStatus==3?'暂无账号 点击申请 ':'直播申请中'}}<image wx:if="{{accountStatus==3}}" style="width: 20rpx; height: 22rpx; margin-left: 8rpx;" src="/static/icon-07.png"></image>
  47. </view>
  48. </view>
  49. <!-- 数据 -->
  50. <view wx:if="{{accountStatus==1}}" class="msgBox clearfix" style="white-space:nowrap;">
  51. <!-- 标题和按钮 -->
  52. <view class="msgBox-title-and-but">
  53. <view class="msgBox-title">直播数据</view>
  54. </view>
  55. <!-- 数据宫格 -->
  56. <view class="data-grid">
  57. <view>
  58. <view class="title">观看次数(次)</view>
  59. <view class="number">{{liveDataCount.viewCounts}}</view>
  60. </view>
  61. <view>
  62. <view class="title">观看人数(人)</view>
  63. <view class="number">{{liveDataCount.viewers}}</view>
  64. </view>
  65. <view>
  66. <view class="title">观看时长(分钟)</view>
  67. <view class="number">{{liveDataCount.viewDuration}}</view>
  68. </view>
  69. <view>
  70. <view class="title">人均观看次数(次)</view>
  71. <view class="number">{{liveDataCount.viewCountsAvg}}</view>
  72. </view>
  73. <view>
  74. <view class="title">人均观看时长(分钟)</view>
  75. <view class="number">{{liveDataCount.viewDurationAvg}}</view>
  76. </view>
  77. </view>
  78. <!-- 数据表格 -->
  79. <scroll-view scroll-x="{{true}}" class="data-formlist">
  80. <!-- 表头 -->
  81. <view class="data-formlist-header">
  82. <view class="w200rpx">开始时间</view>
  83. <view style="width: 180rpx;">直播id</view>
  84. <view style="width: 160rpx;">观看次数(次)</view>
  85. <view style="width: 200rpx;">观看时长(分钟)</view>
  86. <view style="width: 240rpx;">描述</view>
  87. </view>
  88. <!-- 表格 -->
  89. <view wx:for="{{liveSessionList}}" class="data-formlist-row">
  90. <view class="w200rpx">{{item.starttime}}</view>
  91. <view style="width: 180rpx;">{{item.sessionid}}</view>
  92. <view style="width: 160rpx;">{{item.liveuv}}</view>
  93. <view style="width: 200rpx;">{{item.duration}}</view>
  94. <view style="width: 240rpx; display: flex; align-items: center;">
  95. <input disabled="{{true}}" style="width: 100%; text-align: center;" type="text" value="{{item.description==null?'暂无':item.description}}" />
  96. </view>
  97. </view>
  98. </scroll-view>
  99. <view class="paging-button">
  100. <view>
  101. <van-button custom-class="paging-button-class" catchtap="buttonRightClick"></van-button>
  102. <view class="paging-button-icon icon-right">
  103. <van-icon name="arrow" />
  104. </view>
  105. </view>
  106. <text>{{pageNumber}}</text>
  107. <view>
  108. <van-button custom-class="paging-button-class" catchtap="buttonLifeClick"></van-button>
  109. <view class="paging-button-icon icon-left">
  110. <van-icon name="arrow-left" />
  111. </view>
  112. </view>
  113. </view>
  114. </view>