index.wxml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <view class="bg-f u-p-b-20">
  2. <view class="text-center u-p-30 u-font-28 weight">销售统计</view>
  3. <view class="diytime bule u-font-24" bindtap="pickerShow">自定义时间</view>
  4. <view class="nav i-flex i-flex-alc text-center">
  5. <view class="i-flex-item item {{type==0?'active':''}}" data-type="0" bindtap="changeNav">汇总</view>
  6. <view class="i-flex-item item {{type==1?'active':''}}" data-type="1" bindtap="changeNav">今日</view>
  7. <view class="i-flex-item item {{type==2?'active':''}}" data-type="2" bindtap="changeNav">昨日</view>
  8. <view class="i-flex-item item {{type==3?'active':''}}" data-type="3" bindtap="changeNav">7日</view>
  9. </view>
  10. </view>
  11. <view class="u-m-t-30 i-flex text-center u-m-l-30 u-m-r-30 rounded text-white pos-r bg-line">
  12. <view class="i-flex-item u-p-30">
  13. <view class="u-font-40 weight">{{sales_data.pay_order_count}}</view>
  14. <view class="u-font-24 u-m-t-10">支付订单数</view>
  15. </view>
  16. <view class="i-flex-item u-p-30">
  17. <view class="u-font-40 weight"><text class="u-font-30">¥</text>{{sales_data.pay_order_money?sales_data.pay_order_money:0}}</view>
  18. <view class="u-font-24 u-m-t-10">支付订单金额</view>
  19. </view>
  20. </view>
  21. <view class="u-m-t-30 i-flex">
  22. <view class="i-flex-item bg-f rounded u-m-l-30 u-m-r-10 u-p-l-20 u-p-r-20 u-p-t-20 u-p-b-30">
  23. <view class="i-flex i-flex-spb icon-menu">
  24. <text class="iconfont icon-daifahuo red"></text>
  25. <text class="iconfont icon-more u-font-26"></text>
  26. </view>
  27. <view class="u-font-40 weight u-m-t-30">{{sales_data.wait_send_count}}</view>
  28. <view class="u-font-24 u-m-t-10 text-gray">待发货订单</view>
  29. </view>
  30. <view class="i-flex-item bg-f rounded u-m-l-10 u-m-r-10 u-p-l-20 u-p-r-20 u-p-t-20 u-p-b-30">
  31. <view class="i-flex i-flex-spb icon-menu">
  32. <text class="iconfont icon-peisongzhong red"></text>
  33. <text class="iconfont icon-more u-font-26"></text>
  34. </view>
  35. <view class="u-font-40 weight u-m-t-30">{{sales_data.sending_order_count}}</view>
  36. <view class="u-font-24 u-m-t-10 text-gray">配送中订单</view>
  37. </view>
  38. <view class="i-flex-item bg-f rounded u-m-l-10 u-m-r-30 u-p-l-20 u-p-r-20 u-p-t-20 u-p-b-30">
  39. <view class="i-flex i-flex-spb icon-menu">
  40. <text class="iconfont icon-tuihuotubiao-01 red"></text>
  41. <text class="iconfont icon-more u-font-26"></text>
  42. </view>
  43. <view class="u-font-40 weight u-m-t-30">{{sales_data.waitrefund_count}}</view>
  44. <view class="u-font-24 u-m-t-10 text-gray">待退款订单</view>
  45. </view>
  46. </view>
  47. <view class="bg-f u-m-30 rounded">
  48. <view class="text-center u-p-30 u-font-28 weight border-bottom">平台数据</view>
  49. <view class="i-flex text-center">
  50. <view class="i-flex-item u-p-30">
  51. <view class="u-font-40 weight">{{todayOrderData.todaypay_order_count}}</view>
  52. <view class="u-font-24 u-m-t-10 text-gray">今日付款订单</view>
  53. </view>
  54. <view class="i-flex-item u-p-30">
  55. <view class="u-font-40 weight"><text class="u-font-30">¥</text>{{todayOrderData.todaypay_order_money}}</view>
  56. <view class="u-font-24 u-m-t-10 text-gray">今日付款总金额</view>
  57. </view>
  58. <view class="i-flex-item u-p-30">
  59. <view class="u-font-40 weight">{{todayOrderData.todaywait_send_count}}</view>
  60. <view class="u-font-24 u-m-t-10 text-gray">今日待付款订单</view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="bg-f u-m-30 rounded">
  65. <view class="text-center u-p-30 u-font-28 weight border-bottom">平台用户</view>
  66. <view class="i-flex text-center">
  67. <view class="i-flex-item u-p-30">
  68. <view class="u-font-40 weight">{{user_data.today_user_count}}</view>
  69. <view class="u-font-24 u-m-t-10 text-gray">今日新增会员</view>
  70. </view>
  71. <view class="i-flex-item u-p-30">
  72. <view class="u-font-40 weight">{{user_data.yes_user_count}}</view>
  73. <view class="u-font-24 u-m-t-10 text-gray">昨日新增会员</view>
  74. </view>
  75. <view class="i-flex-item u-p-30">
  76. <view class="u-font-40 weight bule">{{user_data.total_user_count}}</view>
  77. <view class="u-font-24 u-m-t-10 text-gray">总会员数</view>
  78. </view>
  79. </view>
  80. <view class="i-flex text-center">
  81. <view class="i-flex-item u-p-30">
  82. <view class="u-font-40 weight">{{user_data.today_addhead_count}}</view>
  83. <view class="u-font-24 u-m-t-10 text-gray">今日新增团长</view>
  84. </view>
  85. <view class="i-flex-item u-p-30">
  86. <view class="u-font-40 weight">{{user_data.yes_addhead_count}}</view>
  87. <view class="u-font-24 u-m-t-10 text-gray">昨日新增团长</view>
  88. </view>
  89. <view class="i-flex-item u-p-30">
  90. <view class="u-font-40 weight">{{user_data.total_head_count}}</view>
  91. <view class="u-font-24 u-m-t-10 text-gray">总团长数</view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="bg-f u-m-30 rounded">
  96. <view class="text-center u-p-30 u-font-28 weight border-bottom">商品数据</view>
  97. <view class="i-flex text-center">
  98. <view class="i-flex-item u-p-30">
  99. <view class="u-font-40 weight">{{goods_data.count}}</view>
  100. <view class="u-font-24 u-m-t-10 text-gray">商品总数</view>
  101. </view>
  102. <view class="i-flex-item u-p-30">
  103. <view class="u-font-40 weight">{{goods_data.normal_count}}</view>
  104. <view class="u-font-24 u-m-t-10 text-gray">普通商品</view>
  105. </view>
  106. <view class="i-flex-item u-p-30">
  107. <view class="u-font-40 weight">{{goods_data.pingoods_count}}</view>
  108. <view class="u-font-24 u-m-t-10 text-gray">拼团商品</view>
  109. </view>
  110. </view>
  111. <view class="i-flex text-center">
  112. <view class="i-flex-item u-p-30">
  113. <view class="u-font-40 weight">{{goods_data.integral_goods_count}}</view>
  114. <view class="u-font-24 u-m-t-10 text-gray">积分商品</view>
  115. </view>
  116. <view class="i-flex-item u-p-30"></view>
  117. <view class="i-flex-item u-p-30"></view>
  118. </view>
  119. </view>
  120. <view class="bg-f u-m-30 rounded">
  121. <view class="text-center u-p-30 u-font-28 weight border-bottom">
  122. 平台营业数据
  123. <text class="iconfont icon-shuoming bule u-m-l-5" bindtap="confirmMessage"></text>
  124. </view>
  125. <view class="i-flex text-center">
  126. <view class="i-flex-item u-p-30">
  127. <view class="u-font-40 weight"><text class="u-font-30">¥</text>{{business_data.head_commiss_money}}</view>
  128. <view class="u-font-24 u-m-t-10 text-gray">商城团长总佣金</view>
  129. </view>
  130. <view class="i-flex-item u-p-30">
  131. <view class="u-font-40 weight"><text class="u-font-30">¥</text>{{business_data.today_win_money}}</view>
  132. <view class="u-font-24 u-m-t-10 text-gray">今日利润</view>
  133. </view>
  134. <view class="i-flex-item u-p-30">
  135. <view class="u-font-40 weight">{{business_data.payed_member_count}}</view>
  136. <view class="u-font-24 u-m-t-10 text-gray">付款人数</view>
  137. </view>
  138. </view>
  139. <view class="i-flex text-center">
  140. <view class="i-flex-item u-p-30">
  141. <view class="u-font-40 weight">{{business_data.addorder_member_count}}</view>
  142. <view class="u-font-24 u-m-t-10 text-gray">下单人数</view>
  143. </view>
  144. <view class="i-flex-item u-p-30"></view>
  145. <view class="i-flex-item u-p-30"></view>
  146. </view>
  147. </view>
  148. <view bindtap="confirmMessage" class="hide-dialog" wx:if="{{showTipDialog}}"></view>
  149. <view class="dialog-tips" wx:if="{{showTipDialog}}">
  150. <view class="dialog-title">
  151. <text>提示</text>
  152. </view>
  153. <view class="dialog-content line-height">
  154. <scroll-view scroll-y="true" style="max-height: 58vh;">
  155. <view class="u-m-b-10"><text class="text-3 weight">订单金额:</text> 统计订单金额不包含退款金额和已取消订单金额。</view>
  156. <view class="u-m-b-10"><text class="text-3 weight">团长总佣金:</text>统计佣金订单金额不包含退款金额和已取消订单金额。</view>
  157. <view class="u-m-b-10"><text class="text-3 weight">今日利润:</text>今日商城商品销量的全部金额-今日商城商品销量的全部成本金额-今日商城商品优惠金额=今日商品利润。</view>
  158. <view class="u-m-b-10"><text class="text-3 weight">今日商城商品销量的全部金额:</text>商城今日销售的所有商品金额总和。</view>
  159. <view class="u-m-b-10"><text class="text-3 weight">今日商城商品销量的全部成本金额:</text>商城今日销售的所有商品成本金额总。</view>
  160. <view class="u-m-b-10"><text class="text-3 weight">今日商城商品优惠金额:</text>商城今日使用掉的优惠金额(积分抵扣的金额,优惠券金额,新人优惠金额等)。</view>
  161. <view class="u-m-b-10"><text class="text-3 weight">访问人数:</text>浏览小程序的人数(包含已登录和未登录小程序的人数,每个IP计算一次,相同IP不重复统计)。</view>
  162. <view class="u-m-b-10"><text class="text-3 weight">下单人数:</text>商城下过订单的会员人数(待付款的订单人数也统计在内)。</view>
  163. <view class="u-m-b-10"><text class="text-3 weight">付款人数:</text>商城下单并且付款完成(已支付)的会员人数。</view>
  164. </scroll-view>
  165. </view>
  166. <button bindtap="confirmMessage" class="dialog-btn">
  167. <text>我知道了</text>
  168. </button>
  169. </view>
  170. <!-- 时间选择 -->
  171. <i-modal scrollUp="{{true}}" visible="{{showTimeModal}}" bind:cancel="handleModal">
  172. <view class="sku-card">
  173. <view class="weight fsz-32 pb10 text-center">自定义时间</view>
  174. <view>
  175. 1111
  176. </view>
  177. </view>
  178. </i-modal>
  179. <timePicker pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide" bind:setPickerTime="setPickerTime"
  180. config="{{pickerConfig}}"></timePicker>