topic.wxml 8.6 KB

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