Parcourir la source

feat:我的积分设置分包结构,添加积分首页界面

xyh il y a 5 mois
Parent
commit
66a6c97eec
3 fichiers modifiés avec 41 ajouts et 0 suppressions
  1. 1 0
      package.json
  2. 25 0
      src/pages.json
  3. 15 0
      src/points/home/index.vue

+ 1 - 0
package.json

@@ -79,6 +79,7 @@
     "weixin-js-sdk": "^1.6.5"
   },
   "devDependencies": {
+    "@babel/types": "^7.29.0",
     "@dcloudio/types": "^3.3.2",
     "@dcloudio/uni-automator": "^2.0.2-4080720251210002",
     "@dcloudio/uni-cli-i18n": "^2.0.2-4080720251210002",

+ 25 - 0
src/pages.json

@@ -447,6 +447,31 @@
 			}
 		}
 	],
+	"subPackages": [
+		{
+			"root": "points",
+            "pages": [
+				{
+					"path": "home/index",
+					"style": {
+						"navigationBarTitleText": "我的积分",
+						"navigationBarBackgroundColor": "#2cb8d4",
+						"navigationBarTextStyle": "white",
+						"app-plus": {
+							"softinputNavBar": "none",
+							"titleNView": false
+						}
+					}
+				}
+			]
+		}
+	],
+	"preloadRule": {
+		"pages/index/index": {
+			"network": "all",
+			"packages": ["points"]
+		}
+	},
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "uni-app",

+ 15 - 0
src/points/home/index.vue

@@ -0,0 +1,15 @@
+<script>
+export default {
+  data() {
+    return {}
+  }
+}
+</script>
+
+<template>
+<view>积分首页</view>
+</template>
+
+<style lang="scss" scoped>
+
+</style>