ga_trafficsource.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {Template header}
  2. <body>
  3. <div class="warp">
  4. <div class="fixed">
  5. <ul class="search">
  6. <li>
  7. 店铺名称:<select name="shop" class="select">
  8. <option value="">请选择</option>
  9. {loop usershop() as $val}
  10. <option value="{$val['id']}">{$val['shopname']}</option>
  11. {/loop}</select>
  12. </li>
  13. <li><span>确 定</span></li>
  14. </ul>
  15. <div class="control">
  16. <!-- <a href="javascript:void(0);" class="change">批量发货声明</a> -->
  17. </div>
  18. <table class="datatitle data" border="0" style="border-collapse:collapse;">
  19. <tr>
  20. <td><label onClick="swapCheck()"><input name="checkbox" type="checkbox" class="regular-checkbox"></label></td>
  21. <td>日期</td>
  22. <td>店铺</td>
  23. <td>来源</td>
  24. <td>渠道</td>
  25. <td>着陆页</td>
  26. <td>关键词</td>
  27. <td>社交网络</td>
  28. <td>用户数</td>
  29. <td>新用户数</td>
  30. <td>会话数</td>
  31. <td>跳出率</td>
  32. <td>每次会话浏览页数</td>
  33. <td>平均会话时长</td>
  34. <td>电子商务转化率</td>
  35. <td>交易次数</td>
  36. <td>收入</td>
  37. <!-- <td>物流状态</td> -->
  38. <!-- <td>操作</td> -->
  39. </tr>
  40. </table>
  41. </div>
  42. <table class="datatext data" border="0" style="border-collapse:collapse;">
  43. </table>
  44. <div class="lbwlxq"></div>
  45. <div class="bomf"></div>
  46. </div>
  47. <script>
  48. var dataurl = "/ga/trafficsource"; var operate = "/ga";
  49. var customon = 1;
  50. function custom(){
  51. $(".data tr").each(function() {
  52. $(this).find('td:eq(0)').css("width","1%");
  53. $(this).find('td:eq(1)').css("width","8%");
  54. $(this).find('td:eq(2)').css("width","8%");
  55. $(this).find('td:eq(3)').css("width","6%");
  56. $(this).find('td:eq(4)').css("width","6%");
  57. $(this).find('td:eq(5)').css("width","10%");
  58. $(this).find('td:eq(6)').css("width","8%");
  59. $(this).find('td:eq(8)').css("width","6%");
  60. $(this).find('td:eq(9)').css("width","4%");
  61. $(this).find('td:eq(11)').css("width","4%");
  62. $(this).find('td:eq(12)').css("width","4%");
  63. $(this).find('td:eq(13)').css("width","6%");
  64. $(this).find('td:eq(14)').css("width","6%");
  65. });}
  66. $(".datatext").on('mouseover mouseout',".method",function(event) {
  67. if (event.type === "mouseover") {
  68. $(this).parent().parent("td").append('<font style="position: absolute;z-index: 1;border-radius:3px;border: 1px solid #39F;padding:0 10px;background-color: #FFF;box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 24px;">'+$(this).data("t")+'</font>');
  69. }else if(event.type == "mouseout"){
  70. $(this).parent().siblings("font").remove();
  71. }
  72. });
  73. $(".data").on('mouseover',".lbwlxx",function() {
  74. var offset = $(this).offset();
  75. ///得到位置
  76. var left1 = offset.left + 20;
  77. ///得到位置
  78. var top1 = offset.top + 20;
  79. $(".lbwlxq").css({'top': top1, 'left': left1});
  80. $(".lbwlxx").mouseover(function(){
  81. $(".lbwlxq").html($(this).find('font').html());
  82. $(".lbwlxq").show();
  83. });
  84. $(".data").on('mouseout',".lbwlxx",function() {
  85. $(".lbwlxq").html("");
  86. $(".lbwlxq").hide();
  87. });
  88. });
  89. </script>
  90. <script type="text/javascript" src="{$theme}js/laydate.js"></script>
  91. {Template footer}