This commit is contained in:
tcubic 2022-08-05 23:19:03 +08:00
parent e391123b4e
commit 2561a377bd

View File

@ -262,8 +262,13 @@ const activityList = reactive([
}, },
]); ]);
// const hasServicePrize = ref(false)
// //
onBeforeMount(() => { onBeforeMount(() => {
// //
let arr = store.state.userAccount.prizeList; let arr = store.state.userAccount.prizeList;
arr.forEach((element) => { arr.forEach((element) => {
@ -276,6 +281,7 @@ onBeforeMount(() => {
// //
if (element.type == 2) { if (element.type == 2) {
isGetedServiceLucky.value = true; isGetedServiceLucky.value = true;
} }
}); });
}); });
@ -359,10 +365,7 @@ onMounted(() => {
addPoint(); addPoint();
// ,,, // ,,,
if (store.state.userAccount.isAddCustomerBefore == 0 && !isGetedServiceLucky.value) {
//
if (store.state.userAccount.isAddCustomerBefore == 0) {
if ( if (
store.state.userAccount.isAddCustomer == 1 && store.state.userAccount.isAddCustomer == 1 &&
!isGetedServiceLucky.value !isGetedServiceLucky.value
@ -406,8 +409,8 @@ const activityBtn = (item) => {
if (item.id == 1) { if (item.id == 1) {
if(store.state.userAccount.isAddCustomerBefore == 1){ if(store.state.userAccount.isAddCustomerBefore == 1 || !isGetedServiceLucky.value){
Toast("您已添加过专属服务人员,请参与其他活动") Toast("您已添加过专属服务人员,请参与下方其他活动")
}else{ }else{
showServicePop.value = true; showServicePop.value = true;
} }