manifest.json 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name" : "在线考试",
  3. "appid" : "__UNI__837F4E0",
  4. "description" : "",
  5. "versionName" : "1.0.0",
  6. "versionCode" : "100",
  7. "transformPx" : false,
  8. "app-plus" : {
  9. /* 5+App特有相关 */
  10. "usingComponents" : true,
  11. "nvueCompiler" : "uni-app",
  12. "splashscreen" : {
  13. "alwaysShowBeforeRender" : true,
  14. "waiting" : true,
  15. "autoclose" : true,
  16. "delay" : 0
  17. },
  18. "modules" : {},
  19. /* 模块配置 */
  20. "distribute" : {
  21. /* 应用发布信息 */
  22. "android" : {
  23. /* android打包配置 */
  24. "permissions" : [
  25. "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
  26. "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
  27. "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
  28. "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
  29. "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
  30. "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
  31. "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
  32. "<uses-permission android:name=\"android.permission.CAMERA\"/>",
  33. "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
  34. "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
  35. "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
  36. "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
  37. "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
  38. "<uses-feature android:name=\"android.hardware.camera\"/>",
  39. "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
  40. ]
  41. },
  42. "ios" : {},
  43. /* ios打包配置 */
  44. "sdkConfigs" : {}
  45. }
  46. },
  47. /* SDK配置 */
  48. "quickapp" : {},
  49. /* 快应用特有相关 */
  50. "mp-weixin" : {
  51. /* 小程序特有相关 */
  52. "appid" : "wx341170c5b688083b",
  53. "setting" : {
  54. "urlCheck" : false,
  55. "minified" : true,
  56. "postcss" : true,
  57. "es6" : true
  58. },
  59. "usingComponents" : true
  60. },
  61. "h5" : {
  62. "title" : "在线考试",
  63. "devServer" : {
  64. "port" : 8080,
  65. "disableHostCheck" : true,
  66. "proxy" : {
  67. "/prod-api" : {
  68. //"target" : "http://10.16.4.5:8080", //孙坤阳
  69. //"target" : "http://10.16.4.9:8080",//陈航
  70. "target" : "http://121.36.73.159:8055", //线上
  71. "changeOrigin" : true,
  72. "secure" : false,
  73. "pathRewrite" : {
  74. "^/prod-api" : "/"
  75. }
  76. }
  77. },
  78. "https" : false
  79. },
  80. "optimization" : {
  81. "treeShaking" : {
  82. "enable" : true
  83. }
  84. },
  85. "router" : {
  86. "mode" : "hash",
  87. "base" : "./"
  88. }
  89. }
  90. }
  91. // 生产后端路径
  92. //开启代理:在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
  93. //这里理解成用'/api'代替target里面的地址,比如我要调用'http://40.00.100.100:3002/user/add',直接写'/api/user/add'即可