From 4f4e4407f72267e78e4e2486b4ada5f1a7757d1f Mon Sep 17 00:00:00 2001 From: Alex-larget <33240357+Alex-larget@users.noreply.github.com> Date: Thu, 26 Feb 2026 14:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20VIP=20=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E5=92=8C=E4=BA=A7=E5=93=81=20ID=20=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E4=BC=98=E5=8C=96=E8=B4=AD=E4=B9=B0=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=A0=B7=E5=BC=8F=E4=BB=A5=E6=8F=90=E5=8D=87=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/pages/vip/vip.wxss | 3 ++- soul-api/internal/handler/miniprogram.go | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/miniprogram/pages/vip/vip.wxss b/miniprogram/pages/vip/vip.wxss index 8bbf1960..01071efe 100644 --- a/miniprogram/pages/vip/vip.wxss +++ b/miniprogram/pages/vip/vip.wxss @@ -27,7 +27,8 @@ .price-original { font-size: 28rpx; color: rgba(255,255,255,0.35); text-decoration: line-through; } .price-current { font-size: 64rpx; font-weight: bold; color: #FF4444; } .price-unit { font-size: 26rpx; color: rgba(255,255,255,0.5); } -.buy-btn { width: 90%; height: 88rpx; line-height: 88rpx; background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; font-size: 32rpx; font-weight: bold; border-radius: 44rpx; border: none; margin: 0 auto; } +.buy-btn { width: 90%; height: 88rpx; padding: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; font-size: 32rpx; font-weight: bold; border-radius: 44rpx; border: none; margin: 0 auto; } +.buy-btn::after { border: none; } .buy-btn[disabled] { opacity: 0.5; } .buy-sub { display: block; font-size: 22rpx; color: rgba(255,255,255,0.4); margin-top: 16rpx; } diff --git a/soul-api/internal/handler/miniprogram.go b/soul-api/internal/handler/miniprogram.go index 51a55122..79a6f52d 100644 --- a/soul-api/internal/handler/miniprogram.go +++ b/soul-api/internal/handler/miniprogram.go @@ -244,6 +244,8 @@ func miniprogramPayPost(c *gin.Context) { if description == "" { if req.ProductType == "fullbook" { description = "《一场Soul的创业实验》全书" + } else if req.ProductType == "vip" { + description = "卡若创业派对VIP年度会员(365天)" } else if req.ProductType == "match" { description = "购买匹配次数" } else { @@ -265,7 +267,14 @@ func miniprogramPayPost(c *gin.Context) { productID := req.ProductID if productID == "" { - productID = "fullbook" + switch req.ProductType { + case "vip": + productID = "vip_annual" + case "match": + productID = "match" + default: + productID = "fullbook" + } } status := "created"