Kaynağa Gözat

增加分包配置

guhongwei 2 yıl önce
ebeveyn
işleme
b61be9309b

+ 22 - 0
app.json

@@ -80,6 +80,28 @@
     "pages/test/index",
     "pages/logs/logs"
   ],
+  "subPackages": [
+    {
+      "root": "pagesSchool",
+      "independent": true,
+      "pages": [
+        "test/index"
+      ]
+    },
+    {
+      "root": "pagesClub",
+      "independent": true,
+      "pages": [
+        "test/index"
+      ]
+    },
+    {
+      "root": "pagesMatch",
+      "pages": [
+        "test/index"
+      ]
+    }
+  ],
   "usingComponents": {},
   "window": {
     "backgroundTextStyle": "light",

+ 66 - 0
pagesClub/test/index.js

@@ -0,0 +1,66 @@
+// pagesClub/test/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
pagesClub/test/index.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
pagesClub/test/index.wxml

@@ -0,0 +1,2 @@
+<!--pagesClub/test/index.wxml-->
+<text>pagesClub/test/index.wxml</text>

+ 1 - 0
pagesClub/test/index.wxss

@@ -0,0 +1 @@
+/* pagesClub/test/index.wxss */

+ 66 - 0
pagesMatch/test/index.js

@@ -0,0 +1,66 @@
+// pagesMatch/test/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
pagesMatch/test/index.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
pagesMatch/test/index.wxml

@@ -0,0 +1,2 @@
+<!--pagesMatch/test/index.wxml-->
+<text>pagesMatch/test/index.wxml</text>

+ 1 - 0
pagesMatch/test/index.wxss

@@ -0,0 +1 @@
+/* pagesMatch/test/index.wxss */

+ 66 - 0
pagesSchool/test/index.js

@@ -0,0 +1,66 @@
+// pagesSchool/test/index.js
+Page({
+
+    /**
+     * 页面的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面加载
+     */
+    onLoad(options) {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面初次渲染完成
+     */
+    onReady() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面显示
+     */
+    onShow() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面隐藏
+     */
+    onHide() {
+
+    },
+
+    /**
+     * 生命周期函数--监听页面卸载
+     */
+    onUnload() {
+
+    },
+
+    /**
+     * 页面相关事件处理函数--监听用户下拉动作
+     */
+    onPullDownRefresh() {
+
+    },
+
+    /**
+     * 页面上拉触底事件的处理函数
+     */
+    onReachBottom() {
+
+    },
+
+    /**
+     * 用户点击右上角分享
+     */
+    onShareAppMessage() {
+
+    }
+})

+ 3 - 0
pagesSchool/test/index.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 2 - 0
pagesSchool/test/index.wxml

@@ -0,0 +1,2 @@
+<!--pagesSchool/test/index.wxml-->
+<text>pagesSchool/test/index.wxml</text>

+ 1 - 0
pagesSchool/test/index.wxss

@@ -0,0 +1 @@
+/* pagesSchool/test/index.wxss */