Browse Source

decodeURL

xiuli.gao 6 years ago
parent
commit
f48221fa07
2 changed files with 3 additions and 0 deletions
  1. 1 0
      register/register.html
  2. 2 0
      shareBooks/wechatAddSuccess.html

+ 1 - 0
register/register.html

241
     	}
241
     	}
242
     	if(brr[i].indexOf('appUrl') != -1){
242
     	if(brr[i].indexOf('appUrl') != -1){
243
     		appUrl = brr[i].split('=')[1];//appUrl
243
     		appUrl = brr[i].split('=')[1];//appUrl
244
+    		appUrl = decodeURIComponent(appUrl);
244
     	}
245
     	}
245
     }
246
     }
246
 	
247
 	

+ 2 - 0
shareBooks/wechatAddSuccess.html

83
     	}
83
     	}
84
     	if(brr[i].indexOf('avatar') != -1){
84
     	if(brr[i].indexOf('avatar') != -1){
85
     		avatar = brr[i].split('=')[1];
85
     		avatar = brr[i].split('=')[1];
86
+    		avatar = decodeURI(avatar);
86
     	}
87
     	}
87
     	if(brr[i].indexOf('userName') != -1){
88
     	if(brr[i].indexOf('userName') != -1){
88
     		user_name = brr[i].split('=')[1];
89
     		user_name = brr[i].split('=')[1];
98
     	}
99
     	}
99
     	if(brr[i].indexOf('appUrl') != -1){
100
     	if(brr[i].indexOf('appUrl') != -1){
100
     		appUrl = brr[i].split('=')[1];
101
     		appUrl = brr[i].split('=')[1];
102
+    		appUrl = decodeURI(appUrl);
101
     	}
103
     	}
102
    }
104
    }
103
 	
105