|
@@ -60,7 +60,9 @@ const store = new Vuex.Store({
|
|
|
endlessLoop: '',
|
|
|
sourceId: '', // 微信:unionId; 支付宝:userId
|
|
|
pageHistory: {},// 记录未登录页面已经跳转过
|
|
|
- refreshPageKey: 1
|
|
|
+ refreshPageKey: 1,
|
|
|
+ version: 360, // h5版本
|
|
|
+ appVersion: 100, // 小程序版本
|
|
|
},
|
|
|
mutations: {
|
|
|
SET_GROUP_ID(state, payload) {
|
|
@@ -184,6 +186,9 @@ const store = new Vuex.Store({
|
|
|
},
|
|
|
SET_REGRESH_PAGE_KEY(state) {
|
|
|
state.refreshPageKey = state.refreshPageKey + 1;
|
|
|
+ },
|
|
|
+ set_APP_VERSION(state, payload) {
|
|
|
+ state.appVersion = payload;
|
|
|
}
|
|
|
},
|
|
|
actions: {
|
|
@@ -328,11 +333,13 @@ const store = new Vuex.Store({
|
|
|
// CRM
|
|
|
// brandInfo = {},
|
|
|
// curMarket = {}
|
|
|
- unionId = ''
|
|
|
+ unionId = '',
|
|
|
+ appVersion = 100
|
|
|
} = options;
|
|
|
// console.log({ lbsId });
|
|
|
// console.log('128128128128', options);
|
|
|
commit('SET_SOURCE', source);
|
|
|
+ commit('set_APP_VERSION', appVersion);
|
|
|
commit('SET_APPID', appId);
|
|
|
if (!/CRM|PUDONG|JINGAN|ALIPAY/.test(source)) {
|
|
|
const groupIdAndMallId = getGroupIdAndMallIdByLsbId(lbsId);
|