diff --git a/project.config.json b/project.config.json index 69db4b7..556142a 100644 --- a/project.config.json +++ b/project.config.json @@ -1,30 +1,44 @@ { - "description": "糖友运动", - "setting": { - "urlCheck": true, - "es6": true, - "postcss": true, - "minified": false, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "enhance": true + "description": "糖友运动", + "setting": { + "urlCheck": true, + "es6": true, + "postcss": true, + "minified": false, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" }, - "compileType": "miniprogram", - "appid": "wxc06a18569e063fdd", - "projectname": "sport2", - "miniprogramRoot": "dist/", - "libVersion": "3.3.4", - "srcMiniprogramRoot": "dist/", - "packOptions": { - "ignore": [], - "include": [] - }, - "condition": {}, - "editorSetting": { - "tabIndent": "insertSpaces", - "tabSize": 4 - } + "enhance": true, + "compileWorklet": false, + "uglifyFileName": false, + "uploadWithSourceMap": true, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "minifyWXML": true, + "localPlugins": false, + "disableUseStrict": false, + "useCompilerPlugins": false, + "condition": false, + "swc": false, + "disableSWC": true + }, + "compileType": "miniprogram", + "appid": "wx75551cb56606869d", + "projectname": "sport2", + "miniprogramRoot": "dist/", + "libVersion": "3.3.4", + "srcMiniprogramRoot": "dist/", + "packOptions": { + "ignore": [], + "include": [] + }, + "condition": {}, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 4 + }, + "simulatorPluginLibVersion": {} } \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index e7df74a..c27c4f2 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,22 +1,36 @@ { - "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "sport2", - "setting": { - "compileHotReLoad": true, - "urlCheck": true - }, - "condition": { - "miniprogram": { - "list": [ - { - "name": "pages/index", - "pathName": "pages/index", - "query": "scene=wid%3Da000025f", - "launchMode": "default", - "scene": null - } - ] + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "sport2", + "setting": { + "compileHotReLoad": true, + "urlCheck": true, + "coverView": false, + "lazyloadPlaceholderEnable": false, + "skylineRenderEnable": false, + "preloadBackgroundData": false, + "autoAudits": false, + "useApiHook": true, + "useApiHostProcess": true, + "showShadowRootInWxmlPanel": false, + "useStaticServer": false, + "useLanDebug": false, + "showES6CompileOption": false, + "checkInvalidKey": true, + "ignoreDevUnusedFiles": true, + "bigPackageSizeSupport": false + }, + "condition": { + "miniprogram": { + "list": [ + { + "name": "pages/index", + "pathName": "pages/index", + "query": "scene=wid%3Da000025f", + "launchMode": "default", + "scene": null } - }, - "libVersion": "3.3.4" + ] + } + }, + "libVersion": "3.3.4" } \ No newline at end of file diff --git a/src/config.js b/src/config.js index e8c3e9e..bd78320 100644 --- a/src/config.js +++ b/src/config.js @@ -9,8 +9,15 @@ export default { : 'https://nn-dp.chinacloudsites.cn/api'; } + // 开发环境 appid:wxc06a18569e063fdd + // return __PRO__ + // ? 'https://app.diabetes.hbraas.com' + // : 'https://app.diabetes.hbraas.com'; + + // UAT环境 appid:wx75551cb56606869d + console.log(__PRO__) return __PRO__ - ? 'https://app.diabetes.hbraas.com' - : 'https://app.diabetes.hbraas.com'; + ? 'https://apptest.diabetes.com.cn' + : 'https://apptest.diabetes.com.cn'; } }; diff --git a/src/project.config.json b/src/project.config.json index 68ab5a3..c67433c 100644 --- a/src/project.config.json +++ b/src/project.config.json @@ -25,4 +25,4 @@ "tabIndent": "insertSpaces", "tabSize": 2 } -} \ No newline at end of file +}