index.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <style type="text/css">
  2. .sm-st {
  3. background: #fff;
  4. padding: 20px;
  5. -webkit-border-radius: 3px;
  6. -moz-border-radius: 3px;
  7. border-radius: 3px;
  8. margin-bottom: 20px;
  9. }
  10. .sm-st-icon {
  11. width: 60px;
  12. height: 60px;
  13. display: inline-block;
  14. line-height: 60px;
  15. text-align: center;
  16. font-size: 30px;
  17. background: #eee;
  18. -webkit-border-radius: 5px;
  19. -moz-border-radius: 5px;
  20. border-radius: 5px;
  21. float: left;
  22. margin-right: 10px;
  23. color: #fff;
  24. }
  25. .sm-st-info {
  26. padding-top: 2px;
  27. }
  28. .sm-st-info span {
  29. display: block;
  30. font-size: 24px;
  31. font-weight: 600;
  32. }
  33. .orange {
  34. background: #fa8564 !important;
  35. }
  36. .tar {
  37. background: #45cf95 !important;
  38. }
  39. .sm-st .green {
  40. background: #86ba41 !important;
  41. }
  42. .pink {
  43. background: #AC75F0 !important;
  44. }
  45. .yellow-b {
  46. background: #fdd752 !important;
  47. }
  48. .stat-elem {
  49. background-color: #fff;
  50. padding: 18px;
  51. border-radius: 40px;
  52. }
  53. .stat-info {
  54. text-align: center;
  55. background-color: #fff;
  56. border-radius: 5px;
  57. margin-top: -5px;
  58. padding: 8px;
  59. -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
  60. box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
  61. font-style: italic;
  62. }
  63. .stat-icon {
  64. text-align: center;
  65. margin-bottom: 5px;
  66. }
  67. .st-red {
  68. background-color: #F05050;
  69. }
  70. .st-green {
  71. background-color: #27C24C;
  72. }
  73. .st-violet {
  74. background-color: #7266ba;
  75. }
  76. .st-blue {
  77. background-color: #23b7e5;
  78. }
  79. .stats .stat-icon {
  80. color: #28bb9c;
  81. display: inline-block;
  82. font-size: 26px;
  83. text-align: center;
  84. vertical-align: middle;
  85. width: 50px;
  86. float: left;
  87. }
  88. .stat {
  89. white-space: nowrap;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. display: inline-block;
  93. }
  94. .stat .value {
  95. font-size: 20px;
  96. line-height: 24px;
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. font-weight: 500;
  100. }
  101. .stat .name {
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. margin: 5px 0;
  105. }
  106. .stat.lg .value {
  107. font-size: 26px;
  108. line-height: 28px;
  109. }
  110. .stat-col {
  111. margin:0 0 10px 0;
  112. }
  113. .stat.lg .name {
  114. font-size: 16px;
  115. }
  116. .stat-col .progress {
  117. height: 2px;
  118. }
  119. .stat-col .progress-bar {
  120. line-height: 2px;
  121. height: 2px;
  122. }
  123. .item {
  124. padding: 30px 0;
  125. }
  126. #statistics .panel {
  127. min-height: 150px;
  128. }
  129. #statistics .panel h5 {
  130. font-size: 14px;
  131. }
  132. </style>
  133. <div class="panel panel-default panel-intro">
  134. <div class="panel-body">
  135. <form class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" novalidate="" method="post"
  136. action="" id="form">
  137. <div class="row">
  138. <div class="row">
  139. <div class="form-group">
  140. <label for="createtime" class="control-label col-xs-2" style="width: 6%">日期</label>
  141. <div class="col-xs-5" style="width: 20%">
  142. <input type="hidden" class="form-control operate" name="createtime-operate"
  143. data-name="createtime" value="RANGE" readonly="">
  144. <input type="text" class="form-control datetimerange" name="startTime" value="{$post_time}"
  145. id="start_time" data-index="12" onfocus="getdaterangepicker(form)"
  146. autocomplete="off" style="width: 100%">
  147. </div>
  148. <div class="col-xs-5">
  149. <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
  150. <button type="reset" class="btn btn-default">重置</button>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. </form>
  156. </div>
  157. </div>
  158. <div class="panel panel-default panel-intro">
  159. <div class="panel-body">
  160. <div id="myTabContent" class="tab-content">
  161. <div class="tab-pane fade active in" id="one">
  162. <div class="row">
  163. <div class="col-sm-3 col-xs-6">
  164. <div class="sm-st clearfix">
  165. <span class="sm-st-icon st-red"><i class="fa fa-users"></i></span>
  166. <div class="sm-st-info">
  167. <span>{$register}</span>
  168. 新增用户数
  169. </div>
  170. </div>
  171. </div>
  172. <div class="col-sm-3 col-xs-6">
  173. <div class="sm-st clearfix">
  174. <span class="sm-st-icon st-violet"><i class="fa fa-users"></i></span>
  175. <div class="sm-st-info">
  176. <span>{$buy}</span>
  177. 支付人数
  178. </div>
  179. </div>
  180. </div>
  181. <div class="col-sm-3 col-xs-6">
  182. <div class="sm-st clearfix">
  183. <span class="sm-st-icon st-green"><i class="fa fa-rmb"></i></span>
  184. <div class="sm-st-info">
  185. <span>{$pay_rate}</span>
  186. 下单支付转化率
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. <div class="row">
  192. <div class="col-lg-6">
  193. <div id="echart" class="btn-refresh" style="height:500px;width:60%;"></div>
  194. </div>
  195. <div class="col-lg-6">
  196. <div style="text-align: center"><h3>成交额排名</h3></div>
  197. <table id="table" border="1" cellspacing="0" class="table table-striped table-bordered table-hover table-nowrap"
  198. data-operate-edit="0"
  199. data-operate-del="0"
  200. data-operate-send="{:$auth->check('orders/send')}"
  201. data-operate-detail="{:$auth->check('orders/detail')}"
  202. >
  203. </table>
  204. </div>
  205. </div>
  206. <div class="row" style="width: 50%">
  207. </div>
  208. </div>
  209. <div class="tab-pane fade" id="two">
  210. <div class="row">
  211. <div class="col-xs-12">
  212. {:__('Custom zone')}
  213. </div>
  214. </div>
  215. </div>
  216. </div>
  217. </div>
  218. </div>
  219. <script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>
  220. <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
  221. <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
  222. <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css"/>
  223. <script>
  224. $('input[name="dates"]').daterangepicker();
  225. function getdaterangepicker(form) {
  226. //绑定日期时间元素事件
  227. if ($(".datetimerange", form).size() > 0) {
  228. require(['bootstrap-daterangepicker'], function () {
  229. var ranges = {};
  230. ranges[__('Today')] = [Moment().startOf('day'), Moment().endOf('day')];
  231. ranges[__('Yesterday')] = [Moment().subtract(1, 'days').startOf('day'), Moment().subtract(1, 'days').endOf('day')];
  232. ranges[__('Last 7 Days')] = [Moment().subtract(6, 'days').startOf('day'), Moment().endOf('day')];
  233. ranges[__('Last 30 Days')] = [Moment().subtract(29, 'days').startOf('day'), Moment().endOf('day')];
  234. ranges[__('This Month')] = [Moment().startOf('month'), Moment().endOf('month')];
  235. ranges[__('Last Month')] = [Moment().subtract(1, 'month').startOf('month'), Moment().subtract(1, 'month').endOf('month')];
  236. var options = {
  237. timePicker: false,
  238. autoUpdateInput: false,
  239. timePickerSeconds: true,
  240. timePicker24Hour: true,
  241. autoApply: true,
  242. locale: {
  243. format: 'YYYY-MM-DD HH:mm:ss',
  244. customRangeLabel: __("Custom Range"),
  245. applyLabel: __("Apply"),
  246. cancelLabel: __("Clear"),
  247. },
  248. ranges: ranges,
  249. };
  250. var origincallback = function (start, end) {
  251. $(this.element).val(start.format(this.locale.format) + " - " + end.format(this.locale.format));
  252. $(this.element).trigger('blur');
  253. };
  254. $(".datetimerange", form).each(function () {
  255. var callback = typeof $(this).data('callback') == 'function' ? $(this).data('callback') : origincallback;
  256. $(this).on('apply.daterangepicker', function (ev, picker) {
  257. callback.call(picker, picker.startDate, picker.endDate);
  258. });
  259. $(this).on('cancel.daterangepicker', function (ev, picker) {
  260. $(this).val('').trigger('blur');
  261. });
  262. $(this).daterangepicker($.extend(true, options, $(this).data()), callback);
  263. });
  264. });
  265. }
  266. }
  267. </script>