.everyDay { background: #fff; padding: 20rpx 20rpx 30rpx; border-radius: 20rpx; margin: 30rpx 20rpx 20rpx; height: auto; overflow: hidden; .title { display: flex; justify-content: space-between; font-weight: bold; font-size: 30rpx; .quan { margin-right: 70rpx; } } } .jishiqi { height: auto; overflow: hidden; margin-top: 15px; .top { display: flex; justify-content: space-between; margin-bottom: 15px; } .date { font-size: 14px; font-weight: bold; } .detail { color: #3CB383; width: auto; padding: 3px 10px; background: #fff; border-radius: 8px; border: 1px solid #3CB383; display: flex; align-items: center; image { width: 44rpx; height: 44rpx; margin-right: 5px; } } .left { float: left; width: 270rpx; height: 320rpx; display: flex; flex-direction: column; justify-content: space-between; .chart-wrap { position: relative; width: 250rpx; height: 250rpx; margin-top: -30rpx; margin-left: 5px; display: flex; flex-wrap: wrap; .center { border: none; width: 280rpx; height: 210rpx; position: absolute; top: 64rpx; display: flex; flex-direction: column; justify-content: center; align-items: center; } } .mubiao { width: 100%; margin-top: 32rpx; text-align: center; font-size: 26rpx; } } .right { width: calc(100% - 290rpx); display: flex; flex-direction: column; float: left; height: 300rpx; margin-left: 20rpx; justify-content: space-between; .item { width: 100%; font-size: 26rpx; image { width: 40rpx; height: 40rpx; } .left-icon { width: 90rpx; float: left; height: 80rpx; display: flex; align-items: center; flex-direction: column; justify-content: space-between; } .right-info { width: calc(100% - 100rpx); float: left; height: 74rpx; margin-left: 5px; display: flex; flex-direction: column; justify-content: space-between; .right-info-top { width: 100%; display: flex; justify-content: space-between; } .right-info-bottom { width: 100%; height: 8px; background-color: #f3f7f5; border-radius: 5px; position: relative; .val { width: 45%; position: absolute; left: 0; top: 0; z-index: 9; height: 16rpx; border-radius: 5px; } } } } } } // 添加食谱 .addFood { .title, .textarea { width: calc(100% - 40rpx); margin-bottom: 20rpx; background: #fff; padding: 0 20rpx; border-radius: 20rpx; } .food, .step { width: calc(100% - 40rpx); margin-bottom: 20rpx; background: #fff; padding: 20rpx; border-radius: 20rpx; .h4 { height: 60rpx; line-height: 60rpx; font-size: 14px; display: flex; font-weight: bold; justify-content: space-between; text { font-size: 14px; border: 1px solid #dfdfdf; border-radius: 30rpx; padding: 0 40rpx; } } .foodlist { column-count: 1; .item { display: flex; justify-content: space-between; width: calc(100% - 40rpx); background: #f7f7f7; border-radius: 20rpx; padding: 8px 20rpx; margin-top: 20rpx; } .name { width: 30%; border-right: 1px solid #999; margin-right: 30rpx; } .input { width: 30%; display: flex; align-items: center; } } .edit { width: 30%; display: flex; align-items: center; justify-content: center; icon { display: flex; margin-right: 5px; color: $uni-color-warning; } image { width: 18px; height: 18px; margin: 0 5px; } .shang { transform: rotate(180deg); } } .add { width: 100%; text-align: center; height: 35px; line-height: 35px; background: $maincolor; margin-top: 30rpx; border-radius: 20rpx; color: #fff; } } .step { .top { display: flex; justify-content: space-between; margin: 20rpx 0; font-size: 14px; font-weight: bold; } .textarea { margin-top: 20rpx; background-color: #f7f7f7; } .add { color: #000; background-color: #fff; border: 1px solid #f0ad4e; } } .groupbtn { width: 100%; margin-top: 5px; display: flex; justify-content: space-between; align-items: center; view { width: 45%; background-color: #fff; border: 1px solid #f0ad4e; text-align: center; height: 35px; line-height: 35px; border-radius: 20rpx; margin-bottom: 30rpx; } .subbtn { color: #fff; border-color: $maincolor; background-color: $maincolor; } } } .foodDetail { background-color: #F7F7F7; padding: 20rpx; box-sizing: border-box; .foodInfo { display: flex; width: 100%; padding: 30rpx; border-radius: 20rpx; box-sizing: border-box; background-color: #fff; box-sizing: 0 0 20rpx #f1f1f1; image { width: 90rpx; height: 90rpx; border-radius: 15rpx; } .info { display: flex; flex-direction: column; justify-content: center; margin-left: 30rpx; .name { font-size: 28rpx; font-weight: 700; margin-bottom: 10rpx; } .kcal { width: 100% !important; font-size: 26rpx; color: #666; padding: 0 !important; margin: 0 !important; } } } .foodContent { width: 100%; padding: 30rpx; margin-top: 16rpx; box-sizing: border-box; border-radius: 20rpx; box-sizing: border-box; background-color: #fff; box-sizing: 0 0 20rpx #f1f1f1; .title { font-size: 28rpx; font-weight: 600; } .progress { display: flex; align-items: center; .chart-wrap { position: relative; width: 280rpx; height: 280rpx; margin-top: -30rpx; margin-left: -20px; // .uchart-kcal { // position: absolute; // left: 60rpx; // top: 120rpx; // width: 130rpx; // font-size: 40rpx; // text-align: center; // z-index: 9; // } } .info { display: flex; flex-direction: column; justify-content: space-between; font-size: 26rpx; height: 200rpx; .info-item { display: flex; align-items: center; margin-top: 20rpx; .color { width: 6rpx; height: 20rpx; margin-right: 10rpx; border-radius: 3rpx; } } } } .tips { display: flex; justify-content: space-between; border-bottom: 1px solid #f1f1f1; padding: 16rpx 0; font-size: 26rpx; margin-top: 10rpx; } .foodDetailList { margin-top: 10rpx; .foodDetailItem { display: flex; justify-content: space-between; padding: 20rpx 0; box-sizing: border-box; .name { font-size: 26rpx; color: #777; } .val { font-size: 26rpx; font-weight: 700; color: #333; } } } } } .set { display: flex; align-items: center; justify-content: space-between; margin-top: 20rpx; font-size: 32rpx; font-weight: bold; .icon { background: #d1f2ed; border-radius: 50%; font-size: 56rpx; color: #66cccc; text-align: center; padding: 10rpx; } } .tools { width: 100%; background: #fff; border-radius: 20rpx; padding: 20rpx 0; display: flex; margin-bottom: 30rpx; justify-content: space-between; box-shadow: 0px 1px 5px 2px #dfe2e1fc; .type { width: 20%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; image { width: 90rpx; height: 90rpx; border-radius: 50%; border: 1px solid #f7f7f7; } .text { width: 100%; text-align: center; display: flex; justify-content: center; font-weight: bold; icon { font-size: 28rpx; } } } } .list2 { margin-top: 45%; .btn { color: #fff; height: 64rpx; line-height: 64rpx; } } .fenxi { color: $maincolor; background: #fff; border-radius: 10px; margin: 0 20rpx 20rpx; height: 45px; display: flex; justify-content: center; align-items: center; image { width: 44rpx; height: 44rpx; margin-right: 5px; } } .serachBox { height: 80rpx; position: fixed; top: 0; left: 0; right: 0; padding: 0 30rpx 20rpx; z-index: 99; background-color: #f7f7f7; .title { display: flex; align-items: center; font-size: 32rpx; font-weight: bold; } .searchInput { position: absolute; left: 0; right: 120rpx; height: 80rpx; } .search-wrap { height: 80rpx; display: flex; align-items: center; justify-content: space-between; border: 1px solid $maincolor; border-radius: 30rpx; padding: 0 20rpx; background: #fff; image { width: 50rpx; height: 50rpx; } } } .f_banner { width: 100% !important; height: 450rpx; margin: 30rpx auto; /deep/swiper { height: 450rpx; } image { width: 100%; height: 100%; background-size: 100%; position: relative; } } .quan { width: 60rpx; height: 40rpx; position: relative; margin-right: 70rpx; } .quan::before { content: ""; position: absolute; width: 35rpx; height: 35rpx; left: 0px; z-index: 22; background: #3CB383; border-radius: 50%; } .quan::after { content: ""; position: absolute; width: 35rpx; height: 35rpx; left: 17rpx; z-index: 11; background: #9CDCBF; border-radius: 50%; } .drawerVisible { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; z-index: 999; .bgVisible { position: absolute; top: 0; left: 0; bottom: 0; right: 0; background-color: rgba(0, 0, 0, 0.4); transition: opacity 0.3s; } .infoVisible { display: block; position: absolute; top: 0; right: 0; width: 300px; bottom: 0; background-color: #ffffff; transition: -webkit-transform 0.3s ease; transition: transform 0.3s ease; transition: transform 0.3s ease, -webkit-transform 0.3s ease; } } // .列表样式 .footlist { margin: 30rpx 0; width: 100%; height: auto; overflow: hidden; column-gap: 20rpx; column-count:2; // display: flex; // flex-wrap: wrap; // justify-content: space-between; .list { margin-bottom: 20rpx; // height: auto; overflow: auto; break-inside: avoid; border-radius: 15rpx; overflow: hidden; -webkit-column-break-inside: avoid; .item { color: #666; width: calc(100% - 20rpx); position: initial; background: #fff; border-radius: 0 0 5px 5px; font-size: 14px; height: auto; overflow: hidden; } .topimg{ height:320rpx; overflow: hidden; position: relative; } .img { width: 100%; height: 100%; display: block; border-radius: 5px 5px 0 0; } .zan { .iconfont { font-size: 32rpx; position: inherit !important; } } } } .footbox { // width: calc(100% - 60rpx); // margin-top: 80rpx; position: relative; .item { position: absolute; bottom: 0px; color: #fff; left: 5px; right: 5px; background: #403f3f5c; padding: 5px; font-size: 30rpx; z-index: 999999; border-radius:0 0 20rpx 20rpx; .title { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .name { display: flex; align-items: center; font-size: 26rpx; float: left; width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 60rpx; line-height: 60rpx; image { width: 50rpx; height: 50rpx; border-radius: 50%; margin-right: 5px; } text{ width: calc(100% - 60rpx); display: inline-block; } } .zan { width: 30%; float: left; font-size: 26rpx; display: flex; align-items: center; height: auto; overflow: hidden; height: 60rpx; line-height: 60rpx; justify-content: flex-end; .iconfont { display: flex; align-items: center; position: absolute; right: 30rpx; bottom: 20rpx; text-align: right; z-index: 99; margin-right: 5px; } } .icon-icon3 { color: $maincolor; } } }