From f4f62b0933601a38c65e2b869e1a8741e78ed517 Mon Sep 17 00:00:00 2001
From: yanghao <781521347@qq.com>
Date: Tue, 1 Mar 2022 10:46:24 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC=E8=88=AA?=
=?UTF-8?q?=E6=A0=8F=E4=BC=98=E5=8C=96=EF=BC=8C=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 54 +-
components/CustomNavigator.vue | 89 --
components/colorui/components/cu-custom.vue | 3 +
pages/home/activityCenter/index.vue | 33 +-
pages/home/index.css | 382 -------
pages/home/index.vue | 39 +-
pages/life/index.vue | 1146 ++++++++++---------
pages/life/learnMore/index.vue | 39 +-
pages/user/agreement/index.css | 47 -
pages/user/agreement/index.vue | 13 +-
pages/user/completeData/index.css | 134 ---
pages/user/completeData/index.vue | 11 +-
pages/user/incomeDetail/index.css | 118 --
pages/user/incomeDetail/index.vue | 6 +-
pages/user/index.css | 170 ---
pages/user/index.vue | 82 +-
pages/user/mine/index.css | 293 -----
pages/user/mine/index.vue | 20 +-
pages/user/personalData/index.vue | 6 +-
19 files changed, 813 insertions(+), 1872 deletions(-)
delete mode 100644 components/CustomNavigator.vue
delete mode 100644 pages/home/index.css
delete mode 100644 pages/user/agreement/index.css
delete mode 100644 pages/user/completeData/index.css
delete mode 100644 pages/user/incomeDetail/index.css
delete mode 100644 pages/user/index.css
delete mode 100644 pages/user/mine/index.css
diff --git a/App.vue b/App.vue
index 0e40d43..112e211 100644
--- a/App.vue
+++ b/App.vue
@@ -2,21 +2,17 @@
import {
VUE_APP_API_URL
} from "@/config";
+import Vue from 'vue'
export default {
onLaunch: function (e) {
var that = this; //获取设备信息
- this.setMenuHeight();
+ this.setAppInfo();
this.autoUpdate();
// uni.hideTabBar()
},
globalData: {
baseURL: VUE_APP_API_URL+ '/',
userInfo: null,
- navHeight: 0,
- navTopHeight: 0,
- menuTop: 0,
- menuHeight: 0,
- CustomBar: 0,
isIphoneX: false,
inviterId: null,
//分享码
@@ -245,25 +241,33 @@ export default {
}
},
- setMenuHeight() {
- uni.getSystemInfo({
- success: res => {
- console.log(res,'resaaaaa')
- this.globalData.navTopHeight = res.statusBarHeight;
- this.globalData.CustomBar = res.statusBarHeight + 45;
- this.globalData.systemInfo = res;
- let model = res.model;
- if (/iphone\sx/i.test(model) || /iphone/i.test(model) && /unknown/.test(model) || /iphone\s11/i.test(model) || /iphone\s12/i.test(model) || /iphone\s13/i.test(model)) {
- this.globalData.isIphoneX = true;
- }
- }
- });
- let menuButtonObj = uni.getMenuButtonBoundingClientRect();
- console.log(menuButtonObj,'menuButtonObj')
- this.globalData.menuTop = menuButtonObj.top;
- this.globalData.menuHeight = menuButtonObj.height;
- this.globalData.topHeight = menuButtonObj.top + menuButtonObj.height;
- this.globalData.navHeight = menuButtonObj.top;
+ // 获取系统栏高度
+ async setAppInfo() {
+ let that = this
+ return new Promise((resolve, reject) => {
+ uni.getSystemInfo({
+ success: function (e) {
+ Vue.prototype.StatusBar = e.statusBarHeight
+ // #ifdef H5
+ Vue.prototype.CustomBar = e.statusBarHeight + 45
+ // #endif
+
+ // #ifdef APP-PLUS
+ if (e.platform == 'android') {
+ Vue.prototype.CustomBar = e.statusBarHeight + 50
+ } else {
+ Vue.prototype.CustomBar = e.statusBarHeight + 45
+ }
+ // #endif
+
+ // #ifdef MP-WEIXIN
+ let custom = wx.getMenuButtonBoundingClientRect()
+ Vue.prototype.Custom = custom
+ Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight
+ // #endif
+ },
+ })
+ })
},
getInfo() {
diff --git a/components/CustomNavigator.vue b/components/CustomNavigator.vue
deleted file mode 100644
index 16d69b4..0000000
--- a/components/CustomNavigator.vue
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
- {{title}}
-
-
-
-
-
-
-
diff --git a/components/colorui/components/cu-custom.vue b/components/colorui/components/cu-custom.vue
index 0a79594..b27c117 100644
--- a/components/colorui/components/cu-custom.vue
+++ b/components/colorui/components/cu-custom.vue
@@ -59,6 +59,9 @@
+
+
-
-
diff --git a/pages/life/learnMore/index.vue b/pages/life/learnMore/index.vue
index ee8ee9a..055ea41 100644
--- a/pages/life/learnMore/index.vue
+++ b/pages/life/learnMore/index.vue
@@ -1,6 +1,10 @@
- 详情
+
+
+ 详情
+
+
@@ -20,12 +24,10 @@
-