修改部分内容

This commit is contained in:
471615499@qq.com 2025-05-21 12:50:11 +08:00
parent 6121695f54
commit db53b4e4f7
3 changed files with 12 additions and 3 deletions

View File

@ -5,7 +5,8 @@ import Notify from '@vant/weapp/notify/notify';
import {
selfFormatTimeYMD,
selfFormatTimeHM
selfFormatTimeHM,
getWeekday
} from "../../../../utils/util.js"
import {
@ -313,7 +314,7 @@ Page({
formartData(queryDataList) {
// 格式化数据
return queryDataList.map(item => {
item.timeSlot = selfFormatTimeYMD(item.start) + ' ' + selfFormatTimeHM(item.start) + '~' + selfFormatTimeHM(item.end);
item.timeSlot = selfFormatTimeYMD(item.start) + ' '+ getWeekday(item.start) +' ' + selfFormatTimeHM(item.start) + '~' + selfFormatTimeHM(item.end);
// 状态字体颜色
let statusColor = "#FFB119";
// 按钮是否显示

View File

@ -22,7 +22,7 @@
<image class="img" src="{{IMG_NAME + item.indoorPicUrlFirst}}" mode="aspectFill"></image>
<view class="msgView">
<view class="title">{{item.floor}} | {{item.roomNum}} | {{item.capacityNum}}人 | {{item.typeName}}</view>
<view class="name">预约人: {{item.bookingUserName}}</view>
<view class="name">预约人: {{item.userOrg}} - {{item.bookingUserName}}</view>
<view class="time">会议名称:{{item.title}}</view>
</view>
</view>

View File

@ -353,6 +353,13 @@ function uploadVoice(url) {
})
}
function getWeekday(dateStr) {
const weekDays = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
const date = new Date(dateStr);
const weekday = date.getDay();
return weekDays[weekday];
}
module.exports = {
formatTime: formatTime,
formatDate: formatDate,
@ -367,6 +374,7 @@ module.exports = {
selfFormatTimeHM,
selfFormatTimeYMDH,
twoTimeInterval,
getWeekday,
twoTimeIntervalReturnHours,
selfArrSum,
getUrlParamsObj,