feat: 重构会员权益与分销配置,新增套餐维度权益管理
1. 新增会员权益配置控制器 Memberbenefit 和 Publish,拆分运营配置模块 2. 新增套餐表字段 free_view_quota、post_discount,支持按套餐配置免费看和发帖折扣 3. 优化前端页面,新增套餐编辑表单、区域选择器、发布配置交互 4. 新增调试支持,支持 mock openid、本地 IP 绕过权限,便于自动化测试 5. 新增数据库工具脚本,用于检查配置、修复数据、验证会员功能 6. 优化会员接口,返回套餐维度的权益信息,支持无限次免费看场景
这个提交包含在:
@@ -80,6 +80,147 @@
|
||||
.fc-area-grid > .fc-area-field {
|
||||
width: 33.3333%;
|
||||
padding: 0 8px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fc-area-field .msg-box {
|
||||
display: block;
|
||||
position: static !important;
|
||||
margin-top: 4px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.fc-area-select-wrap {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.fc-area-select-wrap .fc-area-input {
|
||||
padding-right: 48px;
|
||||
}
|
||||
|
||||
.fc-area-select-arrow {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #64748b;
|
||||
font-size: 15px;
|
||||
pointer-events: none;
|
||||
transition: transform 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.fc-area-select-wrap.is-open .fc-area-select-arrow {
|
||||
transform: translateY(-50%) rotate(180deg);
|
||||
color: #00a854;
|
||||
}
|
||||
|
||||
.fc-area-select-clear {
|
||||
position: absolute;
|
||||
right: 30px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: #94a3b8;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
line-height: 1;
|
||||
padding: 2px;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.fc-area-select-clear:hover {
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.fc-area-select-wrap.has-value:hover .fc-area-select-clear,
|
||||
.fc-area-select-wrap.has-value.is-open .fc-area-select-clear {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.fc-area-dropdown {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1050;
|
||||
display: none;
|
||||
max-height: 260px;
|
||||
overflow-y: auto;
|
||||
background: #ffffff;
|
||||
border: 1px solid #ccebd9;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
|
||||
padding: 4px 0;
|
||||
}
|
||||
|
||||
.fc-area-select-wrap.is-open .fc-area-dropdown {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__header {
|
||||
padding: 6px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #64748b;
|
||||
background: #f8fafc;
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
color: #1e293b;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.12s ease, color 0.12s ease;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__item:hover {
|
||||
background: #f2fef7;
|
||||
color: #00a854;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__item.is-active {
|
||||
background: #e6f9ef;
|
||||
color: #00a854;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__main {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__sub {
|
||||
flex-shrink: 0;
|
||||
font-size: 11px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__tag {
|
||||
flex-shrink: 0;
|
||||
padding: 1px 6px;
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
background: #ecfdf5;
|
||||
color: #059669;
|
||||
border: 1px solid #a7f3d0;
|
||||
}
|
||||
|
||||
.fc-area-dropdown__empty {
|
||||
padding: 12px;
|
||||
font-size: 12px;
|
||||
color: #64748b;
|
||||
text-align: center;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.fc-area-preview {
|
||||
|
||||
在新工单中引用
屏蔽一个用户