fix: bug修复

This commit is contained in:
ilhamtahir committed 2025-04-28 11:09:21 +08:00
1 parent 1dfddbf1da
commit 22f6bd7ff5
7 files changed
+53 -48

No files matched your search

+1 -5
View File
@@ -58,11 +58,7 @@ function reset() {
function handleReady() {
reset()
titleName.value = '喂养问卷'
controlFormDisplay.value.display2 = true
setTimeout(() => {
reset()
controlFormDisplay.value.display3 = true
}, 2000)
controlFormDisplay.value.display3 = true
}
function handleBackFeedStart() {
reset()
+14 -5
View File
@@ -9,12 +9,18 @@ import ToolApi from '@/utils'
const safeHeight = ToolApi.getSafeHeight()
const feedSloganBottom = ref<number>(13)
function handleNext() {
uni.navigateTo({ url: '/pages/feed-questionnaire/index' })
}
const feedingPlanStore = useFeedingPlanStore()
function handleNext() {
if (!feedingPlanStore.pet.varietyName) {
uni.showToast({
title: '请选择品种',
icon: 'error',
})
return
}
uni.navigateTo({ url: '/pages/feed-questionnaire/index' })
}
const disabled = computed(() => {
return feedingPlanStore.pet.type === PetType.DOG
})
@@ -35,9 +41,12 @@ const disabled = computed(() => {
</Cell>
</CellGroup>
<CellGroup class="w-full bg-[#fff] shadow-cell-group rounded-3 overflow-hidden">
<Cell title="品种" border>
<Cell title="类别" border>
<PickerItem v-model="feedingPlanStore.pet.type" :options="feedingPlanStore.petTypeOptions" />
</Cell>
<Cell title="品种" border>
<PickerItem v-model="feedingPlanStore.pet.varietyName" :options="feedingPlanStore.petVarietiesOptions" />
</Cell>
<Cell title="性别" border>
<PickerItem v-model="feedingPlanStore.pet.gender" :options="feedingPlanStore.genderOptions" />
</Cell>