Commit 577fc6e0 authored by 华国豪's avatar 华国豪 🙄

1

parent 71a96284
...@@ -3258,15 +3258,19 @@ export default { ...@@ -3258,15 +3258,19 @@ export default {
}, },
goUrl(url, id, index) { goUrl(url, id, index) {
if(url.indexOf("http://")==-1){ if(url.indexOf("http://")==-1){
if(url=='/JapanHotel'){ if(url=='/JapanHotel' || url=='/KKDayFree'){
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let msg = { let msg = {
id:userInfo.EmployeeId id:userInfo.EmployeeId
} }
this.apipost("sellorder_post_GetDesEncrypt",msg,res => { this.apipost("sellorder_post_GetDesEncrypt",msg,res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let pageName = url=='/JapanHotel' ? 'hotelHome' : 'FreeHome';
this.EnCodeWord=res.data.data; this.EnCodeWord=res.data.data;
window.open("http://www.oytour.com/#/hotelHome?uid="+encodeURIComponent(this.EnCodeWord), "_blank"); // http://testb2b.oytour.com
// http://www.oytour.com
window.open("http://localhost:8081/#/"+ pageName +"?uid="+encodeURIComponent(this.EnCodeWord), "_blank");
// window.open("http://www.oytour.com/#/"+ pageName +"?uid="+encodeURIComponent(this.EnCodeWord), "_blank");
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -202,15 +202,19 @@ ...@@ -202,15 +202,19 @@
}) })
}, },
goUrl(path) { goUrl(path) {
if(path=='/JapanHotel'){ if(path=='/JapanHotel' || url=='/KKDayFree'){
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let msg = { let msg = {
id:userInfo.EmployeeId id:userInfo.EmployeeId
} }
this.apipost("sellorder_post_GetDesEncrypt",msg,res => { this.apipost("sellorder_post_GetDesEncrypt",msg,res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EnCodeWord=res.data.data; let pageName = url=='/JapanHotel' ? 'hotelHome' : 'FreeHome';
window.open("http://www.oytour.com/#/hotelHome?uid="+encodeURIComponent(this.EnCodeWord), "_blank"); this.EnCodeWord=res.data.data;
// http://testb2b.oytour.com
// http://www.oytour.com
window.open("http://localhost:8081/#/"+ pageName +"?uid="+encodeURIComponent(this.EnCodeWord), "_blank");
// window.open("http://www.oytour.com/#/"+ pageName +"?uid="+encodeURIComponent(this.EnCodeWord), "_blank");
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment