🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-02-04 16:16:12 +08:00
parent 466cf5326c
commit bb867c41d0
2 changed files with 4 additions and 5 deletions

View File

@ -347,12 +347,12 @@
const clr = setTimeout(() => { const clr = setTimeout(() => {
if (this.goodInfo.product_type === 2) { if (this.goodInfo.product_type === 2) {
if (!this.backAble && this.goodsDetail.restrict == 1) { if (!this.backAble && this.goodsDetail.restrict == 1) {
window.location.replace('/orderDetails/cardOrder.html'); window.location.replace('./orderDetails/cardOrder.html');
} else { } else {
window.location.href = '/orderDetails/cardOrder.html'; window.location.href = './orderDetails/cardOrder.html';
} }
} else { } else {
window.location.href = '/orderDetails/chargerOrder.html'; window.location.href = './orderDetails/chargerOrder.html';
} }
clearTimeout(clr); clearTimeout(clr);
}, 1000); }, 1000);

View File

@ -14,7 +14,7 @@
<body> <body>
<div id="app"> <div id="app">
<img class="back" @click="backHandler" v-if="!backShow" <img class="back" @click="backHandler"
src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="" /> src=" https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="" />
<img :src="dynamicBanner" alt="" class="banner"> <img :src="dynamicBanner" alt="" class="banner">
@ -72,7 +72,6 @@
const toast = ref(false); const toast = ref(false);
const clr = ref(null); const clr = ref(null);
const goodsCount = ref(0); const goodsCount = ref(0);
const backShow = ref(sessionStorage.getItem('backShow'));
onMounted(() => { onMounted(() => {
goodsCount.value = Number(sessionStorage.getItem('goodsCount')) || 0; goodsCount.value = Number(sessionStorage.getItem('goodsCount')) || 0;