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 15e70b16..3bcb9a36 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 9a78c281..3fbdda9f 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 889e1e2b..089fc7db 100644
--- a/pages/list/list.nvue
+++ b/pages/list/list.vue
@@ -1,325 +1,287 @@
-
-
-
-
-
-
-
-
-
-
-
- 为您更新了10条内容
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.title}}
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 为您更新了10条内容
+
+
+
+ {{error.message}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/uni-feedback/uni-feedback.nvue b/pages/uni-feedback/uni-feedback.nvue
index 50bd3991..1e0db957 100644
--- a/pages/uni-feedback/uni-feedback.nvue
+++ b/pages/uni-feedback/uni-feedback.nvue
@@ -209,9 +209,12 @@ export default {