mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 21:19:37 +08:00
描述:首页修改
This commit is contained in:
parent
badc65b020
commit
81f36a6519
BIN
miniprogram/images/tabbar/center.png
Normal file
BIN
miniprogram/images/tabbar/center.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -155,7 +155,7 @@ Page({
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 跳转-我的
|
// 跳转-我的
|
||||||
jumpMy(){
|
jumpMy() {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: '/pages/my/personalData/personalData',
|
url: '/pages/my/personalData/personalData',
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user