模板
-
+
设置
diff --git a/contact-frontend/packages/modules/services/system/src/views/pages/authenticator/AuthenticatorMethodsView.vue b/contact-frontend/packages/modules/services/system/src/views/pages/authenticator/AuthenticatorMethodsView.vue
index 46052d2e..cce6bd88 100644
--- a/contact-frontend/packages/modules/services/system/src/views/pages/authenticator/AuthenticatorMethodsView.vue
+++ b/contact-frontend/packages/modules/services/system/src/views/pages/authenticator/AuthenticatorMethodsView.vue
@@ -6,780 +6,173 @@ import {
NGrid,
NGridItem,
NIcon,
- FormInst,
- NForm,
- NFormItem,
- NSwitch,
NDataTable,
- NInput,
} from 'naive-ui'
import {
MailOutline,
KeyOutline,
- LogoFacebook,
- LogoGithub,
PersonCircleOutline,
LogoAlipay,
} from '@vicons/ionicons5'
import { ref } from 'vue'
import wechat from '@cskefu/assets/third-logo/wechat.svg'
+import github from '@cskefu/assets/third-logo/github.svg'
+import facebook from '@cskefu/assets/third-logo/facebook.svg'
import google from '@cskefu/assets/third-logo/google.svg'
import microsoft from '@cskefu/assets/third-logo/microsoft.svg'
-const formProvider = ref
(null)
-let modelProvider = ref({
- switchValue: false,
-})
-let modelProviderApp = ref({
- switchValue: false,
- id: '',
- password: '',
-})
-const rules = {
- id: {
- required: true,
- message: '请输入正确的ID',
- trigger: ['input'],
+const NativeProvider = [
+ {
+ provider: 'username',
+ label: '账号/密码',
+ icon: KeyOutline,
+ disabled: false,
},
- password: {
- required: true,
- message: '请输入正确的密钥',
- trigger: ['input'],
+ {
+ provider: 'email',
+ label: '电子邮件/密码',
+ icon: MailOutline,
+ disabled: true,
},
-}
-let isShowFormProvider = ref('')
-let isShowForm = ref(false)
-let isShowList = ref(true)
+ {
+ provider: 'guest',
+ label: '游客访问',
+ icon: PersonCircleOutline,
+ disabled: true,
+ },
+]
-const columns = ref([
- { title: '提供方', key: 'provider' },
- { title: '状态', key: 'status' },
-])
+const DomesticProvider = [
+ {
+ provider: 'alipay',
+ label: '微信',
+ image: wechat,
+ description: '允许用户使用支付宝扫码登录。',
+ disabled: true,
+ },
+ {
+ provider: 'wechat',
+ label: '支付宝',
+ icon: LogoAlipay,
+ description: '允许用户使用微信扫码。',
+ disabled: true,
+ },
+]
+
+const OtherProvider = [
+ {
+ provider: 'google',
+ label: 'Goole',
+ image: google,
+ description: '允许用户使用微信扫码。',
+ disabled: true,
+ },
+ {
+ provider: 'Facebook',
+ label: 'facebook',
+ image: facebook,
+ description: '允许用户使用微信扫码。',
+ disabled: true,
+ },
+ {
+ provider: 'microsoft',
+ label: 'Microsoft',
+ image: microsoft,
+ description: '允许用户使用微信扫码。',
+ disabled: true,
+ },
+ {
+ provider: 'github',
+ label: 'Github',
+ image: github,
+ description: '允许用户使用微信扫码。',
+ disabled: true,
+ },
+]
+
+let isShowList = ref(true)
let data = ref([{ provider: '电子邮件/密码', status: '已启动' }])
-const handleValidateButtonClick = () => {
- formProvider.value?.validate((errors) => {
- if (!errors) {
- console.log('保存成功')
- isShowForm.value = false
- isShowList.value = true
- } else {
- console.log('保存失败')
- }
- })
- modelProvider.value = { switchValue: false }
- modelProviderApp.value = { switchValue: false, id: '', password: '' }
-}
-
-const handleCloseButtonClick = () => {
- isShowForm.value = false
- modelProvider.value = { switchValue: false }
- modelProviderApp.value = { switchValue: false, id: '', password: '' }
-}
-
-function onClickProvider(str: string): void {
- isShowForm.value = true
- isShowFormProvider.value = str
+function onClickProvider(provider: string): void {
+ // todo
+ console.log(provider)
}
-
-