Commit 95b0dcd0 by ivan Lan

Add already_disable to snapshot & Improve template

parent 568590dd
json.extract! series, :id, :title, :original_price, :price, json.extract! series, :id, :title, :original_price, :price,
:stock, :spec, :cover_image, :banners, :meta, :detail, :shotengai_product_id :stock, :spec, :cover_image, :banners, :meta, :detail,
\ No newline at end of file :shotengai_product_id
\ No newline at end of file
...@@ -2,4 +2,4 @@ json.extract! snapshot, :id, :title, :shotengai_series_id, ...@@ -2,4 +2,4 @@ json.extract! snapshot, :id, :title, :shotengai_series_id,
:original_price, :price, :count, :original_price, :price, :count,
:product_status_zh, :order_status_zh, :product_status, :order_status, :product_status_zh, :order_status_zh, :product_status, :order_status,
:total_price, :total_original_price, :revised_amount, :total_price, :total_original_price, :revised_amount,
:spec, :cover_image, :banners, :detail, :meta, :is_in_cart :spec, :cover_image, :banners, :detail, :meta, :is_in_cart, :already_disable
\ No newline at end of file \ No newline at end of file
...@@ -2,4 +2,4 @@ json.extract! snapshot, :id, :title, :shotengai_series_id, ...@@ -2,4 +2,4 @@ json.extract! snapshot, :id, :title, :shotengai_series_id,
:original_price, :price, :count, :title, :original_price, :price, :count, :title,
:product_status_zh, :order_status_zh, :product_status, :order_status, :product_status_zh, :order_status_zh, :product_status, :order_status,
:total_price, :total_original_price, :revised_amount, :total_price, :total_original_price, :revised_amount,
:spec, :cover_image, :meta, :is_in_cart :spec, :cover_image, :meta, :is_in_cart, :already_disable
\ No newline at end of file \ No newline at end of file
...@@ -74,6 +74,10 @@ module Shotengai ...@@ -74,6 +74,10 @@ module Shotengai
read_attribute(:meta) || (series.product.meta || {} ).merge(series.meta || {}) read_attribute(:meta) || (series.product.meta || {} ).merge(series.meta || {})
end end
def already_disable
series.deleted?
end
# 订单支付后 存储当时信息快照 # 订单支付后 存储当时信息快照
def copy_info def copy_info
# cut_stock # cut_stock
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment