大数据平台的小程序版本

index.wxml 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <!--pages/liveDetail/index.wxml-->
  2. <wxs module="filter" src="../../assets/js/common.wxs"></wxs>
  3. <scroll-view class="liveDetail" scroll-y="true" style="height:{{scrollHeight}}px;" bindscrolltolower="bindDownLoad" bindscroll="scroll">
  4. <view class="mainInfo">
  5. <view class="mainImg">
  6. <image class="targetImg" mode="widthFix" wx:if="{{infoObj.img}}" src="{{infoObj.img}}"></image>
  7. </view>
  8. <view class="infoText">
  9. <text class="name">
  10. {{infoObj.title?infoObj.title:'-'}}
  11. </text>
  12. <view class="date">{{infoObj.price?('¥'+infoObj.price):'-'}}</view>
  13. <view class="cate" style="margin-top:12rpx;" wx-if="{{infoObj.category}}">{{infoObj.category}}</view>
  14. </view>
  15. </view>
  16. <view class="tabList {{isFix?'toTop':''}}" id="tabItem">
  17. <view class="tab {{tab==1?'active':''}}" data-id="1" bindtap="check">销售趋势</view>
  18. <view class="tab {{tab==2?'active':''}}" data-id="2" bindtap="check">关联直播</view>
  19. <view class="tab {{tab==3?'active':''}}" data-id="3" bindtap="check">关联达人</view>
  20. <view class="tab {{tab==4?'active':''}}" data-id="4" bindtap="check">达人分布</view>
  21. </view>
  22. <view wx:if="{{isFix}}" style="width:100%;height:56rpx;background:#fff;"></view>
  23. <view wx:if="{{tab==1}}">
  24. <view class="total" wx:if="{{!hasAunoTotal}}">
  25. <view class="ul">
  26. <view class="li">
  27. <text class="text">
  28. 关联达人数
  29. </text>
  30. <text class="liText">
  31. {{infoObj.user_count||infoObj.user_count==0?infoObj.user_count:'-'}}
  32. </text>
  33. </view>
  34. <view class="li">
  35. <text class="text">
  36. 关联直播数
  37. </text>
  38. <text class="liText">
  39. {{infoObj.live_count||infoObj.live_count==0?infoObj.live_count:'-'}}
  40. </text>
  41. </view>
  42. <view class="li">
  43. <text class="text">
  44. 商品销量
  45. </text>
  46. <text class="liText">
  47. {{infoObj.sale_count||infoObj.sale_count==0?infoObj.sale_count:'-'}}
  48. </text>
  49. </view>
  50. </view>
  51. </view>
  52. <nopermission wx:if="{{hasAunoTotal}}"></nopermission>
  53. <view wx:if="{{!hasAunoTrend}}">
  54. <view class="echarts">
  55. <text class="topName">销量趋势</text>
  56. <view class="echartsBox">
  57. <ec-canvas id="sale" class="canvas" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  58. </view>
  59. <view class="btn">
  60. <view class="button {{checkType==1?'activeBtn':''}}" size="mini" data-id="1" bindtap="checkBtn">增量</view>
  61. <view class="button {{checkType==2?'activeBtn':''}}" size="mini" data-id="2" bindtap="checkBtn">总量</view>
  62. </view>
  63. </view>
  64. <view class="echarts">
  65. <text class="topName">销售额趋势</text>
  66. <view class="echartsBox">
  67. <ec-canvas id="saleMoney" class="canvas" style="width:100%;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  68. </view>
  69. <view class="btn">
  70. <view class="button {{checkType2==1?'activeBtn':''}}" size="mini" data-type="2" data-id="1" bindtap="checkBtn">增量</view>
  71. <view class="button {{checkType2==2?'activeBtn':''}}" size="mini" data-type="2" data-id="2" bindtap="checkBtn">总量</view>
  72. </view>
  73. </view>
  74. <view class="echarts">
  75. <text class="topName">关联直播趋势</text>
  76. <view class="echartsBox">
  77. <ec-canvas id="live" class="canvas" style="width:100%;height:900rpx;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  78. </view>
  79. <view class="btn">
  80. <view class="button {{checkType3==1?'activeBtn':''}}" size="mini" data-type="3" data-id="1" bindtap="checkBtn">增量</view>
  81. <view class="button {{checkType3==2?'activeBtn':''}}" size="mini" data-type="3" data-id="2" bindtap="checkBtn">总量</view>
  82. </view>
  83. </view>
  84. <view class="echarts">
  85. <text class="topName">关联达人趋势</text>
  86. <view class="echartsBox">
  87. <ec-canvas id="people" class="canvas" style="width:100%;height:900rpx;" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  88. </view>
  89. </view>
  90. </view>
  91. <nopermission wx:if="{{hasAunoTrend}}"></nopermission>
  92. </view>
  93. <!-- 关联直播 -->
  94. <view class="tabItem" wx:if="{{tab==2}}">
  95. <view class="proItem hotItem" wx:for="{{liveList}}" wx:key="liveList" data-id="{{item.live_stream_id}}" data-useid="{{item.kwai_user_id}}" bindtap="toLiveDetail">
  96. <view class="liveImg {{item.is_live==1?'liveIng':''}}">
  97. <image class="liveHead" style="border-radius:50%;" wx:if="{{item.headurl}}" src="{{item.headurl}}"></image>
  98. </view>
  99. <view class="info">
  100. <text class="title">{{item.user_name}}</text>
  101. <view class="bottom">
  102. <view class="twice">
  103. <text class="date" style="display:inline;">{{item.created_at?item.created_at:'-'}}</text>
  104. </view>
  105. <view class="twice">
  106. 销量<text class="number" style="display:inline;">{{item.sell_count?item.sell_count:'-'}}</text>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <view class="noneBox" wx:if="{{noneLive}}">
  112. <image class="noneImg" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/dataLoadingImg.png"></image>
  113. <view class="noneText">暂无关联直播</view>
  114. </view>
  115. <nopermission wx:if="{{hasAunoLive&&!noneLive}}"></nopermission>
  116. </view>
  117. <!-- 关联达人 -->
  118. <view class="tabItem" wx:if="{{tab==3}}">
  119. <view class="proItem hotItem" wx:for="{{hotList}}" wx:key="allPro" bindtap="goHrDetail" data-userid='{{item.user_id}}'>
  120. <image class="img" wx:if="{{item.headurl}}" src="{{item.headurl}}"></image>
  121. <view class="info">
  122. <text class="title">{{item.user_name}}</text>
  123. <view class="bottom">
  124. <view class="twice">
  125. 粉丝 <text class="number" style="display:inline;">{{item.fan?item.fan:'-'}}</text>
  126. </view>
  127. <view class="twice">
  128. 销量 <text class="number" style="display:inline;">{{item.sell_count?item.sell_count:'-'}}</text>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="noneBox" wx:if="{{noneHot}}">
  134. <image class="noneImg" src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/dataLoadingImg.png"></image>
  135. <view class="noneText">暂无关联达人</view>
  136. </view>
  137. <nopermission wx:if="{{hasAunoHot&&!noneHot}}"></nopermission>
  138. </view>
  139. <view class="tabItem" wx:if="{{tab==4}}">
  140. <fan-portraits commodity_id="{{id}}"></fan-portraits>
  141. </view>
  142. </scroll-view>
  143. <text class="desc">更多数据请登录www.data.kuxuan.com进行查看</text>