授权整合

This commit is contained in:
tcubic
2022-08-02 18:21:13 +08:00
parent a436e20577
commit 207c1f4d94
4 changed files with 36 additions and 21 deletions

View File

@@ -1,20 +1,22 @@
import { createStore } from 'vuex';
import h5plugin from "@/utils/plugin.js"
export default createStore({
// 数据源
state: {
userAccount: {
xglOpenid: 'openid12138', //用户openid
token: '13f88993882b4dc0832351566c11a1eb', //用户token
cardId: '94207', //carid
nkh: '', //牛卡号
xglOpenid: '', //用户openid
token: h5plugin.getQueryString('token'), //用户token
cardId: h5plugin.getQueryString('cardId'), //carid
nkh: h5plugin.getQueryString('nkh'), //牛卡号
isDraw: false, //是否抽过奖
isHasAccount: false, //是否存在牛卡号
isAddCustomer: false, //是否添加过服务人员
isHasPrize: [], //是否存在奖品
participantNum: 1213821, //活动参与人数
prizeResult: 73.11, //中奖金额
participantNum: 0, //活动参与人数
prizeResult: 0, //中奖金额
eqcodeImg: '' //二维码
},