大数据平台的小程序版本

index.wxml 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <wxs module="filter" src="../../assets/js/common.wxs"></wxs>
  2. <view class="headerMain" style="{{'height:'+statusNavBarHeight+'px;'}} {{showFix?'background:#2662FF':'background:transparent'}}">
  3. <view class="header" bindtap="switchPlatform" style="{{'top:'+buttonTop+'px;line-height:'+buttonHeight+'px'}}">
  4. <image mode="widthFix" src="../../assets/new_home/sph.png"></image>
  5. 视频号版
  6. <image class="platform_icon" src="/assets/img/jt_x_white.png" mode="widthFix"></image>
  7. </view>
  8. <view class="logo" style="{{'top:'+buttonTop+'px;line-height:'+buttonHeight+'px'}}">问星数据-视频号</view>
  9. </view>
  10. <view class="headerBox">
  11. <swiper class="swiperBox" indicator-dots="{{bannerList.length>1}}"
  12. indicator-active-color="#fff"
  13. indicator-color="rgba(255,255,255,.2)"
  14. circular="true"
  15. style="{{'height:'+(isIPhoneX?'574rpx':'534rpx')}}"
  16. autoplay="{{true}}" interval="3000">
  17. <swiper-item style="height:auto;" wx:for="{{bannerList}}" wx:key="id">
  18. <image src="{{item.small_url}}" wx:if="{{!isIPhoneX}}" mode="widthFix" data-info="{{item}}" bindtap="toOther"></image>
  19. <image wx:else src="{{item.big_url}}" mode="widthFix" data-info="{{item}}" bindtap="toOther"></image>
  20. </swiper-item>
  21. </swiper>
  22. <view class="searchView" bindtap="goSearch" style="top:{{buttonTop+buttonHeight}}px">
  23. <view class="searchBox">
  24. <image src="../../assets/img/search.png"/>
  25. <input placeholder="搜索视频号、趋势、标签、视频动态" disabled placeholder-class="input" type='text' confirm-type="search"/>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="tipBox" wx:if="{{!isverfiled&&showFlag}}" catchtouchmove="true" data-type="1" bindtap="onClose">
  30. <view class="tip" style="{{'top:'+statusNavBarHeight+'px'}}">
  31. <image class="close" data-type="1" catchtap="onClose" src="../../assets/img/new_close.png"></image>
  32. <view class="main">
  33. 点击
  34. <image class="more" mode="widthFix" src="../../assets/img/more.png" alt=""/>
  35. <text>添加到我的小程序</text>
  36. </view>
  37. <image class="tipImg" mode="widthFix" src="../../assets/img/tip_img.png"></image>
  38. </view>
  39. </view>
  40. <!-- 弹层 -->
  41. <view class="maskBox" data-type="2" bindtap="onClose" wx:if="{{!isverfiled&&!showFlag&&showMask}}">
  42. <view class="maskMain">
  43. <image class="img" mode="widthFix" src="{{maskList[0].small_url}}" data-info="{{maskList[0]}}" catchtap="toOther"></image>
  44. <image class="close" data-type="2" catchtap="onClose" src="../../assets/new_home/home_close.png"></image>
  45. </view>
  46. </view>
  47. <view class="index" onPageScroll="onPageScroll">
  48. <view class="panel" style="padding-bottom:{{isIpx?'230rpx':'180rpx;'}}">
  49. <view class="modular">
  50. <view class="modular_item" bindtap="goExtension">
  51. <image src="/assets/img/new.png" mode="widthFix" class="new_icon"></image>
  52. <image src="../../assets/img/tuiguang.png" mode="widthFix"></image>
  53. <text>视频号冷启动</text>
  54. </view>
  55. <view class="modular_item" bindtap="goPageSwitch" data-page="/pages/live/hotLive/index">
  56. <image src="../../assets/new_home/newlive.png" mode="widthFix"></image>
  57. <text>正在直播</text>
  58. </view>
  59. <view class="modular_item" bindtap="gpLivePage">
  60. <image src="../../assets/new_home/live.png" mode="widthFix"></image>
  61. <text>直播监控</text>
  62. </view>
  63. <view class="modular_item" bindtap="goPage" data-page="/pages/newNotice/allNotice/allNotice" data-type="2">
  64. <image src="../../assets/new_home/fans.png" mode="widthFix"></image>
  65. <text>消息订阅</text>
  66. </view>
  67. <view class="modular_item" bindtap="goPageSwitch" data-page="/pages/cyRank/index" data-type="4">
  68. <image src="../../assets/new_home/qu.png" mode="widthFix"></image>
  69. <text>趋势查询</text>
  70. </view>
  71. <!-- <view class="modular_item" bindtap="goLink" data-page="/pages/cyRank/index" data-type="4">
  72. <image src="../../assets/new_home/qu.png" mode="widthFix"></image>
  73. <text>挂链分析</text>
  74. </view> -->
  75. </view>
  76. <view wx:if="{{(loadScene==1047||loadScene==1124)&&wx_subscribe!=1}}" style="width:100%;padding: 0 20rpx;margin:20rpx 0;overflow:hidden;position:relative;">
  77. <official-account style="width:100%!important;border-color:transparent!important;"></official-account>
  78. </view>
  79. <view class="myList" bindtap="checkType">
  80. <image src="../../assets/new_home/sph.png"></image>
  81. 我的视频号
  82. <view class="text" wx:if="{{!userList||userList.length==0}}">随时随地查看我的视频号</view>
  83. <view class="text" style="font-size:20rpx;color:#999" wx:else>更新时间{{userList[swiperIndex].refresh_at}}
  84. <text catchtap="againActivationEvent" data-user_id="{{userList[swiperIndex].user_id}}" wx:if="{{userList[swiperIndex].no_user}}">更新数据</text>
  85. </view>
  86. <image mode="widthFix" src="../../assets/img/jt_right.png"></image>
  87. </view>
  88. <view class="myItem" wx:if="{{userList.length>0}}">
  89. <swiper class="myItemBox" indicator-dots="true"
  90. indicator-active-color="#2562FF"
  91. indicator-color="#D8D8D8"
  92. circular="true"
  93. autoplay="{{autoplay}}" current="{{swiperIndex}}"
  94. bindchange="changeIndex">
  95. <block wx:for="{{userList}}" wx:key="*this">
  96. <swiper-item class="swiper-item userBox" style="height:auto;" data-data="{{item}}" bindtap="toClaimDetail">
  97. <image src="{{item.head_url}}" class="userImg" mode="widthFix"></image>
  98. <view class="infoBox">{{item.nickname?item.nickname:'-'}}</view>
  99. <view class="userData">
  100. <view class="userDataItem">
  101. <text class="data">{{item.post[30].total.like?filter.NumberHandle(item.post[30].total.like):'-'}}</text>
  102. <view>点赞量</view>
  103. </view>
  104. <view class="userDataItem">
  105. <text class="data">{{item.post[30].total.comment?filter.NumberHandle(item.post[30].total.comment):'-'}}</text>
  106. <view>评论量</view>
  107. </view>
  108. <view class="userDataItem">
  109. <text class="data">{{item.post[30].total.forward?filter.NumberHandle(item.post[30].total.forward):'-'}}</text>
  110. <view>转发量</view>
  111. </view>
  112. </view>
  113. <!-- <image src="{{item.userInfo.head_url}}" class="userImg" mode="widthFix"></image>
  114. <view class="infoBox">{{item.userInfo.nickname?item.userInfo.nickname:'-'}}</view>
  115. <view class="userData">
  116. <view class="userDataItem">
  117. <text class="data">{{filter.NumberHandle(item.indicator.post[30].total.like)}}</text>
  118. <view>点赞量</view>
  119. </view>
  120. <view class="userDataItem">
  121. <text class="data">{{filter.NumberHandle(item.indicator.post[30].total.comment)}}</text>
  122. <view>评论量</view>
  123. </view>
  124. <view class="userDataItem">
  125. <text class="data">{{filter.NumberHandle(item.indicator.post[30].total.forward)}}</text>
  126. <view>转发量</view>
  127. </view>
  128. </view> -->
  129. <!-- </view> -->
  130. </swiper-item>
  131. </block>
  132. </swiper>
  133. </view>
  134. <view bindtap="getToken" style="padding-bottom:60rpx;margin-bottom:22rpx" wx:else class="myItem">
  135. <image class="shouquan" style="width:100%" mode="widthFix" src="../../assets/new_home/shouquan.png"></image>
  136. </view>
  137. <!-- 我的收藏 -->
  138. <view class="follw_view">
  139. <view class="title" style="border:none;">
  140. <view class="left">
  141. <image src="../../assets/new_home/collect.png" mode="widthFix"></image>
  142. <text>我的收藏</text>
  143. <text style="font-size:26rpx;color:#89899C;margin-left:10rpx;font-weight:normal">昨日数据</text>
  144. </view>
  145. <navigator class="right" url="/pages/followAccount/followAccount" hover-class="btn-hover">
  146. <text>查看全部</text>
  147. <image src="../../assets/img/jt_right.png" mode="widthFix" class="jt"></image>
  148. </navigator>
  149. </view>
  150. <scroll-view scroll-x="{{userMicroFollowList.length==0?false:true}}" class="swiper">
  151. <block wx:if="{{userMicroFollowList.length==0}}">
  152. <view class="swiper-item-div" bindtap="goSphRank">
  153. <view class="swiper-item" style="background: url('https://kx-bigdata.oss-cn-beijing.aliyuncs.com/wxVideo/sc_bg.png') #FFF3F4 no-repeat;background-size:100% 100% ;">
  154. <view class="add">+</view>
  155. <view class="hint">去添加一个<text>自己喜欢</text>的人吧~</view>
  156. </view>
  157. </view>
  158. <view class="swiper-item-div">
  159. <view class="swiper-item"></view>
  160. </view>
  161. </block>
  162. <block wx:for="{{userMicroFollowList}}" wx:key="index">
  163. <view class="swiper-item-div" bindtap="goUserDetail" data-user_id="{{item.id}}">
  164. <view class="swiper-item userBox">
  165. <image src="{{item.head_url}}" class="userImg" mode="widthFix"></image>
  166. <view class="info">
  167. <view class="userTitleBox">
  168. <view class="userTitle">{{item.nickname?item.nickname:'-'}}</view>
  169. <view class="auth_div">
  170. <image src="{{item.auth_icon_url}}" class="icon" mode="widthFix"></image>
  171. <text>{{item.auth_profession}}</text>
  172. </view>
  173. </view>
  174. <view class="userData">
  175. <view class="userDataItem">
  176. <text class="data">{{filter.NumberHandle(item.fans_count)}}</text>
  177. <view>预估粉丝数</view>
  178. </view>
  179. <view class="userDataItem">
  180. <text class="data">{{item.fans_incr?filter.NumberHandle(item.fans_incr):'--'}}</text>
  181. <view>预估粉丝增量</view>
  182. </view>
  183. <view class="userDataItem">
  184. <text class="data">{{filter.NumberHandle(item.like_sum)}}</text>
  185. <view>点赞量</view>
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. </block>
  192. </scroll-view>
  193. </view>
  194. <view class="hotModule hotVideo">
  195. <view class="title">
  196. <view class="left">
  197. <image src="../../assets/new_home/video.png" mode="widthFix"></image>
  198. <text>热门视频</text>
  199. </view>
  200. <view class="right" bindtap="goPageSwitch" data-page="/pages/cyRank/index" data-type="1">
  201. <text>查看全部</text>
  202. <image src="../../assets/img/jt_right.png" mode="widthFix" class="jt"></image>
  203. </view>
  204. </view>
  205. <scroll-view scroll-x="{{true}}" class="hotVideoInfo">
  206. <view class="item" wx:for="{{hotVideoList}}" wx:key="index" data-item="{{item}}" bindtap="goVideoDetail">
  207. <image src="{{item.cover_url?item.cover_url:item.head_url}}" mode="aspectFill" class="videoImg"></image>
  208. <text class="videoDesc">{{item.description?item.description:'-'}}</text>
  209. </view>
  210. </scroll-view>
  211. </view>
  212. <view class="hotModule">
  213. <view class="title">
  214. <view class="left">
  215. <image src="../../assets/new_home/title_topic.png" mode="widthFix"></image>
  216. <text>标签话题</text>
  217. </view>
  218. <view class="right" bindtap="goPageSwitch" data-page="/pages/cyRank/index" data-type="3">
  219. <text>查看全部</text>
  220. <image src="../../assets/img/jt_right.png" mode="widthFix" class="jt"></image>
  221. </view>
  222. </view>
  223. <view class="hotTopic">
  224. <view class="topicInfo" wx:for="{{videoTopicsList}}" wx:key="index" data-item="{{item}}" bindtap="toTopic">
  225. <view class="topicName">
  226. <image src="../../assets/img/topic.png" mode="widthFix"></image>
  227. <text>{{item.topic_name?item.topic_name:'-'}}</text>
  228. </view>
  229. <view class="topicData">
  230. 平均点赞:<text>{{filter.NumberHandle(item.like_count_avg)}}</text>
  231. </view>
  232. <view class="topicData">
  233. 参与视频号:<text>{{filter.NumberHandle(item.red_count)}}</text>
  234. </view>
  235. </view>
  236. </view>
  237. </view>
  238. <view class="bottom">问星数据·视频号数据平台</view>
  239. </view>
  240. </view>
  241. <claim wx:if="{{authorizeFlag}}" user_id="{{user_id}}" bind:closeClaimMask='closeClaimMask' bind:claimResetList='uploadClaim'></claim>
  242. <!-- 获取客服消息的弹框 -->
  243. <view class="showModal" wx-if="{{warrantFlag}}" bindtap="closeToast">
  244. <view class="showModalCon" catchtap>
  245. <view class="showtitle">二维码获取</view>
  246. <view class="con">进入客服消息,回复关键词「二维码」,获取视频号二维码。</view>
  247. <button class="button" hover-class="btn-hover" open-type="contact" session-from="figureChallenge" bindtap="closeToast">
  248. 去获取
  249. </button>
  250. </view>
  251. </view>
  252. <tabbar selected="0"></tabbar>