更新 VIP 会员描述和产品 ID 逻辑,优化购买按钮样式以提升用户体验。
This commit is contained in:
@@ -27,7 +27,8 @@
|
|||||||
.price-original { font-size: 28rpx; color: rgba(255,255,255,0.35); text-decoration: line-through; }
|
.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-current { font-size: 64rpx; font-weight: bold; color: #FF4444; }
|
||||||
.price-unit { font-size: 26rpx; color: rgba(255,255,255,0.5); }
|
.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-btn[disabled] { opacity: 0.5; }
|
||||||
.buy-sub { display: block; font-size: 22rpx; color: rgba(255,255,255,0.4); margin-top: 16rpx; }
|
.buy-sub { display: block; font-size: 22rpx; color: rgba(255,255,255,0.4); margin-top: 16rpx; }
|
||||||
|
|
||||||
|
|||||||
@@ -244,6 +244,8 @@ func miniprogramPayPost(c *gin.Context) {
|
|||||||
if description == "" {
|
if description == "" {
|
||||||
if req.ProductType == "fullbook" {
|
if req.ProductType == "fullbook" {
|
||||||
description = "《一场Soul的创业实验》全书"
|
description = "《一场Soul的创业实验》全书"
|
||||||
|
} else if req.ProductType == "vip" {
|
||||||
|
description = "卡若创业派对VIP年度会员(365天)"
|
||||||
} else if req.ProductType == "match" {
|
} else if req.ProductType == "match" {
|
||||||
description = "购买匹配次数"
|
description = "购买匹配次数"
|
||||||
} else {
|
} else {
|
||||||
@@ -265,7 +267,14 @@ func miniprogramPayPost(c *gin.Context) {
|
|||||||
|
|
||||||
productID := req.ProductID
|
productID := req.ProductID
|
||||||
if productID == "" {
|
if productID == "" {
|
||||||
productID = "fullbook"
|
switch req.ProductType {
|
||||||
|
case "vip":
|
||||||
|
productID = "vip_annual"
|
||||||
|
case "match":
|
||||||
|
productID = "match"
|
||||||
|
default:
|
||||||
|
productID = "fullbook"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
status := "created"
|
status := "created"
|
||||||
|
|||||||
Reference in New Issue
Block a user