pay.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <!--
  3. To change this license header, choose License Headers in Project Properties.
  4. To change this template file, choose Tools | Templates
  5. and open the template in the editor.
  6. -->
  7. <html>
  8. <head>
  9. <title>支付分析</title>
  10. <meta charset="UTF-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  12. <?php include "includelibs.php"; ?>
  13. <script >
  14. window.myDateTypeStr = 'FirstPayDayLevel';
  15. $(function () { // onload
  16. var dateType = $("#dateType");
  17. dateType.selectmenu({
  18. change: function (event, data) {
  19. window.myDateTypeStr = data.item.value;
  20. GetData(5);// 付费分析
  21. }
  22. });
  23. });
  24. // 图表标题
  25. function getTitleText() {
  26. var titlestr = "";
  27. if (window.myDateTypeStr == 'FirstPayLevel') {
  28. titlestr = '首次付费玩家的等级情况统计';
  29. } else if (window.myDateTypeStr == 'FirstPayDay') {
  30. titlestr = '首次付费玩家的游戏时长统计(单位:天)';
  31. } else if (window.myDateTypeStr == 'FirstYuanbaoPayAt') {
  32. titlestr = '玩家第一次使用元宝消费的用途统计';
  33. }
  34. return titlestr;
  35. }
  36. </script>
  37. </head>
  38. <body style='max-width:1000px;margin:auto;'>
  39. <form action="#" style="margin: auto;">
  40. <fieldset>
  41. <label for="dateType">选择统计内容</label>
  42. <select name="dateType" id="dateType">
  43. <option selected="selected">FirstPayLevel</option>
  44. <option>FirstPayDay</option>
  45. <option>FirstYuanbaoPayAt</option>
  46. </select>
  47. </fieldset>
  48. </form>
  49. <div id="chartContainer" style="max-width:800px;max-height:500px">
  50. <canvas id="myChart" style="width:100%;height:100%;border: 1px solid red;"></canvas>
  51. </div>
  52. <p> 说明:</p>
  53. <ul>
  54. <li>FirstPayLevel: 首次付费玩家的等级情况统计 </li>
  55. <li>FirstPayDay: 首次付费玩家的游戏时长统计(单位:天)</li>
  56. <li>FirstYuanbaoPayAt: 玩家第一次使用元宝消费的用途统计.</li>
  57. </ul>
  58. </body>
  59. </html>