Files
akmon/doc_mall/README_subscription_consumer.md
2026-01-20 08:04:15 +08:00

17 lines
930 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 软件订阅consumer
入口:
- 用户中心 -> 软件订阅
页面:
- plan-list.uvue展示可用订阅方案ml_subscription_plans
- plan-detail.uvue展示某个订阅方案详情
- subscribe-checkout.uvue确认支付并创建订阅写入 ml_user_subscriptions
依赖表(示例名称,可按实际后端调整):
- ml_subscription_plans(id, plan_code, name, description, features jsonb, price numeric, currency text, billing_period text, trial_days int, is_active bool, sort_order int, created_at, updated_at)
- ml_user_subscriptions(id, user_id, plan_id, status text, start_date timestamptz, end_date timestamptz, next_billing_date timestamptz, auto_renew bool, cancel_at_period_end bool, metadata jsonb, created_at, updated_at)
注意:
- 本实现使用 uni-app-x 兼容组件与 supaClient。实际支付请替换为你们的支付网关并在后端完成对账与签名校验。