Commit c73f2094 authored by 王炽's avatar 王炽

66666

parent a89884c1
......@@ -598,7 +598,7 @@
:bgIndex="itemIndex"
v-if="showShengriliTipPanel"
@close="showShengriliTipPanel = false"
@add="navigateTo('/pages/person/person?type=add')"
@add="gotoAddBaby"
/>
</view>
......@@ -1583,6 +1583,21 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
}
})
//babyStage 宝宝阶段 0备用 1孕中 2出生 ,null无数据
const gotoAddBaby = () => {
if(userStore.babyInfo?.allBabyBaseInfo?.length == 3){
//判断状态并切换
if (userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage === 2)) {
navigateTo("/pages/person/person?type=add");
}else{
}
}else{
navigateTo("/pages/person/person?type=add");
}
}
//isshowShouqi 为true 时,展示收起按详情,为false 时,展示查看详情
const handleZhankaiClick = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment