Project

General

Profile

其他 #453

v4.0: Optimizations + Remaining Tasks

Added by Junyi Zhang 11 months ago. Updated 1 day ago.

Status:
进行中
Priority:
普通
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
02/07/2025
Due date:
12/31/2025 (Due in 11 days)
% Done:

90%

Estimated time:
100.00 h

Description

Background
  1. 记录在开发OTS4.0过程中需要讨论的特殊处理

Task Details (Optimizations)

  • 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:
    1. 避免DOM元素提前加载,保持PHP model数据层数据整洁。修改原来JS clone新增元素的方式为JS动态创建。
    2. 动态加载元素的语言包:各自定义在各自的twig中,共通的则写在footer.twig中

  • 2. 不同设备的差异
    2.1 IOS:
    - Date类型在IOS中的显示问题
    1)默认水平居中(期待值:和Android一样,左对齐)
    2)默认垂直偏上(期待值:和Android一样,居中对齐)
    3)点击Reset, 期待为清空, 当前恢复为初始值日期

    - Order list will scroll in two directions.(IOS较为明显)
    - Current filter中的setup new filter未focus到filter name上(只有第一次加载My-filter时未focus到filter name)。

    2.2 Android:
    - Edge中的icon默认实心(fill:1)。Chrome没有此类问题。

  • 3. 【DONE】Session机制: file -> redis
    • 3.1 error.log session相关的两个问题:
         - PHP Notice:  Error: session file size is 0 : /var/www/html/storage/session/sess_ed565225ec4097c33086dd03eb in /var/www/html/ots4.0/system/library/session/file.php on line 28
      
         - PHP Unknown:  Automatic conversion of false to array is deprecated in /var/www/html/ots4.0/catalog/controller/startup/startup.php on line 94
        
  • 4. UI 优化
    • 4.1 手机端order list中长按功能: 科参考一些App 的做法,长按后突出显示当前选中内容,
      在当前行的上方、下方显示可操作的下拉列表(取代当前简易版的Popover)。 需调研web端是否能够实现。
  • 5. 上线前的准备
    • 5.1 _重新排查Size相关的options,确保全覆盖,参考如下SQL(需要一个一个option检查)
SELECT DISTINCT po.option_id 
FROM ots_product p
LEFT JOIN ots_product_option po ON (po.product_id = p.product_id)
WHERE p.declaration_base_info LIKE '%{dimension}%'
  • 6. 打印机服务
    • 6.1 优化【打印代理服务器 和 打印机】的诊断检查(可能需要添加 【/health】的接口)
    • 6.2 桌面/移动打印统一【图片打印接口】,并记录是否【打印成功】然后记录【数据库】
    • 6.3 部分安卓手机(比如:小米)的Chrome不支持移动端打印,可能是安全限制(比如我们没有配置SSL域名,跨域问题等)

Task Details (Remaining Tasks)

  • 1. 用户管理模块 #464
    1. 创建用户成功的modal,可选:是否发送提示邮件
    2. 登录:remember me
    3. 错误提示机制: 区分是alert提示还是input的弹出框提示,从而决定是否需要滚动顶部。
    4. Mobile: 'Add shipping address' 按钮底部有部分被挡住了
    5. 禁用双击放大
  • 2. 产品管理模块 #463
    1. Price_min, Price_min_branding怎么处理,要不要显示在Invoice上
v4 coding standard:
  1. Git提交
    #xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
      
  2. 代码规范
    2.1: 结构:Public -> Protected -> Private
    2.2: 其他代码规范同SBX
      
  3. MVCL的v3/v4物理分割
    3.1: v3/v4的代码分为两个文件,比如: order.php, order_v3.php
    3.2: system也分为两个文件,暂时只有一个user_v3
    - Note: front的$this->user在v4中会替换为$this->customer, 即v4中需要清除$this->user
    3.3: 代码中,区分v3/v4的调用,比如:new User_V3
     
  4. 前台代码
    twig, js, css (js, css尽量写在单独的css文件中)
     
  5. 后台代码
    MVCL (L:en,cn)
     
  6. 注释
    1. 类名:
      /**
       * xxx
       *
       * @copyright RedBlue-OTS 2024
       * @version v4
       *
       */
      
    2. 函数名:参数类型 + 返回值类型
          /**
           * xxx
           *
           * @param  xxx $xxx
           * @param  xxx $xxx
           * @return xxx
           */
      
Output
  • Report and Solution

Others


Files

长按当前行.png (781 KB) 长按当前行.png Zhongbao Ye, 06/12/2025 02:14 PM
#1

Updated by Xihua Fan 11 months ago

  • Description updated (diff)
  • Due date changed from 12/07/2025 to 12/31/2025
  • Estimated time changed from 80.00 h to 100.00 h
#2

Updated by Xihua Fan 11 months ago

  • Description updated (diff)
#3

Updated by Xihua Fan 11 months ago

  • Description updated (diff)
#4

Updated by Xihua Fan 11 months ago

  • Description updated (diff)
#5

Updated by Xihua Fan 11 months ago

  • % Done changed from 0 to 90
#6

Updated by Junyi Zhang 11 months ago

  • Description updated (diff)
#7

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#8

Updated by Xihua Fan 10 months ago

  • Description updated (diff)
#9

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#10

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#11

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#12

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#13

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#14

Updated by Xihua Fan 10 months ago

  • Description updated (diff)
#15

Updated by Xihua Fan 10 months ago

  • Description updated (diff)
#16

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#17

Updated by Xihua Fan 10 months ago

  • Description updated (diff)
#18

Updated by Xihua Fan 10 months ago

  • Description updated (diff)
#19

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#20

Updated by Junyi Zhang 10 months ago

  • Description updated (diff)
#21

Updated by Junyi Zhang 9 months ago

  • Description updated (diff)
#22

Updated by Junyi Zhang 9 months ago

  • Description updated (diff)
#23

Updated by Junyi Zhang 9 months ago

  • Description updated (diff)
#24

Updated by Xihua Fan 8 months ago

  • Subject changed from v4.0: Optimizations to v4.0: Optimizations + Remaining Tasks
  • Description updated (diff)
#25

Updated by Junyi Zhang 8 months ago

  • Description updated (diff)
#26

Updated by Xihua Fan 8 months ago

  • Description updated (diff)
#27

Updated by Junyi Zhang 8 months ago

  • Description updated (diff)
#28

Updated by Junyi Zhang 8 months ago

  • Description updated (diff)
#29

Updated by Xihua Fan 8 months ago

  • Description updated (diff)
#30

Updated by Xihua Fan 8 months ago

  • Description updated (diff)
#31

Updated by Zhongbao Ye 6 months ago

#32

Updated by Zhongbao Ye 6 months ago

  • Description updated (diff)
#33

Updated by Zhongbao Ye 6 months ago

  • Description updated (diff)
#34

Updated by Xihua Fan 6 months ago

  • Description updated (diff)
#35

Updated by Junyi Zhang 6 months ago

  • Description updated (diff)
#36

Updated by Junyi Zhang 5 months ago

  • Description updated (diff)
#37

Updated by Junyi Zhang 5 months ago

  • Description updated (diff)
#38

Updated by Junyi Zhang 5 months ago

  • Description updated (diff)
#39

Updated by Junyi Zhang 2 months ago

  • Description updated (diff)
#40

Updated by Junyi Zhang 3 days ago

  • Description updated (diff)
#41

Updated by Junyi Zhang 1 day ago

  • Description updated (diff)

Also available in: Atom PDF