|
@@ -194,15 +194,6 @@ const store = new Vuex.Store({
|
|
actions: {
|
|
actions: {
|
|
async baseInit({ commit, dispatch }, { options, callback }) {
|
|
async baseInit({ commit, dispatch }, { options, callback }) {
|
|
try {
|
|
try {
|
|
- // console.log(
|
|
|
|
- // 'Encrypt',
|
|
|
|
- // Encrypt(
|
|
|
|
- // // '8a8480487c96d58f017c9b7bab7d0020_8a84811682cf02420182ed5fb8c4000d_8a8485067ce4da2d017ce555e9b20000_ozdsB4yx3I7ez2Ba3DgEmeSR-CFY_15267617473'
|
|
|
|
- // '8aaa81947c6e1ca0017c7201e82d0001#8aaa80cc7d4fc7b3017d55c4d6120000#8aaa80b47c784020017c78b00d060022#ozdsB4yx3I7ez2Ba3DgEmeSR-CFY#13601829387'
|
|
|
|
- // )
|
|
|
|
- // );
|
|
|
|
- // console.log('128128128128', options);
|
|
|
|
- // if (!pageId) return;
|
|
|
|
let {
|
|
let {
|
|
groupId = '',
|
|
groupId = '',
|
|
mallId = '',
|
|
mallId = '',
|
|
@@ -226,15 +217,6 @@ const store = new Vuex.Store({
|
|
unionId = ''
|
|
unionId = ''
|
|
} = options;
|
|
} = options;
|
|
console.log({ lbsId });
|
|
console.log({ lbsId });
|
|
-
|
|
|
|
- /* {
|
|
|
|
- buildingId: mallId,
|
|
|
|
- projectId: groupId,
|
|
|
|
- openId: openid,
|
|
|
|
- }
|
|
|
|
- * */
|
|
|
|
- // const resp = await parkingLots();
|
|
|
|
- // console.log(171171, resp);
|
|
|
|
commit('SET_SOURCE', source);
|
|
commit('SET_SOURCE', source);
|
|
commit('SET_APPID', appId);
|
|
commit('SET_APPID', appId);
|
|
|
|
|
|
@@ -245,7 +227,6 @@ const store = new Vuex.Store({
|
|
const groupIdAndMallId = getGroupIdAndMallIdByLsbId(lbsId);
|
|
const groupIdAndMallId = getGroupIdAndMallIdByLsbId(lbsId);
|
|
groupId = groupIdAndMallId.groupId;
|
|
groupId = groupIdAndMallId.groupId;
|
|
mallId = groupIdAndMallId.mallId;
|
|
mallId = groupIdAndMallId.mallId;
|
|
- // console.log('lbsId', groupIdAndMallId)
|
|
|
|
commit('SET_LBS_ID', mallId);
|
|
commit('SET_LBS_ID', mallId);
|
|
} else {
|
|
} else {
|
|
commit('SET_LBS_ID', lbsId);
|
|
commit('SET_LBS_ID', lbsId);
|
|
@@ -263,22 +244,10 @@ const store = new Vuex.Store({
|
|
commit('SET_GROUP_ID', groupId);
|
|
commit('SET_GROUP_ID', groupId);
|
|
commit('SET_MALL_ID', mallId);
|
|
commit('SET_MALL_ID', mallId);
|
|
commit('SET_BRAND_ID', brandId);
|
|
commit('SET_BRAND_ID', brandId);
|
|
- // console.log('用户扫码进入的', unlicensedInfo, unlicensedInfo?.type);
|
|
|
|
// 如果是无牌车
|
|
// 如果是无牌车
|
|
if (unlicensedInfo?.type) {
|
|
if (unlicensedInfo?.type) {
|
|
- // console.log('用户扫码进入的', unlicensedInfo);
|
|
|
|
commit('SET_UNLICENSED_INFO', unlicensedInfo)
|
|
commit('SET_UNLICENSED_INFO', unlicensedInfo)
|
|
- // commit('SET_ENDLESS_LOOP', true)
|
|
|
|
}
|
|
}
|
|
- /*if (/dev-|8080|qa-/.test(href)) {
|
|
|
|
- commit('SET_GROUP_ID', groupId);
|
|
|
|
- commit('SET_MALL_ID', mallId);
|
|
|
|
- } else {
|
|
|
|
- commit('SET_GROUP_ID', '8a8884e77cc9e70a017cca1c77e80004');
|
|
|
|
- groupId = '8a8884e77cc9e70a017cca1c77e80004';
|
|
|
|
- mallId = '8a888aed7d0295e5017d029ff1f40000';
|
|
|
|
- commit('SET_MALL_ID', '8a888aed7d0295e5017d029ff1f40000');
|
|
|
|
- }*/
|
|
|
|
commit('SET_OPENID', openid || uni.getStorageSync('openid'));
|
|
commit('SET_OPENID', openid || uni.getStorageSync('openid'));
|
|
if (isLogin) {
|
|
if (isLogin) {
|
|
if(!kipUserId) {
|
|
if(!kipUserId) {
|
|
@@ -390,9 +359,7 @@ const store = new Vuex.Store({
|
|
async getUserDetail({ commit }) {
|
|
async getUserDetail({ commit }) {
|
|
try {
|
|
try {
|
|
const res = await kipGetUserDetail();
|
|
const res = await kipGetUserDetail();
|
|
- // console.log(296, res);
|
|
|
|
commit('SET_USER_INFO', res.data);
|
|
commit('SET_USER_INFO', res.data);
|
|
- // console.log('user_info', res);
|
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
console.log(err, err);
|
|
console.log(err, err);
|
|
}
|
|
}
|