Phase1 后端核心:
- 新增 fsgx_v1.sql 迁移脚本(is_queue_goods/frozen_points/available_points/no_assess)
- SystemConfigServices 返佣设置扩展(周期人数/分档比例/范围/时机)
- StoreOrderCreateServices 周期循环佣金计算
- StoreOrderTakeServices 佣金发放后同步冻结积分
- StoreProductServices/StoreProduct 保存 is_queue_goods
Phase2 后端接口:
- GET /api/hjf/brokerage/progress 佣金周期进度
- GET /api/hjf/assets/overview 资产总览
- HjfPointsServices 每日 frozen_points 0.4‰ 释放定时任务
- PUT /adminapi/hjf/member/{uid}/no_assess 不考核接口
- GET /adminapi/hjf/points/release_log 积分日志接口
Phase3 前端清理:
- hjfCustom.js 路由精简(仅保留 points/log)
- hjfQueue.js/hjfMember.js API 清理/重定向至 CRMEB 原生接口
- pages.json 公排→推荐佣金/佣金记录/佣金规则
Phase4-5 前端改造:
- queue/status.vue 推荐佣金进度页整体重写
- 商品详情/订单确认/支付结果页文案与逻辑改造
- 个人中心/资产页/引导页/规则页文案改造
- HjfQueueProgress/HjfRefundNotice/HjfAssetCard 组件改造
- 推广中心嵌入佣金进度摘要
- hjfMockData.js 全量更新(公排字段→佣金字段)
Phase6 Admin 增强:
- 用户列表新增 frozen_points/available_points 列及不考核操作按钮
- hjfPoints.js USE_MOCK=false 对接真实积分日志接口
Phase7 配置文档:
- docs/fsgx-phase7-config-checklist.md 后台配置与全链路验收清单
Made-with: Cursor
81 lines
2.7 KiB
JavaScript
81 lines
2.7 KiB
JavaScript
/* 配置文件 */
|
|
// #ifdef MP-WEIXIN
|
|
const canIUse = wx.canIUse('editor'); // 高基础库标识,用于兼容
|
|
// #endif
|
|
module.exports = {
|
|
// 过滤器函数
|
|
filter: null,
|
|
// 代码高亮函数
|
|
highlight: null,
|
|
// 文本处理函数
|
|
onText: null,
|
|
blankChar: makeMap(' ,\xA0,\t,\r,\n,\f'),
|
|
// 块级标签,将被转为 div
|
|
blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,section' + (
|
|
// #ifdef MP-WEIXIN
|
|
canIUse ? '' :
|
|
// #endif
|
|
',pre')),
|
|
// 将被移除的标签
|
|
ignoreTags: makeMap(
|
|
'area,base,basefont,canvas,command,frame,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr'
|
|
// #ifdef MP-WEIXIN
|
|
+ (canIUse ? ',rp' : '')
|
|
// #endif
|
|
// #ifndef APP-PLUS
|
|
+ ',embed,iframe'
|
|
// #endif
|
|
),
|
|
// 只能被 rich-text 显示的标签
|
|
richOnlyTags: makeMap('a,colgroup,fieldset,legend,picture,table'
|
|
// #ifdef MP-WEIXIN
|
|
+ (canIUse ? ',bdi,bdo,caption,rt,ruby' : '')
|
|
// #endif
|
|
),
|
|
// 自闭合的标签
|
|
selfClosingTags: makeMap(
|
|
'area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr'
|
|
),
|
|
// 信任的属性
|
|
trustAttrs: makeMap(
|
|
'align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns'
|
|
),
|
|
// bool 型的属性
|
|
boolAttrs: makeMap('autoplay,controls,ignore,loop,muted'),
|
|
// 信任的标签
|
|
trustTags: makeMap(
|
|
'a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'
|
|
// #ifdef MP-WEIXIN
|
|
+ (canIUse ? ',bdi,bdo,caption,pre,rt,ruby' : '')
|
|
// #endif
|
|
// #ifdef APP-PLUS
|
|
+ ',embed,iframe'
|
|
// #endif
|
|
),
|
|
// 默认的标签样式
|
|
userAgentStyles: {
|
|
address: 'font-style:italic',
|
|
big: 'display:inline;font-size:1.2em',
|
|
blockquote: 'background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px',
|
|
caption: 'display:table-caption;text-align:center',
|
|
center: 'text-align:center',
|
|
cite: 'font-style:italic',
|
|
dd: 'margin-left:40px',
|
|
img: 'max-width:100%',
|
|
mark: 'background-color:yellow',
|
|
picture: 'max-width:100%',
|
|
pre: 'font-family:monospace;white-space:pre;overflow:scroll',
|
|
s: 'text-decoration:line-through',
|
|
small: 'display:inline;font-size:0.8em',
|
|
u: 'text-decoration:underline'
|
|
}
|
|
}
|
|
|
|
function makeMap(maprichee55text9oppplugin) {
|
|
var map = {},
|
|
list = maprichee55text9oppplugin.split(',');
|
|
for (var i = list.length; i--;)
|
|
map[list[i]] = true;
|
|
return map;
|
|
}
|