农燊高科官方网站
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

46 lignes
1.2 KiB

  1. /**
  2. * Created by Administrator on 2021/4/5.
  3. */
  4. define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, template, Tools, echarts, swiper) {
  5. //数据存储
  6. var module = {
  7. data: {
  8. type:0
  9. },
  10. };
  11. var tools = new Tools();
  12. module.init = function (page) {
  13. //背景高度
  14. module.register();
  15. module.data.type = getQueryVariable("type")
  16. //网站配置信息(网站名称 底部联系方式 公安备案号 网站备案号)
  17. tools.getWebConfig();
  18. };
  19. //获取地址栏参数
  20. function getQueryVariable(variable){
  21. var query = window.location.search.substring(1);
  22. var vars = query.split("&");
  23. for (var i=0;i<vars.length;i++) {
  24. var pair = vars[i].split("=");
  25. if(pair[0] == variable){return pair[1];}
  26. }
  27. return(false);
  28. }
  29. //背景高度
  30. module.register = function(){
  31. document.getElementById('registerBody').style.height = (document.body.offsetHeight - 112) +'px';
  32. }
  33. goAgree = function(){
  34. tools.skip('registerFrom.html?type='+module.data.type)
  35. }
  36. goRegister = function(){
  37. tools.skip('register.html')
  38. }
  39. return module;
  40. });