Browse Source

修改颜色

zs 1 year ago
parent
commit
22c91b3543

+ 2 - 0
App.vue

@@ -114,5 +114,7 @@
 		--fcColor: #cccccc;
 		--f00Color: #000000;
 		--fffColor: #ffffff;
+		--32CColor: #32C8DA;
+		--262Color: #262D3D;
 	}
 </style>

+ 2 - 2
pages.json

@@ -74,12 +74,12 @@
 	"globalStyle": {
 		"navigationBarTextStyle": "white",
 		"navigationBarTitleText": "学吧",
-		"navigationBarBackgroundColor": "#2979ff",
+		"navigationBarBackgroundColor": "#32C8DA",
 		"backgroundColor": "#ffffff"
 	},
 	"tabBar": {
 		"color": "8a8a8a",
-		"selectedColor": "#2c2c2c",
+		"selectedColor": "#262D3D",
 		"borderStyle": "black",
 		"backgroundColor": "#ffffff",
 		"list": [{

+ 2 - 2
pages/index/index.vue

@@ -22,10 +22,10 @@
 	const searchConfig = async () => {
 		let res = await $api(`config`, 'GET', {});
 		if (res.errcode == 0) {
-			config.value = res.data[0]
+			config.value = res.data[0] || {}
 			uni.setStorage({
 				key: 'config',
-				data: res.data[0],
+				data: res.data[0] || {},
 			})
 		}
 	};

+ 2 - 2
unpackage/dist/dev/mp-weixin/app.json

@@ -17,12 +17,12 @@
   "window": {
     "navigationBarTextStyle": "white",
     "navigationBarTitleText": "学吧",
-    "navigationBarBackgroundColor": "#2979ff",
+    "navigationBarBackgroundColor": "#32C8DA",
     "backgroundColor": "#ffffff"
   },
   "tabBar": {
     "color": "8a8a8a",
-    "selectedColor": "#2c2c2c",
+    "selectedColor": "#262D3D",
     "borderStyle": "black",
     "backgroundColor": "#ffffff",
     "list": [

+ 2 - 0
unpackage/dist/dev/mp-weixin/app.wxss

@@ -2402,4 +2402,6 @@ page {
   --fcColor: #cccccc;
   --f00Color: #000000;
   --fffColor: #ffffff;
+  --32CColor: #32C8DA;
+  --262Color: #262D3D;
 }page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}

+ 2 - 2
unpackage/dist/dev/mp-weixin/pages/index/index.js

@@ -15,10 +15,10 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
     const searchConfig = async () => {
       let res = await $api(`config`, "GET", {});
       if (res.errcode == 0) {
-        config.value = res.data[0];
+        config.value = res.data[0] || {};
         common_vendor.index.setStorage({
           key: "config",
-          data: res.data[0]
+          data: res.data[0] || {}
         });
       }
     };