浏览代码

增加商品pv

abiao 4 年之前
父节点
当前提交
0c3642ec2c
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      app/models/product.rb

+ 5 - 2
app/models/product.rb

@@ -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