From fa880fe6b90ac8ca8ce4af12ba4e70c09908ecee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Wed, 7 Apr 2021 15:55:16 +0800 Subject: [PATCH] =?UTF-8?q?list=E9=A6=96=E9=A1=B5=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 21 +- common/appInit.js | 16 + pages/list/{list.nvue => list.vue} | 590 +++++++++++++-------------- pages/uni-feedback/uni-feedback.nvue | 9 +- 4 files changed, 309 insertions(+), 327 deletions(-) rename pages/list/{list.nvue => list.vue} (62%) diff --git a/App.vue b/App.vue index 15e70b1..3bcb9a3 100644 --- a/App.vue +++ b/App.vue @@ -6,17 +6,8 @@ appVersion:{} }, onLaunch: function() { - //#ifdef APP-PLUS - // 保持屏幕常亮 - uni.setKeepScreenOn({ - keepScreenOn: true - }); - //#endif console.log('App Launch') - - initApp(); - - + // initApp(); }, onShow: function() { console.log('App Show') @@ -29,4 +20,14 @@ diff --git a/common/appInit.js b/common/appInit.js index 9a78c28..3fbdda9 100644 --- a/common/appInit.js +++ b/common/appInit.js @@ -6,8 +6,24 @@ export default function (){ // 检查更新 checkUpdate(); + + keepScreenOn(); } +/** + * 保持屏幕常亮 + */ +function keepScreenOn(){ + //#ifdef APP-PLUS + // 保持屏幕常亮 + uni.setKeepScreenOn({ + keepScreenOn: true + }); + //#endif +} +/** + * // 初始化appVersion + */ function initAppVersion(){ // #ifdef APP-NVUE let appid = plus.runtime.appid; diff --git a/pages/list/list.nvue b/pages/list/list.vue similarity index 62% rename from pages/list/list.nvue rename to pages/list/list.vue index 889e1e2..089fc7d 100644 --- a/pages/list/list.nvue +++ b/pages/list/list.vue @@ -1,325 +1,287 @@ -