|
@@ -2,6 +2,7 @@ import wx from '../utils/wx'; |
|
@@ -2,6 +2,7 @@ import wx from '../utils/wx'; |
2
|
import {
|
2
|
import {
|
3
|
stringify
|
3
|
stringify
|
4
|
} from '../vendors/query-stringify';
|
4
|
} from '../vendors/query-stringify';
|
|
|
5
|
+import config from '../common/config';
|
5
|
|
6
|
|
6
|
const appData = {
|
7
|
const appData = {
|
7
|
yohostore: {
|
8
|
yohostore: {
|
|
@@ -36,7 +37,8 @@ const appData = { |
|
@@ -36,7 +37,8 @@ const appData = { |
36
|
export default function(params) {
|
37
|
export default function(params) {
|
37
|
let navigateToMiniParams = {
|
38
|
let navigateToMiniParams = {
|
38
|
appId: appData[params.app].appId,
|
39
|
appId: appData[params.app].appId,
|
39
|
- path: params.path || `${appData[params.app].page[params.page]}?${stringify(params.data)}`
|
40
|
+ path: params.path || `${appData[params.app].page[params.page]}?${stringify(params.data)}`,
|
|
|
41
|
+ envVersion: config.envVersion
|
40
|
};
|
42
|
};
|
41
|
|
43
|
|
42
|
return wx.navigateToMiniProgram(navigateToMiniParams);
|
44
|
return wx.navigateToMiniProgram(navigateToMiniParams);
|