Przeglądaj źródła

feat(user): 添加提现额度选项到用户奖励变更表单

- 在奖励类型下拉选项中添加'提现额度'选项(值为16)
- 格式化代码中的空格和括号位置以保持一致性
- 确保表单字段配置格式统一
shichen 4 miesięcy temu
rodzic
commit
449c2994e8
1 zmienionych plików z 8 dodań i 7 usunięć
  1. 8 7
      app/common/repositories/user/UserRepository.php

+ 8 - 7
app/common/repositories/user/UserRepository.php

@@ -908,8 +908,8 @@ class UserRepository extends BaseRepository
908 908
     {
909 909
         $user = $this->dao->get($id);
910 910
         return Elm::createForm(Route::buildUrl('systemUserChangeAward', compact('id'))->build(), [
911
-            Elm::text('account','账号',$user['account'])->disabled(true),
912
-            Elm::radio('type','类型',1)->options([
911
+            Elm::text('account', '账号', $user['account'])->disabled(true),
912
+            Elm::radio('type', '类型', 1)->options([
913 913
                 ['label' => 'PV', 'value' => 1],
914 914
                 ['label' => '积分', 'value' => 2],
915 915
                 ['label' => '直推佣金', 'value' => 3],
@@ -924,12 +924,13 @@ class UserRepository extends BaseRepository
924 924
                 ['label' => '股权分红', 'value' => 12],
925 925
                 ['label' => '联创分红', 'value' => 13],
926 926
                 ['label' => '合伙人分红', 'value' => 14],
927
-                ['label' => '直推贡献值', 'value' => 15],]),
928
-            Elm::radio('award_type','奖励变更',1)->options([['label' => '增加', 'value' => 1], ['label' => '减少', 'value' => 2]]),
927
+                ['label' => '直推贡献值', 'value' => 15],
928
+                ['label' => '提现额度', 'value' => 16],]),
929
+            Elm::radio('award_type', '奖励变更', 1)->options([['label' => '增加', 'value' => 1], ['label' => '减少', 'value' => 2]]),
929 930
             Elm::number('num', '变动金额')->size('large')->required(),
930
-            Elm::text('admin_id','操作人','管理员')->disabled(true),
931
-            Elm::text('scene','操作场景','后台操作')->disabled(true),
932
-            Elm::textarea('mark','备注')
931
+            Elm::text('admin_id', '操作人', '管理员')->disabled(true),
932
+            Elm::text('scene', '操作场景', '后台操作')->disabled(true),
933
+            Elm::textarea('mark', '备注')
933 934
         ])->setTitle('奖励变更');
934 935
     }
935 936