Browse Source

update

main
kola-web 1 month ago
parent
commit
e800205118
  1. 68
      project.config.json
  2. 52
      project.private.config.json
  3. 11
      src/config.js
  4. 2
      src/project.config.json

68
project.config.json

@ -1,30 +1,44 @@
{ {
"description": "糖友运动", "description": "糖友运动",
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": true, "es6": true,
"postcss": true, "postcss": true,
"minified": false, "minified": false,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
},
"enhance": true
}, },
"compileType": "miniprogram", "enhance": true,
"appid": "wxc06a18569e063fdd", "compileWorklet": false,
"projectname": "sport2", "uglifyFileName": false,
"miniprogramRoot": "dist/", "uploadWithSourceMap": true,
"libVersion": "3.3.4", "packNpmManually": false,
"srcMiniprogramRoot": "dist/", "packNpmRelationList": [],
"packOptions": { "minifyWXSS": true,
"ignore": [], "minifyWXML": true,
"include": [] "localPlugins": false,
}, "disableUseStrict": false,
"condition": {}, "useCompilerPlugins": false,
"editorSetting": { "condition": false,
"tabIndent": "insertSpaces", "swc": false,
"tabSize": 4 "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": {}
} }

52
project.private.config.json

@ -1,22 +1,36 @@
{ {
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "sport2", "projectname": "sport2",
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": true "urlCheck": true,
}, "coverView": false,
"condition": { "lazyloadPlaceholderEnable": false,
"miniprogram": { "skylineRenderEnable": false,
"list": [ "preloadBackgroundData": false,
{ "autoAudits": false,
"name": "pages/index", "useApiHook": true,
"pathName": "pages/index", "useApiHostProcess": true,
"query": "scene=wid%3Da000025f", "showShadowRootInWxmlPanel": false,
"launchMode": "default", "useStaticServer": false,
"scene": null "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"
} }

11
src/config.js

@ -9,8 +9,15 @@ export default {
: 'https://nn-dp.chinacloudsites.cn/api'; : '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__ return __PRO__
? 'https://app.diabetes.hbraas.com' ? 'https://apptest.diabetes.com.cn'
: 'https://app.diabetes.hbraas.com'; : 'https://apptest.diabetes.com.cn';
} }
}; };

2
src/project.config.json

@ -25,4 +25,4 @@
"tabIndent": "insertSpaces", "tabIndent": "insertSpaces",
"tabSize": 2 "tabSize": 2
} }
} }

Loading…
Cancel
Save