描述:点击开门跳转页面

This commit is contained in:
SelfRidicule 2024-02-23 15:15:37 +08:00
parent 5cd3b51e41
commit 9390b91434
7 changed files with 96 additions and 13 deletions

View File

@ -46,7 +46,8 @@
"pages/applyType/moveInApply/moveInApply",
"pages/my/serviceApply/serviceApply",
"pages/complaint/complaintDetail/complaintDetail",
"pages/outer/outer"
"pages/outer/outer",
"pages/meeting/accessControl/accessControl"
],
"window": {
"backgroundTextStyle": "light",
@ -76,8 +77,6 @@
]
},
"usingComponents": {},
"sitemapLocation": "sitemap.json",
"permission": {
"scope.userLocation": {

View File

@ -17,7 +17,7 @@ Page({
"text": "首页"
},
{
"pagePath": "pages/parkRepair/parkRepair",
"pagePath": "pages/meeting/accessControl/accessControl",
"iconPath": "/images/tabbar/openDoor.png",
"selectedIconPath": "/images/tabbar/openDoor.png",
"text": "开门",
@ -152,9 +152,15 @@ Page({
const data = e.currentTarget.dataset
console.log('switchTab', data)
const url = data.path
if(url == 'pages/meeting/accessControl/accessControl'){
wx.navigateTo({
url: '/' + url
})
}else{
wx.switchTab({
url: '/' + url
})
}
},
onShow() {

View File

@ -0,0 +1,66 @@
// pages/meeting/accessControl.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@ -0,0 +1,2 @@
<!--pages/meeting/accessControl.wxml-->
<text>pages/meeting/accessControl.wxml</text>

View File

@ -0,0 +1 @@
/* pages/meeting/accessControl.wxss */

View File

@ -20,7 +20,7 @@ Page({
"text": "首页"
},
{
"pagePath": "pages/parkRepair/parkRepair",
"pagePath": "pages/meeting/accessControl/accessControl",
"iconPath": "/images/tabbar/openDoor.png",
"selectedIconPath": "/images/tabbar/openDoor.png",
"text": "开门",
@ -80,9 +80,15 @@ Page({
const data = e.currentTarget.dataset
console.log('switchTab', data)
const url = data.path
if(url == 'pages/meeting/accessControl/accessControl'){
wx.navigateTo({
url: '/' + url
})
}else{
wx.switchTab({
url: '/' + url
})
}
},
/**