|
|
@@ -84,20 +84,9 @@ class Order < ActiveRecord::Base
|
|
|
|
|
|
end
|
|
|
|
|
|
-
|
|
|
-
|
|
|
def total_price_format
|
|
|
- case self.pay_way
|
|
|
- when "weixinpay"
|
|
|
- total_price_f = self.total_price!=0 ? (self.total_price/100.0) :0
|
|
|
- return total_price_f.to_s #+ "元"
|
|
|
- when "balance"
|
|
|
- total_price_f = self.total_price!=0 ? (self.total_price/100.0) :0
|
|
|
- return total_price_f.to_s #+ "代金券"
|
|
|
- when "integral"
|
|
|
- total_price_f = self.total_price!=0 ? (self.total_price/100.0) :0
|
|
|
- return total_price_f.to_s #+ "代金券"
|
|
|
- end
|
|
|
+ total_price_f = self.total_price!=0 ? (self.total_price/100.0) :0
|
|
|
+ return total_price_f.to_s
|
|
|
end
|
|
|
|
|
|
def paied_price_format
|