大数据平台的小程序版本

index.wxml 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <!--pages/videoDetail/videoDetail.wxml-->
  2. <wxs module="filter" src="../../../assets/js/common.wxs"></wxs>
  3. <view class="detail" bindtap="closeDiv">
  4. <view class="info">
  5. <view class="box">
  6. <image class="userImg" data-user_id="{{detailObj.user_id}}" catchtap="goUserDetail" style="margin-right:10rpx;" mode="widthFix" src="{{detailObj.head_url}}"></image>
  7. <view class="right">
  8. <view class="usernameBox">
  9. <view class="username" data-user_id="{{detailObj.user_id}}" catchtap="goUserDetail">{{detailObj.nickname?detailObj.nickname:'-'}}</view>
  10. <image class="overdue" wx:if="{{detailObj.cookie_status!=1}}" mode="widthFix" src="../../../assets/img/overdue.png"></image>
  11. <view class="follow" catchtap="goClaim">{{!claimFlag?'认领视频号':(cookie_status!=1?'重新激活':'已认领')}}</view>
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="typeBox">
  17. <view class="{{type==1?'active':''}}" catchtap="typeEvent" data-type="1">
  18. <image src="../../../assets/img/detail_qushi.png" mode="widthFix"></image>
  19. <text>关注者数据</text>
  20. </view>
  21. <view class="{{type==2?'active':''}}" catchtap="typeEvent" data-type="2">
  22. <image src="../../../assets/img/move.png" mode="widthFix"></image>
  23. <text>动态数据</text>
  24. </view>
  25. <view class="{{type==3?'active':''}}" catchtap="typeEvent" data-type="3">
  26. <image src="../../../assets/img/detail_video.png" mode="widthFix"></image>
  27. <text>直播数据</text>
  28. </view>
  29. </view>
  30. <!-- 关注者数据 -->
  31. <block wx:if="{{type==1}}">
  32. <view class="tabList">
  33. <view class="{{tab=='1'?'tabActive':''}}" data-type="1" catchtap="checkTab">关注者数据</view>
  34. <view class="{{tab=='2'?'tabActive':''}}" data-type="2" catchtap="checkTab">用户画像</view>
  35. <view class="total">
  36. 关注者总数<text>{{detailObj.real_fans_count?filter.NumberHandle(detailObj.real_fans_count):0}}</text>
  37. </view>
  38. </view>
  39. <view wx:if="{{tab==1}}">
  40. <view class="dataInfo">
  41. <view class="flex">
  42. <view>周期指标</view>
  43. <view>
  44. <view wx:for="{{timeList}}" wx:key="index" class="{{timeObj.id == item.id ? 'choiceActive' : ''}} choice" catchtap="checkTime" data-type="1" data-item="{{item}}" >
  45. {{item.name}}
  46. </view>
  47. </view>
  48. <!-- <view class="choiceActive choice" data-type="1" catchtap="showTime">
  49. {{timeObj.name}}
  50. <view class="sj"></view>
  51. </view> -->
  52. <!-- <view class="timeChoice" catchtap wx:if="{{showTimeCheck}}">
  53. <view class="block">
  54. <view class="timeChoiceBox">
  55. <view wx:for="{{timeList}}" wx:key="index" class="{{timeObj.id == item.id ? 'choiceActive' : ''}}" catchtap="checkTime" data-type="1" data-item="{{item}}" >{{item.name}}</view>
  56. </view>
  57. </view>
  58. </view> -->
  59. </view>
  60. <view style="display:flex;">
  61. <view class="li">
  62. <view class="text">净增关注</view>
  63. <view class="num">{{followObj.total.net_add||followObj.total.net_add==0?filter.NumberHandle(followObj.total.net_add):'-'}}</view>
  64. <view class="num">{{followObj.rate.net_add||followObj.rate.net_add==0?followObj.rate.net_add:'-'}}</view>
  65. </view>
  66. <view class="li">
  67. <view class="text">新增关注</view>
  68. <view class="num">{{followObj.total.add||followObj.total.add==0?filter.NumberHandle(followObj.total.add):'-'}}</view>
  69. <view class="num">{{followObj.rate.add||followObj.rate.add==0?followObj.rate.add:'-'}}</view>
  70. </view>
  71. <view class="li">
  72. <view class="text">取消关注</view>
  73. <view class="num">{{followObj.total.reduce||followObj.total.reduce==0?filter.NumberHandle(followObj.total.reduce):'-'}}</view>
  74. <view class="num">{{followObj.rate.reduce||followObj.rate.reduce==0?followObj.rate.reduce:'-'}}</view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="modular">
  79. <view class="modularTop">
  80. <view class="title">增长趋势</view>
  81. <!-- <view class="choiceActive choice" data-type="2" catchtap="showTime">
  82. {{addTimeObj.name}}
  83. <view class="sj"></view>
  84. </view> -->
  85. <view>
  86. <view wx:for="{{timeRangeList}}" wx:key="index" class="{{addTimeObj.id == item.id ? 'choiceActive' : ''}} choice" catchtap="checkTime" data-type="2" data-item="{{item}}">
  87. {{item.name}}
  88. </view>
  89. </view>
  90. <!-- <view class="timeChoice" catchtap wx:if="{{showFollowTime}}">
  91. <view class="block">
  92. <view class="timeChoiceBox">
  93. <view wx:for="{{timeRangeList}}" wx:key="index" class="{{addTimeObj.id == item.id ? 'choiceActive' : ''}}" catchtap="checkTime" data-type="2" data-item="{{item}}" >{{item.name}}</view>
  94. </view>
  95. </view>
  96. </view> -->
  97. </view>
  98. <view class="echartsDiv">
  99. <ec-canvas id="addEcharts" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  100. </view>
  101. </view>
  102. </view>
  103. <view wx:else class="fanData">
  104. <view class="modular">
  105. <view class="modularTop">
  106. <view class="title">性别</view>
  107. </view>
  108. <view class="echartsDiv" wx:if="{{sexTrend}}">
  109. <ec-canvas id="sexEcharts" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  110. </view>
  111. <view class="none" wx:else>
  112. <image mode="widthFix" src="../../../assets/img/noList.png"></image>
  113. <view>暂无数据</view>
  114. </view>
  115. </view>
  116. <view class="modular">
  117. <view class="modularTop">
  118. <view class="title">访问设备</view>
  119. </view>
  120. <view class="echartsDiv" wx:if="{{deviceTrend}}">
  121. <ec-canvas id="deviceEcharts" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  122. </view>
  123. <view class="none" wx:else>
  124. <image mode="widthFix" src="../../../assets/img/noList.png"></image>
  125. <view>暂无数据</view>
  126. </view>
  127. </view>
  128. <view class="modular">
  129. <view class="modularTop">
  130. <view class="title">年龄分布</view>
  131. </view>
  132. <view class="echartsDiv" wx:if="{{ageTrend}}">
  133. <ec-canvas id="ageEcharts" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  134. </view>
  135. <view class="none" wx:else>
  136. <image mode="widthFix" src="../../../assets/img/noList.png"></image>
  137. <view>暂无数据</view>
  138. </view>
  139. </view>
  140. <view class="modular">
  141. <view class="modularTop">
  142. <view class="title">省份分布</view>
  143. </view>
  144. <view class="table">
  145. <view class="th">
  146. <view class="td">排名</view>
  147. <view class="td">省份</view>
  148. <view class="td">人数</view>
  149. <view class="td">占比</view>
  150. </view>
  151. <view class="tableMain" wx:if="{{trendObj.province_list.length>0}}">
  152. <view class="tr" wx:for="{{trendObj.province_list}}">
  153. <view class="td">{{index+1}}</view>
  154. <view class="td">{{item.dim}}</view>
  155. <view class="td">{{item.value}}</view>
  156. <view class="td">{{item.scale}}</view>
  157. </view>
  158. </view>
  159. <view wx:if="{{trendObj.province_list.length==0}}" class="noneTable">
  160. 暂无数据
  161. </view>
  162. </view>
  163. </view>
  164. <view class="modular">
  165. <view class="modularTop">
  166. <view class="title">城市分布</view>
  167. </view>
  168. <view class="table">
  169. <view class="th">
  170. <view class="td">排名</view>
  171. <view class="td">城市</view>
  172. <view class="td">人数</view>
  173. <view class="td">占比</view>
  174. </view>
  175. <view class="tableMain" wx:if="{{trendObj.city_list.length>0}}">
  176. <view class="tr" wx:for="{{trendObj.city_list}}">
  177. <view class="td">{{index+1}}</view>
  178. <view class="td">{{item.dim}}</view>
  179. <view class="td">{{item.value?filter.NumberHandle(item.value):'-'}}</view>
  180. <view class="td">{{item.scale}}</view>
  181. </view>
  182. </view>
  183. <view wx:if="{{trendObj.city_list.length==0}}" class="noneTable">
  184. 暂无数据
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </block>
  190. <!-- 动态数据 -->
  191. <block wx:if="{{type==2}}">
  192. <view class="dataInfo">
  193. <view class="flex">
  194. <view>关键指标</view>
  195. <view>
  196. <view class="{{timeObj.id == item.id ? 'choiceActive' : ''}} choice" wx:for="{{timeList}}" catchtap="checkTime" data-type="1" data-item="{{item}}">
  197. {{item.name}}
  198. </view>
  199. </view>
  200. <!-- <view class="timeChoice" catchtap wx:if="{{showTimeCheck}}">
  201. <view class="block">
  202. <view class="timeChoiceBox">
  203. <view wx:for="{{timeList}}" wx:key="index" class="{{timeObj.id == item.id ? 'choiceActive' : ''}}" catchtap="checkTime" data-type="1" data-item="{{item}}" >{{item.name}}</view>
  204. </view>
  205. </view>
  206. </view> -->
  207. </view>
  208. <view style="display:flex;">
  209. <view class="li">
  210. <view class="text">播放量</view>
  211. <view class="num">{{moveObj.total.browse||moveObj.total.browse==0?filter.NumberHandle(moveObj.total.browse):'-'}}</view>
  212. <view class="num">{{moveObj.rate.browse||moveObj.rate.browse==0?moveObj.rate.browse:'-'}}</view>
  213. </view>
  214. <view class="li">
  215. <view class="text">点赞次数</view>
  216. <view class="num">{{moveObj.total.like||moveObj.total.like==0?filter.NumberHandle(moveObj.total.like):'-'}}</view>
  217. <view class="num">{{moveObj.rate.like||moveObj.rate.like==0?moveObj.rate.like:'-'}}</view>
  218. </view>
  219. <view class="li">
  220. <view class="text">评论次数</view>
  221. <view class="num">{{moveObj.total.comment||moveObj.total.comment==0?filter.NumberHandle(moveObj.total.comment):'-'}}</view>
  222. <view class="num">{{moveObj.rate.comment||moveObj.rate.comment==0?moveObj.rate.comment:'-'}}</view>
  223. </view>
  224. <view class="li">
  225. <view class="text">分享次数</view>
  226. <view class="num">{{moveObj.total.forward||moveObj.total.forward==0?filter.NumberHandle(moveObj.total.forward):'-'}}</view>
  227. <view class="num">{{moveObj.rate.forward||moveObj.rate.forward==0?moveObj.rate.forward:'-'}}</view>
  228. </view>
  229. <view class="li">
  230. <view class="text">收藏次数</view>
  231. <view class="num">{{moveObj.total.fav||moveObj.total.fav==0?filter.NumberHandle(moveObj.total.fav):'-'}}</view>
  232. <view class="num">{{moveObj.rate.fav||moveObj.rate.fav==0?moveObj.rate.fav:'-'}}</view>
  233. </view>
  234. </view>
  235. </view>
  236. <view class="linkBox">
  237. <view class="linkTop">
  238. <text>单篇动态</text>
  239. </view>
  240. <view class="moveLlive" wx:if="{{moveLength!=-1}}">
  241. <view class="moveItem" wx:for="{{moveList}}" wx:key="video_id" data-item="{{item}}" catchtap="toDetail">
  242. <view class="flexBox">
  243. <view class="video">
  244. <image class="videoImg" mode="widthFix" src="{{item.thumbUrl}}"></image>
  245. </view>
  246. <view class="right">
  247. <view>
  248. <view class="flex">
  249. <view class="desc" style="width:70vw;max-width:inherit">{{item.description?item.description:'-'}}</view>
  250. </view>
  251. <view class="auth_text" style="width:100%;">发布时间:{{item.createTime}}</view>
  252. </view>
  253. </view>
  254. </view>
  255. <view class="ul">
  256. <view class="li">
  257. <text class="text">播放量</text>
  258. <text class="num">{{item.readCount||item.readCount==0?filter.NumberHandle(item.readCount):'-'}}</text>
  259. </view>
  260. <view class="li">
  261. <text class="text">点赞次数</text>
  262. <text class="num">{{item.likeCount||item.likeCount==0?filter.NumberHandle(item.likeCount):'-'}}</text>
  263. </view>
  264. <view class="li">
  265. <text class="text">评论次数</text>
  266. <text class="num">{{item.commentCount||item.commentCount==0?filter.NumberHandle(item.commentCount):'-'}}</text>
  267. </view>
  268. <view class="li">
  269. <text class="text">分享次数</text>
  270. <text class="num">{{item.forwardCount||item.forwardCount==0?filter.NumberHandle(item.forwardCount):'-'}}</text>
  271. </view>
  272. <view class="li">
  273. <text class="text">收藏次数</text>
  274. <text class="num">{{item.favCount||item.favCount==0?filter.NumberHandle(item.favCount):'-'}}</text>
  275. </view>
  276. </view>
  277. </view>
  278. </view>
  279. <view class="none" wx:if="{{moveLength==-1}}">
  280. <image mode="widthFix" src="../../../assets/img/noList.png"></image>
  281. <view>暂无数据</view>
  282. </view>
  283. </view>
  284. </block>
  285. <!-- 直播数据 -->
  286. <block wx:if="{{type==3}}">
  287. <view class="dataInfo">
  288. <view class="flex">
  289. <view>关键指标</view>
  290. <!-- <view class="choiceActive choice" data-type="1" catchtap="showTime">
  291. {{timeObj.name}}
  292. <view class="sj"></view>
  293. </view> -->
  294. <view>
  295. <view wx:for="{{timeList}}" wx:key="index" class="{{timeObj.id == item.id ? 'choiceActive' : ''}} choice" catchtap="checkTime" data-type="1" data-item="{{item}}">
  296. {{item.name}}
  297. </view>
  298. </view>
  299. <!-- <view class="timeChoice" catchtap wx:if="{{showTimeCheck}}">
  300. <view class="block">
  301. <view class="timeChoiceBox">
  302. <view wx:for="{{timeList}}" wx:key="index" class="{{timeObj.id == item.id ? 'choiceActive' : ''}}" catchtap="checkTime" data-type="1" data-item="{{item}}" >{{item.name}}</view>
  303. </view>
  304. </view>
  305. </view> -->
  306. </view>
  307. <view style="display:flex;">
  308. <view class="li">
  309. <view class="text">直播场次</view>
  310. <view class="num">{{liveDataObj.total.live_count||liveDataObj.total.live_count==0?filter.NumberHandle(liveDataObj.total.live_count):'-'}}</view>
  311. <view class="num">{{liveDataObj.rate.live_count||liveDataObj.rate.live_count==0?liveDataObj.rate.live_count:'-'}}</view>
  312. </view>
  313. <view class="li">
  314. <view class="text">观众总数</view>
  315. <view class="num">{{liveDataObj.total.audience_count||liveDataObj.total.audience_count==0?filter.NumberHandle(liveDataObj.total.audience_count):'-'}}</view>
  316. <view class="num">{{liveDataObj.rate.audience_count||liveDataObj.rate.audience_count==0?liveDataObj.rate.audience_count:'-'}}</view>
  317. </view>
  318. <view class="li">
  319. <view class="text">总热度</view>
  320. <view class="num">{{liveDataObj.total.hot_quota||liveDataObj.total.hot_quota==0?filter.NumberHandle(liveDataObj.total.hot_quota):'-'}}</view>
  321. <view class="num">{{liveDataObj.rate.hot_quota||liveDataObj.rate.hot_quota==0?liveDataObj.rate.hot_quota:'-'}}</view>
  322. </view>
  323. <view class="li">
  324. <view class="text">新增关注</view>
  325. <view class="num">{{liveDataObj.total.new_follow_count||liveDataObj.total.new_follow_count==0?filter.NumberHandle(liveDataObj.total.new_follow_count):'-'}}</view>
  326. <view class="num">{{liveDataObj.rate.new_follow_count||liveDataObj.rate.new_follow_count==0?liveDataObj.rate.new_follow_count:'-'}}</view>
  327. </view>
  328. </view>
  329. </view>
  330. <view class="linkBox">
  331. <view class="linkTop">
  332. <text>单篇动态</text>
  333. </view>
  334. <view class="moveList" wx:if="{{liveLength!=-1}}">
  335. <view class="moveItem" wx:for="{{liveList}}" wx:key="video_id" data-user_id="{{item.id}}" catchtap="toUserDetail">
  336. <view class="flexBox">
  337. <view class="video">
  338. <image class="videoImg" mode="widthFix" src="{{item.coverImg}}"></image>
  339. </view>
  340. <view class="right">
  341. <view>
  342. <view class="flex">
  343. <view class="desc" style="width:100%;max-width:inherit">直播时间:{{item.createTime?item.createTime:'-'}}</view>
  344. </view>
  345. <view class="auth_text" style="width:100%;max-width:inherit">直播时长:{{item.liveDuration}}</view>
  346. </view>
  347. </view>
  348. </view>
  349. <view class="ul blockUl">
  350. <view class="li">
  351. <text class="text">观众总数</text>
  352. <text class="num">{{item.totalAudienceCount||item.totalAudienceCount==0?filter.NumberHandle(item.totalAudienceCount):'-'}}</text>
  353. </view>
  354. <view class="li">
  355. <text class="text">最高在线</text>
  356. <text class="num">{{item.maxOnlineCount||item.maxOnlineCount==0?filter.NumberHandle(item.maxOnlineCount):'-'}}</text>
  357. </view>
  358. <view class="li">
  359. <text class="text">喝彩次数</text>
  360. <text class="num">{{item.totalCheerCount||item.totalCheerCount==0?filter.NumberHandle(item.totalCheerCount):'-'}}</text>
  361. </view>
  362. <view class="li">
  363. <text class="text">评论次数</text>
  364. <text class="num">{{item.totalCommentCount||item.totalCommentCount==0?filter.NumberHandle(item.totalCommentCount):'-'}}</text>
  365. </view>
  366. <view class="li">
  367. <text class="text">分享次数</text>
  368. <text class="num">{{item.forwardCount||item.forwardCount==0?filter.NumberHandle(item.forwardCount):'-'}}</text>
  369. </view>
  370. <view class="li">
  371. <text class="text">新增关注</text>
  372. <text class="num">{{item.newFollowCount||item.newFollowCount==0?filter.NumberHandle(item.newFollowCount):'-'}}</text>
  373. </view>
  374. </view>
  375. </view>
  376. </view>
  377. <view class="none" wx:if="{{liveLength==-1}}">
  378. <image mode="widthFix" src="../../../assets/img/noList.png"></image>
  379. <view>暂无数据</view>
  380. </view>
  381. </view>
  382. </block>
  383. </view>
  384. <view class="zzc" wx:if="{{zzcFlag}}" catchtap="closeToast"></view>
  385. <image wx:if="{{scrollTop>=1000}}" catchtap="goScrolltop" class="goTop" src="https://kx-gw.oss-cn-beijing.aliyuncs.com/goTop_icon.png"/>
  386. <claim wx:if="{{authorizeFlag}}" user_id="{{user_id}}" bind:closeClaimMask='claimInit' bind:claimResetList='claimInit'></claim>