fix(user-center): remove rebate detail title setting
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,6 @@ export const affiliateSchema = {
|
|||||||
pay_rebate_poster_title: '',
|
pay_rebate_poster_title: '',
|
||||||
pay_rebate_poster_desc: '',
|
pay_rebate_poster_desc: '',
|
||||||
pay_rebate_text_desc: '',
|
pay_rebate_text_desc: '',
|
||||||
pay_rebate_text_details_title: '',
|
|
||||||
pay_rebate_text_details: '',
|
pay_rebate_text_details: '',
|
||||||
pay_rebate_text_discount: '',
|
pay_rebate_text_discount: '',
|
||||||
},
|
},
|
||||||
@@ -63,7 +62,6 @@ export const affiliateSchema = {
|
|||||||
icon: 'fas fa-pen-fancy',
|
icon: 'fas fa-pen-fancy',
|
||||||
fields: [
|
fields: [
|
||||||
{ key: 'pay_rebate_text_desc', label: '返佣说明', type: 'textarea', default: '', dependsOn: { key: 'pay_rebate_s', value: true } },
|
{ key: 'pay_rebate_text_desc', label: '返佣说明', type: 'textarea', default: '', dependsOn: { key: 'pay_rebate_s', value: true } },
|
||||||
{ key: 'pay_rebate_text_details_title', label: '明细标题', type: 'input', default: '', dependsOn: { key: 'pay_rebate_s', value: true } },
|
|
||||||
{ key: 'pay_rebate_text_details', label: '明细说明', type: 'textarea', default: '', dependsOn: { key: 'pay_rebate_s', value: true } },
|
{ key: 'pay_rebate_text_details', label: '明细说明', type: 'textarea', default: '', dependsOn: { key: 'pay_rebate_s', value: true } },
|
||||||
{ key: 'pay_rebate_text_discount', label: '折扣文案', type: 'input', default: '', dependsOn: { key: 'pay_rebate_s', value: true } },
|
{ key: 'pay_rebate_text_discount', label: '折扣文案', type: 'input', default: '', dependsOn: { key: 'pay_rebate_s', value: true } },
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -398,6 +398,10 @@
|
|||||||
scrollbar-width: none;
|
scrollbar-width: none;
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
}
|
}
|
||||||
|
.aksrt-profile .uc-mobile-tabs {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
.dashboard-tabs::-webkit-scrollbar {
|
.dashboard-tabs::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ if ($current_vip >= 2 && !empty($vip_ratios['vip2'])) {
|
|||||||
} elseif ($current_vip >= 1 && !empty($vip_ratios['vip1'])) {
|
} elseif ($current_vip >= 1 && !empty($vip_ratios['vip1'])) {
|
||||||
$commission_ratio = (int) $vip_ratios['vip1'];
|
$commission_ratio = (int) $vip_ratios['vip1'];
|
||||||
}
|
}
|
||||||
$details_title = trim((string) ($affiliate['text']['details_title'] ?? '')) ?: __('返佣详解', 'aksrt');
|
|
||||||
$details_text = trim((string) ($affiliate['text']['details'] ?? ''));
|
$details_text = trim((string) ($affiliate['text']['details'] ?? ''));
|
||||||
if ($details_text === '') {
|
if ($details_text === '') {
|
||||||
$details_text = trim((string) ($affiliate['note'] ?? '')) ?: __('好友通过推广链接完成符合条件的订单后,系统会按当前佣金比例记录返佣,结算后进入可提现余额。', 'aksrt');
|
$details_text = trim((string) ($affiliate['note'] ?? '')) ?: __('好友通过推广链接完成符合条件的订单后,系统会按当前佣金比例记录返佣,结算后进入可提现余额。', 'aksrt');
|
||||||
@@ -152,7 +151,7 @@ $status_labels = [
|
|||||||
<div class="uc-total-commission"><strong><?php echo esc_html($format_amount($commission_stats['total_amount'] ?? 0)); ?></strong><span><?php printf(esc_html__('%d 笔佣金记录', 'aksrt'), (int) ($commission_stats['total'] ?? 0)); ?></span></div>
|
<div class="uc-total-commission"><strong><?php echo esc_html($format_amount($commission_stats['total_amount'] ?? 0)); ?></strong><span><?php printf(esc_html__('%d 笔佣金记录', 'aksrt'), (int) ($commission_stats['total'] ?? 0)); ?></span></div>
|
||||||
</section>
|
</section>
|
||||||
<section class="uc-reward-block" aria-labelledby="uc-details-title">
|
<section class="uc-reward-block" aria-labelledby="uc-details-title">
|
||||||
<div class="uc-reward-block__heading"><h4 id="uc-details-title"><?php echo esc_html($details_title); ?></h4></div>
|
<div class="uc-reward-block__heading"><h4 id="uc-details-title"><?php esc_html_e('返佣详解', 'aksrt'); ?></h4></div>
|
||||||
<div class="uc-reward-richtext"><?php echo wp_kses_post(wpautop($details_text)); ?></div>
|
<div class="uc-reward-richtext"><?php echo wp_kses_post(wpautop($details_text)); ?></div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -210,7 +210,6 @@ class SchemaPayment {
|
|||||||
]],
|
]],
|
||||||
['key' => 'text', 'title' => '文案设置', 'fields' => [
|
['key' => 'text', 'title' => '文案设置', 'fields' => [
|
||||||
['key' => 'pay_rebate_text_desc', 'label' => '返佣说明', 'type' => 'textarea', 'default' => ''],
|
['key' => 'pay_rebate_text_desc', 'label' => '返佣说明', 'type' => 'textarea', 'default' => ''],
|
||||||
['key' => 'pay_rebate_text_details_title', 'label' => '明细标题', 'type' => 'input', 'default' => ''],
|
|
||||||
['key' => 'pay_rebate_text_details', 'label' => '明细说明', 'type' => 'textarea', 'default' => ''],
|
['key' => 'pay_rebate_text_details', 'label' => '明细说明', 'type' => 'textarea', 'default' => ''],
|
||||||
['key' => 'pay_rebate_text_discount', 'label' => '折扣文案', 'type' => 'input', 'default' => ''],
|
['key' => 'pay_rebate_text_discount', 'label' => '折扣文案', 'type' => 'input', 'default' => ''],
|
||||||
]],
|
]],
|
||||||
|
|||||||
@@ -287,7 +287,6 @@ class PaymentRuntime {
|
|||||||
],
|
],
|
||||||
'text' => [
|
'text' => [
|
||||||
'desc' => sanitize_textarea_field((string) ($settings['pay_rebate_text_desc'] ?? '')),
|
'desc' => sanitize_textarea_field((string) ($settings['pay_rebate_text_desc'] ?? '')),
|
||||||
'details_title' => sanitize_text_field((string) ($settings['pay_rebate_text_details_title'] ?? '')),
|
|
||||||
'details' => sanitize_textarea_field((string) ($settings['pay_rebate_text_details'] ?? '')),
|
'details' => sanitize_textarea_field((string) ($settings['pay_rebate_text_details'] ?? '')),
|
||||||
'discount' => sanitize_text_field((string) ($settings['pay_rebate_text_discount'] ?? '')),
|
'discount' => sanitize_text_field((string) ($settings['pay_rebate_text_discount'] ?? '')),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user