mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 14:19:38 +08:00
描述:点击开门跳转页面
This commit is contained in:
parent
5cd3b51e41
commit
9390b91434
@ -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": {
|
||||
|
@ -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() {
|
||||
|
66
miniprogram/pages/meeting/accessControl/accessControl.js
Normal file
66
miniprogram/pages/meeting/accessControl/accessControl.js
Normal file
@ -0,0 +1,66 @@
|
||||
// pages/meeting/accessControl.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
<!--pages/meeting/accessControl.wxml-->
|
||||
<text>pages/meeting/accessControl.wxml</text>
|
@ -0,0 +1 @@
|
||||
/* pages/meeting/accessControl.wxss */
|
@ -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
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user