|
@@ -149,21 +149,21 @@ const store = new Vuex.Store({
|
|
|
const res = await kipGetUserDetail();
|
|
|
console.log('user_info', res);
|
|
|
},
|
|
|
- async initH5({commit}) {
|
|
|
- if(uni.getStorageSync('groupId')) {
|
|
|
+ async initH5({ commit }) {
|
|
|
+ if (uni.getStorageSync('groupId')) {
|
|
|
this.$store.
|
|
|
- this.$store.commit('SET_GROUP_ID', uni.getStorageSync('groupId'));
|
|
|
+ this.$store.commit('SET_GROUP_ID', uni.getStorageSync('groupId'));
|
|
|
}
|
|
|
- if(uni.getStorageSync('kipUserId')) {
|
|
|
+ if (uni.getStorageSync('kipUserId')) {
|
|
|
this.$store.commit('SET_KIP_USER_ID', uni.getStorageSync('kipUserId'));
|
|
|
}
|
|
|
- if(uni.getStorageSync('mallId')) {
|
|
|
+ if (uni.getStorageSync('mallId')) {
|
|
|
this.$store.commit('SET_MALL_ID', uni.getStorageSync('mallId'));
|
|
|
}
|
|
|
- if(uni.getStorageSync('openid')) {
|
|
|
+ if (uni.getStorageSync('openid')) {
|
|
|
this.$store.commit('SET_OPENID', uni.getStorageSync('openid'));
|
|
|
}
|
|
|
- if(uni.getStorageSync('mobile')) {
|
|
|
+ if (uni.getStorageSync('mobile')) {
|
|
|
this.$store.commit('SET_OPENID', uni.getStorageSync('mobile'));
|
|
|
}
|
|
|
}
|