sonTopic.wxml 5.0 KB

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