state.js 461 Bytes
Newer Older
程智春 committed
1 2 3 4 5 6 7 8 9 10 11 12 13
let isLogin = 0;
let userInfo = null;

if(wx.getStorageSync('isLogin')){
    isLogin = wx.getStorageSync('isLogin')
}

if(wx.getStorageSync('userInfo')){
    userInfo = JSON.parse(wx.getStorageSync('userInfo'))
}



chenhui committed
14 15 16 17
const state = {
  spokesmanGroupId: "",
  spokesmanShopId: "",
  spokesmanRelId: "",
程智春 committed
18
  userId : "",
19
  subscribeMessageObj: {},
程智春 committed
20 21
  isLogin,
  userInfo,
22
  shopUserInfo: {},
李嘉林 committed
23
  spokemanInfo: {},
程智春 committed
24 25

  mixid : '',
程智春 committed
26
  extConfig : {}
chenhui committed
27
};
程默 committed
28
export default state