topic.wxml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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" data-platform="kuaishou" wx:if="{{headData.has_live_kuaishou_data}}">
  56. <view class="kvmText">快手直播</view>
  57. </view>
  58. <view class="kvm" bindtap="toLive" data-platform="douyin" wx:if="{{headData.has_live_douyin_data}}">
  59. <view class="kvmText">抖音直播</view>
  60. </view>
  61. <view class="kvm" bindtap="toSecond" wx:if="{{sonList && sonList.length}}">
  62. <view class="kvmText">二次传播</view>
  63. </view>
  64. </view>
  65. <view class="itemView" wx:if="{{contrast.length}}">
  66. <view class="localCells">平台对比</view>
  67. <chart list="{{contrast}}" id="{{'id' + 1}}" canvasId="{{'canvasId' + 1}}" wx:if="{{contrast && contrast.length}}"
  68. yType="total_pv" xType="platform" />
  69. </view>
  70. <view class="itemView" wx:if="{{all.length}}">
  71. <view class="localCells">账号排名</view>
  72. <chart id="{{'id' + 2}}" canvasId="{{'canvasId' + 2}}"
  73. btnList="{{[{name:'点赞', type:'digg_count'},{name:'评论', type:'comment_count'},{name:'转发', type:'forward_count'}]}}"
  74. list="{{all}}" yType="digg_count" xType="nickname" />
  75. </view>
  76. <view class="itemView" style="padding: 0" wx:if="{{!!imgURL}}">
  77. <view class="localCells" style="padding: 5px 10px;">词云</view>
  78. <image bindload="imgLoad"
  79. style="{{'display: block;width: 100%;max-width: 441px;margin:0 auto;height:'+ height + 'px'}}" src="{{imgURL}}" />
  80. <!-- <wordCloud wordsCloud="{{wordList}}" yType="value" xType="name" /> -->
  81. </view>
  82. <view class="itemView" wx:if="{{douyin.length}}">
  83. <view class="localCells">抖音-评论排行</view>
  84. <chart id="{{'id' + 3}}" canvasId="{{'canvasId' + 3}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  85. yType="comment_count" xType="nickname" />
  86. </view>
  87. <view class="itemView" wx:if="{{douyin.length}}">
  88. <view class="localCells">抖音-点赞排行</view>
  89. <chart id="{{'id' + 4}}" canvasId="{{'canvasId' + 4}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  90. yType="digg_count" xType="nickname" />
  91. </view>
  92. <view class="itemView" wx:if="{{douyin.length && title !== '西安'}}">
  93. <view class="localCells">抖音-粉丝量排行</view>
  94. <chart id="{{'id' + 5}}" canvasId="{{'canvasId' + 5}}" list="{{douyin}}" wx:if="{{douyin && douyin.length}}"
  95. yType="mplatform_followers_count" xType="nickname" />
  96. </view>
  97. <view class="itemView" wx:if="{{kuaishou.length}}">
  98. <view class="localCells">快手-播放量排行</view>
  99. <chart id="{{'id' + 6}}" canvasId="{{'canvasId' + 6}}" list="{{kuaishou}}" wx:if="{{kuaishou && kuaishou.length}}"
  100. yType="pv" xType="nickname" />
  101. </view>
  102. <view class="itemView" wx:if="{{kuaishou.length}}">
  103. <view class="localCells">快手-评论排行</view>
  104. <chart id="{{'id' + 7}}" canvasId="{{'canvasId' + 7}}" list="{{kuaishou}}" wx:if="{{kuaishou && kuaishou.length}}"
  105. yType="comment_count" xType="nickname" />
  106. </view>
  107. <view class="itemView" wx:if="{{weiboBtnListread.length}}">
  108. <view class="localCells">微博-阅读量趋势</view>
  109. <lineChart id="{{'id' + 11}}" canvasId="{{'canvasId' + 11}}" type="line" select="{{selectread}}"
  110. bindlineChenge="lineChengeread" btnList="{{weiboBtnListread}}" isShow="{{isShow}}"
  111. wx:if="{{weiboBtnListread && weiboBtnListread.length}}" list="{{weiboread}}" yType="value" xType="time" />
  112. </view>
  113. <view class="itemView" wx:if="{{weiboBtnListme.length}}">
  114. <view class="localCells">微博-讨论趋势</view>
  115. <lineChart id="{{'id' + 10}}" canvasId="{{'canvasId' + 10}}" type="line" select="{{selectme}}"
  116. bindlineChenge="lineChengeme" btnList="{{weiboBtnListme}}" wx:if="{{weiboBtnListme && weiboBtnListme.length}}"
  117. isShow="{{isShow}}" list="{{weibome}}" yType="value" xType="time" />
  118. </view>
  119. <view class="itemView" wx:if="{{weiboBtnListori.length}}">
  120. <view class="localCells">微博-原创趋势</view>
  121. <lineChart id="{{'id' + 9}}" canvasId="{{'canvasId' + 9}}" type="line" select="{{selectori}}"
  122. bindlineChenge="lineChengeori" btnList="{{weiboBtnListori}}" isShow="{{isShow}}"
  123. wx:if="{{weiboBtnListori && weiboBtnListori.length}}" list="{{weiboori}}" yType="value" xType="time" />
  124. </view>
  125. <view class="itemView" wx:if="{{yangshi.length}}">
  126. <view class="localCells">央视-浏览排行</view>
  127. <chart id="{{'id' + 8}}" canvasId="{{'canvasId' + 8}}" wx:if="{{yangshi && yangshi.length}}" list="{{yangshi}}"
  128. yType="pv" xType="nickname" />
  129. </view>
  130. <!-- 错误提示 -->
  131. <mp-toptips msg="{{error}}" ext-class="toptips" type="error" show="{{error}}"></mp-toptips>
  132. </view>
  133. <!-- <cover-view wx:if="{{detail !== ''}}" style="width: 750rpx; height: 100vh;position: absolute;background-color:rgba(0,0,0,.5)">
  134. <mp-dialog show="{{detail !== ''}}" bindbuttontap="showDetail" buttons="{{[{ text: '确定'}]}}">
  135. <view>{{detail}}</view>
  136. </mp-dialog>
  137. </cover-view> -->
  138. <cover-view wx:if="{{detail !== ''}}" class="modolBg">
  139. <cover-view class="local_dialog">
  140. <cover-view class="local_dialog_title">
  141. <cover-view class="local_dialog_close" bindtap="showDetail">
  142. <cover-view class="local_dialog_close_left"></cover-view>
  143. <cover-view class="local_dialog_close_right"></cover-view>
  144. </cover-view>
  145. <cover-view class="title">
  146. {{diglogTitle}}
  147. </cover-view>
  148. </cover-view>
  149. <cover-view class="local_dialog_body">
  150. <cover-view
  151. style="padding-right:5px;white-space:pre-wrap;line-height: 1.5em;width:490rpx;margin: 0 auto;">
  152. {{detail}}
  153. </cover-view>
  154. </cover-view>
  155. </cover-view>
  156. </cover-view>
  157. <!-- <mp-toptips msg="{{detail}}" type="info" show="{{detail !== ''}}"></mp-toptips> -->