state.js 443 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 20
  subscribeMessageObj: {},
  offlineShopCode:"",
程智春 committed
21 22
  isLogin,
  userInfo,
程智春 committed
23 24

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