Commit 1862a197 authored by 王炽's avatar 王炽

666666

parent 6d237ea0
......@@ -143,7 +143,8 @@ const handleCouponClick = () => {
// 去升级按钮点击
const handleUpgrade = async () => {
emit('upgrade', {
index: status1.value
index: status1.value,
userStore:useUserStore()
})
}
......
......@@ -2386,6 +2386,8 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
const handleGoToShop_shengrili = async (data) => {
console.log('生日礼', data.index);
// debugger;
const userStore = data.userStore;
if(!(userStore.babyInfo?.allBabyBaseInfo && userStore.babyInfo?.allBabyBaseInfo.length > 0) && islogin.value){
//没有宝宝,跳转到添加宝宝页面
if(itemIndex.value < 2){
......@@ -2394,6 +2396,17 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
showShengriliTipPanel.value = true;
}
return;
}else{
if(userStore.babyInfo?.allBabyBaseInfo?.some(baby => baby.babyStage == 2)){
}else{
if(itemIndex.value < 2){
gotoGonglue();
}else{
showShengriliTipPanel.value = true;
}
return;
}
}
switch(data.index){
......
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