Authored by htoooth

fix

@@ -25,7 +25,8 @@ const config = { @@ -25,7 +25,8 @@ const config = {
25 MINI_APP_DOMAIN: 'miniapp.yohobuy.com', 25 MINI_APP_DOMAIN: 'miniapp.yohobuy.com',
26 appid: 'wx39f299b6485cf97a', // 业务中使用、与package.config.json内appid保持一致wx39f299b6485cf97a 26 appid: 'wx39f299b6485cf97a', // 业务中使用、与package.config.json内appid保持一致wx39f299b6485cf97a
27 business_line: 'miniappOffshop', // 业务线 27 business_line: 'miniappOffshop', // 业务线
28 - mini_app_type: 4 28 + mini_app_type: 4,
  29 + envVersion: 'develop'
29 }; 30 };
30 31
31 export default config; 32 export default config;
@@ -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);