From 1a5802006245f96769e14cc0eb5cea004b660831 Mon Sep 17 00:00:00 2001 From: lihaoyuan <18278596806@163.com> Date: Tue, 25 Nov 2025 10:24:11 +0800 Subject: [PATCH] =?UTF-8?q?update:=E6=81=A2=E5=A4=8D=E8=87=B310=E6=9C=8814?= =?UTF-8?q?=E6=97=A5=E4=B9=8B=E5=89=8D=E7=9A=84=E7=94=A8=E6=88=B7=E5=B8=96?= =?UTF-8?q?=E5=AD=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/image.vue | 64 ------------------------------------------- 1 file changed, 64 deletions(-) diff --git a/pages/index/image.vue b/pages/index/image.vue index 061f201..d684386 100644 --- a/pages/index/image.vue +++ b/pages/index/image.vue @@ -74,22 +74,6 @@ - @@ -276,9 +260,6 @@ export default { this.setData({ refresh: true, }); - if (this.hasLogin && !this.is_loaded) { - this.initData(false); - } }, onReady() { @@ -361,13 +342,6 @@ export default { onPageScroll: function (e) { this.scroll(e); }, - watch: { - hasLogin(newVal) { - if (newVal) { // 登录成功时 - this.initData(true); // 强制刷新数据 - } - } - }, methods: { ...mapMutations([ "logout", @@ -474,7 +448,6 @@ export default { //初始化数据,获取店铺分类 initData: function (force_refresh) { var that = this; - if (!this.hasLogin) return; that.getDivModel(force_refresh); @@ -548,7 +521,6 @@ export default { let that = this; that.forceUserInfo(function (user) { that.$.navigateTo({ url: "/community/community/post" }); - that.initData(true); // 登录成功后立即刷新数据 }); }, @@ -786,40 +758,4 @@ page { /* border: 1rpx solid #d9d9d9; */ } -.waterfalls-container { - width: 100%; - min-height: 300rpx; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 40rpx 0; -} - -/* 未登录提示文本 */ -.login-tip { - display: flex; - flex-direction: column; - align-items: center; - gap: 20rpx; /* 文本和按钮间距 */ -} - -.tip-text { - font-size: 32rpx; - color: #666; /* 灰色文本,不刺眼 */ -} - -.login-btn { - width: 200rpx; - height: 60rpx; - line-height: 60rpx; - background-color: #3273dc; - color: #fff; - font-size: 28rpx; - border-radius: 30rpx; - padding: 0; -} -.login-btn::after { - border: none; -}