From 73f5d43adaaaf83ebff5c17afc96f8cf3aa35b3c Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Fri, 9 Jan 2026 17:26:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ProductPackage/NewbieGuide.vue | 103 +++++++++ .../components/ProductPackage/PackageTab.vue | 216 +++++++++++------- Yi.Ai.Vue3/src/config/constants.ts | 3 +- 3 files changed, 242 insertions(+), 80 deletions(-) diff --git a/Yi.Ai.Vue3/src/components/ProductPackage/NewbieGuide.vue b/Yi.Ai.Vue3/src/components/ProductPackage/NewbieGuide.vue index 9fbf16e9..76ed1b31 100644 --- a/Yi.Ai.Vue3/src/components/ProductPackage/NewbieGuide.vue +++ b/Yi.Ai.Vue3/src/components/ProductPackage/NewbieGuide.vue @@ -75,6 +75,26 @@ function goToTaobao() { + +
+ + 或者 + +
+ + +
+
+ 扫码购买 +
+
+ 淘宝二维码 +

+ 打开手机淘宝扫一扫 +

+
+
+

@@ -137,6 +157,68 @@ function goToTaobao() { flex-direction: column; gap: 14px; + // 二维码区域 + .qr-code-section { + display: flex; + flex-direction: column; + align-items: center; + padding: 20px; + background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); + border-radius: 12px; + border: 2px solid #bae6fd; + + .qr-code-title { + font-size: 16px; + font-weight: 700; + color: #0369a1; + margin-bottom: 16px; + } + + .qr-code-box { + display: flex; + flex-direction: column; + align-items: center; + background: white; + padding: 16px; + border-radius: 10px; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + + .qr-code-image { + width: 180px; + height: 180px; + object-fit: contain; + border-radius: 8px; + } + + .qr-code-tip { + margin: 12px 0 0 0; + font-size: 13px; + color: #0369a1; + font-weight: 600; + } + } + } + + // 分割线 + .divider-section { + display: flex; + align-items: center; + gap: 12px; + margin: 4px 0; + + .divider-line { + flex: 1; + height: 1px; + background: linear-gradient(to right, transparent, #d1d5db, transparent); + } + + .divider-text { + font-size: 13px; + color: #9ca3af; + font-weight: 500; + } + } + .purchase-card { background: #f7f8fa; border-radius: 10px; @@ -257,6 +339,27 @@ function goToTaobao() { .newbie-body { gap: 12px; + .qr-code-section { + padding: 16px; + + .qr-code-title { + font-size: 15px; + } + + .qr-code-box { + padding: 12px; + + .qr-code-image { + width: 160px; + height: 160px; + } + + .qr-code-tip { + font-size: 12px; + } + } + } + .purchase-card { padding: 14px; border-radius: 8px; diff --git a/Yi.Ai.Vue3/src/components/ProductPackage/PackageTab.vue b/Yi.Ai.Vue3/src/components/ProductPackage/PackageTab.vue index a64fb3c5..3815eb7d 100644 --- a/Yi.Ai.Vue3/src/components/ProductPackage/PackageTab.vue +++ b/Yi.Ai.Vue3/src/components/ProductPackage/PackageTab.vue @@ -1,9 +1,9 @@