topic.wxml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <!--pages/home/components/contrast/contrast.wxml-->
  2. <wxs module="filter" src="/components/table/filter.wxs" />
  3. <view class="topic">
  4. <view class="topTable">
  5. <view class="topicTable title">
  6. <view wx:if="{{headData.total_pv != -1}}" data-introduce="total_pv" bindtap="showDetail" class="topicItem">
  7. 总浏览量 <text wx:if="{{select == 1}}" class="show">?</text> :
  8. </view>
  9. <view wx:if="{{headData.total_digg != -1}}" data-introduce="total_digg" bindtap="showDetail" class="topicItem">
  10. 总点赞数
  11. <text wx:if="{{select == 1}}" class="show">?</text> :
  12. </view>
  13. <view wx:if="{{headData.total_comment != -1}}" data-introduce="total_forward" bindtap="showDetail"
  14. class="topicItem">总转发量
  15. <text wx:if="{{select == 1}}" class="show">?</text> :
  16. </view>
  17. <view wx:if="{{headData.live_digg != -1}}" data-introduce="live_digg" bindtap="showDetail" class="topicItem">直播点赞数
  18. <text wx:if="{{select == 1}}" class="show">?</text> :
  19. </view>
  20. </view>
  21. <view class="topicTable">
  22. <view wx:if="{{headData.total_pv != -1}}" class="topicItem">{{filter.valueFormat(headData.total_pv)}}</view>
  23. <view wx:if="{{headData.total_digg != -1}}" class="topicItem">{{filter.valueFormat(headData.total_digg)}}</view>
  24. <view wx:if="{{headData.total_comment != -1}}" class="topicItem">{{filter.valueFormat(headData.total_forward)}}
  25. </view>
  26. <view wx:if="{{headData.live_digg != -1}}" class="topicItem">{{filter.valueFormat(headData.live_digg)}}</view>
  27. </view>
  28. <view class="topicTable title">
  29. <view wx:if="{{headData.total_ori != -1}}" data-introduce="total_ori" bindtap="showDetail"
  30. class="topicItem topicItemRigh">原创量 <text wx:if="{{select == 1}}" class="show">?</text> :
  31. </view>
  32. <view wx:if="{{headData.total_comment != -1}}" data-introduce="total_comment" bindtap="showDetail"
  33. class="topicItem topicItemRigh">总评论数 <text wx:if="{{select == 1}}" class="show">?</text> :
  34. </view>
  35. <view class="topicItem topicItemRigh">
  36. <view wx:if="{{headData.live_uv != -1}}" data-introduce="live_uv" bindtap="showDetail">直播观看人数 <text
  37. wx:if="{{select == 1}}" class="show">?</text> :</view>
  38. </view>
  39. <view wx:if="{{headData.live_digg != -1}}" data-introduce="live_digg" bindtap="showDetail" class="topicItem">直播评论数
  40. <text wx:if="{{select == 1}}" class="show">?</text> :
  41. </view>
  42. </view>
  43. <view class="topicTable">
  44. <view wx:if="{{headData.total_ori != -1}}" class="topicItem">{{filter.valueFormat(headData.total_ori)}}</view>
  45. <view wx:if="{{headData.total_comment != -1}}" class="topicItem">{{filter.valueFormat(headData.total_comment)}}
  46. </view>
  47. <view class="topicItem">
  48. <view wx:if="{{headData.live_uv != -1}}">{{filter.valueFormat(headData.live_uv)}}</view>
  49. </view>
  50. <view wx:if="{{headData.live_digg != -1}}" class="topicItem">{{filter.valueFormat(headData.live_comment)}}
  51. </view>
  52. </view>
  53. </view>
  54. <view class="pKvm">
  55. <view class="kvm" bindtap="toLive" wx:if="{{headData.has_live_data}}">
  56. <view class="kvmText">直播数据</view>
  57. </view>
  58. <view class="kvm" bindtap="toSecond" wx:if="{{sonList && sonList.length}}">
  59. <view class="kvmText">二次传播</view>
  60. </view>
  61. </view>
  62. <view class="itemView" wx:if="{{contrast.length}}">
  63. <view class="localCells">平台对比</view>
  64. <chart list="{{contrast}}" id="{{'id' + 1}}" canvasId="{{'canvasId' + 1}}" wx:if="{{contrast && contrast.length}}"
  65. yType="total_pv" xType="platform" />
  66. </view>
  67. <view class="itemView" wx:if="{{all.length}}">
  68. <view class="localCells">账号排名</view>
  69. <chart id="{{'id' + 2}}" canvasId="{{'canvasId' + 2}}"
  70. btnList="{{[{name:'点赞', type:'digg_count'},{name:'评论', type:'comment_count'},{name:'转发', type:'forward_count'}]}}"
  71. list="{{all}}" yType="digg_count" xType="nickname" />
  72. </view>
  73. <view class="itemView" style="padding: 0" wx:if="{{!!imgURL}}">
  74. <view class="localCells" style="padding: 5px 10px;">词云</view>
  75. <image bindload="imgLoad"
  76. style="{{'display: block;width: 100%;max-width: 441px;margin:0 auto;height:'+ height + 'px'}}" src="{{imgURL}}" />
  77. <!-- <wordCloud wordsCloud="{{wordList}}" yType="value" xType="name" /> -->
  78. </view>
  79. <view class="itemView" wx:if="{{douyin.length}}">
  80. <view class="localCells">抖音-评论排行</view>
  81. <chart id="{{'id' + 3}}" canvasId="{{'canvasId' + 3}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  82. yType="comment_count" xType="nickname" />
  83. </view>
  84. <view class="itemView" wx:if="{{douyin.length}}">
  85. <view class="localCells">抖音-点赞排行</view>
  86. <chart id="{{'id' + 4}}" canvasId="{{'canvasId' + 4}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  87. yType="digg_count" xType="nickname" />
  88. </view>
  89. <view class="itemView" wx:if="{{douyin.length && title !== '西安'}}">
  90. <view class="localCells">抖音-粉丝量排行</view>
  91. <chart id="{{'id' + 5}}" canvasId="{{'canvasId' + 5}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  92. yType="mplatform_followers_count" xType="nickname" />
  93. </view>
  94. <view class="itemView" wx:if="{{kuaishou.length}}">
  95. <view class="localCells">快手-播放量排行</view>
  96. <chart id="{{'id' + 6}}" canvasId="{{'canvasId' + 6}}" list="{{kuaishou}}" wx:if="{{kuaishou && kuaishou.length}}"
  97. yType="pv" xType="nickname" />
  98. </view>
  99. <view class="itemView" wx:if="{{kuaishou.length}}">
  100. <view class="localCells">快手-评论排行</view>
  101. <chart id="{{'id' + 7}}" canvasId="{{'canvasId' + 7}}" list="{{kuaishou}}" wx:if="{{kuaishou && kuaishou.length}}"
  102. yType="comment_count" xType="nickname" />
  103. </view>
  104. <view class="itemView" wx:if="{{weiboBtnListread.length}}">
  105. <view class="localCells">微博-阅读量趋势</view>
  106. <lineChart id="{{'id' + 11}}" canvasId="{{'canvasId' + 11}}" type="line" select="{{selectread}}"
  107. bindlineChenge="lineChengeread" btnList="{{weiboBtnListread}}" isShow="{{isShow}}"
  108. wx:if="{{weiboBtnListread && weiboBtnListread.length}}" list="{{weiboread}}" yType="value" xType="time" />
  109. </view>
  110. <view class="itemView" wx:if="{{weiboBtnListme.length}}">
  111. <view class="localCells">微博-讨论趋势</view>
  112. <lineChart id="{{'id' + 10}}" canvasId="{{'canvasId' + 10}}" type="line" select="{{selectme}}"
  113. bindlineChenge="lineChengeme" btnList="{{weiboBtnListme}}" wx:if="{{weiboBtnListme && weiboBtnListme.length}}"
  114. isShow="{{isShow}}" list="{{weibome}}" yType="value" xType="time" />
  115. </view>
  116. <view class="itemView" wx:if="{{weiboBtnListori.length}}">
  117. <view class="localCells">微博-原创趋势</view>
  118. <lineChart id="{{'id' + 9}}" canvasId="{{'canvasId' + 9}}" type="line" select="{{selectori}}"
  119. bindlineChenge="lineChengeori" btnList="{{weiboBtnListori}}" isShow="{{isShow}}"
  120. wx:if="{{weiboBtnListori && weiboBtnListori.length}}" list="{{weiboori}}" yType="value" xType="time" />
  121. </view>
  122. <view class="itemView" wx:if="{{yangshi.length}}">
  123. <view class="localCells">央视-浏览排行</view>
  124. <chart id="{{'id' + 8}}" canvasId="{{'canvasId' + 8}}" wx:if="{{yangshi && yangshi.length}}" list="{{yangshi}}"
  125. yType="pv" xType="nickname" />
  126. </view>
  127. <!-- 错误提示 -->
  128. <mp-toptips msg="{{error}}" ext-class="toptips" type="error" show="{{error}}"></mp-toptips>
  129. </view>
  130. <!-- <cover-view wx:if="{{detail !== ''}}" style="width: 750rpx; height: 100vh;position: absolute;background-color:rgba(0,0,0,.5)">
  131. <mp-dialog show="{{detail !== ''}}" bindbuttontap="showDetail" buttons="{{[{ text: '确定'}]}}">
  132. <view>{{detail}}</view>
  133. </mp-dialog>
  134. </cover-view> -->
  135. <cover-view wx:if="{{detail !== ''}}" class="modolBg">
  136. <cover-view class="local_dialog">
  137. <cover-view class="local_dialog_title">
  138. <cover-view class="local_dialog_close" bindtap="showDetail">
  139. <cover-view class="local_dialog_close_left"></cover-view>
  140. <cover-view class="local_dialog_close_right"></cover-view>
  141. </cover-view>
  142. <cover-view class="title">
  143. {{diglogTitle}}
  144. </cover-view>
  145. </cover-view>
  146. <cover-view class="local_dialog_body">
  147. <cover-view
  148. style="padding-right:5px;white-space:pre-wrap;line-height: 1.5em;width:490rpx;margin: 0 auto;">
  149. {{detail}}
  150. </cover-view>
  151. </cover-view>
  152. </cover-view>
  153. </cover-view>
  154. <!-- <mp-toptips msg="{{detail}}" type="info" show="{{detail !== ''}}"></mp-toptips> -->