fix: 增加返回按钮
This commit is contained in:
parent
967361aa8c
commit
96a1710675
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="ysf">
|
<div id="ysf">
|
||||||
<!-- <img @click="backGoodsFn" v-if="!isMini" class="backIcon"
|
<img @click="backGoodsFn" v-if="!isMini" class="backIcon"
|
||||||
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="">
|
||||||
<div class="prompt" :class="promptShow?'proactive':''">
|
<div class="prompt" :class="promptShow?'proactive':''">
|
||||||
{{prompt_text}}
|
{{prompt_text}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -148,10 +148,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
window.addEventListener('popstate', function (event) {
|
|
||||||
history.go(-2); // 监听返回按钮 直接关闭按钮
|
|
||||||
});
|
|
||||||
|
|
||||||
document.title = localStorage.getItem('title');
|
document.title = localStorage.getItem('title');
|
||||||
/* 判断是否是微信小程序内 */
|
/* 判断是否是微信小程序内 */
|
||||||
let ua = window.navigator.userAgent.toLowerCase();
|
let ua = window.navigator.userAgent.toLowerCase();
|
||||||
|
|
Loading…
Reference in New Issue