From 6bb401b36607620a1c15f5793c59d10f68e4738e Mon Sep 17 00:00:00 2001
From: "1054425342@qq.com" <1054425342@qq.com>
Date: Wed, 13 Aug 2025 14:40:22 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E6=9D=83=E7=9B=8A=E5=8C=85=E5=85=91?=
=?UTF-8?q?=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/DynamicIsland.vue | 192 +++++++-------
pages/index/iSoul.vue | 23 +-
pages/index/index.vue | 473 +++++++++++++++++++----------------
3 files changed, 367 insertions(+), 321 deletions(-)
diff --git a/components/DynamicIsland.vue b/components/DynamicIsland.vue
index 00cb435..35ae38a 100644
--- a/components/DynamicIsland.vue
+++ b/components/DynamicIsland.vue
@@ -16,82 +16,94 @@
>
-
-
-
-
- {{ title }}
- hi 快去登录 >
-
-
-
-
-
-
-
- {{ getStatNumber("权益") }}
- 权益
-
-
- {{ getStatNumber("时间银行") }}
- 时间银行
-
-
-
-
- {{ actionText }}
-
-
-
-
-
-
-
-
- {{ getStatNumber("时间银行") }}
- 时间银行
-
-
-
-
-
-
- 在努力一点点,为更好的未来蓄力吧!
-
-
-
- 今日点赞和留言100条
-
-
-
-
-
-
-
+
+
+
+ {{
+ title
+ }}
+ hi 快去登录 >
+
+
+
+
+
+
+
+ {{ getStatNumber("权益") }}
+ 权益
+
+
+ {{
+ getStatNumber("时间银行")
+ }}
+ 时间银行
+
+
+
+
+ {{ actionText }}
+
+
+
+
+
+
+
+
+ {{
+ getStatNumber("时间银行")
+ }}
+ 时间银行
+
+
+
+
+
+
+ 在努力一点点,为更好的未来蓄力吧!
+
+
+
+ 今日点赞和留言100条
+
+
+
+
+
+
+
@@ -212,11 +224,11 @@ export default {
this.removeScrollListener();
},
methods: {
- toLogin(){
- uni.navigateTo({
- url: "/pages/login/login",
- });
- },
+ toLogin() {
+ uni.navigateTo({
+ url: "/pages/login/login",
+ });
+ },
handleToggle() {
if (this.isScrolled) {
// 固定模式下切换内部状态
@@ -258,9 +270,6 @@ export default {
if (this.isScrolled !== shouldScroll) {
this.isScrolled = shouldScroll;
// 添加触觉反馈
- if (uni.vibrateShort) {
- uni.vibrateShort();
- }
}
// 滚动时自动收缩展开的灵动岛
@@ -306,7 +315,7 @@ export default {
JSON.parse(uni.getStorageSync("userInfo"))) ||
this.$store.state.user.userInfo ||
{};
- console.log(this.userInfo,'this.userInfo')
+ console.log(this.userInfo, "this.userInfo");
// 更新标题显示用户昵称
if (this.userInfo && this.userInfo.nickname) {
this.currentTitle = `Hi!${this.userInfo.nickname},欢迎回来~`;
@@ -316,11 +325,13 @@ export default {
this.userInfo = {};
}
},
- toWebView(){
- uni.navigateTo({
- url:'/subPackages/webPage/webPage?url='+'https://www.dayunyuanjian.cn/dist/#/chat-demo'
- })
- }
+ toWebView() {
+ uni.navigateTo({
+ url:
+ "/subPackages/webPage/webPage?url=" +
+ "https://www.dayunyuanjian.cn/dist/#/chat-demo",
+ });
+ },
},
};
@@ -333,6 +344,7 @@ export default {
position: relative;
opacity: 1;
transition: opacity 0.3s ease;
+ padding:24rpx 0
}
.dynamic-island-placeholder.visible {
@@ -346,7 +358,8 @@ export default {
}
.dynamic-island {
- margin: 24rpx auto 24rpx;
+ // margin: 24rpx auto 24rpx;
+ margin: 0 auto;
z-index: 100;
background: rgba(0, 0, 0, 0.75);
@@ -428,7 +441,6 @@ export default {
.qr-code {
width: 32rpx;
height: 32rpx;
-
}
.qr-icon {
diff --git a/pages/index/iSoul.vue b/pages/index/iSoul.vue
index f9ca73b..fabfa09 100644
--- a/pages/index/iSoul.vue
+++ b/pages/index/iSoul.vue
@@ -94,9 +94,7 @@
-
@@ -197,7 +195,7 @@