新增活动前是否添加企微状态

This commit is contained in:
tcubic
2022-08-05 22:56:49 +08:00
parent f45b6731c2
commit e391123b4e
3 changed files with 62 additions and 34 deletions

View File

@@ -13,7 +13,8 @@ export default createStore({
nkh: '', //牛卡号
isDraw: false, //是否抽过奖
isHasAccount: false, //是否存在牛卡号
isAddCustomer: 0, //是否添加过服务人员
isAddCustomer: 0, //活动期间内是否添加过服务人员
isAddCustomerBefore:0, //活动前是否存在服务人员
isHasPrize: [], //是否存在奖品
participantNum: 0, //活动参与人数
prizeResult: 0, //中奖金额
@@ -43,27 +44,37 @@ export default createStore({
state.userAccount.nkh = val.nkh
},
// 更新cardId
updateCardId(state,val){
state.userAccount.cardId = val.cardId
},
// 更新二维码
updateeEqcodeImg(state,val){
state.userAccount.eqcodeImg = val.eqcodeImg
},
// 更新活动参与人数
updateParticipantNum(state,val){
state.userAccount.participantNum = val.participantNum
},
// 更新生日是否处于当月状态
updateBirthMoon(state,val){
state.userAccount.isBirthMon = val.isBirthMon
},
// 更新活动期间内是否添加过企微状态
updateIsAddCustomer(state,val){
state.userAccount.isAddCustomer = val.isAddCustomer
},
// 更新奖品
// 更新活动前是否存在企微状态
updateisAddCustomerBefore(state,val){
state.userAccount.isAddCustomerBefore = val.isAddCustomerBefore
},
// 更新奖品列表
updatePrizeList(state,val){
state.userAccount.prizeList = val.prizeList
}