柳建 hace 9 meses
padre
commit
05aebc3ef1

+ 2 - 2
application/admin/view/greenroom/recharge/add.html

@@ -21,9 +21,9 @@
         </div>
     </div>
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Recharge')}:</label>
+        <label class="control-label col-xs-12 col-sm-2">{:__('费用')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-recharge" class="form-control" name="row[recharge]" type="text">
+            <input id="c-recharge" class="form-control" name="row[recharge]" type="number">
         </div>
     </div>
     <div class="form-group">

+ 2 - 2
application/admin/view/greenroom/recharge/edit.html

@@ -21,9 +21,9 @@
         </div>
     </div>
     <div class="form-group">
-        <label class="control-label col-xs-12 col-sm-2">{:__('Recharge')}:</label>
+        <label class="control-label col-xs-12 col-sm-2">{:__('费用')}:</label>
         <div class="col-xs-12 col-sm-8">
-            <input id="c-recharge" class="form-control" name="row[recharge]" type="text" value="{$row.recharge|htmlentities}">
+            <input id="c-recharge" class="form-control" name="row[recharge]" type="number" value="{$row.recharge|htmlentities}">
         </div>
     </div>
     <div class="form-group">

+ 1 - 1
public/assets/js/backend/greenroom/recharge.js

@@ -28,7 +28,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'id', title: __('Id')},
                         {field: 'level', title: __('Level'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
                         {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
-                        {field: 'recharge', title: __('Recharge'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
+                        {field: 'recharge', title: __('费用'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
                         {field: 'addtime', title: __('Addtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
                         {field: 'codenum', title: __('Codenum')},
                         {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}