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