From 0c1b7031befbffa2291b9e754af3e07bd65c7571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Fri, 9 Apr 2021 17:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E9=94=81=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/appInit.js | 13 ------------- manifest.json | 5 +++-- pages/list/list.vue | 15 +-------------- 3 files changed, 4 insertions(+), 29 deletions(-) diff --git a/common/appInit.js b/common/appInit.js index fd16894..ba474e9 100644 --- a/common/appInit.js +++ b/common/appInit.js @@ -7,19 +7,6 @@ export default function (){ // 检查更新 checkUpdate(); - keepScreenOn(); -} - -/** - * 保持屏幕常亮 - */ -function keepScreenOn(){ - //#ifdef APP-PLUS - // 保持屏幕常亮 - uni.setKeepScreenOn({ - keepScreenOn: true - }); - //#endif } /** * // 初始化appVersion diff --git a/manifest.json b/manifest.json index 49decd7..04fb53a 100644 --- a/manifest.json +++ b/manifest.json @@ -4,11 +4,12 @@ "description": "", "versionName": "1.0.0", "versionCode": "100", - "transformPx": false, + "transformPx": false, "app-plus": { "usingComponents": true, "nvueCompiler": "uni-app", - "compilerVersion": 3, + "compilerVersion": 3, + "screenOrientation":["portrait-primary"], // 竖屏锁定 "safearea": { //安全区域配置,仅iOS平台生效 "background": "#FFFFFF", //安全区域外的背景颜色,默认值为"#FFFFFF" "bottom": { // 底部安全区域配置 diff --git a/pages/list/list.vue b/pages/list/list.vue index c609813..128014d 100644 --- a/pages/list/list.vue +++ b/pages/list/list.vue @@ -18,20 +18,7 @@ }; }, onShow(options) { - this.searchText = getApp().globalData.searchText; - - plus.oauth.getServices(services=>{ - console.log(services); - services.forEach(item=>{ - if(item.id=='qq'){ - item.authorize(e=>{ - console.log(e); - },e=>{ - console.log(e); - }) - } - }) - }) + this.searchText = getApp().globalData.searchText; }, /** * 下拉刷新回调函数 -- GitLab