...
|
...
|
@@ -5,6 +5,11 @@ import {parse, stringify} from '../vendors/query-stringify'; |
|
|
|
|
|
const MINI_APP_DOMAIN = 'miniapp.yohobuy.com';
|
|
|
|
|
|
const OPEN_BY_TYPE = {
|
|
|
GO_LIST: 'go.list',
|
|
|
GO_DETAIL: 'go.productDetail'
|
|
|
};
|
|
|
|
|
|
const pageNameMap = {};
|
|
|
|
|
|
for (let i in rules) {
|
...
|
...
|
@@ -64,17 +69,14 @@ global.router = { |
|
|
});
|
|
|
}
|
|
|
|
|
|
let openBy = JSON.parse(qs['openby:yohobuy'] || {});
|
|
|
let openBy = JSON.parse(qs['openby:yohobuy'] || '{}');
|
|
|
|
|
|
if (openBy.action) {
|
|
|
const GO_LIST = 'go.list';
|
|
|
const GO_DETAIL = 'go.productDetail';
|
|
|
|
|
|
switch (openBy.action) {
|
|
|
case GO_LIST:
|
|
|
case OPEN_BY_TYPE.GO_LIST:
|
|
|
this.go('productList', openBy.params);
|
|
|
break;
|
|
|
case GO_DETAIL:
|
|
|
case OPEN_BY_TYPE.GO_DETAIL:
|
|
|
this.go('productDetail', {productSkn: openBy.params.product_skn});
|
|
|
break;
|
|
|
}
|
...
|
...
|
|