客户列表显示时间应该是最后一次更新时间

This commit is contained in:
zhonghua.li
2026-04-15 15:15:37 +08:00
parent 56c03a2e0e
commit abe8672079
7 changed files with 97 additions and 34 deletions

View File

@@ -14,7 +14,7 @@
backgroundColor="#FFFFFF">
</uni-nav-bar>
<view class="content">
<view class="content" :style="{ paddingTop: contentTop }">
<view class="scene-grid">
<view
class="scene-card"
@@ -37,6 +37,19 @@
import statusBar from "@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar";
// #endif
function getSystemInfo() {
try {
const systemInfo = uni.getSystemInfoSync();
return {
statusBarHeight: systemInfo.statusBarHeight || 20,
};
} catch (e) {
return {
statusBarHeight: 20,
};
}
}
export default {
// #ifdef APP
components: {
@@ -44,7 +57,10 @@
},
// #endif
data() {
const systemInfo = getSystemInfo();
const totalNavbarHeight = systemInfo.statusBarHeight * 2 + 44 * 2;
return {
contentTop: totalNavbarHeight + 'rpx',
scenes: [
{
id: 'meeting',
@@ -115,54 +131,56 @@
}
.content {
padding-top: 44px;
padding: 44px 16px 20px;
padding-left: 24rpx;
padding-right: 24rpx;
padding-bottom: 24rpx;
box-sizing: border-box;
}
.scene-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
gap: 24rpx;
}
.scene-card {
background: #FFFFFF;
border-radius: 12px;
padding: 24px 16px;
border-radius: 24rpx;
padding: 32rpx 24rpx;
display: flex;
flex-direction: column;
align-items: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
transition: all 0.3s;
}
.scene-card:active {
transform: scale(0.98);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.1);
}
.scene-icon {
margin-bottom: 12px;
width: 64px;
height: 64px;
margin-bottom: 16rpx;
width: 96rpx;
height: 96rpx;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(42, 104, 255, 0.1) 0%, rgba(42, 104, 255, 0.05) 100%);
border-radius: 16px;
border-radius: 24rpx;
}
.scene-title {
font-size: 16px;
font-weight: 600;
color: #333333;
margin-bottom: 8px;
font-size: 32rpx;
font-weight: 500;
color: #333;
margin-bottom: 12rpx;
text-align: center;
}
.scene-desc {
font-size: 12px;
color: #999999;
font-size: 24rpx;
color: #666;
text-align: center;
line-height: 1.4;
}