topic.wxml 8.9 KB

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