fix(expressTemplate): 修正运费模板计费方式类型及删除报错

- 将运费模板和详情模型中的计费方式 type 从 string 改为 boolean 类型
- 修改相关页面中计费方式显示及选择控件为布尔值 true/false 表示按件/按重量
- 统一删除操作使用后端返回的主键 id 替代废弃的 shopExpressTemplateId
- 修复删除运费模板时报错“参数格式错误: id 的值 'undefined' 无法转换为 Integer”
- ele-modal 关闭按钮定位修复,兼容最大化按钮时的偏移问题
- 小程序端 checkout 运费模板接入,支持动态计算显示运费费用
- 优化编辑表单中首件/续件数量或重量的动态标签和占位提示逻辑
This commit is contained in:
2026-07-07 15:03:06 +08:00
parent 08685d5ef1
commit 6118e2be01
9 changed files with 98 additions and 30 deletions

View File

@@ -85,3 +85,36 @@
border-radius: 0 0 12px 12px;
}
}
/* ele-modal 最大化按钮与关闭按钮位置修复 */
.ele-modal .ant-modal-header {
.ant-modal-close {
position: absolute;
top: 0;
right: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
/* 当存在最大化按钮时,关闭按钮左移 */
.ele-modal-maximize-btn + .ant-modal-close,
.ele-modal-maximize-btn ~ .ant-modal-close {
right: 30px;
}
}
/* 针对 ant-modal 关闭按钮的兜底修复 */
.ant-modal .ant-modal-close {
position: absolute;
top: 0;
right: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}