描述:首页修改

This commit is contained in:
SelfRidicule 2024-08-05 17:30:51 +08:00
parent badc65b020
commit 81f36a6519
3 changed files with 19 additions and 19 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -30,20 +30,20 @@ Page({
}, },
// tabBar menu // tabBar menu
tabBarList: [{ tabBarList: [{
"pagePath": "pages/index/index", "pagePath": "/pages/index/index",
"iconPath": "/images/tabbar/home.png", "iconPath": "/images/tabbar/home.png",
"selectedIconPath": "/images/tabbar/home-select.png", "selectedIconPath": "/images/tabbar/home-select.png",
"text": "首页" "text": "首页"
}, },
{ {
"pagePath": "pages/meeting/meetingReservation/meetingReservation", "pagePath": "/pages/reportRepair/report/report",
"iconPath": "/images/tabbar/openDoor.png", "iconPath": "/images/tabbar/center.png",
"selectedIconPath": "/images/tabbar/openDoor.png", "selectedIconPath": "/images/tabbar/center.png",
"text": "预约", "text": "报修",
"bulge": true, "bulge": true,
}, },
{ {
"pagePath": "pages/my/my", "pagePath": "/pages/my/my",
"iconPath": "/images/tabbar/my.png", "iconPath": "/images/tabbar/my.png",
"selectedIconPath": "/images/tabbar/my-select.png", "selectedIconPath": "/images/tabbar/my-select.png",
"text": "我的" "text": "我的"
@ -177,13 +177,13 @@ Page({
const data = e.currentTarget.dataset const data = e.currentTarget.dataset
console.log('switchTab', data) console.log('switchTab', data)
const url = data.path const url = data.path
if (url == 'pages/meeting/meetingReservation/meetingReservation') { if (url == '/pages/reportRepair/report/report') {
wx.navigateTo({ wx.navigateTo({
url: '/' + url url
}) })
} else { } else {
wx.switchTab({ wx.switchTab({
url: '/' + url url
}) })
} }
}, },

View File

@ -34,20 +34,20 @@ Page({
}, },
// tabBar menu // tabBar menu
tabBarList: [{ tabBarList: [{
"pagePath": "pages/index/index", "pagePath": "/pages/index/index",
"iconPath": "/images/tabbar/home.png", "iconPath": "/images/tabbar/home.png",
"selectedIconPath": "/images/tabbar/home-select.png", "selectedIconPath": "/images/tabbar/home-select.png",
"text": "首页" "text": "首页"
}, },
{ {
"pagePath": "pages/meeting/meetingReservation/meetingReservation", "pagePath": "/pages/reportRepair/report/report",
"iconPath": "/images/tabbar/openDoor.png", "iconPath": "/images/tabbar/center.png",
"selectedIconPath": "/images/tabbar/openDoor.png", "selectedIconPath": "/images/tabbar/center.png",
"text": "预约", "text": "报修",
"bulge": true, "bulge": true,
}, },
{ {
"pagePath": "pages/my/my", "pagePath": "/pages/my/my",
"iconPath": "/images/tabbar/my.png", "iconPath": "/images/tabbar/my.png",
"selectedIconPath": "/images/tabbar/my-select.png", "selectedIconPath": "/images/tabbar/my-select.png",
"text": "我的" "text": "我的"
@ -90,13 +90,13 @@ Page({
const data = e.currentTarget.dataset const data = e.currentTarget.dataset
console.log('switchTab', data) console.log('switchTab', data)
const url = data.path const url = data.path
if (url == 'pages/meeting/meetingReservation/meetingReservation') { if (url == '/pages/reportRepair/report/report') {
wx.navigateTo({ wx.navigateTo({
url: '/' + url url
}) })
} else { } else {
wx.switchTab({ wx.switchTab({
url: '/' + url url
}) })
} }
}, },