diff --git a/config/request.js b/config/request.js index b25aa22..2b649d1 100644 --- a/config/request.js +++ b/config/request.js @@ -2,6 +2,7 @@ import config from '@/config/index.js'; import store from '@/store/index.js'; const apiHost = config.apiHost; +const env = config.env; const systemInfo = wx.getSystemInfoSync(); // 此vm参数为页面的实例,可以通过它引用vuex中的变量 @@ -19,6 +20,7 @@ module.exports = vm => { wechatVersion: systemInfo.version, // 微信版本 SDKVersion: systemInfo.SDKVersion, // 基础库版本 platform: 'mp', // 当前运行平台 + env: env, //环境 }; return config; }); diff --git a/pages.json b/pages.json index 5f0be10..d72f565 100644 --- a/pages.json +++ b/pages.json @@ -167,7 +167,7 @@ { "path": "search-address", "style": { - "navigationBarTitleText": "查询地址" + "navigationBarTitleText": "选择地址" } } ] diff --git a/pages/global/search-address.vue b/pages/global/search-address.vue index e63de66..bc7f355 100644 --- a/pages/global/search-address.vue +++ b/pages/global/search-address.vue @@ -1,12 +1,27 @@