first commit

This commit is contained in:
Jane Doe
2025-03-04 15:25:38 +08:00
commit 4ad00dedd5
188 changed files with 7420 additions and 0 deletions

44
custom-tab-bar/index.js Normal file
View File

@@ -0,0 +1,44 @@
Component({
data: {
selected: 0,
color: "#bfbfbf",
selectedColor: "#337AFF",
list: [
{
pagePath: "/pages/index/index",
iconPath: "/images/主页.png",
selectedIconPath: "/images/主页点击.png",
text: "首页"
},
{
pagePath: "/pages/aitools/aitools",
iconPath: "/images/AI分析.png",
selectedIconPath: "/images/AI分析.png",
text: "写文案"
},
{
pagePath: "/pages/video_list/video_list",
iconPath: "/images/文案库.png",
selectedIconPath: "/images/文案库点击.png",
text: "违规检测"
},
{
pagePath: "/pages/mine/mine",
iconPath: "/images/my.png",
selectedIconPath: "/images/我的点击.png",
text: "我的"
}
]
},
attached() {},
methods: {
switchTab(e) {
const data = e.currentTarget.dataset
const url = data.path
console.log(data)
wx.switchTab({
url
})
}
}
});