feat: 切换至自定义 tabbar 模式并且编写页面使用 tabbar

This commit is contained in:
熊熊熊子路
2026-01-14 15:46:22 +08:00
parent 331b0383e3
commit 0bb60ea59a
17 changed files with 253 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"usingComponents": {}
}
+1
View File
@@ -0,0 +1 @@
/* pages/one/index.wxss */
+49
View File
@@ -0,0 +1,49 @@
// pages/one/index.ts
Page({
/**
* 页面的初始数据
*/
data: {},
/**
* 生命周期函数--监听页面加载
*/
onLoad() {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.getTabBar().init()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {},
})
+2
View File
@@ -0,0 +1,2 @@
<!--pages/one/index.wxml-->
<text>pages/one/index.wxml</text>