柒零 1 ano atrás
pai
commit
c41647ad0e
2 arquivos alterados com 8 adições e 2 exclusões
  1. 6 1
      app.json
  2. 2 1
      pages/index/index.js

+ 6 - 1
app.json

@@ -16,7 +16,12 @@
         "warmReminder/warmReminder"
       ]
     }
-  ],
+  ],"preloadRule": {
+    "pages/index/index": {
+      "network": "all",
+      "packages": ["subpages"]
+    }
+  },
   "window": {
     "backgroundTextStyle": "light",
     "navigationBarBackgroundColor": "#3d7ef9",

+ 2 - 1
pages/index/index.js

@@ -4346,7 +4346,8 @@ Page({
 							const {
 								now
 							} = res.data;
-							var weatherBg = ""
+							
+							var weatherBg = "/subpages/images/weather/qing.png"
 							if (now.text.includes("晴")) {
 								weatherBg = "/subpages/images/weather/qing.png"
 							} else if (now.text.includes("多云") || now.text.includes("阴")) {