diff --git a/src/handlers/payment.rs b/src/handlers/payment.rs index 3674ca8..3885ece 100644 --- a/src/handlers/payment.rs +++ b/src/handlers/payment.rs @@ -21,6 +21,7 @@ use crate::models::{Claims, CreateOrderRequest, MockConfirmRequest}; struct PackageInfo { amount: i32, display_amount: &'static str, + original_amount: &'static str, display_name: &'static str, days: Option, } @@ -30,24 +31,28 @@ fn get_package_info(package_type: &str) -> Option { "monthly" => Some(PackageInfo { amount: 590, display_amount: "5.9", + original_amount: "9.9", display_name: "包月会员", days: Some(30), }), "quarterly" => Some(PackageInfo { amount: 1680, display_amount: "16.8", + original_amount: "29", display_name: "季卡会员", days: Some(90), }), "half_year" => Some(PackageInfo { amount: 3190, display_amount: "31.9", + original_amount: "49", display_name: "半年会员", days: Some(182), }), "yearly" => Some(PackageInfo { amount: 6020, display_amount: "60.2", + original_amount: "99", display_name: "包年会员", days: Some(365), }), @@ -348,6 +353,7 @@ pub async fn payment_index() -> Result { .pkg-price { font-size: 32px; font-weight: 700; color: #07c160; margin-bottom: 4px; } .pkg-price .unit { font-size: 14px; font-weight: 400; } .pkg-desc { font-size: 13px; color: #999; } + .pkg-original { font-size: 14px; color: #bbb; text-decoration: line-through; margin-right: 4px; } .pkg-features { margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0; } .pkg-feature { font-size: 13px; color: #666; margin-bottom: 6px; } .btn-pay { display: block; width: 100%; max-width: 480px; margin: 0 auto 16px; background: #07c160; color: #fff; border: none; border-radius: 12px; padding: 16px; font-size: 17px; font-weight: 600; cursor: pointer; transition: background 0.2s; } @@ -417,7 +423,7 @@ pub async fn payment_index() -> Result {
包月会员
-
¥9.9/月
+
¥9.9 ¥5.9/月
适合短期使用需求
每月 500 条存储记录
@@ -425,11 +431,31 @@ pub async fn payment_index() -> Result {
+
+
季卡会员
+
¥29 ¥16.8/季
+
适合中期使用
+
+
每季 500 条存储记录
+
查看完整历史记录
+
+
+ +
+
半年会员
+
¥49 ¥31.9/半年
+
性价比之选
+
+
半年 500 条存储记录
+
查看完整历史记录
+
+
+
推荐
包年会员
-
¥59/年
-
相当于每月 ¥4.9,性价比最高
+
¥99 ¥60.2/年
+
相当于每月 ¥5.0,性价比最高
每年 5000 条存储记录
查看完整历史记录