大数据平台的小程序版本

musicDetail.wxml 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <view class="musicTopInfo">
  2. <view class="left">
  3. <image src="{{music_data.music_img}}" mode="widthFix"/>
  4. </view>
  5. <view class="right">
  6. <view class="musicName">{{music_data.music}}</view>
  7. <view class="musicPlay" bindtap="play">{{isplay? '点击暂停' : '点击播放'}} <image src="{{isplay?'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/music_suspend.png':'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/music_play.png'}}" mode="widthFix"/></view>
  8. </view>
  9. <image class="detail_wt" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/detail_wt.png" mode="widthFix"/>
  10. </view>
  11. <!-- -->
  12. <scroll-view class="scroll-view_H {{scrollTop>146 ? 'scroll-view-fixed' : ''}}"
  13. scroll-left="{{scroll_left}}"
  14. scroll-with-animation="true"
  15. scroll-x="true">
  16. <view class="scroll-view-item_H">
  17. <view wx:for="{{topArray}}"
  18. bindtap="clickTitle"
  19. data-type = "{{item.type}}"
  20. class="{{type === item.type ?'active':''}}"
  21. wx:key="index">{{item.title}}</view>
  22. </view>
  23. </scroll-view>
  24. <!-- 数据趋势 -->
  25. <view class="dataTrend" wx:if="{{type == '1'}}">
  26. <view class="dataInfo">
  27. <view class="info">
  28. <view class="infoTitle">作品数</view>
  29. <text>{{music_data.photo_count}}</text>
  30. </view>
  31. <view class="info">
  32. <view class="infoTitle">1天增量</view>
  33. <text>{{music_data.photo_count_day1}}</text>
  34. </view>
  35. <view class="info">
  36. <view class="infoTitle">7天增量</view>
  37. <text>{{music_data.photo_count_day7}}</text>
  38. </view>
  39. </view>
  40. <view class="echartsDiv">
  41. <view class="trendHint">近7天视频增量</view>
  42. <ec-canvas id="trendEcharts" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  43. </view>
  44. </view>
  45. <!-- 相关视频 -->
  46. <view wx:if="{{type == '2'}}" class="videoView">
  47. <view>
  48. <text class="listHint">共 {{videoTotal}} 个相关视频</text>
  49. </view>
  50. <view class="listView" wx:for="{{videosList}}" wx:key="photo_id">
  51. <view class="infoView">
  52. <view class="coverImg">
  53. <image src="{{item.main_url}}" mode="widthFix"></image>
  54. </view>
  55. <view class="info">
  56. <view class="caption">{{item.caption}}</view>
  57. <view class="nameInfo">
  58. <view class="name">
  59. <image src="{{item.headurl}}" mode="widthFix"></image>
  60. <text>{{item.user_name}}</text>
  61. </view>
  62. </view>
  63. <view class="time">{{item.time}}</view>
  64. <view class="other_info">
  65. <view>播放量 <text>{{item.view_count}}</text></view>
  66. <view>点赞量 <text>{{item.like_count}}</text></view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 相关达人 -->
  73. <view class="bringGoodsList" wx:if="{{type == '3'}}">
  74. <view>
  75. <text class="listHint">共 {{hrListTotal}} 位相关达人</text>
  76. </view>
  77. <view class="bringGoodsView">
  78. <view class="bringGoodsInfo" wx:for="{{hrList}}" wx:key="user_id" bindtap="goHrDetail" data-userid='{{item.user_id}}'>
  79. <view class="videoImg">
  80. <image src="{{item.headurl}}" mode="widthFix"></image>
  81. </view>
  82. <view class="info">
  83. <view class="name">{{item.user_name}}</view>
  84. <view class="fan"><view>作品数 <text>{{item.video_count}}</text></view></view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <!-- 红人分布 -->
  90. <view class="hrDistribute" wx:if="{{type == '4'}}">
  91. <view class="content">
  92. <view class="echartsDiv" wx:if="{{hrDistributeData.sign.length!=0}}">
  93. <ec-canvas id="drawSign" style="width:100%;" class="canvas" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  94. </view>
  95. <view class="echartsDiv">
  96. <ec-canvas id="drawFan" class="canvas" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  97. </view>
  98. <view class="echartsDiv">
  99. <ec-canvas id="drawAddress" class="canvas" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  100. </view>
  101. <view class="echartsDiv">
  102. <ec-canvas id="drawAge" class="canvas" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  103. </view>
  104. <view class="sexView">
  105. <view class="man">
  106. <image src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/man.png" />
  107. <text>{{sexData.man}}</text>
  108. <view>男性用户</view>
  109. </view>
  110. <view class="woman">
  111. <image src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/woman.png" />
  112. <text>{{sexData.woman}}</text>
  113. <view>女性用户</view>
  114. </view>
  115. <view class="echartsDiv">
  116. <ec-canvas id="drawSex" style="width:100%;" class="canvas" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. <image wx:if="{{scrollTop>=1000}}" bindtap="goScrolltop" class="goTop" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/goTop_icon.png"/>
  122. <text class="desc">更多数据请登录https://data.kuxuan.com进行查看</text>