Explorar el Código

feat(product): 添加养老金显示功能

- 在产品详情中添加养老金字段显示逻辑
- 当pension_is不等于0时显示单独设置的养老金数值
- 实现yanglao字段的数据赋值功能
shichen hace 3 meses
padre
commit
3656c7ac8f
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      app/common/repositories/store/product/ProductRepository.php

+ 5 - 0
app/common/repositories/store/product/ProductRepository.php

@@ -1095,6 +1095,11 @@ class ProductRepository extends BaseRepository
1095 1095
 
1096 1096
         }
1097 1097
 
1098
+        // 显示单独设置的养老金
1099
+        if ($res['pension_is'] != 0) {
1100
+            $res['yanglao'] = $res['pension'];
1101
+        }
1102
+
1098 1103
         $res['pv']=($k['pv']);
1099 1104
         $res['jifen']=($k['jifen']);
1100 1105
         $res['gongxian']=($k['gongxian']);