|
@@ -60,7 +60,6 @@ const xianyu = { |
|
@@ -60,7 +60,6 @@ const xianyu = { |
60
|
},
|
60
|
},
|
61
|
|
61
|
|
62
|
goXianyuNewPage(args) {
|
62
|
goXianyuNewPage(args) {
|
63
|
- console.log(args);
|
|
|
64
|
if (!args.url) {
|
63
|
if (!args.url) {
|
65
|
return;
|
64
|
return;
|
66
|
}
|
65
|
}
|
|
@@ -73,7 +72,14 @@ const xianyu = { |
|
@@ -73,7 +72,14 @@ const xianyu = { |
73
|
|
72
|
|
74
|
try {
|
73
|
try {
|
75
|
pageParams = queryString.parse(urlSplit[1]);
|
74
|
pageParams = queryString.parse(urlSplit[1]);
|
76
|
-
|
75
|
+ let arr = [];
|
|
|
76
|
+ if (Object.keys(pageParams)[0] === 'openby:yohobuy') {
|
|
|
77
|
+ for (let key in pageParams) {
|
|
|
78
|
+ arr.push(pageParams[key]);
|
|
|
79
|
+ }
|
|
|
80
|
+ }
|
|
|
81
|
+ pageParams = JSON.parse(arr[0]).params;
|
|
|
82
|
+ console.log(JSON.parse(arr[0]).params);
|
77
|
if (pageParams.pagename) {
|
83
|
if (pageParams.pagename) {
|
78
|
switch (pageParams.pagename) {
|
84
|
switch (pageParams.pagename) {
|
79
|
case 'productList':
|
85
|
case 'productList':
|
|
@@ -82,10 +88,16 @@ const xianyu = { |
|
@@ -82,10 +88,16 @@ const xianyu = { |
82
|
case 'productDetail':
|
88
|
case 'productDetail':
|
83
|
pageName = 'ProductDetail';
|
89
|
pageName = 'ProductDetail';
|
84
|
break;
|
90
|
break;
|
|
|
91
|
+ case 'logisticsInfo':
|
|
|
92
|
+ pageName = 'orderLogisticsInfo';
|
|
|
93
|
+ break;
|
85
|
default:
|
94
|
default:
|
86
|
break;
|
95
|
break;
|
87
|
}
|
96
|
}
|
88
|
delete pageParams.pagename;
|
97
|
delete pageParams.pagename;
|
|
|
98
|
+ pageParams.owner = pageParams.logisticsType;
|
|
|
99
|
+ pageParams.code = pageParams.ordercode;
|
|
|
100
|
+ console.log(pageParams);
|
89
|
}
|
101
|
}
|
90
|
} catch (error) {
|
102
|
} catch (error) {
|
91
|
console.log(error);
|
103
|
console.log(error);
|