|
@@ -29,4 +29,22 @@ class Product extends UseScopeBaseModel
|
|
|
self::Product_attribute_two => '主推款',
|
|
|
self::Product_attribute_three => '热卖款',
|
|
|
];
|
|
|
+ public static $product_attribute_color = [
|
|
|
+ self::Product_attribute_zero => [
|
|
|
+ 'background_color' => 'white',
|
|
|
+ 'font_color' => 'black',
|
|
|
+ ],
|
|
|
+ self::Product_attribute_one => [
|
|
|
+ 'background_color' => 'white',
|
|
|
+ 'font_color' => 'black',
|
|
|
+ ],
|
|
|
+ self::Product_attribute_two => [
|
|
|
+ 'background_color' => '#ed4446',
|
|
|
+ 'font_color' => 'white',
|
|
|
+ ],
|
|
|
+ self::Product_attribute_three => [
|
|
|
+ 'background_color' => '#98FB98',
|
|
|
+ 'font_color' => 'white',
|
|
|
+ ],
|
|
|
+ ];
|
|
|
}
|