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 @@ > - - + @@ -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 @@ 请输入兑换码 - + @@ -387,11 +385,11 @@ }); break; default: - uni.navigateTo({ - url: "/subPackages/orderQy/list", - }); + uni.navigateTo({ + url: "/subPackages/orderQy/list", + }); break; - + } }, // 有感商品点击 @@ -458,9 +456,16 @@ ).then((res) => { if (res.code == 200) { uni.showToast({ - title: "兑换成功!", + title: "兑换成功,为您跳转订单页~", icon: "none", + }); + this.closeExchangePopup() + setTimeout(() => { + uni.navigateTo({ + url: "/subPackages/orderQy/list" + }) + }, 2000) } else { uni.showToast({ diff --git a/pages/index/index.vue b/pages/index/index.vue index 4eb4361..1f3ffe3 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,240 +1,269 @@ \ No newline at end of file +.tab-bar-placeholder { + height: 143rpx; + width: 100%; +} +