|
|
@@ -217,6 +217,7 @@ class Product < ActiveRecord::Base
|
|
|
field :sale_nums
|
|
|
field :single_purch_limit
|
|
|
field :package
|
|
|
+ field :pv
|
|
|
field :created_at
|
|
|
field :updated_at
|
|
|
end
|
|
|
@@ -227,7 +228,7 @@ class Product < ActiveRecord::Base
|
|
|
field :merchant
|
|
|
field :name
|
|
|
field :ptype, :enum do
|
|
|
- enum do
|
|
|
+ enum do
|
|
|
TYPE_ENUM
|
|
|
end
|
|
|
end
|
|
|
@@ -251,7 +252,7 @@ class Product < ActiveRecord::Base
|
|
|
field :virtual_sold_count
|
|
|
field :purchase_limit_count
|
|
|
field :share_content
|
|
|
- # field :share_img do
|
|
|
+ # field :share_img do
|
|
|
# formatted_value do
|
|
|
# bindings[:view].tag(:img,{:src => bindings[:object].get_share_img,
|
|
|
# :style => 'width: 100px;height: 100px;cursor: pointer;display: block;max-width: 100px;',
|
|
|
@@ -283,6 +284,7 @@ class Product < ActiveRecord::Base
|
|
|
field :product_cycle
|
|
|
field :stock_cycle
|
|
|
field :min_purchase
|
|
|
+ field :pv
|
|
|
field :created_at
|
|
|
field :updated_at
|
|
|
end
|
|
|
@@ -347,6 +349,7 @@ class Product < ActiveRecord::Base
|
|
|
field :product_cycle
|
|
|
field :stock_cycle
|
|
|
field :min_purchase
|
|
|
+ field :pv
|
|
|
end
|
|
|
|
|
|
end
|