fix:修改刷新报错

merge-requests/84/head
张征 2 years ago
parent f0c23a102f
commit 0c81f5afd5

@ -8,7 +8,7 @@
{{ item.name }} {{ item.name }}
</div> </div>
<div class="goods-item__price"> <div class="goods-item__price">
<UiMoney :money="item.startingPrice"></UiMoney> <strong class="goods-item__price--txt">{{ item.startingPrice }}</strong>
</div> </div>
</div> </div>
</template> </template>
@ -44,7 +44,7 @@ export default {
// this.$router.push({ // this.$router.push({
// path: "/goods/detail/" + this.item.id, // path: "/goods/detail/" + this.item.id,
// }); // });
window.open("/goods/detail/" + this.item.id) window.open("/goods/detail/" + this.item.id);
}, },
}, },
}; };
@ -56,7 +56,7 @@ export default {
cursor: pointer; cursor: pointer;
background: #ffffff; background: #ffffff;
&:hover{ &:hover {
box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.10000000149011612); box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.10000000149011612);
} }
@ -93,6 +93,15 @@ export default {
&__price { &__price {
width: 200px; width: 200px;
margin: 0 auto; margin: 0 auto;
&--txt {
font-size: 14px;
color: #ff512b;
&::before {
content: "¥";
font-size: 14px;
}
}
} }
} }
</style> </style>

@ -104,13 +104,11 @@
<div class="main__details-msg"> <div class="main__details-msg">
<div class="main__details-msg--price flex flex-middle"> <div class="main__details-msg--price flex flex-middle">
<span class="msg-txt">售价</span> <span class="msg-txt">售价</span>
<UiMoney <strong class="msg-price">{{
:money=" detailData.productActivityVO.isStartActivity
detailData.productActivityVO.isStartActivity ? detailData.productActivityVO.activityPrice
? detailData.productActivityVO.activityPrice : detailData.startingPrice
: detailData.startingPrice }}</strong>
"
></UiMoney>
<div <div
v-if=" v-if="
detailData.productActivityVO.isActivity && detailData.productActivityVO.isActivity &&
@ -375,7 +373,9 @@ export default {
vm.surplus = vm.getSurplus(vm.startTime, vm.endTime); vm.surplus = vm.getSurplus(vm.startTime, vm.endTime);
if (vm.surplus.lefttime <= 0) { if (vm.surplus.lefttime <= 0) {
clearInterval(vm.timer); clearInterval(vm.timer);
location.reload(); if (location) {
location?.reload();
}
} }
}, 1000); }, 1000);
}, },
@ -531,7 +531,7 @@ export default {
return false; return false;
} }
this.$message.success("加入购物车成功~"); this.$message.success("加入购物车成功~");
this.$store.dispatch('getCartProducts'); this.$store.dispatch("getCartProducts");
// this.$Router.push('/cart'); // this.$Router.push('/cart');
}, },
}, },
@ -669,6 +669,15 @@ export default {
margin-right: 20px; margin-right: 20px;
} }
.msg-price {
font-size: 22px;
color: #ff512b;
&::before {
content: "¥";
font-size: 14px;
}
}
.msg-service { .msg-service {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-family: Microsoft YaHei-Regular, Microsoft YaHei;

Loading…
Cancel
Save