Sfoglia il codice sorgente

增加商品属性定义

abiao 5 anni fa
parent
commit
7873d6627a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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")