Hide sub-site pricing internals before payment

This commit is contained in:
abingyyds committed 2026-04-08 15:40:36 +08:00
1 parent da082121b4
commit 898d20c89c
38 files changed
+66 -86

No files matched your search

+6 -8
View File
@@ -97,7 +97,7 @@
"subDist.dashboardEntry": "Pay once and manage your own sub-site",
"subDist.badge": "Site Owner Plan",
"subDist.title": "Launch Your Own Sub-site",
"subDist.subtitle": "Pay through {{name}} to open your own sub-site. After payment, you can manage it from the main distributor console.",
"subDist.subtitle": "Pay through {{name}} to open your own sub-site. After payment, the system will automatically grant owner access and continue the management flow.",
"subDist.defaultSiteName": "this site",
"subDist.notAvailable": "Sub-site launch is currently unavailable",
"subDist.disabledFallback": "Please contact the site owner to enable this feature",
@@ -113,7 +113,7 @@
"subDist.token": "Token",
"subDist.payAndOpen": "Pay ¥{{price}} to Launch",
"subDist.currentUserHint": "Current paying account: {{user}}, payment method: {{method}}",
"subDist.manageHint": "After payment, go to the main distributor console to manage your new sub-site. If you are not logged in there yet, sign in with the same account.",
"subDist.postPayHint": "After payment, your owner access will be activated automatically. If a login is required, continue with the same account.",
"subDist.cryptoTitle": "Crypto Order Created",
"subDist.cryptoHint": "Please transfer using the details below. Your sub-site will be activated automatically after confirmation.",
"subDist.wallet": "Wallet",
@@ -121,13 +121,11 @@
"subDist.tradeNo": "Trade No",
"subDist.priceCardTitle": "Pricing",
"subDist.openPrice": "Launch Price",
"subDist.platformBase": "Platform Base Cost",
"subDist.parentSpread": "Owner Spread",
"subDist.priceSummary": "This page only shows the final price you need to pay. Internal supply cost, upstream profit, and settlement details are only shown after activation in the appropriate back-office flow.",
"subDist.ruleTitle": "Profit Rules",
"subDist.rule1": "You pay the launch price set by the current site owner. Any amount above the platform base cost is recorded as the parent site's one-time launch profit.",
"subDist.rule2": "If the parent site owner has already purchased a higher discount tier and you have not, the discount spread will continue to accrue to the parent site. Current parent discount: {{discount}}%.",
"subDist.rule3": "Once activated, your account is upgraded to a site owner and you can continue setup from the main distributor console.",
"subDist.manageUrlLabel": "Main distributor console:",
"subDist.rule1": "You are paying the launch price configured by the current site owner, and activation will follow the current site's rules after payment succeeds.",
"subDist.rule2": "Upstream profit, discount spread, and internal settlement belong to the owner back-office flow and are not disclosed on this public page.",
"subDist.rule3": "Once activated, your account is upgraded to a site owner and you can continue configuring domains, themes, pricing, and models.",
"subDist.loginRequired": "Please log in before launching a sub-site",
"subDist.fillRequired": "Please fill in the site name, slug, and payment method",
"subDist.selectPayment": "Please select a payment method",
+6 -8
View File
@@ -97,7 +97,7 @@
"subDist.dashboardEntry": "付费开通并管理自己的分站",
"subDist.badge": "站长计划",
"subDist.title": "开通你的下级分站",
"subDist.subtitle": "基于 {{name}} 直接付费开通自己的分站。支付完成后,可前往主站分销后台管理和设置。",
"subDist.subtitle": "基于 {{name}} 直接付费开通自己的分站。支付完成后,系统会自动为您开通站长权限并进入管理流程。",
"subDist.defaultSiteName": "当前分站",
"subDist.notAvailable": "当前暂未开放下级分站",
"subDist.disabledFallback": "请联系站长开启该功能",
@@ -113,7 +113,7 @@
"subDist.token": "代币",
"subDist.payAndOpen": "支付开通 ¥{{price}}",
"subDist.currentUserHint": "当前支付账号:{{user}},支付方式:{{method}}",
"subDist.manageHint": "支付完成后,请前往主站的分销后台管理您的新分站;如未登录主站,请使用同一账号重新登录即可。",
"subDist.postPayHint": "支付完成后系统会自动为您开通分站站长权限;如需补登录,请使用同一账号继续进入站长后台。",
"subDist.cryptoTitle": "加密货币订单已创建",
"subDist.cryptoHint": "请按照以下信息转账,到账后系统会自动开通分站。",
"subDist.wallet": "收款地址",
@@ -121,13 +121,11 @@
"subDist.tradeNo": "订单号",
"subDist.priceCardTitle": "费用说明",
"subDist.openPrice": "当前开通价",
"subDist.platformBase": "平台基础成本",
"subDist.parentSpread": "站长开通差价",
"subDist.priceSummary": "当前页面仅展示您的实际开通价格。供货成本、上级收益与内部结算明细将在开通完成后进入对应后台流程。",
"subDist.ruleTitle": "收益规则",
"subDist.rule1": "您支付的是当前分站站长设置的开通价;若高于平台基础成本,差价会直接记入上级站长收益。",
"subDist.rule2": "后续如果上级站长已经买了更高折扣,而您还没买到同档折扣,这部分折扣差也会持续沉淀为上级收益。当前上级折扣:{{discount}}%。",
"subDist.rule3": "开通成功后,您会升级为分站站长,可以进入主站分销后台继续配置域名、主题、价格和模型。",
"subDist.manageUrlLabel": "主站分销后台:",
"subDist.rule1": "您支付的是当前分站站长设置的开通价,支付成功后会按当前站点规则自动完成开通。",
"subDist.rule2": "上级站长收益、折扣差与内部结算属于站长后台结算逻辑,不在当前公开页面展示。",
"subDist.rule3": "开通成功后,您会升级为分站站长,并可继续配置域名、主题、价格和模型。",
"subDist.loginRequired": "请先登录后再开通分站",
"subDist.fillRequired": "请填写站点名称、标识和支付方式",
"subDist.selectPayment": "请选择支付方式",
+3 -19
View File
@@ -88,7 +88,6 @@ export default function SubDistributor() {
name: form.name.trim(),
slug: form.slug.trim().toLowerCase(),
payment_method: form.payment_method,
return_url: subInfo?.manage_url || '',
};
if (form.payment_method === 'crypto') {
payload.chain = form.chain;
@@ -223,7 +222,7 @@ export default function SubDistributor() {
{t('subDist.currentUserHint', { user: user.display_name || user.username || 'User', method: currentPayMethod?.name || form.payment_method })}
</p>
<p className="text-xs text-page-muted">
{t('subDist.manageHint')}
{t('subDist.postPayHint')}
</p>
</form>
)}
@@ -249,14 +248,7 @@ export default function SubDistributor() {
<span className="text-page-secondary">{t('subDist.openPrice')}</span>
<span className="text-2xl font-bold text-page">¥{Number(subInfo?.price || 0).toFixed(2)}</span>
</div>
<div className="flex items-center justify-between text-sm">
<span className="text-page-secondary">{t('subDist.platformBase')}</span>
<span className="text-page">¥{Number(subInfo?.base_cost || 0).toFixed(2)}</span>
</div>
<div className="flex items-center justify-between text-sm">
<span className="text-page-secondary">{t('subDist.parentSpread')}</span>
<span className="text-page-link font-semibold">¥{Number(subInfo?.price_spread || 0).toFixed(2)}</span>
</div>
<p className="text-sm text-page-secondary leading-6">{t('subDist.priceSummary')}</p>
</div>
</div>
@@ -264,16 +256,8 @@ export default function SubDistributor() {
<h2 className="text-lg font-semibold text-page mb-4">{t('subDist.ruleTitle')}</h2>
<div className="space-y-3 text-sm text-page-secondary leading-6">
<p>{t('subDist.rule1')}</p>
<p>{t('subDist.rule2', { discount: Number(subInfo?.seller_discount || 0).toFixed(0) })}</p>
<p>{t('subDist.rule2')}</p>
<p>{t('subDist.rule3')}</p>
{subInfo?.manage_url && (
<p>
{t('subDist.manageUrlLabel')}{' '}
<a className="text-page-link hover:underline" href={subInfo.manage_url} target="_blank" rel="noreferrer">
{subInfo.manage_url}
</a>
</p>
)}
</div>
</div>
</div>