fix:修改刷新报错

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

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

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

Loading…
Cancel
Save