index.wxml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class="statistical-page">
  3. <view class="navs cover-view">
  4. <view class="list">
  5. <view class="{{time === 'today' ? 'on' : ''}} item " bindtap="setTime" data-time="today">
  6. 今天
  7. </view>
  8. <view class="{{time === 'yesterday' ? 'on' : ''}} item" bindtap="setTime" data-time="yesterday">
  9. 昨天
  10. </view>
  11. <view class="{{time === 'seven' ? 'on' : ''}} item" bindtap="setTime" data-time="seven">
  12. 最近7天
  13. </view>
  14. <view class="{{time === 'month' ? 'on' : ''}} item" bindtap="setTime" data-time="month">
  15. 本月
  16. </view>
  17. <view class="{{time === 'date' ? 'on' : ''}} item" bindtap="dateTitle">
  18. <!-- <span class="iconfont icon-xiangxia"></span>
  19. <span v-for="(value, index) in renderValues" :key="index">
  20. {{ value }}</span
  21. > -->
  22. 自定义
  23. </view>
  24. </view>
  25. </view>
  26. <view class="wrapper">
  27. <view class="title">
  28. {{title}}{{ type === '1' ? "营业额(元)" : "订单量(份)" }}
  29. </view>
  30. <view class="money">{{ time_price }}</view>
  31. <view class="increase acea-row row-between-wrapper">
  32. <view>
  33. {{ title }}增长率:<span
  34. class="{{increase_time_status === 1 ? 'red' : 'green'}}"
  35. >{{ increase_time_status === 1 ? "" : "-" }}{{ growth_rate }}%
  36. <span class="{{increase_time_status === 1? 'icon-xiangshang1': 'icon-xiangxia2'}} iconfont"></span>
  37. </span>
  38. </view>
  39. <view>
  40. {{ title }}增长:
  41. <span class="{{increase_time_status === 1 ? 'red' : 'green'}}">
  42. {{ increase_time_status === 1 ? "" : "-" }}{{ increase_time }}
  43. <span class="{{increase_time_status === 1? 'icon-xiangshang1': 'icon-xiangxia2'}} iconfont"></span>
  44. </span>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="chart">
  49. <view class="company">
  50. {{type === '1' ? "单位(元)" : "单位(份)" }}
  51. </view>
  52. <view class="box">
  53. <ec-canvas id="mychart-one" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
  54. </view>
  55. </view>
  56. <view class="wrapperBox">
  57. <view class="public-wrapper">
  58. <view class="title">
  59. <span class="iconfont icon-shujutongji"></span>详细数据
  60. </view>
  61. <view class="nav acea-row row-between-wrapper">
  62. <view class="data">日期</view>
  63. <view class="browse">订单数</view>
  64. <view class="turnover">成交额</view>
  65. </view>
  66. <view class="conter">
  67. <view class="item acea-row row-between-wrapper" wx:for="{{dataList}}" wx:key='index'>
  68. <view class="data">{{ item.time }}</view>
  69. <view class="browse">{{ item.count }}</view>
  70. <view class="turnover">{{ item.price }}</view>
  71. </view>
  72. </view>
  73. <view class='loadingicon acea-row row-center-wrapper' wx:if="{{loading}}">
  74. <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>{{loadTitle}}
  75. </view>
  76. </view>
  77. </view>
  78. <!-- <view class="{{current === true ? 'onShow' : ''}} calendar-wrapper">
  79. <view class="calendar">
  80. <calendar
  81. mode="range"
  82. begin="[1992, 5, 20]"
  83. end="[2049, 5, 20]" bind:onRangePick = 'onPickDay'
  84. ></calendar>
  85. </view>
  86. </view>
  87. <view class='mask' catchtouchmove="true" hidden='{{current==false}}' bindtap='close'></view> -->
  88. </view>
  89. <authorize bind:onLoadFun='onLoadFun'></authorize>