douyin.wxml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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="avg_user_count" bindtap="showDetail" class="liveDataItem">
  14. 平均在线人数:
  15. <!-- <text class="show">?</text> : -->
  16. </view>
  17. <view data-introduce="turn_rate" bindtap="showDetail" class="liveDataItem">
  18. 转粉率:
  19. <!-- <text class="show">?</text> : -->
  20. </view>
  21. </view>
  22. <view class="liveDataTable">
  23. <view wx:if="{{ headData.peopel_time != -1 }}" class="liveDataItem">
  24. {{filter.valueFormat(headData.peopel_time)}}
  25. </view>
  26. <view class="liveDataItem">{{filter.valueFormat(headData.avg_user_count)}}</view>
  27. <view class="liveDataItem">{{filter.valueFormat(headData.turn_rate)}}%</view>
  28. </view>
  29. <view class="liveDataTable title">
  30. <view wx:if="{{ headData.msg_count != -1 }}" data-introduce="msg_count" bindtap="showDetail"
  31. class="liveDataItem liveDataItemRigh">
  32. 直播评论数:
  33. <!-- <text class="show">?</text> : -->
  34. </view>
  35. <view data-introduce="total_fans_count" bindtap="showDetail" class="liveDataItem">
  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>
  44. <view class="liveDataTable">
  45. <view wx:if="{{ headData.msg_count != -1 }}" class="liveDataItem">{{filter.valueFormat(headData.msg_count)}}
  46. </view>
  47. <view class="liveDataItem">{{filter.valueFormat(headData.total_fans_count)}}</view>
  48. <view class="liveDataItem">{{filter.valueFormat(headData.max_user_count)}}</view>
  49. </view>
  50. </view>
  51. <view class="itemView" wx:if="{{series.length}}">
  52. <view class="localCells">观众来源</view>
  53. </view>
  54. <view class="itemView">
  55. <pie id="pie001" wx:if="{{series.length}}" canvasId="douyinpie001" list="{{series}}" />
  56. </view>
  57. <!-- <chart wx:if="{{region.length && region[0].length}}" list="{{region}}" id="{{'douyinid' + 1}}"
  58. canvasId="{{'douyincanvasId' + 1}}" yType="value" xType="name" /> -->
  59. <view class="itemView" wx:if="{{region.length && region[0].length}}">
  60. <view class="localCells">观众地域分布</view>
  61. </view>
  62. <mapChina wx:if="{{region.length && region[0].length}}" id="{{'douyinMap' + 1}}" canvasId="{{'douyinMapID' + 1}}" list="{{region}}"></mapChina>
  63. <view class="itemView" wx:for="{{lineList}}" wx:key="id">
  64. <view wx:if="item.peopleList.length" class="localCells">{{item.title}}</view>
  65. <lineChart id="{{'douyin'+item.id}}" wx:if="item.peopleList.length" canvasId="{{'douyin'+item.canvasId}}"
  66. type="{{item.type}}" list="{{item.peopleList || []}}" yType="{{item.yType}}" xType="{{item.xType}}"
  67. color="{{item.color}}" />
  68. </view>
  69. </view>
  70. <cover-view wx:if="{{detail !== ''}}" class="modolBg">
  71. <cover-view class="local_dialog">
  72. <cover-view class="local_dialog_title">
  73. <cover-view class="local_dialog_close" bindtap="showDetail">
  74. <cover-view class="local_dialog_close_left"></cover-view>
  75. <cover-view class="local_dialog_close_right"></cover-view>
  76. </cover-view>
  77. <cover-view class="title">
  78. {{diglogTitle}}
  79. </cover-view>
  80. </cover-view>
  81. <cover-view class="local_dialog_body">
  82. <cover-view style="padding-right:5px;white-space:pre-wrap;line-height: 1.5em;width:490rpx;margin: 0 auto;">
  83. {{detail}}
  84. </cover-view>
  85. </cover-view>
  86. </cover-view>
  87. </cover-view>
  88. <!-- <mp-toptips msg="{{detail}}" type="info" show="{{detail !== ''}}"></mp-toptips> -->