fix:修复立即购买跳空页面问题

feature/comment-0624-ch
ch 2 years ago
parent 91812512bc
commit 11878e566f

@ -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(){

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-24 14:39:38 * @Date: 2022-06-24 14:39:38
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-29 11:58:11 * @LastEditTime: 2022-06-29 14:20:54
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -140,7 +140,7 @@ export default {
if(error){ if(error){
return false; return false;
} }
this.productRate = result.productSatisfaction; this.productRate = Number(result.productSatisfaction);
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.pageIndex = val; this.pageIndex = val;

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-25 07:24:32 * @Date: 2022-06-25 07:24:32
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-25 12:02:54 * @LastEditTime: 2022-06-29 14:19:36
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -17,7 +17,7 @@
</div> </div>
</template> </template>
<script> <script>
import UiButton from '../../../../components/UiButton.vue' import UiButton from '@/components/UiButton.vue'
export default { export default {
components: { UiButton }, components: { UiButton },
props:{ props:{
@ -27,6 +27,7 @@ export default {
} }
}, },
data(){ data(){
return {}
}, },
methods:{ methods:{
handleJump(val){ handleJump(val){

Loading…
Cancel
Save