|
@@ -264,15 +264,23 @@ export default {
|
|
},
|
|
},
|
|
micromessengerInit() {
|
|
micromessengerInit() {
|
|
this.isInit = false;
|
|
this.isInit = false;
|
|
|
|
+ let path = '';
|
|
let [groupId, mallId] = window.location.pathname
|
|
let [groupId, mallId] = window.location.pathname
|
|
.split('/')
|
|
.split('/')
|
|
.filter((elm) => elm);
|
|
.filter((elm) => elm);
|
|
console.log(265, groupId, mallId);
|
|
console.log(265, groupId, mallId);
|
|
// return;
|
|
// return;
|
|
|
|
+ // 如果groupId 是 tparking
|
|
|
|
+ if (groupId === 'tparking') {
|
|
|
|
+ [path, groupId, mallId] = window.location.pathname
|
|
|
|
+ .split('/')
|
|
|
|
+ .filter((elm) => elm);
|
|
|
|
+ }
|
|
if (!groupId || !mallId) {
|
|
if (!groupId || !mallId) {
|
|
groupId = uni.getStorageSync('groupId');
|
|
groupId = uni.getStorageSync('groupId');
|
|
mallId = uni.getStorageSync('mallId');
|
|
mallId = uni.getStorageSync('mallId');
|
|
}
|
|
}
|
|
|
|
+
|
|
this.$store.commit('SET_GROUP_ID', groupId);
|
|
this.$store.commit('SET_GROUP_ID', groupId);
|
|
this.$store.commit('SET_MALL_ID', mallId);
|
|
this.$store.commit('SET_MALL_ID', mallId);
|
|
// 设置appid
|
|
// 设置appid
|