Authored by ccbikai

goNewPage 全部使用标准网址

@@ -99,13 +99,13 @@ const matchHeader = (url) => { @@ -99,13 +99,13 @@ const matchHeader = (url) => {
99 }; 99 };
100 100
101 module.exports = (url) => { 101 module.exports = (url) => {
102 - console.log(url);  
103 if (yoho.isApp) { 102 if (yoho.isApp) {
104 let data = { 103 let data = {
105 header: matchHeader(url), 104 header: matchHeader(url),
106 - url: url 105 + url: /^(https?:)?\/\//i.test(url) ? url : location.origin + url
107 }; 106 };
108 107
  108 + // console.log(data);
109 yoho.goNewPage(data); 109 yoho.goNewPage(data);
110 } else { 110 } else {
111 location.href = url; 111 location.href = url;