mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 17:49:36 +08:00
描述:点击开门跳转页面
This commit is contained in:
parent
5cd3b51e41
commit
9390b91434
@ -46,7 +46,8 @@
|
|||||||
"pages/applyType/moveInApply/moveInApply",
|
"pages/applyType/moveInApply/moveInApply",
|
||||||
"pages/my/serviceApply/serviceApply",
|
"pages/my/serviceApply/serviceApply",
|
||||||
"pages/complaint/complaintDetail/complaintDetail",
|
"pages/complaint/complaintDetail/complaintDetail",
|
||||||
"pages/outer/outer"
|
"pages/outer/outer",
|
||||||
|
"pages/meeting/accessControl/accessControl"
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"backgroundTextStyle": "light",
|
"backgroundTextStyle": "light",
|
||||||
@ -76,8 +77,6 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"usingComponents": {},
|
"usingComponents": {},
|
||||||
|
|
||||||
|
|
||||||
"sitemapLocation": "sitemap.json",
|
"sitemapLocation": "sitemap.json",
|
||||||
"permission": {
|
"permission": {
|
||||||
"scope.userLocation": {
|
"scope.userLocation": {
|
||||||
|
@ -17,7 +17,7 @@ Page({
|
|||||||
"text": "首页"
|
"text": "首页"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/parkRepair/parkRepair",
|
"pagePath": "pages/meeting/accessControl/accessControl",
|
||||||
"iconPath": "/images/tabbar/openDoor.png",
|
"iconPath": "/images/tabbar/openDoor.png",
|
||||||
"selectedIconPath": "/images/tabbar/openDoor.png",
|
"selectedIconPath": "/images/tabbar/openDoor.png",
|
||||||
"text": "开门",
|
"text": "开门",
|
||||||
@ -152,9 +152,15 @@ 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
|
||||||
wx.switchTab({
|
if(url == 'pages/meeting/accessControl/accessControl'){
|
||||||
url: '/' + url
|
wx.navigateTo({
|
||||||
})
|
url: '/' + url
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
wx.switchTab({
|
||||||
|
url: '/' + url
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
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": "首页"
|
"text": "首页"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/parkRepair/parkRepair",
|
"pagePath": "pages/meeting/accessControl/accessControl",
|
||||||
"iconPath": "/images/tabbar/openDoor.png",
|
"iconPath": "/images/tabbar/openDoor.png",
|
||||||
"selectedIconPath": "/images/tabbar/openDoor.png",
|
"selectedIconPath": "/images/tabbar/openDoor.png",
|
||||||
"text": "开门",
|
"text": "开门",
|
||||||
@ -75,14 +75,20 @@ Page({
|
|||||||
memberInfo: {}
|
memberInfo: {}
|
||||||
},
|
},
|
||||||
|
|
||||||
// 切换tabbar
|
// 切换tabbar
|
||||||
switchTab(e) {
|
switchTab(e) {
|
||||||
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
|
||||||
wx.switchTab({
|
if(url == 'pages/meeting/accessControl/accessControl'){
|
||||||
url: '/' + url
|
wx.navigateTo({
|
||||||
})
|
url: '/' + url
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
wx.switchTab({
|
||||||
|
url: '/' + url
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user