接口初始调通

This commit is contained in:
tcubic
2022-08-02 16:57:47 +08:00
parent d419800cdc
commit 6cc6503270
5 changed files with 119 additions and 45 deletions

View File

@@ -6,8 +6,8 @@ export default createStore({
state: {
userAccount: {
xglOpenid: 'openid12138', //用户openid
token: 'token12138', //用户token
cardId: '', //carid
token: '13f88993882b4dc0832351566c11a1eb', //用户token
cardId: '94207', //carid
nkh: '', //牛卡号
isDraw: false, //是否抽过奖
isHasAccount: false, //是否存在牛卡号
@@ -15,6 +15,7 @@ export default createStore({
isHasPrize: [], //是否存在奖品
participantNum: 1213821, //活动参与人数
prizeResult: 73.11, //中奖金额
eqcodeImg: '' //二维码
},
},
@@ -40,6 +41,14 @@ export default createStore({
updateNkh(state,val){
state.userAccount.nkh = val.nkh
},
updateeEqcodeImg(state,val){
state.userAccount.eqcodeImg = val.eqcodeImg
},
updateParticipantNum(state,val){
state.userAccount.participantNum = val.participantNum
},
},
// 改变方法:异步