consumer模块完成度95%,准备部署消费者端测试

This commit is contained in:
cyh666666
2026-03-05 08:45:00 +08:00
parent cceb556c62
commit 7f7f723d93
1043 changed files with 53958 additions and 3445 deletions

View File

@@ -351,7 +351,8 @@ const onWeightInput = (e: UniInputEvent): void => {
}
const showGenderPickerNow = (): void => {
const idx = genderOptions.indexOf(profile.value.gender)
const genderValue = profile.value.gender
const idx = genderValue != null ? genderOptions.indexOf(genderValue) : -1
tempGenderIndex.value = [idx >= 0 ? idx : 0]
showGenderPicker.value = true
}
@@ -401,10 +402,17 @@ onMounted(() => {
display: flex;
flex-direction: column;
background-color: #f8f9fa;
flex: 1;
/* 使用 100% 替代 100vh 以增强安卓兼容性 */
height: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.top-section {
flex-shrink: 0;
height: 100rpx;
position: relative;
background-color: #f8f9fa;
@@ -412,14 +420,15 @@ onMounted(() => {
.main-section {
flex: 1;
overflow: hidden;
/* 显式声明高度为 0 是 flex 容器内 scroll-view 生效的关键 */
height: 0;
}
.profile-container {
width: 100%;
height: 100%;
padding: 20rpx;
background-color: #f8f9fa;
display: flex;
flex-direction: column;
box-sizing: border-box;
}