| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | 
							- <?php
 
- namespace App\Model;
 
- class Product extends UseScopeBaseModel
 
- {
 
-     protected $table = "product"; //指定表
 
-     const CREATED_AT = 'crt_time';
 
-     const UPDATED_AT = 'upd_time';
 
-     protected $dateFormat = 'U';
 
-     const State_zero = 0;
 
-     const State_one = 1;
 
-     const State_two = 2;
 
-     public static $state = [
 
-         self::State_zero => '新增',
 
-         self::State_one => '上架',
 
-         self::State_two => '下架',
 
-     ];
 
-     const range_function = 'productRangeNot';
 
-     const Product_attribute_zero = 0;
 
-     const Product_attribute_one = 1;
 
-     const Product_attribute_two = 2;
 
-     const Product_attribute_three = 3;
 
-     public static $product_attribute = [
 
-         self::Product_attribute_zero => '无',
 
-         self::Product_attribute_one => '其他',
 
-         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',
 
-         ],
 
-     ];
 
- }
 
 
  |