管灌系统农户端微信小程序(嘉峪关应用)
pages/home/home.wxss
@@ -143,22 +143,168 @@
    /* 允许垂直滚动 */
    z-index: 0;
    /* 确保 scroll-view 在头部和 center-wrapper 之下 */
    background-color: #f5f5f5;
    margin-top: 0;
    padding-top: 0;
    box-sizing: border-box;
}
.scroll-bg {
    padding: 20rpx 0;
    box-sizing: border-box;
    padding-top: 0;
    width: 100%;
}
/* 确保所有含宽度的元素使用相同的计算方式 */
.bottom-title,
.scroll-bg > view {
    width: calc(100% - 40rpx);
    margin-left: 20rpx;
    margin-right: 20rpx;
    box-sizing: border-box;
}
.scroll-bg > view {
    margin-bottom: 20rpx;
    border-radius: 12rpx;
    overflow: hidden;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}
t-swipe-cell {
    display: block;
    width: 100%;
    border-radius: 12rpx;
    overflow: hidden;
}
.swipe-cell {
    display: flex;
    justify-content: space-between;
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 12rpx;
    overflow: hidden;
}
.list-item {
    background-color: #fff;
    margin-bottom: 2rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 30rpx;
    padding-right: 30rpx;
    padding-top: 30rpx;
    padding-bottom: 30rpx;
    padding: 30rpx;
    width: 100%;
    box-sizing: border-box;
}
.item-left {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}
.left-intake-name {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
    padding-left: 4rpx;
}
.item-img-left {
    width: 40rpx;
    height: 40rpx;
    flex-shrink: 0;
}
.item-img {
    width: 40rpx;
    height: 40rpx;
    flex-shrink: 0;
}
.left-intake-name .item-img {
    margin-left: 8rpx;
}
.water-intake-name {
    font-size: 42rpx !important;
    margin-left: 16rpx;
    margin-right: 15rpx;
    white-space: nowrap; /* 防止文本换行 */
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
}
.left-time {
    width: 100%;
    display: flex;
    align-items: center;
    color: #666;
    flex-wrap: nowrap;
    overflow: hidden;
    padding-right: 10rpx;
    padding-left: 4rpx;
}
.flow-time {
    font-size: 28rpx !important;
    margin-left: 16rpx;
    margin-right: 2rpx;
    white-space: nowrap;
    color: #666;
    display: inline-block;
}
.flow-rate {
    font-size: 28rpx !important;
    margin-left: 6rpx;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    color: #666;
}
.item-right {
    display: flex;
    align-items: center;
    margin-left: 20rpx;
    margin-right: 20rpx;
}
.item-button {
    display: flex;
    height: 70rpx;
    padding: 0 40rpx;
    background-color: #1890FF;
    color: white;
    border: none;
    border-radius: 35rpx;
    font-size: 30rpx !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* 确保文字不换行 */
    box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
    transition: all 0.3s;
}
.item-button:active {
    background-color: #1378d8;
    transform: scale(0.98);
}
.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140rpx;
    height: 100%;
    color: white;
    background-color: #e34d59;
    font-size: 30rpx;
}
.list-item text {
@@ -174,34 +320,40 @@
}
.bottom-title {
    border-radius: 5px 5px 0 0;
    border-radius: 12rpx 12rpx 0 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    /* 垂直方向居中 */
    justify-content: space-between;
    /* 子元素在主轴上的对齐方式 */
    padding: 10px;
    padding: 30rpx;
    /* 容器的内边距 */
    width: calc(100% - 40rpx);
    margin-left: 20rpx;
    margin-right: 20rpx;
    margin-top: 20rpx;
    margin-bottom: 0;
    box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.03);
    position: relative;
    box-sizing: border-box;
    border-bottom: 1rpx solid #e7e7e7;
}
.bottom-title-text {
    margin-right: 10rpx;
    /* 给文本和图标之间添加一些间距 */
    font-size: 35rpx;
    font-size: 34rpx;
    /* 字体大小 */
    color: #333;
    /* 字体颜色 */
  }
    font-weight: 500;
}
.refresh-button {
    margin-left: auto;
    /* 将按钮推到容器的最右侧 */
    font-size: 30rpx;
    font-size: 28rpx;
    /* 按钮文字的字体大小 */
    color: #fff;
    /* 按钮文字颜色 */
@@ -209,37 +361,37 @@
    /* 按钮背景颜色 */
    border: none;
    /* 去掉按钮边框 */
    border-radius: 5px;
    border-radius: 30rpx;
    /* 按钮圆角 */
    padding-left: 25rpx;
    padding-right: 25rpx;
    padding-top: 15rpx;
    padding: 15rpx 30rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 15rpx;
    box-shadow: 0 4rpx 8rpx rgba(24, 144, 255, 0.2);
    transition: all 0.3s;
}
.refresh-button:active {
    background-color: #7c7c7c;
    /* Change to a darker color when pressed */
    background-color: #1378d8;
    transform: scale(0.98);
}
.refresh-view {
    text-align: center;
    padding: 30rpx;
    padding: 40rpx;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dot {
    width: 20rpx;
    height: 20rpx;
    background-color: #333;
    width: 16rpx;
    height: 16rpx;
    background-color: #1890FF;
    border-radius: 50%;
    margin: 0 5px;
    margin: 0 8rpx;
    animation: blink 1.4s infinite both;
    opacity: 0.7;
}
.dot:nth-child(2) {
@@ -251,15 +403,17 @@
}
@keyframes blink {
    0%,
    80%,
    100% {
        opacity: 0;
    0% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    40% {
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
}
@@ -267,23 +421,9 @@
    --td-switch-checked-color: #1890FF;
}
.item-left {
    display: flex;
    align-items: center;
}
.item-left text {
    font-size: 40rpx;
/* 修改选择器,使其不会影响flow-time */
.item-left .water-intake-name {
    min-width: 150rpx;
}
.item-img {
    width: 40rpx;
    /* 根据需要调整图标大小 */
    height: 40rpx;
    /* 根据需要调整图标大小 */
    margin-left: 20rpx;
}
.dialog {
@@ -294,39 +434,23 @@
.noMore-View-home {
    display: flex;
    flex-direction: column;
    /* 确保子元素纵向排列 */
    justify-content: center;
    /* 垂直居中 */
    align-items: center;
    /* 水平居中 */
    height: 100%;
    /* 让容器高度占满父元素 */
}
.item-button {
    display: flex;
    height: 80rpx;
    padding: 0 60rpx;
    background-color: #1890FF;
    color: white;
    border: none;
    border-radius: 20rpx;
    font-size: 30rpx;
    align-items: center;
    justify-content: center;
    margin-top: 80rpx;
    padding: 40rpx;
}
.item-button:active {
    background-color: #7c7c7c;
    /* Change to a darker color when pressed */
.noMore-img {
    width: 200rpx;
    height: 200rpx;
    margin-bottom: 20rpx;
    opacity: 0.7;
}
.divider {
    width: 100%;
    margin-top: 2rpx;
    /* background-color: #e0e0e0; */
.noMore-text {
    font-size: 32rpx;
    color: #999;
}
.error-dialog {
    --td-dialog-title-color: red;
@@ -509,10 +633,7 @@
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.project-modal-mask {
@@ -521,12 +642,15 @@
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.5);
}
.project-modal-content {
    position: relative;
    width: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 600rpx;
    background-color: #fff;
    border-radius: 16rpx;
@@ -536,72 +660,67 @@
}
.project-modal-header {
    padding: 30rpx;
    padding: 24rpx;
    text-align: center;
    border-bottom: 1rpx solid #f0f0f0;
}
.project-modal-title {
    font-size: 36rpx;
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    border-bottom: 1rpx solid #eee;
}
.project-modal-body {
    padding: 30rpx;
    padding: 0;
    max-height: 60vh;
}
.project-modal-tip {
    display: block;
    font-size: 28rpx;
    color: #999;
    margin-bottom: 30rpx;
    text-align: center;
.project-scroll-view {
    max-height: 55vh; /* 稍微减小高度,确保在小屏幕上也能看到底部按钮 */
    height: auto;
}
.project-radio-group {
    display: flex;
    flex-direction: column;
    gap: 20rpx;
    width: 100%;
}
.project-radio {
    padding: 24rpx;
    display: flex;
    align-items: center;
    padding: 20rpx;
    background-color: #f5f5f5;
    border-radius: 8rpx;
    border-bottom: 1rpx solid #f5f5f5;
    width: 100%;
    box-sizing: border-box;
}
.project-radio-selected {
    background-color: #e6f4ff;
    border: 2rpx solid #1890FF;
.project-radio radio {
    margin-right: 16rpx;
}
.project-radio text {
    margin-left: 10rpx;
    font-size: 32rpx;
    font-size: 30rpx;
    color: #333;
}
.project-radio-selected {
    background-color: #f0f9ff;
}
.project-modal-footer {
    padding: 30rpx;
    border-top: 1rpx solid #f0f0f0;
    padding: 24rpx;
    border-top: 1rpx solid #eee;
}
.project-modal-btn {
    width: 100%;
    height: 80rpx;
    line-height: 80rpx;
    text-align: center;
    background-color: #1890FF;
    color: #fff;
    font-size: 32rpx;
    color: white;
    border-radius: 8rpx;
    font-size: 28rpx;
    padding: 16rpx 0;
}
.project-modal-btn[disabled] {
    background-color: #cccccc;
    color: #ffffff;
    color: #666666;
}
.info-img {
@@ -628,7 +747,7 @@
  }
  
  .long-content {
    height: 450rpx;
    height: 500rpx;
    margin-top: 16rpx;
    font-size: 32rpx;
    color: #888;