store.html 10 KB

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