zmt
3 years ago
3 changed files with 38 additions and 21 deletions
@ -1,35 +1,34 @@ |
|||
const CONFIG = { |
|||
//开发环境配置
|
|||
development: { |
|||
development: { |
|||
baseUrl: "http://testmanager.ouxuanzhineng.cn", //测试环境
|
|||
// baseUrl: "https://testmatch.ouxuanzhineng.cn",
|
|||
testOpenId: "wxacdbba29503f6351", // 小程序测试openId
|
|||
loginTitleTxt: "development_wx", // 登录页标题
|
|||
copyrightTxt: "XXXv1.0", // 版本信息
|
|||
assetsPath: "http://cdn.com/img", // 静态资源路径
|
|||
// baseUrl: "http://testmanager.ouxuanzhineng.cn", //测试环境
|
|||
// baseUrl: "https://testmatch.ouxuanzhineng.cn",
|
|||
baseUrl: "https://match.ouxuanzhineng.cn", |
|||
// tokenKey: "wxacdbba29503f6351", // 登录标识 测试环境
|
|||
tokenKey: "wxf368fa7316d6952f", // 登录标识
|
|||
testOpenId: "", // 小程序测试openId
|
|||
tokenKey: "WECHAT_TRADE", // 登录标识
|
|||
forcedLogin: false, // touristMode游客模式下APP是否强制用户登录 场景:当用户进入登录页面后无法后退。
|
|||
touristMode: true, // APP是否开启游客模式, 游客模式true开启:APP打开后可以进入首页和无权限的页面,游客模式false关闭:APP打开后首先需要登录才能进入, 此时forcedLogin配置项失效。
|
|||
showLog:true, //是否开启log
|
|||
}, |
|||
|
|||
//生产环境配置
|
|||
production: { |
|||
production: { |
|||
baseUrl: "https://match.ouxuanzhineng.cn", |
|||
testOpenId: "wxf368fa7316d6952f", // 小程序openId
|
|||
loginTitleTxt: "production_wx", // 登录页标题
|
|||
copyrightTxt: "XXXv1.0", // 版本信息
|
|||
assetsPath: "/static/img", // 静态资源路径
|
|||
// baseUrl: "https://testmatch.ouxuanzhineng.cn", // 测试环境
|
|||
baseUrl: "https://match.ouxuanzhineng.cn", |
|||
tokenKey: "WECHAT_TRADE", // 登录标识
|
|||
// testOpenId: "wxacdbba29503f6351", // 小程序测试openId
|
|||
testOpenId: "wxf368fa7316d6952f", // 小程序测试openId
|
|||
forcedLogin: false, // touristMode游客模式下APP是否强制用户登录 场景:当用户进入登录页面后无法后退。
|
|||
touristMode: true, // APP是否开启游客模式, 游客模式true开启:APP打开后可以进入首页和无权限的页面,游客模式false关闭:APP打开后首先需要登录才能进入, 此时forcedLogin配置项失效。
|
|||
showLog:true, //是否开启log
|
|||
} |
|||
|
|||
} |
|||
console.log(123,process.env.NODE_ENV); |
|||
export default CONFIG[process.env.NODE_ENV]; |
|||
console.log("NODE_ENV:",process.env.NODE_ENV); |
|||
// export default CONFIG[process.env.NODE_ENV];
|
|||
export default CONFIG['development'] |
|||
// export default CONFIG['production']
|
|||
|
@ -1,6 +1,24 @@ |
|||
{ |
|||
"dependencies": { |
|||
"uni-read-pages": "^1.0.5", |
|||
"uni-simple-router": "^2.0.1" |
|||
} |
|||
} |
|||
{ |
|||
"dependencies": { |
|||
"uni-read-pages": "^1.0.5", |
|||
"uni-simple-router": "^2.0.1" |
|||
}, |
|||
"scripts": { |
|||
"test": "echo \"Error: no test specified\" && exit 1", |
|||
"dev": "NODE_ENV=development webpack --watch ", |
|||
"build": "NODE_ENV=development webpack --mode=production", |
|||
"dev:mp-weixin": "cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin vue-cli-service uni-build --watch --minimize" |
|||
}, |
|||
"name": "uni-events-helper-wx", |
|||
"description": "##### (1) 路由拦截 [uni-simple-router](https://hhyang.cn/) 路由、拦截、最优雅的解决方案", |
|||
"version": "1.0.0", |
|||
"main": "main.js", |
|||
"devDependencies": {}, |
|||
"repository": { |
|||
"type": "git", |
|||
"url": "https://git.ouxuan.net/APP/uni-events-helper-wx.git" |
|||
}, |
|||
"keywords": [], |
|||
"author": "", |
|||
"license": "ISC" |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue