Nav apraksta

queryHelp.js 1007B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. var token = '';
  2. var city_name = '';
  3. var returnUrl = '';
  4. var code = '';
  5. var goUrl = "";
  6. var httpStr = "";
  7. var qs = parseQueryString(window.location.href);
  8. $().ready(function() {
  9. if (qs.returnUrl) {
  10. returnUrl = qs.returnUrl;
  11. }
  12. if (qs.httpStr) {
  13. httpStr = qs.httpStr;
  14. }
  15. if (qs.name) {
  16. city_name = qs.name;
  17. }
  18. if (qs.code) {
  19. code = qs.code;
  20. }
  21. if (qs.token) {
  22. token = qs.token;
  23. }
  24. $(".goOfficialNetwork i").html(city_name)
  25. goBack()
  26. });
  27. //nav返回上一页
  28. function goBack () {
  29. $("nav i").click(function () {
  30. window.history.go(-1)
  31. // window.location.href = httpStr + "&name=" + city_name + "&code=" + code + "&token=" + token;
  32. })
  33. }
  34. //各城市对应注册地址
  35. function goZhuce () {
  36. tips.find(function(item,index) {
  37. if(item.region == city_name){
  38. if(item.URL.register){
  39. goUrl=item.URL.register;
  40. window.location.href = goUrl;
  41. }else{
  42. goUrl=item.URL.web;
  43. window.location.href = goUrl;
  44. }
  45. }
  46. })
  47. }