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