|
@@ -356,7 +356,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
this.$http.get('/sysConfig/get/domain_switch').then(res => {
|
|
this.$http.get('/sysConfig/get/domain_switch').then(res => {
|
|
|
- this.domainSwitch = Number(res.value)
|
|
|
|
|
|
|
+ this.domainSwitch = Number(res.value);
|
|
|
});
|
|
});
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$el.parentNode.childNodes[1].className = this.$el.parentNode.childNodes[1].className.replace(
|
|
this.$el.parentNode.childNodes[1].className = this.$el.parentNode.childNodes[1].className.replace(
|
|
@@ -366,12 +366,11 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- domain(){
|
|
|
|
|
- if(this.domainSwitch){
|
|
|
|
|
- this.$router.push('/domainname')
|
|
|
|
|
- }else{
|
|
|
|
|
|
|
+ domain() {
|
|
|
|
|
+ if (this.domainSwitch) {
|
|
|
|
|
+ this.$router.push('/domainname');
|
|
|
|
|
+ } else {
|
|
|
this.$toast('升级改版中');
|
|
this.$toast('升级改版中');
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
goCheck() {
|
|
goCheck() {
|
|
@@ -465,13 +464,7 @@ export default {
|
|
|
// message: '加载中...',
|
|
// message: '加载中...',
|
|
|
// forbidClick: true
|
|
// forbidClick: true
|
|
|
// });
|
|
// });
|
|
|
- return Promise.all([
|
|
|
|
|
- this.getBanner(),
|
|
|
|
|
- this.getProduct(),
|
|
|
|
|
- this.getActivity(),
|
|
|
|
|
- this.getHot(),
|
|
|
|
|
- this.getTop()
|
|
|
|
|
- ]).then(() => {
|
|
|
|
|
|
|
+ return Promise.all([this.getBanner(), this.getProduct(), this.getActivity(), this.getTop()]).then(() => {
|
|
|
this.$toast.clear();
|
|
this.$toast.clear();
|
|
|
return Promise.resolve();
|
|
return Promise.resolve();
|
|
|
});
|
|
});
|