fix: 增加返回按钮

This commit is contained in:
zhangds 2024-05-08 10:17:56 +08:00
parent 967361aa8c
commit 96a1710675
1 changed files with 2 additions and 6 deletions

View File

@ -18,8 +18,8 @@
<body>
<div id="ysf">
<!-- <img @click="backGoodsFn" v-if="!isMini" class="backIcon"
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt=""> -->
<img @click="backGoodsFn" v-if="!isMini" class="backIcon"
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/img/backprepageBtn.png" alt="">
<div class="prompt" :class="promptShow?'proactive':''">
{{prompt_text}}
</div>
@ -148,10 +148,6 @@
}
},
mounted() {
window.addEventListener('popstate', function (event) {
history.go(-2); // 监听返回按钮 直接关闭按钮
});
document.title = localStorage.getItem('title');
/* 判断是否是微信小程序内 */
let ua = window.navigator.userAgent.toLowerCase();