analysis.wxml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <!--pages/analysis/analysis.wxml-->
  2. <!-- 导航栏 -->
  3. <nav-bar navbar-data="{{navbarData}}"></nav-bar>
  4. <!-- 弹出层 -->
  5. <van-popup show="{{ show }}" position="bottom" custom-style="height: 32%;box-shadow: 10px -5px 5px #c9c9c960;" overlay="{{false}}" bind:close="onClose">
  6. <!-- 年月选择器 -->
  7. <van-datetime-picker wx:if="{{indexs == 0}}" type="year-month" item-height="34" value="{{ currentDate }}" bind:cancel="offtime" min-date="{{ minDate }}" bind:confirm="oktime" />
  8. <van-picker wx:if="{{indexs == 1}}" show-toolbar columns="{{ quarters }}" item-height="34" bind:cancel="offtime" bind:confirm="okquarter" />
  9. <van-picker wx:if="{{indexs == 2}}" show-toolbar columns="{{ years }}" item-height="34" bind:cancel="offtime" bind:confirm="okyear" />
  10. </van-popup>
  11. <!-- 主体 -->
  12. <view class="cont">
  13. <!-- 顶部-tabbar -->
  14. <view class="top">
  15. <view class="tab" wx:for="{{fen}}" wx:key="index" bindtap="qiehuan" data-id="{{index}}">
  16. <view class="tab-top" style="color: {{index==indexs?'#FF874E':''}};">{{item}}</view>
  17. <image src="/images/foot-line.png" wx:if="{{index==indexs}}"></image>
  18. </view>
  19. </view>
  20. <!-- 过滤条件 -->
  21. <view class="type-class">
  22. <view bindtap="showtime" wx:if="{{indexs == 0}}">{{year}}年{{month}}月<image style="height: 12rpx;width: 20rpx;margin-left: 20rpx;" src="/images/xia.png"></image>
  23. </view>
  24. <view bindtap="showtime" wx:if="{{indexs == 1}}">第{{quarter}}季度<image style="height: 12rpx;width: 20rpx;margin-left: 20rpx;" src="/images/xia.png"></image>
  25. </view>
  26. <view bindtap="showtime" wx:if="{{indexs == 2}}">{{year}}年<image style="height: 12rpx;width: 20rpx;margin-left: 20rpx;" src="/images/xia.png"></image>
  27. </view>
  28. <view>
  29. <view class="{{shouzhi==0?'xuan':'wxuan'}}" data-type="{{0}}" catchtap="changeShouZhi">收入</view>
  30. <view class="{{shouzhi==1?'xuan':'wxuan'}}" data-type="{{1}}" catchtap="changeShouZhi">支出</view>
  31. </view>
  32. </view>
  33. <!-- 共收入 -->
  34. <view class="all-money">
  35. <view>
  36. <p wx:if="{{shouzhi == 0}}">共收入</p>
  37. <p wx:if="{{shouzhi == 1}}">共支出</p>
  38. <p class="all-cen">C$</p>
  39. <p wx:if="{{shouzhi == 0}}">{{Income_money}}</p>
  40. <p wx:if="{{shouzhi == 1}}">{{Expenditure_money}}</p>
  41. </view>
  42. </view>
  43. <!-- <button bindtap="init" wx:if="{{!isLoaded}}">加载图表</button>
  44. <button bindtap="dispose" wx:if="{{isLoaded && !isDisposed}}">释放图表</button> -->
  45. <!-- 身体-图表 -->
  46. <view class="body">
  47. <view class="canv-top">
  48. <p wx:if="{{shouzhi == 0}}">收入对比</p>
  49. <p wx:if="{{shouzhi == 1}}">支出对比</p>
  50. <view wx:if="{{shouzhi == 0}}" bindtap="navgo" data-url="/packageA/pages/rank/rank?enterType=4&filterType=1&title=订单收入对比">
  51. <p>更多</p>
  52. <image src="/images/go.png"></image>
  53. </view>
  54. <view wx:if="{{shouzhi == 1}}" bindtap="navgo" data-url="/packageA/pages/rank/rank?enterType=5&filterType=1&title=订单支出对比">
  55. <p>更多</p>
  56. <image src="/images/go.png"></image>
  57. </view>
  58. </view>
  59. <view style="height: 420rpx;"></view>
  60. <view class="canvs">
  61. <view class="container">
  62. <!-- <ec-canvas wx:if="{{!isDisposed}}" style="width: 100%;height: 650rpx;" id="mychart" canvas-id="mychart" ec="{{ ec }}"></ec-canvas> -->
  63. <ec-canvas wx:if="{{!isDisposed}}" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  64. </view>
  65. </view>
  66. <view class="canv-foot">
  67. <view></view>
  68. <view></view>
  69. </view>
  70. </view>
  71. <!-- 买家排名 -->
  72. <view class="paiming">
  73. <view class="pai-top">
  74. <p>买家排名</p>
  75. <view bindtap="navgo" data-url="/packageA/pages/rank/rank?enterType=0&filterType=1&title=买家排名">
  76. <p>更多</p>
  77. <image src="/images/go.png"></image>
  78. </view>
  79. </view>
  80. <view class="table-top">
  81. <view>名次</view>
  82. <view>姓名</view>
  83. <view>订单数量</view>
  84. <view class="xse">
  85. <p>消费金额</p>
  86. <p>(CAD)</p>
  87. </view>
  88. </view>
  89. <view class="table-info" wx:for="{{Buyer_ranking}}" wx:key="index">
  90. <view>
  91. <image wx:if="{{index==0}}" src="/images/analysis/one.png"></image>
  92. <image wx:if="{{index==1}}" src="/images/analysis/two.png"></image>
  93. <image wx:if="{{index==2}}" src="/images/analysis/three.png"></image>
  94. {{index+1}}
  95. </view>
  96. <view>
  97. <van-image fit="cover" style="margin-left: -40rpx;margin-right: 20rpx;" round width="29px" height="29px" src="{{item.headimg}}" />
  98. {{item.name}}
  99. </view>
  100. <view>{{item.order_number}}</view>
  101. <view>{{item.order_money}}</view>
  102. </view>
  103. </view>
  104. <!-- 商品排名 -->
  105. <view class="paiming">
  106. <view class="pai-top">
  107. <p>商品排名</p>
  108. <view bindtap="navgo" data-url="/packageA/pages/rank/rank?enterType=1&filterType=1&title=商品排名">
  109. <p>更多</p>
  110. <image src="/images/go.png"></image>
  111. </view>
  112. </view>
  113. <view class="table-top">
  114. <view>名次</view>
  115. <view>商品名</view>
  116. <view>销售数量</view>
  117. <view class="xse">
  118. <p>销售额</p>
  119. <p>(CAD)</p>
  120. </view>
  121. </view>
  122. <view class="table-info" wx:for="{{Commodity_ranking}}" wx:key="index">
  123. <view>
  124. <image wx:if="{{index==0}}" src="/images/analysis/one.png"></image>
  125. <image wx:if="{{index==1}}" src="/images/analysis/two.png"></image>
  126. <image wx:if="{{index==2}}" src="/images/analysis/three.png"></image>
  127. {{index+1}}
  128. </view>
  129. <view>
  130. {{item.commodity_name}}
  131. </view>
  132. <view>{{item.sold}}</view>
  133. <view>{{item.money}}</view>
  134. </view>
  135. </view>
  136. <!-- 帮卖排名 -->
  137. <view class="paiming">
  138. <view class="pai-top">
  139. <p>帮卖排名</p>
  140. <view bindtap="navgo" data-url="/packageA/pages/rank/rank?enterType=2&filterType=1&title=帮卖排名">
  141. <p>更多</p>
  142. <image src="/images/go.png"></image>
  143. </view>
  144. </view>
  145. <view class="table-top">
  146. <view>名次</view>
  147. <view>团长名称</view>
  148. <view>销售数量</view>
  149. <view class="xse">
  150. <p>销售额</p>
  151. <p>(CAD)</p>
  152. </view>
  153. </view>
  154. <view class="table-info" wx:for="{{Help_sell_ranking}}" wx:key="index">
  155. <view>
  156. <image wx:if="{{index==0}}" src="/images/analysis/one.png"></image>
  157. <image wx:if="{{index==1}}" src="/images/analysis/two.png"></image>
  158. <image wx:if="{{index==2}}" src="/images/analysis/three.png"></image>
  159. {{index+1}}
  160. </view>
  161. <view>
  162. <van-image fit="cover" style="margin-left: -40rpx;margin-right: 20rpx;" round width="29px" height="29px" src="{{item.headimg}}" />
  163. {{item.name}}
  164. </view>
  165. <view>{{item.number}}</view>
  166. <view>{{item.money}}</view>
  167. </view>
  168. </view>
  169. <!-- 供应商排名 -->
  170. <view class="paiming">
  171. <view class="pai-top">
  172. <p>供应商排名</p>
  173. <view bindtap="navgo" data-url="/packageA/pages/rank/rank?enterType=3&filterType=1&title=供应商排名">
  174. <p>更多</p>
  175. <image src="/images/go.png"></image>
  176. </view>
  177. </view>
  178. <view class="table-top">
  179. <view>名次</view>
  180. <view>供应商名称</view>
  181. <view>销售数量</view>
  182. <view class="xse">
  183. <p>销售额</p>
  184. <p>(CAD)</p>
  185. </view>
  186. </view>
  187. <view class="table-info" wx:for="{{Supplier_ranking}}" wx:key="index">
  188. <view>
  189. <image wx:if="{{index==0}}" src="/images/analysis/one.png"></image>
  190. <image wx:if="{{index==1}}" src="/images/analysis/two.png"></image>
  191. <image wx:if="{{index==2}}" src="/images/analysis/three.png"></image>
  192. {{index+1}}
  193. </view>
  194. <view>
  195. <van-image fit="cover" style="margin-left: -40rpx;margin-right: 20rpx;" round width="29px" height="29px" src="{{item.headimg}}" />
  196. {{item.name}}
  197. </view>
  198. <view>{{item.number}}</view>
  199. <view>{{item.money}}</view>
  200. </view>
  201. </view>
  202. </view>