globalData.js
610 Bytes
import {
USERINFO,
SYSTEMINFO,
WXUNIONID,
UNIONINFO
} from '../constants/globalData';
export default {
setUserInfo(userInfo) {
console.log(userInfo)
return {
userInfo,
type: USERINFO
}
},
setSystemInfo(systemInfo) {
return {
systemInfo,
type: SYSTEMINFO
}
},
setWxUnionId(wxUnionId) {
return {
wxUnionId,
type: WXUNIONID
}
},
setUnionInfo(unionInfo) {
return {
unionInfo,
type: UNIONINFO
}
}
}