Quellcode durchsuchen

增加商品属性定义

abiao vor 5 Jahren
Ursprung
Commit
7873d6627a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      app/models/product.rb

+ 1 - 1
app/models/product.rb

@@ -9,7 +9,7 @@ class Product < ActiveRecord::Base
     TYPE_ENUM = [["直营","direct_sale"]]
     #["代销","user_sale"]
 
-    SIZE_ENUM =  []
+    SIZE_ENUM =  ["大码",1]
     def get_size_enum
         @Size = ProductAttrConfig.where("product_id=? and type='size'",self.id).first
         @productAttrs = ProductAttr.where("attr_key_id=?",@Size.id).order("recommend desc")