|
@@ -95,17 +95,16 @@ export default {
|
|
|
// 安卓返回按钮
|
|
|
hideAndroidNav() {
|
|
|
try {
|
|
|
- // // 判断是否是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()
|
|
|
this.$toast('安卓隐藏返回按钮')
|
|
|
} catch (error) {
|
|
|
console.log(error)
|