Няма описание

queryHelp.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.location.href = httpStr + "&name=" + city_name + "&code=" + code + "&token=" + token;
  31. })
  32. }
  33. //各城市对应注册地址
  34. function goZhuce () {
  35. tips.find(function(item,index) {
  36. if(item.region == city_name){
  37. if(item.URL.register){
  38. goUrl=item.URL.register;
  39. // window.location.href = goUrl;
  40. window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
  41. }else{
  42. goUrl=item.URL.web;
  43. // window.location.href = goUrl;
  44. window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl});
  45. }
  46. }
  47. })
  48. }