feat(dealer): 添加分销商收益明细页面并优化订单管理功能
- 新增收益明细页面,支持下拉刷新和上拉加载更多 - 在app.config.ts中注册收益明细页面路由 - 更新API基础URL配置,统一使用mp-api域名 - 优化提交表单逻辑,确保refereeId参数为数字类型 - 修改订单页面,添加resourceId参数以正确过滤分销订单 - 修复订单号显示逻辑,优先使用接口返回的订单号 - 优化订单列表项点击事件,跳转到收益明细页面 - 更新客户名称显示格式,包含昵称和用户ID - 调整订单详情展示布局和信息内容
This commit is contained in:
@@ -127,7 +127,7 @@ const AddUserAddress = () => {
|
||||
}
|
||||
|
||||
// 提交表单
|
||||
const submitSucceed = async (values: any) => {
|
||||
const submitSucceed = async (values: User) => {
|
||||
try {
|
||||
// 验证必填字段
|
||||
if (!values.phone && !FormData?.phone) {
|
||||
@@ -192,7 +192,7 @@ const AddUserAddress = () => {
|
||||
userId: user?.userId,
|
||||
realName: values.realName || FormData?.nickname,
|
||||
mobile: values.phone || FormData?.phone,
|
||||
refereeId: values.refereeId || FormData?.refereeId
|
||||
refereeId: Number(values.refereeId) || Number(FormData?.refereeId)
|
||||
})
|
||||
|
||||
if (roles.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user