管灌系统农户端微信小程序(嘉峪关应用)
zuoxiao
2025-04-07 5d3ed12a593020ec7fd9b5af50991f68b191e649
pages/waterIntake/waterIntake.wxss
@@ -1,106 +1,43 @@
/* pages/waterIntake/waterIntake.wxss */
/* index.wxss */
.container {
  padding-left: 20rpx;
  padding-right: 20rpx;
  padding-top: 5rpx;
  padding-bottom: 5rpx;
  padding: 5rpx 20rpx;
  background-color: #fff;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* 防止底部区域滚动 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tabs {
  display: flex;
  justify-content: space-around;
  position: relative;
  width: 100%;
  border-bottom: 1px solid #eee;
  /* Tabs 占满整个横向屏幕 */
}
.tab {
  font-size: 16px;
  padding: 10px;
  cursor: pointer;
  position: relative;
  width: 50%;
  /* Tabs 平分整个横向屏幕 */
  text-align: center;
  /* 文字居中 */
}
list-container
.list {
  margin-top: 20px;
}
.item {
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.search-container {
  display: flex;
  align-items: center;
  padding: 10rpx;
  border-bottom: 1px solid #eee;
}
/* 搜索框 */
.search-input {
  flex: 1;
  height: 80rpx;
  padding: 0 20rpx;
  border: 1px solid #ccc;
  border-radius: 20rpx;
  font-size: 30rpx;
}
/* 搜索按钮 */
.search-button {
  display: flex;
  margin-left: 10rpx;
  height: 60rpx;
  background-color: #1890FF;
  color: white;
  border: none;
  border-radius: 20rpx;
  font-size: 30rpx;
  text-align: center;
  align-items: center;
  position: relative;
}
.list-container {
  flex: 1;
  overflow-y: auto;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 确保内容居上 */
  height: 100%;
}
.all-waterIntake {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 确保内容居上 */
  height: 100%;
  width: 100%;
  padding-bottom: 20rpx; /* 增加底部填充 */
}
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  /* 适当调整间距 */
  padding: 15px 20rpx;
  border-bottom: 1px solid #eee;
}
.item-left {
@@ -108,22 +45,20 @@
  align-items: center;
}
.item-right {
  display: flex;
  align-items: center;
.item-left text{
  font-size: 40rpx;
  min-width: 150rpx;
}
.item-img {
  width: 40rpx;
  /* 根据需要调整图标大小 */
  height: 40rpx;
  /* 根据需要调整图标大小 */
  margin-left: 20rpx;
}
.item-button {
  display: flex;
  height: 60rpx;
  height: 80rpx;
  padding: 0 60rpx;
  background-color: #1890FF;
  color: white;
@@ -133,8 +68,8 @@
  align-items: center;
  justify-content: center;
}
.item-left text{
  font-size: 40rpx;
.item-button:active {
  background-color: #7c7c7c; /* Change to a darker color when pressed */
}
.indicator {
  width: 100%;
@@ -143,8 +78,6 @@
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(0);
  /* 初始化位置 */
}
.noMore-View {
@@ -156,11 +89,354 @@
  flex-direction: column;
}
.noMore-img{
.noMore-img {
  width: 300rpx;
  height: 300rpx;
}
.noMore-text{
  color:#969494;
}
.noMore-text {
  color: #969494;
}
.search-container {
  display: flex;
  align-items: center;
  padding: 10rpx;
  border-bottom: 1px solid #eee;
}
.search-input {
  flex: 1;
  height: 80rpx;
  padding: 0 20rpx;
  border: 1px solid #ccc;
  border-radius: 20rpx;
  font-size: 30rpx;
}
.search-button {
  margin-left: 10rpx;
  height: 60rpx;
  background-color: #1890FF;
  color: white;
  border: none;
  border-radius: 20rpx;
  font-size: 30rpx;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.all-waterIntake {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  z-index: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 10rpx; /* 增加底部填充 */
}
.error-dialog{
  --td-dialog-title-color:red;
  --td-dialog-title-font-size:45rpx;
}
.search-results {
  position: absolute;
  top: 100rpx; /* 根据搜索框的高度调整 */
  left: 30rpx;
  right: 30rpx;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.90); /* 设置白色背景 */
  z-index: 1;
  overflow-y: auto;
}
.result-item {
  padding: 20rpx;
  border-bottom: 1px solid #eaeaea;
}
.item-img-left {
  width: 40rpx;
  /* 根据需要调整图标大小 */
  height: 40rpx;
  /* 根据需要调整图标大小 */
}
.item-img {
  width: 40rpx;
  height: 40rpx;
  margin-left: 20rpx;
}
.water-intake-name {
  font-size: 50rpx !important;
  margin-left: 15rpx;
}
.item-balance-img {
    width: 50rpx;
    height: 40rpx;
  }
  .item-bottom {
    display: flex;
    margin-top: 10rpx;
    align-items: center;
    /* 垂直居中 */
  }
  .item-card {
    margin-left: 10rpx;
  }
  .item-card text {
    font-size: 35rpx;
    color: #fff;
  }
  .item-balance-text {
    color: #fff;
    font-size: 50rpx;
    margin-left: 5rpx;
  }
  .item-balance-text-red {
    color: #FF6A6A;
    font-size: 50rpx;
    margin-left: 5rpx;
  }
  .item-button {
    margin-left: auto;
    /* 将按钮固定在右边 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 使按钮内部水平和垂直居中 */
    background-color: #32CD32;
    color: white;
    padding-left: 40rpx;
    padding-right: 40rpx;
    padding-bottom: 10rpx;
    padding-top: 10rpx;
    border-radius: 30rpx;
    font-size: 35rpx;
    border: none;
  }
  .item-button-gray {
    margin-left: auto;
    /* 将按钮固定在右边 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 使按钮内部水平和垂直居中 */
    background-color: #8B8989;
    color: #FF6A6A;
    padding-left: 40rpx;
    padding-right: 40rpx;
    padding-bottom: 10rpx;
    padding-top: 10rpx;
    border-radius: 30rpx;
    font-size: 35rpx;
    border: none;
  }
  .item-balance-text-yuan {
    color: white;
    margin-left: 10rpx;
    margin-bottom: 10rpx;
    font-size: 30rpx;
  }
  .item-balance-text-yuan-red {
    color: #FF6A6A;
    margin-left: 10rpx;
    margin-bottom: 10rpx;
    font-size: 30rpx;
  }
  .item-balance {
    display: flex;
    align-items: flex-end;
    /* 底部对齐 */
  }
  .list-container {
    display: flex;
    flex-grow: 1; /* 占满剩余高度 */
    padding-bottom: 30rpx;
    height: 100%;
    flex-direction: column; /* 确保内部元素按列排列 */
  }
  .dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    z-index: 999;
    /* 保证 Dialog 在蒙层之上 */
  }
  .dialog-content {
    margin-top: 50rpx;
    padding: 20px;
    /* Optional: 设置最大高度,以防内容过多 */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  .dialog-title {
    font-size: 38rpx;
    margin-bottom: 20rpx;
    text-align: center;
  }
  .dialog-title-text {
    font-size: 38rpx;
    margin-bottom: 20rpx;
    text-align: center;
  }
  .dialog-title-img {
    width: 50rpx;
    height: 50rpx;
    position: absolute;
    left: 0; /* 靠左对齐 */
    margin-left: 40rpx;
  }
  button {
    display: block;
    width: 100%;
    margin: 10rpx 0;
    padding: 10rpx;
    border: none;
    background-color: #007aff;
    color: #fff;
    border-radius: 15rpx;
    text-align: center;
    font-size: 30rpx;
  }
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 黑色半透明 */
    z-index: 998;
    /* 保证蒙层在最上层 */
  }
  .close {
    left: 50%;
    width: 80rpx;
    height: 80rpx;
    z-index: 1000;
    margin-top: -50rpx;
    position: absolute;
    transform: translate(-50%);
  }
  .row {
    display: flex;
    justify-content: space-around;
  }
  .chose-wrapper {
    display: flex;
    align-items: flex-end;
    /* 底部对齐 */
    justify-content: center;
    /* 水平居中 */
  }
  .chose-number {
    font-size: 40rpx;
  }
  .chose-label {
    font-size: 30rpx;
    margin-left: 5rpx;
    margin-bottom: 5rpx;
  }
  .choseitem text {
    color: #1890FF;
  }
  .choseitem {
    background-color: rgba(80, 78, 78, 0.082);
    border-radius: 5px;
    width: 100%;
    height: 5vh;
    margin-left: 20rpx;
    margin-top: 10rpx;
    margin-right: 20rpx;
    margin-bottom: 10rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .choseitemactive {
    background-color: #1890FF;
    border-radius: 5px;
    width: 100%;
    height: 5vh;
    margin-left: 20rpx;
    margin-top: 10rpx;
    margin-right: 20rpx;
    margin-bottom: 10rpx;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .box {
    padding: 32rpx;
    display: flex;
    justify-content: space-between;
    background-color: var(--td-bg-color-container, #fff);
  }
  .open-time {
    align-items: center;
    justify-content: center;
    display: flex;
    margin-bottom: 20rpx;
    font-size: 30rpx;
  }
  .item {
    background-color: #1890FF;
    margin-top: 20rpx;
    margin-left: 20rpx;
    margin-right: 20rpx;
    padding: 30rpx;
    border-radius: 30rpx;
  }
  .item-gray {
    background-color: #D3D3D3;
    margin-top: 20rpx;
    margin-left: 20rpx;
    margin-right: 20rpx;
    padding: 30rpx;
    border-radius: 30rpx;
  }