topic.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!--pages/home/components/contrast/contrast.wxml-->
  2. <wxs module="filter" src="/components/table/filter.wxs" />
  3. <view class="topic">
  4. <view class="topicTable">
  5. <view wx:if="{{headData.total_pv != -1}}" class="topicItem">总浏览量:</view>
  6. <view wx:if="{{headData.total_pv != -1}}" class="topicItem">{{filter.valueFormat(headData.total_pv)}}</view>
  7. <view wx:if="{{headData.total_ori != -1}}" class="topicItem">原创量:</view>
  8. <view wx:if="{{headData.total_ori != -1}}" class="topicItem">{{filter.valueFormat(headData.total_ori)}}</view>
  9. </view>
  10. <view class="topicTable">
  11. <view wx:if="{{headData.total_digg != -1}}" class="topicItem">总点赞数:</view>
  12. <view wx:if="{{headData.total_digg != -1}}" class="topicItem">{{filter.valueFormat(headData.total_digg)}}</view>
  13. <view wx:if="{{headData.total_comment != -1}}" class="topicItem">总评论数:</view>
  14. <view wx:if="{{headData.total_comment != -1}}" class="topicItem">{{filter.valueFormat(headData.total_comment)}}</view>
  15. </view>
  16. <view class="topicTable">
  17. <view wx:if="{{headData.total_comment != -1}}" class="topicItem">总转发量:</view>
  18. <view wx:if="{{headData.total_comment != -1}}" class="topicItem">{{filter.valueFormat(headData.total_forward)}}</view>
  19. <view class="topicItem">
  20. <view wx:if="{{headData.live_uv != -1}}">观看人数:</view>
  21. </view>
  22. <view class="topicItem">
  23. <view wx:if="{{headData.live_uv != -1}}">{{filter.valueFormat(headData.live_uv)}}</view>
  24. </view>
  25. </view>
  26. <view class="topicTable">
  27. <view wx:if="{{headData.live_digg != -1}}" class="topicItem">直播点赞:</view>
  28. <view wx:if="{{headData.live_digg != -1}}" class="topicItem">{{filter.valueFormat(headData.live_digg)}}</view>
  29. <view wx:if="{{headData.live_comment != -1}}" class="topicItem">直播弹幕:</view>
  30. <view wx:if="{{headData.live_comment != -1}}" class="topicItem">{{filter.valueFormat(headData.live_comment)}}</view>
  31. </view>
  32. <view class="pKvm">
  33. <view class="kvm" bindtap="toSecond" wx:if="{{sonList && sonList.length}}">
  34. <view class="kvmText">二次传播</view>
  35. </view>
  36. </view>
  37. <view class="itemView" wx:if="{{contrast.length}}">
  38. <view class="localCells">平台对比</view>
  39. <chart list="{{contrast}}" id="{{'id' + 1}}" canvasId="{{'canvasId' + 1}}" wx:if="{{contrast && contrast.length}}"
  40. yType="total_pv" xType="platform" />
  41. </view>
  42. <view class="itemView" wx:if="{{all.length}}">
  43. <view class="localCells">账号排名</view>
  44. <chart id="{{'id' + 2}}" canvasId="{{'canvasId' + 2}}"
  45. btnList="{{[{name:'点赞', type:'digg_count'},{name:'评论', type:'comment_count'},{name:'转发', type:'forward_count'}]}}"
  46. list="{{all}}" yType="digg_count" xType="nickname" />
  47. </view>
  48. <view class="itemView" style="padding: 0" wx:if="{{!!imgURL}}">
  49. <view class="localCells" style="padding: 5px 10px;">词云</view>
  50. <image bindload="imgLoad"
  51. style="{{'display: block;width: 100%;max-width: 441px;margin:0 auto;height:'+ height + 'px'}}" src="{{imgURL}}" />
  52. <!-- <wordCloud wordsCloud="{{wordList}}" yType="value" xType="name" /> -->
  53. </view>
  54. <view class="itemView" wx:if="{{douyin.length}}">
  55. <view class="localCells">抖音-评论排行</view>
  56. <chart id="{{'id' + 3}}" canvasId="{{'canvasId' + 3}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  57. yType="comment_count" xType="nickname" />
  58. </view>
  59. <view class="itemView" wx:if="{{douyin.length}}">
  60. <view class="localCells">抖音-点赞排行</view>
  61. <chart id="{{'id' + 4}}" canvasId="{{'canvasId' + 4}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  62. yType="digg_count" xType="nickname" />
  63. </view>
  64. <view class="itemView" wx:if="{{douyin.length && title !== '西安'}}">
  65. <view class="localCells">抖音-粉丝量排行</view>
  66. <chart id="{{'id' + 5}}" canvasId="{{'canvasId' + 5}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  67. yType="mplatform_followers_count" xType="nickname" />
  68. </view>
  69. <view class="itemView" wx:if="{{kuaishou.length}}">
  70. <view class="localCells">快手-播放量排行</view>
  71. <chart id="{{'id' + 6}}" canvasId="{{'canvasId' + 6}}" list="{{kuaishou}}" wx:if="{{kuaishou && kuaishou.length}}"
  72. yType="pv" xType="nickname" />
  73. </view>
  74. <view class="itemView" wx:if="{{kuaishou.length}}">
  75. <view class="localCells">快手-评论排行</view>
  76. <chart id="{{'id' + 7}}" canvasId="{{'canvasId' + 7}}" list="{{kuaishou}}" wx:if="{{kuaishou && kuaishou.length}}"
  77. yType="comment_count" xType="nickname" />
  78. </view>
  79. <view class="itemView" wx:if="{{weiboBtnListread.length}}">
  80. <view class="localCells">微博-阅读量趋势</view>
  81. <lineChart id="{{'id' + 11}}" canvasId="{{'canvasId' + 11}}" type="line" select="{{selectread}}"
  82. bindlineChenge="lineChengeread"
  83. btnList="{{weiboBtnListread}}"
  84. isShow="{{isShow}}" wx:if="{{weiboBtnListread && weiboBtnListread.length}}" list="{{weiboread}}" yType="value" xType="time" />
  85. </view>
  86. <view class="itemView" wx:if="{{weiboBtnListme.length}}">
  87. <view class="localCells">微博-讨论趋势</view>
  88. <lineChart id="{{'id' + 10}}" canvasId="{{'canvasId' + 10}}" type="line" select="{{selectme}}"
  89. bindlineChenge="lineChengeme"
  90. btnList="{{weiboBtnListme}}"
  91. wx:if="{{weiboBtnListme && weiboBtnListme.length}}" isShow="{{isShow}}" list="{{weibome}}" yType="value" xType="time" />
  92. </view>
  93. <view class="itemView" wx:if="{{weiboBtnListori.length}}">
  94. <view class="localCells">微博-原创趋势</view>
  95. <lineChart id="{{'id' + 9}}" canvasId="{{'canvasId' + 9}}" type="line" select="{{selectori}}"
  96. bindlineChenge="lineChengeori"
  97. btnList="{{weiboBtnListori}}"
  98. isShow="{{isShow}}" wx:if="{{weiboBtnListori && weiboBtnListori.length}}" list="{{weiboori}}" yType="value" xType="time" />
  99. </view>
  100. <view class="itemView" wx:if="{{yangshi.length}}">
  101. <view class="localCells">央视-浏览排行</view>
  102. <chart id="{{'id' + 8}}" canvasId="{{'canvasId' + 8}}" wx:if="{{yangshi && yangshi.length}}" list="{{yangshi}}"
  103. yType="pv" xType="nickname" />
  104. </view>
  105. <!-- 错误提示 -->
  106. <mp-toptips msg="{{error}}" ext-class="toptips" type="error" show="{{error}}"></mp-toptips>
  107. </view>