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"