From 7ae8fae255456f723b1993044265592c11ef7a36 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 28 七月 2022 19:27:08 +0800
Subject: [PATCH] 2022-07-28

---
 src/pc/components/login/normal-login/options.jsx |  218 ++++++++++++++++++++++++++++++++----------------------
 1 files changed, 129 insertions(+), 89 deletions(-)

diff --git a/src/pc/components/login/normal-login/options.jsx b/src/pc/components/login/normal-login/options.jsx
index bcdbea9..49e70d1 100644
--- a/src/pc/components/login/normal-login/options.jsx
+++ b/src/pc/components/login/normal-login/options.jsx
@@ -41,37 +41,12 @@
       required: true
     },
     {
-      type: 'checkbox',
-      field: 'loginWays',
-      label: '鐧诲綍鏂瑰紡',
-      initval: wrap.loginWays || [],
-      required: true,
-      options: [
-        { label: '璐﹀彿', value: 'uname_pwd' },
-        { label: '鐭俊', value: 'sms_vcode' },
-        { label: '鎵爜', value: 'app_scan', disabled: appType === 'mob' },
-      ],
-      controlFields: [
-        {field: 'tempId', values: ['sms_vcode']},
-        {field: 'shortcut', values: ['uname_pwd']},
-      ]
-    },
-    {
       type: 'select',
       field: 'linkmenu',
       label: '鍏宠仈鑿滃崟',
       initval: wrap.linkmenu || '',
       required: true,
       options: menulist
-    },
-    {
-      type: 'select', // $楠岃瘉鐮�$  $mob$  $send_type$
-      field: 'tempId',
-      label: '鐭俊妯℃澘',
-      initval: wrap.tempId || '',
-      tooltip: '鐭俊妯℃澘鍙湪 浜戠郴缁�->搴旂敤鏈嶅姟->寮�鍙戣�呬腑蹇�->鐭俊妯℃澘 澶勬坊鍔犮��',
-      required: true,
-      options: msgTemps
     },
     {
       type: 'number',
@@ -104,20 +79,56 @@
       required: false,
       options: ['px', 'vh', 'vw', '%']
     },
-    // {
-    //   type: 'radio',
-    //   field: 'link',
-    //   label: '閾炬帴',
-    //   initval: wrap.link || 'menu',
-    //   required: false,
-    //   options: [
-    //     {value: 'menu', label: '鑿滃崟'},
-    //     {value: 'linkmenu', label: '鍏宠仈鑿滃崟'},
-    //   ],
-    //   controlFields: [
-    //     {field: 'linkmenu', values: ['linkmenu']}
-    //   ]
-    // },
+    {
+      type: 'radio',
+      field: 'classify',
+      label: '缁勪欢绫诲瀷',
+      initval: wrap.classify || 'login',
+      tooltip: '娉ㄥ唽鐧诲綍閮藉瓨鍦ㄦ椂锛屽湪鍏紬鍙蜂笌灏忕▼搴忎腑浼樺厛鏄剧ず娉ㄥ唽锛孉PP涓嶩5涓紭鍏堟樉绀虹櫥褰曘��',
+      required: true,
+      options: [
+        { label: '鐧诲綍', value: 'login' },
+        { label: '娉ㄥ唽', value: 'signin' },
+        { label: '娉ㄥ唽/鐧诲綍', value: 'all' },
+      ],
+      controlFields: [
+        {field: 'loginWays', values: ['login', 'all']},
+        {field: 'logintip', values: ['login', 'all']},
+        {field: 'signWays', values: ['signin', 'all']},
+        {field: 'protocol', values: ['signin', 'all']},
+        {field: 'signtip', values: ['signin', 'all']},
+      ]
+    },
+    {
+      type: 'hint',
+      field: 'logintip',
+      label: '鐧诲綍閰嶇疆'
+    },
+    {
+      type: 'checkbox',
+      field: 'loginWays',
+      label: '鐧诲綍鏂瑰紡',
+      initval: wrap.loginWays || [],
+      required: true,
+      options: [
+        { label: '璐﹀彿', value: 'uname_pwd' },
+        { label: '鐭俊', value: 'sms_vcode' },
+        { label: '鎵爜', value: 'app_scan', disabled: appType === 'mob' },
+      ],
+      controlFields: [
+        {field: 'tempId', values: ['sms_vcode']},
+        {field: 'shortcut', values: ['uname_pwd']},
+      ]
+    },
+    {
+      type: 'select', // $楠岃瘉鐮�$  $mob$  $send_type$
+      field: 'tempId',
+      label: '鐭俊妯℃澘',
+      initval: wrap.tempId || '',
+      tooltip: '鐭俊妯℃澘鍙湪 浜戠郴缁�->搴旂敤鏈嶅姟->寮�鍙戣�呬腑蹇�->鐭俊妯℃澘 澶勬坊鍔犮��',
+      required: true,
+      options: msgTemps
+    },
     {
       type: 'radio',
       field: 'shortcut',
@@ -131,56 +142,85 @@
         {value: 'autologon', label: '鑷姩鐧诲綍'},
       ]
     },
-    // {
-    //   type: 'radio',
-    //   field: 'protocol',
-    //   label: '鍗忚',
-    //   initval: wrap.protocol || 'false',
-    //   required: false,
-    //   options: [
-    //     {value: 'false', label: '鏃�'},
-    //     {value: 'true', label: '鏈�'},
-    //   ],
-    //   controlFields: [
-    //     {field: 'tip', values: ['true']},
-    //     {field: 'groups', values: ['true']},
-    //   ]
-    // },
-    // {
-    //   type: 'text',
-    //   field: 'tip',
-    //   label: '鎻愮ず鏂囧瓧',
-    //   initval: wrap.tip || '鎴戝凡闃呰骞跺悓鎰�',
-    //   required: true
-    // },
-    // {
-    //   type: 'table',
-    //   field: 'groups',
-    //   label: '鍗忚缁�',
-    //   initval: wrap.groups || [],
-    //   required: true,
-    //   span: 24,
-    //   columns: [
-    //     {
-    //       title: '鏂囨湰',
-    //       dataIndex: 'label',
-    //       inputType: 'input',
-    //       editable: true,
-    //       unique: true,
-    //       required: true,
-    //       width: '35%'
-    //     },
-    //     {
-    //       title: '閾炬帴',
-    //       dataIndex: 'link',
-    //       inputType: 'input',
-    //       editable: true,
-    //       unique: true,
-    //       required: true,
-    //       width: '40%'
-    //     },
-    //   ]
-    // }
+    {
+      type: 'hint',
+      field: 'signtip',
+      label: '娉ㄥ唽閰嶇疆'
+    },
+    {
+      type: 'checkbox',
+      field: 'signWays',
+      label: '娉ㄥ唽鏂瑰紡',
+      initval: wrap.signWays || [],
+      required: true,
+      options: [
+        { label: '璐﹀彿', value: 'uname_pwd' },
+        { label: '鐭俊', value: 'sms_vcode' },
+        { label: '寰俊', value: 'weixin', disabled: appType !== 'mob' },
+      ],
+      controlFields: [
+        {field: 'signTempId', values: ['sms_vcode']}
+      ]
+    },
+    {
+      type: 'select', // $楠岃瘉鐮�$  $mob$  $send_type$
+      field: 'signTempId',
+      label: '鐭俊妯℃澘',
+      initval: wrap.signTempId || '',
+      tooltip: '鐭俊妯℃澘鍙湪 浜戠郴缁�->搴旂敤鏈嶅姟->寮�鍙戣�呬腑蹇�->鐭俊妯℃澘 澶勬坊鍔犮��',
+      required: true,
+      options: msgTemps
+    },
+    {
+      type: 'radio',
+      field: 'protocol',
+      label: '鍗忚',
+      initval: wrap.protocol || 'false',
+      required: false,
+      options: [
+        {value: 'false', label: '鏃�'},
+        {value: 'true', label: '鏈�'},
+      ],
+      controlFields: [
+        {field: 'tip', values: ['true']},
+        {field: 'groups', values: ['true']},
+      ]
+    },
+    {
+      type: 'text',
+      field: 'tip',
+      label: '鎻愮ず鏂囧瓧',
+      initval: wrap.tip || '鎴戝凡闃呰骞跺悓鎰�',
+      required: true
+    },
+    {
+      type: 'table',
+      field: 'groups',
+      label: '鍗忚缁�',
+      initval: wrap.groups || [],
+      required: true,
+      span: 24,
+      columns: [
+        {
+          title: '鏂囨湰',
+          dataIndex: 'label',
+          inputType: 'input',
+          editable: true,
+          unique: true,
+          required: true,
+          width: '35%'
+        },
+        {
+          title: '閾炬帴',
+          dataIndex: 'link',
+          inputType: 'input',
+          editable: true,
+          unique: true,
+          required: true,
+          width: '40%'
+        },
+      ]
+    }
   ]
 
   return wrapForm

--
Gitblit v1.8.0