From 1476ceed5131de87d3bf3e2144f74be554b98c50 Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Sun, 8 Feb 2026 19:07:06 +0800 Subject: [PATCH] fix: loadmore --- pages.json | 7 ++++++ pages/index/index.vue | 56 +++++++++++++++++++++++++++++++++++++++++ pages/webview/index.vue | 21 ++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 pages/webview/index.vue diff --git a/pages.json b/pages.json index 1fb7d8a..7d4e76a 100644 --- a/pages.json +++ b/pages.json @@ -97,6 +97,13 @@ "navigationStyle": "custom" } }, + { + "path": "pages/webview/index", + "style": { + "navigationBarTitleText": "加载中...", + "enablePullDownRefresh": false + } + }, { "path": "pages/fortune/index", "style": { diff --git a/pages/index/index.vue b/pages/index/index.vue index bfa9c3e..c3488b8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -14,6 +14,15 @@ + + + + 新品 + 新春祝福上新品了,点击查看 + + + + { }); }; +const goToOfficialAccount = () => { + // 跳转到公众号文章 + // 替换为您实际的公众号文章链接 + const articleUrl = "https://mp.weixin.qq.com/s/mK438jWsYzsccJ2dDJG15A"; + uni.navigateTo({ + url: "/pages/webview/index?url=" + encodeURIComponent(articleUrl), + }); +}; + const features = ref([ { title: "新春祝福卡片", @@ -418,6 +436,44 @@ onPullDownRefresh(async () => { } } +/* 新春提示栏 */ +.notice-bar { + margin: 0 24rpx 20rpx; + padding: 16rpx 24rpx; + background: #fff; + border-radius: 16rpx; + display: flex; + align-items: center; + justify-content: space-between; + box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.03); + + .notice-left { + display: flex; + align-items: center; + + .notice-tag { + font-size: 20rpx; + color: #ff3b30; + background: rgba(255, 59, 48, 0.1); + padding: 2rpx 12rpx; + border-radius: 6rpx; + margin-right: 16rpx; + font-weight: 700; + } + + .notice-text { + font-size: 26rpx; + color: #333; + } + } + + .notice-arrow { + font-size: 32rpx; + color: #ccc; + line-height: 1; + } +} + /* 功能入口宫格 - 2x2 */ .feature-grid { display: grid; diff --git a/pages/webview/index.vue b/pages/webview/index.vue new file mode 100644 index 0000000..5b71d05 --- /dev/null +++ b/pages/webview/index.vue @@ -0,0 +1,21 @@ + + + + +