This commit is contained in:
SelfRidicule 2024-08-19 17:39:42 +08:00
parent eee3ea82de
commit 322b808fae
7 changed files with 65 additions and 9 deletions

View File

@ -108,16 +108,16 @@ Page({
path: "/pages/parkRepair/parkRepair" path: "/pages/parkRepair/parkRepair"
}, },
*/ */
// {
// name: "会议预约",
// img: "/profile/static/index/menu-hyyy.png",
// path: "/pages/meeting/meetingReservation/meetingReservation"
// },
{ {
name: "随手拍", name: "随手拍",
img: "/profile/static/index/menu-bxfw.png", img: "/profile/static/index/menu-bxfw.png",
path: "/pages/reportRepair/index/index" path: "/pages/reportRepair/index/index"
}, },
{
name: "会议预约",
img: "/profile/static/index/menu-hyyy.png",
// path: "/pages/meeting/meetingReservation/meetingReservation"
},
// { // {
// name: "展厅预约", // name: "展厅预约",
// img: "/profile/static/index/menu-ztyy.png", // img: "/profile/static/index/menu-ztyy.png",
@ -171,7 +171,6 @@ Page({
parkName: app.parkName, parkName: app.parkName,
qrcodeParam: null, qrcodeParam: null,
infoList: [], infoList: [],
}, },
onLoad(options) { onLoad(options) {
@ -246,7 +245,7 @@ Page({
}) })
} else { } else {
wx.showModal({ wx.showModal({
content: '模块暂未开放,敬请期待', content: `"${e.currentTarget.dataset.name}"暂未开放`,
showCancel: false, showCancel: false,
}) })
} }

View File

@ -3,6 +3,7 @@
"navigationStyle": "custom", "navigationStyle": "custom",
"usingComponents": { "usingComponents": {
"van-notify": "@vant/weapp/notify/index", "van-notify": "@vant/weapp/notify/index",
"van-icon": "@vant/weapp/icon/index" "van-icon": "@vant/weapp/icon/index",
"van-divider": "@vant/weapp/divider/index"
} }
} }

View File

@ -30,6 +30,10 @@
<view class="title">消息通知</view> <view class="title">消息通知</view>
<view class="more" bind:tap="jumpInfo">更多</view> <view class="more" bind:tap="jumpInfo">更多</view>
</view> </view>
<view class="loadAllLine" wx:if="{{!infoList || infoList.length == 0}}">
<van-divider class="van-divider" customStyle="font-size: 26rpx; background:none;" contentPosition="center">暂无消息</van-divider>
</view>
<view class="infoView"> <view class="infoView">
<view class="itemView" wx:for="{{infoList}}" wx:for-item="item" wx:key="*this" data-obj="{{item}}" bind:tap="jumpInfoDetail"> <view class="itemView" wx:for="{{infoList}}" wx:for-item="item" wx:key="*this" data-obj="{{item}}" bind:tap="jumpInfoDetail">
<view class="contentView ellipsisFont"> <view class="contentView ellipsisFont">
@ -37,7 +41,6 @@
<view class="msg ellipsisFont">{{item.content}}</view> <view class="msg ellipsisFont">{{item.content}}</view>
<view class="time">{{item.createTime}}</view> <view class="time">{{item.createTime}}</view>
</view> </view>
<!-- <van-icon class="arrow" name="arrow" color="#c3c3c3" size="40rpx"/> -->
</view> </view>
</view> </view>

View File

@ -281,4 +281,9 @@
.menuTitle { .menuTitle {
font-size: 24rpx; font-size: 24rpx;
color: #646466; color: #646466;
}
.loadAllLine {
margin-top: 80rpx;
} }

View File

@ -108,6 +108,22 @@ Page({
} }
}, },
// 切换tabbar
switchTab(e) {
const data = e.currentTarget.dataset
console.log('switchTab', data)
const url = data.path
if (url == '/pages/reportRepair/report/report') {
wx.navigateTo({
url
})
} else {
wx.switchTab({
url
})
}
},
// 获取数据 // 获取数据
getDataList(transferTabTitle) { getDataList(transferTabTitle) {
// 获取参数 // 获取参数

View File

@ -92,6 +92,22 @@ Page({
let userId = _this.data.userData.id let userId = _this.data.userData.id
}, },
// 切换tabbar
switchTab(e) {
const data = e.currentTarget.dataset
console.log('switchTab', data)
const url = data.path
if (url == '/pages/reportRepair/report/report') {
wx.navigateTo({
url
})
} else {
wx.switchTab({
url
})
}
},
// tab 点击切换 // tab 点击切换
tabClickSwitch(event) { tabClickSwitch(event) {
console.log('tabClickSwitch', event); console.log('tabClickSwitch', event);

View File

@ -82,6 +82,22 @@ Page({
let _this = this; let _this = this;
}, },
// 切换tabbar
switchTab(e) {
const data = e.currentTarget.dataset
console.log('switchTab', data)
const url = data.path
if (url == '/pages/reportRepair/report/report') {
wx.navigateTo({
url
})
} else {
wx.switchTab({
url
})
}
},
back() { back() {
wx.navigateBack() wx.navigateBack()
}, },