Browse Source

基础配置

xiaohaizhao 1 year ago
parent
commit
b05f951f84
5 changed files with 48 additions and 27 deletions
  1. 21 18
      .hbuilderx/launch.json
  2. 3 6
      main.js
  3. 13 2
      manifest.json
  4. 8 0
      pages.json
  5. 3 1
      uni.scss

+ 21 - 18
.hbuilderx/launch.json

@@ -1,20 +1,23 @@
-{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
-  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
-    "version": "0.0",
-    "configurations": [{
-     	"app-plus" : 
-     	{
-     		"launchtype" : "local"
-     	},
-     	"default" : 
-     	{
-     		"launchtype" : "local"
-     	},
-     	"mp-weixin" : 
-     	{
-     		"launchtype" : "local"
-     	},
-     	"type" : "uniCloud"
-     }
+{
+    // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+    // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+    "version" : "0.0",
+    "configurations" : [
+        {
+            "app-plus" : {
+                "launchtype" : "local"
+            },
+            "default" : {
+                "launchtype" : "local"
+            },
+            "mp-weixin" : {
+                "launchtype" : "local"
+            },
+            "type" : "uniCloud"
+        },
+        {
+            "playground" : "standard",
+            "type" : "uni-app:app-ios"
+        }
     ]
 }

+ 3 - 6
main.js

@@ -3,13 +3,12 @@ import App from './App'
 // #ifndef VUE3
 import Vue from 'vue'
 Vue.config.productionTip = false;
-
+//组件库
 import uView from '@/uni_modules/uview-ui'
 Vue.use(uView)
-
+//colorui 自定义顶部nav
 import cuCustom from './colorui/components/cu-custom.vue'
-Vue.component('cu-custom',cuCustom)
-
+Vue.component('cu-custom', cuCustom)
 //挂载接口
 import {
   ApiModel
@@ -27,8 +26,6 @@ app.$mount()
 import {
   createSSRApp
 } from 'vue'
-import cuCustom from './colorui/components/cu-custom.vue'
-Vue.component('cu-custom', cuCustom)
 export function createApp() {
   const app = createSSRApp(App)
   return {

+ 13 - 2
manifest.json

@@ -58,7 +58,11 @@
             "minified" : true
         },
         "usingComponents" : true,
-        "permission" : {}
+        "permission" : {
+            "scope.userLocation" : {
+                "desc" : "路线规划 标点"
+            }
+        }
     },
     "mp-alipay" : {
         "usingComponents" : true
@@ -103,6 +107,13 @@
                 "enable" : true
             }
         },
-        "title" : "智慧水务"
+        "title" : "智慧水务",
+        "sdkConfigs" : {
+            "maps" : {
+                "qqmap" : {
+                    "key" : "UVVBZ-UOGWZ-ZUWXC-TJQMT-TUWLO-IVFTN"
+                }
+            }
+        }
     }
 }

+ 8 - 0
pages.json

@@ -5,6 +5,14 @@
 		"path": "pages/login/selectSite"
 	}, {
 		"path": "pages/index/index"
+	}, {
+		"path": "pages/index/modules/home"
+	}, {
+		"path": "pages/index/modules/my-map"
+	}, {
+		"path": "pages/index/modules/message"
+	}, {
+		"path": "pages/index/modules/mine"
 	}],
 	"globalStyle": {
 		"navigationStyle": "custom"

+ 3 - 1
uni.scss

@@ -12,9 +12,11 @@
  * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  */
 @import '@/uni_modules/uview-ui/theme.scss';
-page{
+
+page {
     background-color: #052E5D;
     font-family: PingFang SC-Regular, PingFang SC;
+    overflow: auto;
 }
 
 /* 颜色变量 */