|
@@ -94,17 +94,22 @@ export default {
|
|
|
},
|
|
|
// 安卓返回按钮
|
|
|
hideAndroidNav() {
|
|
|
- // // 判断是否是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() // 安卓隐藏返回按钮
|
|
|
- // }
|
|
|
-
|
|
|
- !!window?.native?.goneBack && window.native.goneBack()
|
|
|
+ try {
|
|
|
+ // // 判断是否是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() // 安卓隐藏返回按钮
|
|
|
+ // }
|
|
|
+
|
|
|
+ !!window?.native?.goneBack && window.native.goneBack()
|
|
|
+ this.$toast('安卓隐藏返回按钮')
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error)
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
};
|