|
@@ -94,15 +94,17 @@ export default {
|
|
|
},
|
|
|
// 安卓返回按钮
|
|
|
hideAndroidNav() {
|
|
|
- // 判断是否是App, 活动页app不显示头部,直接使用H5头部
|
|
|
- this.isApp = this.$userAgent.isSzx || this.$userAgent.isSzxBrowser
|
|
|
- this.isAndroid = this.$userAgent.isAndroid;
|
|
|
- this.isIos = this.$userAgent.isIos;
|
|
|
+ // // 判断是否是App, 活动页app不显示头部,直接使用H5头部
|
|
|
+ // this.isApp = this.$userAgent.isSzx || this.$userAgent.isSzxBrowser
|
|
|
+ // this.isAndroid = this.$userAgent.isAndroid;
|
|
|
+ // this.isIos = this.$userAgent.isIos;
|
|
|
|
|
|
- // 安卓隐藏返回按钮
|
|
|
- if (this.isApp && this.isAndroid && !!window.native.goneBack) {
|
|
|
- window.native.goneBack() // 安卓隐藏返回按钮
|
|
|
- }
|
|
|
+ // // 安卓隐藏返回按钮
|
|
|
+ // if (this.isApp && this.isAndroid && !!window.native.goneBack) {
|
|
|
+ // window.native.goneBack() // 安卓隐藏返回按钮
|
|
|
+ // }
|
|
|
+
|
|
|
+ !!window?.native?.goneBack && window.native.goneBack()
|
|
|
}
|
|
|
},
|
|
|
};
|