sonTopic.wxml 8.0 KB

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