diff --git a/goods-v2/ysf-reduce.html b/goods-v2/ysf-reduce.html
index 7e3be45..ec7fed1 100644
--- a/goods-v2/ysf-reduce.html
+++ b/goods-v2/ysf-reduce.html
@@ -18,7 +18,7 @@
-
{{prompt_text}}
@@ -148,6 +148,10 @@
}
},
mounted() {
+ window.addEventListener('popstate', function (event) {
+ history.go(-2); // 监听返回按钮 直接关闭按钮
+ });
+
document.title = localStorage.getItem('title');
/* 判断是否是微信小程序内 */
let ua = window.navigator.userAgent.toLowerCase();
@@ -248,13 +252,7 @@
backGoodsFn() {
/* 判断是否web-view打开 则不返回 */
if (this.isMini) return;
- if (this.backAble) {
- setTimeout(() => {
- window.location.replace('./homepage.html');
- }, 300);
- } else {
- history.go(-2);
- }
+ history.go(-2);
},
/* 触发提示 */