描述:首页修改

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

View File

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