|
@@ -54,6 +54,7 @@
|
|
import appNavBar from '@/components/page-component/index/app-nav-bar.vue';
|
|
import appNavBar from '@/components/page-component/index/app-nav-bar.vue';
|
|
// #ifdef H5
|
|
// #ifdef H5
|
|
import Vue from "vue";
|
|
import Vue from "vue";
|
|
|
|
+ import {mapState} from 'vuex'
|
|
// #endif
|
|
// #endif
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
@@ -108,6 +109,19 @@
|
|
// #endif
|
|
// #endif
|
|
this.pageHide = true;
|
|
this.pageHide = true;
|
|
},
|
|
},
|
|
|
|
+ computed:{
|
|
|
|
+ ...mapState({
|
|
|
|
+ selectedProperties:state=>state.user.selectedProperties
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ watch:{
|
|
|
|
+ selectedProperties(){
|
|
|
|
+ this.loadMall()
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ this.loadMall();
|
|
|
|
+ },
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.$commonLoad.onload(options);
|
|
this.$commonLoad.onload(options);
|
|
this.$store.dispatch('user/isEnterSales',false);
|
|
this.$store.dispatch('user/isEnterSales',false);
|
|
@@ -197,7 +211,7 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- this.$storage.setStorageSync('INDEX_MALL', data);
|
|
|
|
|
|
+ // this.$storage.setStorageSync('INDEX_MALL', data);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async loadDiy() {
|
|
async loadDiy() {
|
|
@@ -353,7 +367,7 @@
|
|
if (time >= 0) {
|
|
if (time >= 0) {
|
|
this.type = storage.type;
|
|
this.type = storage.type;
|
|
this.homePages = storage.home_pages;
|
|
this.homePages = storage.home_pages;
|
|
- this.loadMall();
|
|
|
|
|
|
+ // this.loadMall();
|
|
} else {
|
|
} else {
|
|
this.type = storage.type;
|
|
this.type = storage.type;
|
|
if (this.type === 'diy') {
|
|
if (this.type === 'diy') {
|
|
@@ -379,7 +393,7 @@
|
|
this.is_required = false;
|
|
this.is_required = false;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- this.loadMall();
|
|
|
|
|
|
+ // this.loadMall();
|
|
}
|
|
}
|
|
// DIY
|
|
// DIY
|
|
} else {
|
|
} else {
|