header.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. // document.writeln("<div id = app>");
  2. // document.writeln(" <header>");
  3. // document.writeln(" <div class=\'a\'>");
  4. // document.writeln(" <div class=\'container\'>");
  5. // document.writeln(" <div class=\'tool\'>");
  6. // document.writeln(" <div class=\'fr\'>");
  7. // document.writeln(" <a href=\'\' target=\'_blank\'></a>");
  8. // document.writeln(" ");
  9. // document.writeln(" </div>");
  10. // document.writeln(" ");
  11. // document.writeln(" <!-- <script src=\'static/js/time.js\'></script> -->");
  12. // document.writeln(" <div class=\'loca\'>");
  13. // document.writeln(" <span> 欢迎访问 安徽省刷制品质量监督检验中心 ! 今天{{date_show}} {{week}}</span>");
  14. // document.writeln(" </div>");
  15. // document.writeln(" <div class=\'srch\'><input type=\'text\' class=\'tt\' placeholder=\'输入要查找的信息\' v-model=\'inpute\' @blur=\'inpubie\'/> <img");
  16. // document.writeln(" src=\'static/picture/icon_ztl_ss@2x.png\' @click=\'nhyesee\'> </div>");
  17. // document.writeln(" </div>");
  18. // document.writeln(" </div>");
  19. // document.writeln(" </div>");
  20. // document.writeln(" <div class=\'b\'>");
  21. // document.writeln(" <div class=\'container\'>");
  22. // document.writeln(" <div class=\'logo\'>");
  23. // document.writeln(" <a href=\'javascript:void(0)\'><img src=\'static/picture/pic_hp_dh_logo@2x.png\' alt=\'\' /></a>");
  24. // document.writeln(" </div>");
  25. // document.writeln(" <div class=\'frs fr\' v-if=\'hyew == true\' >");
  26. // document.writeln(" <div class= \'menu _list\'>");
  27. // document.writeln(" <ul>");
  28. // document.writeln(" <li v-for=\'item,index in tablide\' :key=\'index\' @click=\'tabcl(index,item.id)\'>");
  29. // document.writeln(" <div :class=\'[ nue == index ? \'on\' : \'\' , \'i\' ]\'>");
  30. // document.writeln(" <p><a :href=\'ulrw\'>{{item.label}}</a></p>");
  31. // document.writeln(" <div class=\'ex\' v-for=\'(items,indexs) in item.children\' :key=\'indexs + \'y\'\' v-if=\'item.children\' @click.stop=\'jeuese(items.id)\'>");
  32. // document.writeln(" <p><a :href=\'ulrw\'>{{items.label}}</a></p>");
  33. // document.writeln(" <!-- jggk.html -->");
  34. // document.writeln(" <!-- <p><a href=\'zzhjg.html\'>组织架构</a></p> -->");
  35. // document.writeln(" </div>");
  36. // document.writeln(" </div>");
  37. // document.writeln(" </li>");
  38. // document.writeln(" ");
  39. // document.writeln(" </ul>");
  40. // document.writeln(" </div>");
  41. // document.writeln(" </div>");
  42. // document.writeln(" <a href=\'\' class=\'mbtn pc-hide\'></a>");
  43. // document.writeln(" </div>");
  44. // document.writeln(" </div>");
  45. // document.writeln(" </header>");
  46. // document.writeln(" </div>");
  47. // <script type="text/javascript">
  48. var app = new Vue({
  49. el: '#appse',
  50. data: {
  51. week:'',
  52. date_show:'',
  53. },
  54. created() {
  55. console.log(234)
  56. this.getdataTime()
  57. },
  58. mounted(optio) {
  59. },
  60. methods:{
  61. nhyesee(){
  62. console.log(this.inpute)
  63. let nhye= this.inpute + ''
  64. window.location.href = "ss.html?" + encodeURI(nhye)
  65. },
  66. jeuese(index){
  67. console.log(index.label)
  68. // if(index == 25 || index == 26 ||index ==33 || index ==33 || index == 20 || index ==21 || index==24){
  69. // window.location.href="jgjj.html?id=" + index +'&titel=' + val + '&ntitel=' + this.hyesfr
  70. // }else if(index == 32){
  71. // window.location.href="jcfanw.html?id=" + index +'&titel=' + val + '&ntitel=' + this.hyesfr
  72. // }else if(index == 34){
  73. // window.location.href="zzhnl.html?id=" + index +'&titel=' + val + '&ntitel=' + this.hyesfr
  74. // }
  75. // else {
  76. window.location.href="djdt.html?id=" + index.id +'&titel=' + index.label + '&ntitel=' + this.hyesfr + '&openMode=' + index.openMode
  77. // }
  78. // if(index == 1){
  79. // // this.$router.push('/index.html');
  80. // this.ulrw = index.html
  81. // }else{
  82. // this.ulrw = 'djdt.html?id=' + index
  83. // }
  84. },
  85. getdataTime(){
  86. let wk = new Date().getDay()
  87. let yy = new Date().getFullYear();
  88. let mm = new Date().getMonth() + 1;
  89. let dd = new Date().getDate();
  90. let weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
  91. this.week = weeks[wk]
  92. this.date_show = yy + "年" + mm + "月" + dd + "日"
  93. },
  94. }
  95. })