From c3aaf28f7316cce12eec007a9f85a96cbcddeec2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 07 五月 2025 10:34:20 +0800
Subject: [PATCH] 最新版本541200007
---
h5_meeting/pages/index/index.vue | 157 ++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 114 insertions(+), 43 deletions(-)
diff --git a/h5_meeting/pages/index/index.vue b/h5_meeting/pages/index/index.vue
index 07b8517..2b0a0a5 100644
--- a/h5_meeting/pages/index/index.vue
+++ b/h5_meeting/pages/index/index.vue
@@ -21,20 +21,34 @@
<text
v-if="info.meetingListResponseList && info.meetingListResponseList.length > 0 && info.meetingListResponseList[0].meetingStatus == 5">宸叉挙閿�</text>
</view>
- <view v-if="meetingInfo.meetingName" class="meeting_name">{{meetingInfo.meetingName}}</view>
- <view v-if="meetingInfo.meetingTime && meetingInfo.bookingUser" class="meeting_con">
- <view class="content">
- <view class="line">
- <image src="@/static/ic_time@2x.png"></image>
- <text>{{meetingInfo.meetingTime }}</text>
+ <view v-if="meetingInfo.meetingName" class="meeting_name_box"><view class="meeting_name">{{meetingInfo.meetingName}}</view></view>
+ <view class="">
+ <view v-if="meetingInfo.meetingTime && meetingInfo.bookingUser" class="meeting_con">
+ <view class="content">
+ <view class="line">
+ <image src="@/static/ic_time@2x.png"></image>
+ <text>{{meetingInfo.meetingTime }}</text>
+ </view>
+ <view class="line">
+ <image src="@/static/ic_people@2x.png"></image>
+ <text>棰勭害浜猴細{{meetingInfo.bookingUser }}</text>
+ </view>
</view>
- <view class="line">
- <image src="@/static/ic_people@2x.png"></image>
- <text>棰勭害浜猴細{{meetingInfo.bookingUser }}</text>
+
+ <view v-show="showQrbg" class="qrcode_wrap">
+ <canvas id="qrcode" canvas-id="qrcode" class="qrcode"></canvas>
</view>
</view>
- <view v-show="showQrbg" class="qrcode_wrap">
- <canvas id="qrcode" canvas-id="qrcode" class="qrcode"></canvas>
+ <view v-if="meetingInfo.meetingTime && meetingInfo.bookingUser && showQrbg" class="qrcode_box">
+ <view class="text"
+ v-if="info.meetingListResponseList && info.meetingListResponseList.length > 0 && info.meetingListResponseList[0].meetingStatus == 1">
+ 寰俊鎵竴鎵紑濮嬩細璁�</view>
+ <view class="text"
+ v-if="info.meetingListResponseList && info.meetingListResponseList.length > 0 && info.meetingListResponseList[0].meetingStatus == 4">
+ 寰俊鎵竴鎵紑濮嬩細璁�</view>
+ <view class="text"
+ v-if="info.meetingListResponseList && info.meetingListResponseList.length > 0 && info.meetingListResponseList[0].meetingStatus == 2">
+ 寰俊鎵竴鎵粨鏉熶細璁�</view>
</view>
</view>
<view class="meeting_wrap">
@@ -43,7 +57,9 @@
</view>
<view class="list">
<view class="item" v-for="item in info.meetingListResponseList">
- <view class="name">{{item.meetingName}}</view>
+ <view class="nameBox">
+ <view class="name">{{item.meetingName}}</view>
+ </view>
<view class="line">棰勭害浜猴細{{item.bookingUser}}</view>
<view class="line">{{item.meetingTime}}锛坽{statusMap[item.meetingStatus]}}锛�</view>
<image src="@/static/ic_meeting@2x.png" class="item_bg"></image>
@@ -62,13 +78,17 @@
v-if="info.fileType == 0 && (info.meetingListResponseList == null || info.meetingListResponseList.length == 0)"
class="swiper" circular autoplay indicator-dots>
<swiper-item v-for="item in info.multifileList">
- <image class="swiper_item" :src="!param.officeFlag || param.officeFlag == '0' ? item.localFileurlFull : item.fileurlFull" mode="aspectFill"></image>
+ <image class="swiper_item"
+ :src="!param.officeFlag || param.officeFlag == '0' ? item.localFileurlFull : item.fileurlFull"
+ mode="aspectFill"></image>
</swiper-item>
</swiper>
<!-- -->
<template
v-if="info.fileType == 1 && info.multifileList && info.multifileList.length > 0 && (info.meetingListResponseList == null || info.meetingListResponseList.length == 0)">
- <video :src="!param.officeFlag || param.officeFlag == '0' ? info.multifileList[0].localFileurlFull : info.multifileList[0].fileurlFull" class="app_video" :autoplay="true" loop :controls="false"></video>
+ <video
+ :src="!param.officeFlag || param.officeFlag == '0' ? info.multifileList[0].localFileurlFull : info.multifileList[0].fileurlFull"
+ class="app_video" :autoplay="true" loop :controls="false"></video>
</template>
</view>
</template>
@@ -87,7 +107,7 @@
time: '',
date: '',
showQrbg: false,
- timer: null,
+ timer: null,
timer2: null,
touchNum: 0,
param: {},
@@ -103,25 +123,25 @@
timer: null
}
},
- onShow() {
+ onShow() {
const param = uni.getStorageSync('param')
if (!param.code) {
return uni.navigateTo({
url: '/pages/index/config'
})
- }
+ }
this.initDatetime()
-
+
},
- onReady() {
-
+ onReady() {
+
},
onHide() {
if (this.timer) {
clearInterval(this.timer)
- }
- if (this.timer2) {
- clearInterval(this.timer2)
+ }
+ if (this.timer2) {
+ clearInterval(this.timer2)
}
},
methods: {
@@ -130,6 +150,9 @@
roomId: this.param.code
}).then(res => {
this.info = res.data
+ /* if(this.info.title && this.info.title.length>0){
+ this.info.title = this.info.title.slice(0,20)+"..."
+ } */
if (this.info.meetingListResponseList && this.info.meetingListResponseList.length > 0) {
this.meetingInfo = this.info.meetingListResponseList[0]
this.$nextTick(() => {
@@ -153,7 +176,7 @@
qr.data =
"https://atwl.ahzyssl.com/zhyq_h5/#/pages/login/login/?type=2&yw=1&ywid=" + this.meetingInfo.id
// 璁剧疆浜岀淮鐮佸ぇ灏忥紝蹇呴』涓巆anvas璁剧疆鐨勫楂樹竴鑷�
- qr.size = 104;
+ qr.size = this.rpxToPx(208);
// 璋冪敤鍒朵綔浜岀淮鐮佹柟娉�
qr.make();
// 鑾峰彇canvas涓婁笅鏂�
@@ -178,6 +201,17 @@
this.touchNum = 0
}, 250)
},
+
+ //rpx杞琾x
+ rpxToPx(rpx) {
+ const screenWidth = uni.getSystemInfoSync().screenWidth
+ return (screenWidth * Number.parseInt(rpx)) / 750
+ },
+ //px杞瑀px
+ pxToRpx(px) {
+ const screenWidth = uni.getSystemInfoSync().screenWidth
+ return (750 * Number.parseInt(px)) / screenWidth
+ },
initDatetime() {
let weeks = ['鍛ㄦ棩', '鍛ㄤ竴', '鍛ㄤ簩', '鍛ㄤ笁', '鍛ㄥ洓', '鍛ㄤ簲', '鍛ㄥ叚']
this.time = dayjs().format('HH:mm')
@@ -186,8 +220,8 @@
this.time = dayjs().format('HH:mm')
this.date = dayjs().format('YYYY-MM-DD') + ' ' + weeks[new Date().getDay()]
}, 1000)
- this.param = uni.getStorageSync('param') || {}
-
+ this.param = uni.getStorageSync('param') || {}
+
this.getData()
this.timer2 = setInterval(() => {
this.getData()
@@ -239,14 +273,16 @@
display: flex;
flex-direction: column;
justify-content: space-between;
- padding-bottom: 42rpx;
+ padding-bottom: 34rpx;
color: #fff;
overflow: hidden;
.meeting_wrap {
margin-left: 42rpx;
- margin-top: 85rpx;
-
+ // margin-top: 60rpx;
+ .titleBox{
+ height: 124rpx;
+ }
.title {
font-weight: 500;
font-size: 42rpx;
@@ -291,17 +327,23 @@
bottom: 0;
// z-index: -1;
}
-
- .name {
- flex: 1;
- font-weight: bold;
- font-size: 39rpx;
+ .nameBox{
+ flex: 1;
width: 100%;
+ }
+ .name {
+
+ font-weight: bold;
+ line-height: 40rpx;
+ max-height: 120rpx;
+ font-size: 39rpx;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
+ -webkit-line-clamp: 3;
+ overflow: hidden;
+ white-space: normal; /* 淇濊瘉鏂囨湰姝e父鎹㈣ */
/* 瓒呭嚭鍑犺鐪佺暐 */
}
@@ -322,6 +364,7 @@
justify-content: space-between;
align-items: center;
padding: 0 42rpx;
+ padding-right: 64rpx;
.content {
.line {
@@ -339,35 +382,63 @@
}
}
+
.qrcode_wrap {
- width: 110px;
- height: 110px;
+ width: 208rpx;
+ height: 208rpx;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
-
+
.qrcode {
- width: 104px;
- height: 104px;
+ width: 200rpx;
+ height: 200rpx;
}
}
}
+ .qrcode_box {
+ width: 100%;
+ display: flex;
+ justify-content: flex-end;
+ color: rgba(255, 255, 255, 0.6);
+ padding-right: 65rpx;
+ margin-top: 18rpx;
+ .text {
+ width: 200rpx;
+ text-align: right;
+ padding-right: 8rpx;
+ font-size: 21rpx;
+ // transform: scale(.84);
+ }
+ }
+ .meeting_name_box {
+ // max-height: 150rpx;
+ }
.meeting_name {
margin-bottom: 12rpx;
font-weight: bold;
font-size: 49rpx;
+ // height: 150rpx;
padding-left: 42rpx;
+ padding-right: 64rpx;
+ word-break: break-all;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ overflow: hidden;
+ white-space: normal; /* 淇濊瘉鏂囨湰姝e父鎹㈣ */
}
.home_status {
font-weight: bold;
font-size: 125rpx;
- margin: 70rpx 42rpx;
- line-height: 185rpx;
- height: 185rpx;
+ margin: 140rpx 42rpx 22rpx;
+ line-height: 125rpx;
+ height: 125rpx;
}
.orange {
--
Gitblit v1.9.3