Browse Source

add base config function

abiao 5 years ago
parent
commit
3f8cb10f3d
1 changed files with 7 additions and 1 deletions
  1. 7 1
      app/models/shop_application.rb

+ 7 - 1
app/models/shop_application.rb

@@ -17,7 +17,13 @@ class ShopApplication < ActiveRecord::Base
       field :wx_user_id
       field :nickname
       field :mobile
-      field :total
+      field :total do
+        visible true
+        label "订单总金额(元)"
+        pretty_value do
+          value!=0 ? (value.to_f / 100.0):0
+        end
+      end
       field :address
       field :status
       field :remark