From 0b5892cfbdf7910de8fc3635d38077b64b21155b Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 14 Aug 2020 09:35:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/release/zhibo.nvue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/release/zhibo.nvue b/pages/release/zhibo.nvue index 75c1a28..4bb842a 100644 --- a/pages/release/zhibo.nvue +++ b/pages/release/zhibo.nvue @@ -419,10 +419,18 @@ },500) }, - + onBackPress(options) { + if (options.from === 'navigateBack' || !this.zhibo) { + return false; + } + this.closes(); + return true; + }, onLoad(a){ console.log(getApp().globalData.im) - + uni.setKeepScreenOn({ + keepScreenOn: true + }); this.url = a.url.replace("*","&") let that = this const token = uni.getStorageSync('token');