douyin.wxml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!--pages/home/components/liveData/liveData.wxml-->
  2. <wxs module="filter" src="/components/table/filter.wxs" />
  3. <!-- 错误提示 -->
  4. <mp-toptips msg="{{error}}" ext-class="toptips" type="error" show="{{error}}"></mp-toptips>
  5. <view class="liveData">
  6. <view class="topTable">
  7. <view class="liveDataTable title">
  8. <view wx:if="{{ headData.peopel_time != -1 }}" data-introduce="peopel_time" bindtap="showDetail"
  9. class="liveDataItem liveDataItemRigh">
  10. 直播观看人次:
  11. <!-- <text class="show">?</text> : -->
  12. </view>
  13. <view data-introduce="like_count" bindtap="showDetail" class="liveDataItem">
  14. 直播点赞数:
  15. <!-- <text class="show">?</text> : -->
  16. </view>
  17. <view data-introduce="avg_user_count" bindtap="showDetail" class="liveDataItem">
  18. 平均在线人数:
  19. <!-- <text class="show">?</text> : -->
  20. </view>
  21. <view data-introduce="turn_rate" bindtap="showDetail" class="liveDataItem">
  22. 转粉率:
  23. <!-- <text class="show">?</text> : -->
  24. </view>
  25. </view>
  26. <view class="liveDataTable">
  27. <view wx:if="{{ headData.peopel_time != -1 }}" class="liveDataItem">{{filter.valueFormat(headData.peopel_time)}}
  28. </view>
  29. <view class="liveDataItem">{{filter.valueFormat(headData.like_count)}}</view>
  30. <view class="liveDataItem">{{filter.valueFormat(headData.avg_user_count)}}</view>
  31. <view class="liveDataItem">{{filter.valueFormat(headData.turn_rate)}}%</view>
  32. </view>
  33. <view class="liveDataTable title">
  34. <view wx:if="{{ headData.msg_count != -1 }}" data-introduce="msg_count" bindtap="showDetail"
  35. class="liveDataItem liveDataItemRigh">
  36. 直播评论数:
  37. <!-- <text class="show">?</text> : -->
  38. </view>
  39. <view data-introduce="total_fans_count" bindtap="showDetail" class="liveDataItem">
  40. 新增粉丝数:
  41. <!-- <text class="show">?</text> : -->
  42. </view>
  43. <view data-introduce="total_fans_count" bindtap="showDetail" class="liveDataItem">
  44. 最大在线人数:
  45. <!-- <text class="show">?</text> : -->
  46. </view>
  47. </view>
  48. <view class="liveDataTable">
  49. <view wx:if="{{ headData.msg_count != -1 }}" class="liveDataItem">{{filter.valueFormat(headData.msg_count)}}
  50. </view>
  51. <view class="liveDataItem">{{filter.valueFormat(headData.total_fans_count)}}</view>
  52. <view class="liveDataItem">{{filter.valueFormat(headData.max_user_count)}}</view>
  53. </view>
  54. </view>
  55. <view class="itemView" wx:if="{{series.length}}">
  56. <view class="localCells">观众来源</view>
  57. </view>
  58. <view class="itemView">
  59. <pie id="pie001" wx:if="{{series.length}}" canvasId="douyinpie001" list="{{series}}" />
  60. </view>
  61. <!-- <chart wx:if="{{region.length && region[0].length}}" list="{{region}}" id="{{'douyinid' + 1}}"
  62. canvasId="{{'douyincanvasId' + 1}}" yType="value" xType="name" /> -->
  63. <view class="itemView" wx:if="{{region.length && region[0].length}}">
  64. <view class="localCells">观众地域分布</view>
  65. </view>
  66. <mapChina wx:if="{{region.length && region[0].length}}" id="{{'douyinMap' + 1}}" canvasId="{{'douyinMapID' + 1}}" list="{{region}}"></mapChina>
  67. <view class="itemView" wx:for="{{lineList}}" wx:key="id">
  68. <view wx:if="item.peopleList.length" class="localCells">{{item.title}}</view>
  69. <lineChart id="{{'douyin'+item.id}}" wx:if="item.peopleList.length" canvasId="{{'douyin'+item.canvasId}}"
  70. type="{{item.type}}" list="{{item.peopleList || []}}" yType="{{item.yType}}" xType="{{item.xType}}"
  71. color="{{item.color}}" />
  72. </view>
  73. </view>
  74. <cover-view wx:if="{{detail !== ''}}" class="modolBg">
  75. <cover-view class="local_dialog">
  76. <cover-view class="local_dialog_title">
  77. <cover-view class="local_dialog_close" bindtap="showDetail">
  78. <cover-view class="local_dialog_close_left"></cover-view>
  79. <cover-view class="local_dialog_close_right"></cover-view>
  80. </cover-view>
  81. <cover-view class="title">
  82. {{diglogTitle}}
  83. </cover-view>
  84. </cover-view>
  85. <cover-view class="local_dialog_body">
  86. <cover-view style="padding-right:5px;white-space:pre-wrap;line-height: 1.5em;width:490rpx;margin: 0 auto;">
  87. {{detail}}
  88. </cover-view>
  89. </cover-view>
  90. </cover-view>
  91. </cover-view>
  92. <!-- <mp-toptips msg="{{detail}}" type="info" show="{{detail !== ''}}"></mp-toptips> -->