admin-index.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <?php include Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . "viewc/admin/headAndLeftWrapper.php"; ?>
  2. <script src="<?php echo $data['rootUrl']; ?>global/m/js/echarts.js"></script>
  3. <div class="mainWrapper container-fluid">
  4. <div class="total-main clearfix">
  5. <ul>
  6. <li>
  7. <div class="total-content">
  8. <h2 class="total-title">待确认交易</h2>
  9. <div class="total-column">
  10. <a class="total-num total-num-file" href="/m/pay/add"><?php echo $data['unpaycount']; ?></a>
  11. </div>
  12. </div>
  13. </li>
  14. <li>
  15. <div class="total-content">
  16. <h2 class="total-title">用户已激活</h2>
  17. <div class="total-column fL">
  18. <dl>
  19. <dt>今日累计</dt>
  20. <dd class="total-num"><?php echo $data['tuaddnum']; ?></dd>
  21. </dl>
  22. </div>
  23. <div class="total-column fR">
  24. <dl>
  25. <dt>昨日累计</dt>
  26. <dd class="total-num"><?php echo $data['yuaddnum']; ?></dd>
  27. </dl>
  28. </div>
  29. </div>
  30. </li>
  31. <!-- <li>
  32. <div class="total-content" style="border:none;">
  33. <h2 class="total-title">用户注册</h2>
  34. <div class="total-column fL">
  35. <dl>
  36. <dt>今日累计</dt>
  37. <dd class="total-num">999</dd>
  38. </dl>
  39. </div>
  40. <div class="total-column fR">
  41. <dl>
  42. <dt>昨日累计</dt>
  43. <dd class="total-num">999</dd>
  44. </dl>
  45. </div>
  46. </div>
  47. </li> -->
  48. </ul>
  49. </div>
  50. <div class="userRegister" id="userRegister" style="width:100%;height:450px;padding-bottom:20px;"></div>
  51. <div class="total-main clearfix">
  52. <ul>
  53. <li>
  54. <div class="total-content">
  55. <h2 class="total-title">支付宝</h2>
  56. <div class="total-column fL">
  57. <dl>
  58. <dt>今日累计</dt>
  59. <dd class="total-num">¥<?php if( empty($data['atcount']) ): ?>0<?php else: ?><?php echo $data['atcount']; ?><?php endif; ?></dd>
  60. </dl>
  61. </div>
  62. <div class="total-column fR">
  63. <dl>
  64. <dt>昨日累计</dt>
  65. <dd class="total-num">¥<?php if( empty($data['aycount']) ): ?>0<?php else: ?><?php echo $data['aycount']; ?><?php endif; ?></dd>
  66. </dl>
  67. </div>
  68. </div>
  69. </li>
  70. <!-- <li>
  71. <div class="total-content">
  72. <h2 class="total-title">网银在线</h2>
  73. <div class="total-column fL">
  74. <dl>
  75. <dt>今日累计</dt>
  76. <dd class="total-num">¥99.3</dd>
  77. </dl>
  78. </div>
  79. <div class="total-column fR">
  80. <dl>
  81. <dt>昨日累计</dt>
  82. <dd class="total-num">¥999</dd>
  83. </dl>
  84. </div>
  85. </div>
  86. </li> -->
  87. <li>
  88. <div class="total-content">
  89. <h2 class="total-title">银行转账</h2>
  90. <div class="total-column fL">
  91. <dl>
  92. <dt>今日累计</dt>
  93. <dd class="total-num">¥<?php if( empty($data['otcount']) ): ?>0<?php else: ?><?php echo $data['otcount']; ?><?php endif; ?></dd>
  94. </dl>
  95. </div>
  96. <div class="total-column fR">
  97. <dl>
  98. <dt>昨日累计</dt>
  99. <dd class="total-num">¥<?php if( empty($data['oycount']) ): ?>0<?php else: ?><?php echo $data['oycount']; ?><?php endif; ?></dd>
  100. </dl>
  101. </div>
  102. </div>
  103. </li>
  104. <li>
  105. <div class="total-content" style="border:none;">
  106. <h2 class="total-title">合计金额</h2>
  107. <div class="total-column fL">
  108. <dl>
  109. <dt>今日累计</dt>
  110. <dd class="total-num">¥<?php if( empty($data['alltcount']) ): ?>0<?php else: ?><?php echo $data['alltcount']; ?><?php endif; ?></dd>
  111. </dl>
  112. </div>
  113. <div class="total-column fR">
  114. <dl>
  115. <dt>昨日累计</dt>
  116. <dd class="total-num">¥<?php if( empty($data['allycount']) ): ?>0<?php else: ?><?php echo $data['allycount']; ?><?php endif; ?></dd>
  117. </dl>
  118. </div>
  119. </div>
  120. </li>
  121. </ul>
  122. </div>
  123. <div class="userRecharge" id="userRecharge" style="width:100%;height:450px; margin-top:35px;"></div>
  124. <div class="total-balanc-main clearfix">
  125. <ul>
  126. <li>
  127. <div class="total-content total-content-balanc">
  128. <h2 class="total-title total-title-d">充值总计</h2>
  129. <div class="total-column total-num">¥<?php echo $data['all']; ?></div>
  130. </div>
  131. <div class="total-tableY">
  132. <table class="table">
  133. <thead>
  134. <tr>
  135. <th></th>
  136. <th>2016累计(元)</th>
  137. <th>2015累计(元)</th>
  138. </tr>
  139. </thead>
  140. <tr>
  141. <td>支付宝</td>
  142. <td><?php echo $data['alipay2016']; ?></td>
  143. <td><?php echo $data['alipay2015']; ?></td>
  144. </tr>
  145. <tr>
  146. <td>网银在线</td>
  147. <td><?php echo $data['recharge2016']; ?></td>
  148. <td><?php echo $data['recharge2015']; ?></td>
  149. </tr>
  150. <tr>
  151. <td>银行转账</td>
  152. <td><?php echo $data['offline2016']; ?></td>
  153. <td><?php echo $data['offline2015']; ?></td>
  154. </tr>
  155. <tr>
  156. <td>合计</td>
  157. <td><?php echo $data['all2016']; ?></td>
  158. <td><?php echo $data['all2015']; ?></td>
  159. </tr>
  160. </table>
  161. </div>
  162. </li>
  163. <li>
  164. <div class="total-tableM">
  165. <table class="table">
  166. <thead>
  167. <tr>
  168. <th>2016</th>
  169. <th>支付宝(元)</th>
  170. <th>网银在线(元)</th>
  171. <th>银行转账(元)</th>
  172. <th>合计(元)</th>
  173. </tr>
  174. </thead>
  175. <?php if( !empty($data['data2016']) ): ?>
  176. <?php foreach($data['data2016'] as $k1=>$v1): ?>
  177. <tr>
  178. <td><?php echo $v1['month']; ?></td>
  179. <td><?php echo $v1['alipay']; ?></td>
  180. <td><?php echo $v1['recharge']; ?></td>
  181. <td><?php echo $v1['offline']; ?></td>
  182. <td><?php echo $v1['allpost']; ?></td>
  183. </tr>
  184. <?php endforeach; ?>
  185. <?php endif; ?>
  186. </table>
  187. </div>
  188. </li>
  189. </ul>
  190. </div>
  191. </div>
  192. <!-- mainWrapper end -->
  193. </div>
  194. <script type="text/javascript">
  195. // 基于准备好的dom,初始化echarts实例
  196. var myChart = echarts.init(document.getElementById('userRegister'));
  197. // 指定图表的配置项和数据
  198. var option = {
  199. tooltip : {
  200. trigger: 'axis',
  201. },
  202. legend: {
  203. data:['已激活用户']
  204. },
  205. grid: {
  206. left: '3%',
  207. right: '4%',
  208. bottom: '12%',
  209. containLabel: true
  210. },
  211. dataZoom:
  212. {
  213. show: true,
  214. start: 0,
  215. end: 100
  216. },
  217. xAxis : [
  218. {
  219. type : 'category',
  220. splitLine: {
  221. show: true,
  222. interval: 'auto'
  223. },
  224. data : [<?php foreach($data['monthstr'] as $k1=>$v1): ?>"<?php echo $v1; ?>",<?php endforeach; ?>]
  225. }
  226. ],
  227. yAxis : [
  228. {
  229. type : 'value',
  230. name : '人数',
  231. axisLabel : {
  232. formatter: '{value} 人'
  233. }
  234. }
  235. ],
  236. calculable:false,
  237. series : [
  238. // {
  239. // name:'仅注册',
  240. // type:'bar',
  241. // stack: '人数',
  242. // data:[50,110,120,10,70,32,50,110,120,10,70,32,50,110,120,10,70,32,50,110,120,10,70,32,50,110,120,10,70,32,50],
  243. // itemStyle:{
  244. // normal:{color:'#e9af68'}
  245. // }
  246. // },
  247. // {
  248. // name:'已验证',
  249. // type:'bar',
  250. // stack: '人数',
  251. // data:[30,0,20,50,0,100,30,0,20,50,0,100,30,0,20,50,0,100,30,0,20,50,0,100,30,0,20,50,0,100,30],
  252. // itemStyle:{
  253. // normal:{color:'#009f86'}
  254. // }
  255. // },
  256. {
  257. name:'已激活用户',
  258. type:'line',
  259. data:[<?php foreach($data['muaddnumstr'] as $k1=>$v1): ?><?php echo $v1; ?>,<?php endforeach; ?>],
  260. // 80,110,140,60,70,132,80,110,140,60,70,132,80,110,140,60,70,132,80,110,140,60,70,132,80
  261. itemStyle:{
  262. normal:{color:'#E4575A'}
  263. }
  264. },
  265. ]
  266. };
  267. // 使用刚指定的配置项和数据显示图表。
  268. myChart.setOption(option);
  269. // 基于准备好的dom,初始化echarts实例
  270. var myChart2 = echarts.init(document.getElementById('userRecharge'));
  271. option = {
  272. tooltip : {
  273. trigger: 'axis',
  274. },
  275. legend: {
  276. data:['支付宝','银行转账','总金额']
  277. },
  278. grid: {
  279. left: '3%',
  280. right: '4%',
  281. bottom: '12%',
  282. containLabel: true
  283. },
  284. dataZoom:
  285. {
  286. show: true,
  287. start: 0,
  288. end: 100
  289. },
  290. xAxis : [
  291. {
  292. type : 'category',
  293. splitLine: {
  294. show: true,
  295. interval: 'auto'
  296. },
  297. data : []
  298. }
  299. ],
  300. yAxis : [
  301. {
  302. type : 'value',
  303. name : '金额',
  304. axisLabel : {
  305. formatter: '{value} 元'
  306. }
  307. }
  308. ],
  309. calculable:false,
  310. series : [
  311. {
  312. name:'支付宝',
  313. type:'bar',
  314. stack: '金额',
  315. data:[],
  316. itemStyle:{
  317. normal:{color:'#5DB1EA'}
  318. }
  319. },
  320. {
  321. name:'银行转账',
  322. type:'bar',
  323. stack: '金额',
  324. data:[],
  325. itemStyle:{
  326. normal:{color:'#14d2be'}
  327. }
  328. },
  329. {
  330. name:'总金额',
  331. type:'line',
  332. data:[],
  333. itemStyle:{
  334. normal:{color:'#E4575A'}
  335. }
  336. },
  337. ]
  338. };
  339. // 使用刚指定的配置项和数据显示图表。
  340. myChart2.setOption(option);
  341. myChart2.showLoading();
  342. $.get('/m/main/charts').done(function(data){
  343. var html = eval("("+data+")");
  344. myChart2.hideLoading();
  345. myChart2.setOption({
  346. xAxis: {
  347. data: html.daystr
  348. },
  349. series: [
  350. {
  351. // 根据名字对应到相应的系列
  352. name: '支付宝',
  353. data: html.alipaystr
  354. },
  355. {
  356. name:'银行转账',
  357. data:html.offlinestr
  358. },
  359. {
  360. name:'总金额',
  361. data: html.allstr
  362. }
  363. ]
  364. });
  365. });
  366. </script>
  367. </body>
  368. </html>