完成我的奖品页逻辑

This commit is contained in:
tcubic
2022-08-03 21:44:50 +08:00
parent 4c0b6775f9
commit fd0f93cf80
6 changed files with 482 additions and 250 deletions

View File

@@ -13,12 +13,13 @@ export default createStore({
nkh: h5plugin.getQueryString('nkh'), //牛卡号
isDraw: false, //是否抽过奖
isHasAccount: false, //是否存在牛卡号
isAddCustomer: false, //是否添加过服务人员
isAddCustomer: 0, //是否添加过服务人员
isHasPrize: [], //是否存在奖品
participantNum: 0, //活动参与人数
prizeResult: 0, //中奖金额
eqcodeImg: '', //二维码
isBirthMon: 1, //生日是否处于当月
prizeList: [] //奖品列表
},
},
@@ -29,7 +30,7 @@ export default createStore({
mutations: {
// 更新信广龙openid
updateXGLOpenid(state, val) {
state.userAccount.xglOpenid = val.openid
state.userAccount.xglOpenId = val.openid
},
// 更新token
@@ -56,6 +57,15 @@ export default createStore({
updateBirthMoon(state,val){
state.userAccount.isBirthMon = val.isBirthMon
},
updateIsAddCustomer(state,val){
state.userAccount.isAddCustomer = val.isAddCustomer
},
// 更新奖品
updatePrizeList(state,val){
state.userAccount.prizeList = val.prizeList
}
},
// 改变方法:异步