From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化
---
h5/pages/staff/meetingCalendar.vue | 41 +++++++++++++++++++++++++++++++++--------
1 files changed, 33 insertions(+), 8 deletions(-)
diff --git a/h5/pages/staff/meetingCalendar.vue b/h5/pages/staff/meetingCalendar.vue
index d290617..64a22be 100644
--- a/h5/pages/staff/meetingCalendar.vue
+++ b/h5/pages/staff/meetingCalendar.vue
@@ -93,6 +93,14 @@
<view class="value">{{ item.remark || item.meetingRemark }}</view>
</view>
</view>
+ <view v-if="myMeetingList.length === 0" style="text-align: center">
+ <image
+ src="@/static/empty.png"
+ style="width: 320rpx; margin: 60rpx auto 0"
+ mode="widthFix"
+ />
+ <view class="placeholder9 fs24">鏆傛棤鏁版嵁</view>
+ </view>
</view>
</view>
</template>
@@ -140,6 +148,14 @@
<view class="label">澶囨敞锛�</view>
<view class="value">{{ item.remark || item.meetingRemark }}</view>
</view>
+ </view>
+ <view v-if="recordList.length === 0" style="text-align: center">
+ <image
+ src="@/static/empty.png"
+ style="width: 320rpx; margin: 120rpx auto 0"
+ mode="widthFix"
+ />
+ <view class="placeholder9 fs24">鏆傛棤鏁版嵁</view>
</view>
</view>
</view>
@@ -211,9 +227,9 @@
this.initData()
this.getRoomList()
},
- onShow() {
- this.tabClick('0')
- },
+ onShow() {
+ this.tabClick('0')
+ },
onReachBottom() {
const { activeTab } = this
if (activeTab == '0') {
@@ -239,16 +255,17 @@
})
})
},
- getRoomList() {
+ getRoomList() {
roomsListPost({}).then(res => {
this.meetingList = [[{ id: '', name: '鍏ㄩ儴浼氳瀹�' }, ...res.data]]
- console.log('meetingList', this.meetingList);
+ console.log('meetingList', this.meetingList)
})
},
tabClick(val) {
this.activeTab = val
if (val === '1') {
this.recordPage = 1
+ this.recordList = []
this.getRecordList()
} else {
this.myMeetingList = []
@@ -261,7 +278,7 @@
}
},
seletedStatus(e) {
- this.myMeetingList = []
+ this.myMeetingList = []
this.activeRoom = { ...e.value[0] }
this.isShowStatus = false
this.myPage = 1
@@ -333,7 +350,7 @@
page: myPage,
capacity: 10
}).then(res => {
- this.myMeetingList = [ ...this.myMeetingList, ...res.data.records ]
+ this.myMeetingList = [...this.myMeetingList, ...res.data.records]
})
},
}
@@ -383,7 +400,7 @@
}
}
.active {
- font-weight: 500;
+ font-weight: 600;
font-size: 30rpx;
color: #222222;
.line {
@@ -446,6 +463,10 @@
font-weight: 600;
font-size: 32rpx;
color: #222222;
+ flex: 1;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
}
.status {
height: 38rpx;
@@ -455,6 +476,10 @@
border: 1rpx solid #999999;
font-size: 22rpx;
color: #999999;
+ margin-left: 20rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
}
.padding {
color: $uni-color-primary;
--
Gitblit v1.9.3