|
|
|
@ -280,7 +280,7 @@ export default {
|
|
|
|
|
vm.detailData = res1.result;
|
|
|
|
|
vm.skuData = res2.result;
|
|
|
|
|
|
|
|
|
|
vm.recommendedData = res3.result.records;
|
|
|
|
|
vm.recommendedData = res3.result ? res3.result.records : [];
|
|
|
|
|
vm.pageLoading = false;
|
|
|
|
|
if (
|
|
|
|
|
vm.detailData.productActivityVO.isActivity &&
|
|
|
|
@ -345,15 +345,11 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
window.addEventListener("scroll", ()=>{
|
|
|
|
|
this.setHeaderBar()
|
|
|
|
|
});
|
|
|
|
|
window.addEventListener("scroll", this.setHeaderBar);
|
|
|
|
|
this.setHeaderBar()
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
window.removeEventListener("scroll", ()=>{
|
|
|
|
|
this.setHeaderBar()
|
|
|
|
|
});
|
|
|
|
|
window.removeEventListener("scroll", this.setHeaderBar);
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
setHeaderBar(){
|
|
|
|
|