完成个性化功能
This commit is contained in:
1 parent
3b2d536880
commit
ac2e6bf800
6 files changed
+589
-286
No files matched your search
+249
-220
@@ -1,5 +1,14 @@
|
||||
/**index.wxss**/
|
||||
|
||||
page{
|
||||
// // 主要为各个背景
|
||||
// --main-color:rgb(246, 255, 252);
|
||||
// // 目前为主界面的那几个按钮
|
||||
// --secondary-color:rgba(125, 235, 202, 0.205);
|
||||
// // 各界面顶部栏的颜色
|
||||
// --tertiary-color:rgba(123, 245, 245, 0.5);
|
||||
// // 标题文字颜色
|
||||
--text-color:rgb(199, 255, 204);
|
||||
}
|
||||
|
||||
.container{
|
||||
display: flex;
|
||||
@@ -7,7 +16,7 @@
|
||||
height: 100%;
|
||||
width:100%;
|
||||
justify-content: center;
|
||||
background-color: rgba($color: #fff5d2, $alpha: 1.0);
|
||||
// background-color: var(--main-color);
|
||||
}
|
||||
|
||||
#startPage{
|
||||
@@ -16,15 +25,16 @@
|
||||
height: 100%;
|
||||
width:100%;
|
||||
justify-content: center;
|
||||
background-color: rgba($color: #fff5d2, $alpha: 1.0);
|
||||
background-color: var(--main-color);
|
||||
}
|
||||
|
||||
.text_startPage{
|
||||
font-size: 60rpx;
|
||||
color:var(--text-color)
|
||||
}
|
||||
|
||||
.buttom_startPage{
|
||||
background-color: rgba($color: #d2fff4, $alpha: 1);
|
||||
background-color: var(--secondary-color);
|
||||
border-radius: 20rpx;
|
||||
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
|
||||
display: flex;
|
||||
@@ -162,7 +172,8 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
// background-color: aquamarine;
|
||||
background-color: rgb(240, 255, 247);
|
||||
border-radius: 50%;
|
||||
bottom: 140rpx;
|
||||
right:80rpx;
|
||||
// font-size: 150rpx;
|
||||
@@ -174,13 +185,15 @@
|
||||
.title{
|
||||
width: 100%;
|
||||
height: 10%;
|
||||
background-color: aqua;
|
||||
background-color: var(--tertiary-color);
|
||||
position:absolute;
|
||||
top:0rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-size: x-large;
|
||||
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
|
||||
letter-spacing:10rpx;
|
||||
.page_back{
|
||||
height: 70rpx;
|
||||
width: 70rpx;
|
||||
@@ -188,8 +201,9 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
// rotate: -90deg;
|
||||
// background-color: aquamarine;
|
||||
top: 50rpx;
|
||||
// top: 20%;
|
||||
left:30rpx;
|
||||
// font-size: 150rpx;
|
||||
// font-weight: 900;
|
||||
@@ -260,7 +274,7 @@
|
||||
|
||||
// 知识库界面
|
||||
#page_lib{
|
||||
background-color: rgba($color: #fff5d2, $alpha: 1.0);
|
||||
background-color: var(--main-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -268,7 +282,7 @@
|
||||
.content{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-top: 20rpx;
|
||||
padding-top: 30rpx;
|
||||
// padding-bottom: 40rpx;
|
||||
.lib_search{
|
||||
margin-bottom: 20rpx;
|
||||
@@ -276,206 +290,196 @@
|
||||
// // background-color: yellow;
|
||||
// }
|
||||
}
|
||||
.node{
|
||||
background-color: rgba($color: #ffffff, $alpha: 1);
|
||||
}
|
||||
}
|
||||
|
||||
// 单配料卡片样式
|
||||
.ingredient_card{
|
||||
background-color: rgba($color: #ffffff, $alpha: 1);
|
||||
border-radius: 15rpx;
|
||||
height: 200rpx;
|
||||
width: auto;
|
||||
margin:15rpx 20rpx 15rpx 10rpx;
|
||||
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
|
||||
.node_content{
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: auto;
|
||||
margin-left: 25rpx;
|
||||
border-radius: 15rpx;
|
||||
background-color: rgba($color: #ffffff, $alpha: 1);
|
||||
// background-color: var(--tertiary-color);
|
||||
// overflow: hidden;
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
}
|
||||
.node_name{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width:max-content;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
padding:0rpx 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 15rpx;
|
||||
height: 200rpx;
|
||||
width: auto;
|
||||
margin:15rpx 20rpx 15rpx 10rpx;
|
||||
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
|
||||
.node_content{
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: auto;
|
||||
margin-left: 25rpx;
|
||||
position: absolute;
|
||||
top:15rpx;
|
||||
left:20rpx;
|
||||
max-width: 230rpx;
|
||||
overflow: scroll;
|
||||
white-space: nowrap;
|
||||
// justify-content: center;
|
||||
}
|
||||
.node_name_en{
|
||||
height:45rpx;
|
||||
position: absolute;
|
||||
top:80rpx;
|
||||
left:20rpx;
|
||||
max-width: 338rpx;
|
||||
}
|
||||
.node_adi{
|
||||
font-size: 31rpx;
|
||||
height:45rpx;
|
||||
max-width:338rpx;
|
||||
// background-color: rgba(150, 145, 138, 0.5);
|
||||
// padding:0rpx 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 15rpx;
|
||||
position: absolute;
|
||||
bottom:20rpx;
|
||||
left:20rpx;
|
||||
overflow: scroll;
|
||||
white-space: nowrap;
|
||||
.adi_title{
|
||||
height:45rpx;
|
||||
background-color:salmon;
|
||||
padding:0rpx 10rpx;
|
||||
}
|
||||
.adi_content{
|
||||
height:45rpx;
|
||||
background-color:rgb(224, 224, 224);
|
||||
padding:0rpx 10rpx;
|
||||
}
|
||||
}
|
||||
.node_danger{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 80rpx;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
position: absolute;
|
||||
left:299rpx;
|
||||
top:15rpx;
|
||||
// padding: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
background-color: tomato;
|
||||
// view{
|
||||
// position: relative;
|
||||
// top:-0.5rpx;
|
||||
// }
|
||||
}
|
||||
.node_safe{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 80rpx;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
position: absolute;
|
||||
left:299rpx;
|
||||
top:15rpx;
|
||||
// padding: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
background-color:springgreen;
|
||||
// view{
|
||||
// position: relative;
|
||||
// top:-0.5rpx;
|
||||
// }
|
||||
}
|
||||
.node_scores{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 135rpx;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
position: absolute;
|
||||
left:399rpx;
|
||||
top:15rpx;
|
||||
// padding: 4rpx 0rpx 6rpx 10rpx;
|
||||
// padding-left: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
.scores_title{
|
||||
height:50rpx;
|
||||
width: 80rpx;
|
||||
background-color:salmon;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.scores_num{
|
||||
height:50rpx;
|
||||
width: 65rpx;
|
||||
background-color:rgb(224, 224, 224);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
.node_risk{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 120rpx;
|
||||
position: absolute;
|
||||
left:560rpx;
|
||||
top:15rpx;
|
||||
// padding: 0rpx 6rpx 6rpx 13rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
}
|
||||
.node_extra{
|
||||
height:95rpx;
|
||||
width: 256rpx;
|
||||
// background-color: white;
|
||||
border: 3rpx solid rgba(0, 0, 0, 0.356);
|
||||
position: absolute;
|
||||
left:400rpx;
|
||||
bottom:15rpx;
|
||||
padding: 5rpx 10rpx 10rpx 10rpx;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
overflow: scroll;
|
||||
.node_extra_empty{
|
||||
margin: auto;
|
||||
font-size: 45rpx;
|
||||
}
|
||||
.node_ex_content{
|
||||
margin:5rpx;
|
||||
height: 40rpx;
|
||||
width: 240rpx;
|
||||
display: flex;
|
||||
border-radius: 15rpx;
|
||||
background-color: rgba($color: #ffffff, $alpha: 1);
|
||||
// overflow: hidden;
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
}
|
||||
// .node_nameBar{
|
||||
// background-color: teal;
|
||||
// position: absolute;
|
||||
// top:20rpx;
|
||||
// left:20rpx;
|
||||
// overflow: scroll;
|
||||
// height: 500rpx;
|
||||
// width: 350rpx;
|
||||
// display:flex;
|
||||
// // flex-direction: column;
|
||||
// justify-content: center;
|
||||
// align-items: flex-start;
|
||||
// }
|
||||
.node_name{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width:max-content;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
padding:0rpx 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 15rpx;
|
||||
position: absolute;
|
||||
top:15rpx;
|
||||
left:20rpx;
|
||||
max-width: 230rpx;
|
||||
overflow: scroll;
|
||||
white-space: nowrap;
|
||||
// justify-content: center;
|
||||
}
|
||||
.node_name_en{
|
||||
height:45rpx;
|
||||
position: absolute;
|
||||
top:80rpx;
|
||||
left:20rpx;
|
||||
max-width: 338rpx;
|
||||
}
|
||||
.node_adi{
|
||||
font-size: 31rpx;
|
||||
height:45rpx;
|
||||
max-width:338rpx;
|
||||
// background-color: rgba(150, 145, 138, 0.5);
|
||||
// padding:0rpx 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 15rpx;
|
||||
position: absolute;
|
||||
bottom:20rpx;
|
||||
left:20rpx;
|
||||
overflow: scroll;
|
||||
white-space: nowrap;
|
||||
.adi_title{
|
||||
height:45rpx;
|
||||
background-color:salmon;
|
||||
padding:0rpx 10rpx;
|
||||
}
|
||||
.adi_content{
|
||||
height:45rpx;
|
||||
background-color:rgb(224, 224, 224);
|
||||
padding:0rpx 10rpx;
|
||||
}
|
||||
}
|
||||
.node_danger{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 80rpx;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
position: absolute;
|
||||
left:299rpx;
|
||||
top:15rpx;
|
||||
// padding: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
background-color: tomato;
|
||||
// view{
|
||||
// position: relative;
|
||||
// top:-0.5rpx;
|
||||
// }
|
||||
}
|
||||
.node_safe{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 80rpx;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
position: absolute;
|
||||
left:299rpx;
|
||||
top:15rpx;
|
||||
// padding: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
background-color:springgreen;
|
||||
// view{
|
||||
// position: relative;
|
||||
// top:-0.5rpx;
|
||||
// }
|
||||
}
|
||||
.node_scores{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 135rpx;
|
||||
background-color: rgba(150, 145, 138, 0.5);
|
||||
position: absolute;
|
||||
left:399rpx;
|
||||
top:15rpx;
|
||||
// padding: 4rpx 0rpx 6rpx 10rpx;
|
||||
// padding-left: 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
.scores_title{
|
||||
height:50rpx;
|
||||
width: 80rpx;
|
||||
background-color:salmon;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.scores_num{
|
||||
height:50rpx;
|
||||
width: 65rpx;
|
||||
background-color:rgb(224, 224, 224);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
.node_risk{
|
||||
font-size: 31rpx;
|
||||
height:50rpx;
|
||||
width: 120rpx;
|
||||
position: absolute;
|
||||
left:560rpx;
|
||||
top:15rpx;
|
||||
// padding: 0rpx 6rpx 6rpx 13rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 15rpx;
|
||||
overflow: hidden;
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
color: transparent;
|
||||
}
|
||||
.node_extra{
|
||||
height:95rpx;
|
||||
width: 256rpx;
|
||||
background-color: white;
|
||||
border: 3rpx solid rgba(0, 0, 0, 0.356);
|
||||
position: absolute;
|
||||
left:400rpx;
|
||||
bottom:15rpx;
|
||||
padding: 5rpx 10rpx 10rpx 10rpx;
|
||||
border-radius: 15rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
overflow: scroll;
|
||||
.node_extra_empty{
|
||||
margin: auto;
|
||||
font-size: 45rpx;
|
||||
}
|
||||
.node_ex_content{
|
||||
margin:5rpx;
|
||||
height: 40rpx;
|
||||
width: 240rpx;
|
||||
display: flex;
|
||||
border-radius: 15rpx;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -484,7 +488,7 @@
|
||||
|
||||
// 历史记录
|
||||
#page_history{
|
||||
background-color: rgba($color: #fff5d2, $alpha: 1.0);
|
||||
background-color: var(--main-color);
|
||||
// .date1{
|
||||
// background-color: rgba($color: #fff5d2, $alpha: 1);
|
||||
// height: 50rpx;
|
||||
@@ -509,7 +513,7 @@
|
||||
height: 210rpx;
|
||||
width: auto;
|
||||
border-radius: 15rpx;
|
||||
background-color: rgba(167, 180, 176, 0.863);
|
||||
background-color: rgba(91, 95, 94, 0.263);
|
||||
margin:15rpx 25rpx;
|
||||
// margin-top:30rpx;
|
||||
// margin-left: 30rpx;
|
||||
@@ -582,7 +586,7 @@
|
||||
|
||||
// 收藏界面
|
||||
#page_collect{
|
||||
background-color: rgba($color: #fff5d2, $alpha: 1.0);
|
||||
background-color: var(--main-color);
|
||||
translate:0 100%;
|
||||
.content{
|
||||
display: flex;
|
||||
@@ -704,11 +708,32 @@
|
||||
|
||||
//个性化界面
|
||||
#page_style{
|
||||
background-color: rgba($color: #fff5d2, $alpha: 1.0);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--main-color);
|
||||
translate:0 100%;
|
||||
.content{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content:center;
|
||||
padding-top: 20rpx;
|
||||
padding-bottom: 40rpx;
|
||||
.choose_color{
|
||||
box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
margin: 20rpx;
|
||||
border-radius: 30rpx;
|
||||
display:flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
.node{
|
||||
width:34%;
|
||||
height: 300rpx;
|
||||
background-color: white;
|
||||
}
|
||||
// background-color: white;
|
||||
// background: linear-gradient(to right,rgb(255, 255, 255) 33%,blue 66%,rgb(0, 0, 0)100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//遮罩
|
||||
@@ -725,15 +750,16 @@
|
||||
}
|
||||
//查询结果
|
||||
#page_result{
|
||||
height: 90%;
|
||||
height: 89%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
translate: 0 100%;
|
||||
background-color: rgba($color: #ffffff, $alpha: 1.0);
|
||||
border-radius: 50rpx;
|
||||
// background-color: rgba($color: #ffffff, $alpha: 1.0);
|
||||
background-color: var(--main-color);
|
||||
border-radius: 40rpx;
|
||||
.title{
|
||||
.page_star{
|
||||
height: 70rpx;
|
||||
@@ -743,7 +769,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
// background-color: aquamarine;
|
||||
top: 50rpx;
|
||||
// top: 50rpx;
|
||||
right:30rpx;
|
||||
// font-size: 150rpx;
|
||||
// font-weight: 900;
|
||||
@@ -757,7 +783,7 @@
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
// background-color: aquamarine;
|
||||
top: 50rpx;
|
||||
// top: 50rpx;
|
||||
right:100rpx;
|
||||
// font-size: 150rpx;
|
||||
// font-weight: 900;
|
||||
@@ -1051,6 +1077,7 @@
|
||||
.title{
|
||||
height: 30%;
|
||||
border-radius: 25rpx 25rpx 0 0;
|
||||
letter-spacing:0rpx;
|
||||
}
|
||||
.input{
|
||||
height: 120rpx;
|
||||
@@ -1113,6 +1140,7 @@
|
||||
.title{
|
||||
height: 30%;
|
||||
border-radius: 25rpx 25rpx 0 0;
|
||||
letter-spacing:0rpx;
|
||||
}
|
||||
.input{
|
||||
height: 120rpx;
|
||||
@@ -1233,4 +1261,5 @@
|
||||
bottom: 100rpx;
|
||||
left:450rpx;
|
||||
background-color: royalblue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user