其他 #453
Updated by Junyi Zhang 10 months ago
*Background*
# 记录在开发OTS4.0过程中需要讨论的特殊处理
*Task Details (一些议题)*
* *1.【DONE】添加DOM对象的时候,先隐藏然后复制*
1.1 web/catalog/model/account/order_filters_v3.php row 78
1.2 web/catalog/model/account/order_v3.php row 233
*Niko:*
- 避免DOM元素提前加载,保持PHP model数据层数据整洁。修改原来JS clone新增元素的方式为JS动态创建。
- 动态加载元素的语言包:各自定义在各自的twig中,共通的则写在footer.twig中
* *2. 不同设备的差异*
2.1 _*IOS:*_
- Date类型文字默认居中。
- Order list will scroll in two directions.(IOS较为明显)
- Current filter中的setup new filter未focus到filter name上。
- 中文字体相对大一圈
2.2 _*Android:*_
- Edge中的icon默认实心(fill:1)。
*v4 coding standard:*
# Git提交
#xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
# 代码规范
2.1: 结构:Public -> Protected -> Private
2.2: 其他代码规范同SBX
# 数据层规范(Model)
3.1: 数据库操作只应出现在model或者system中。
3.2: v3/v4的model分为两个文件,比如: order.php, order_v3.php
# 前台代码
twig, js, css (js, css尽量写在单独的css文件中)
# 后台代码
MVCL (L:en,cn)
# 注释
## 类名:
<pre>
/**
* xxx
*
* @copyright RedBlue-OTS 2024
* @version v4
*
*/
</pre>
## 函数名:参数类型 + 返回值类型
<pre>
/**
* xxx
*
* @param xxx $xxx
* @param xxx $xxx
* @return xxx
*/
</pre>
*Output*
* Report and Solution
*Others*