diff --git a/src/pages-system/social/client/detail/index.vue b/src/pages-system/social/client/detail/index.vue index f30b905..a83fbd7 100644 --- a/src/pages-system/social/client/detail/index.vue +++ b/src/pages-system/social/client/detail/index.vue @@ -2,7 +2,7 @@ @@ -18,9 +18,10 @@ - - + + + @@ -79,7 +80,7 @@ function handleBack() { navigateBackPlus('/pages-system/social/index') } -/** 加载社交客户端详情 */ +/** 加载三方应用详情 */ async function getDetail() { if (!props.id) { return @@ -92,21 +93,21 @@ async function getDetail() { } } -/** 编辑社交客户端 */ +/** 编辑三方应用 */ function handleEdit() { uni.navigateTo({ url: `/pages-system/social/client/form/index?id=${props.id}`, }) } -/** 删除社交客户端 */ +/** 删除三方应用 */ function handleDelete() { if (!props.id) { return } uni.showModal({ title: '提示', - content: '确定要删除该社交客户端吗?', + content: '确定要删除该三方应用吗?', success: async (res) => { if (!res.confirm) { return diff --git a/src/pages-system/social/client/form/index.vue b/src/pages-system/social/client/form/index.vue index bf0f15c..a747570 100644 --- a/src/pages-system/social/client/form/index.vue +++ b/src/pages-system/social/client/form/index.vue @@ -41,21 +41,22 @@ + props.id ? '编辑社交客户端' : '新增社交客户端') +const getTitle = computed(() => props.id ? '编辑三方应用' : '新增三方应用') const formLoading = ref(false) const formData = ref({ id: undefined, name: '', - socialType: 0, + socialType: undefined, userType: 1, clientId: '', clientSecret: '', agentId: '', + publicKey: '', status: 0, }) const formRules = { name: [{ required: true, message: '应用名不能为空' }], socialType: [{ required: true, message: '社交平台不能为空' }], userType: [{ required: true, message: '用户类型不能为空' }], - clientId: [{ required: true, message: '客户端编号不能为空' }], - clientSecret: [{ required: true, message: '客户端密钥不能为空' }], + clientId: [{ required: true, message: '应用编号不能为空' }], + clientSecret: [{ required: true, message: '应用密钥不能为空' }], } const formRef = ref() @@ -139,7 +150,7 @@ function handleBack() { navigateBackPlus('/pages-system/social/index') } -/** 加载社交客户端详情 */ +/** 加载三方应用详情 */ async function getDetail() { if (!props.id) { return diff --git a/src/pages-system/social/components/client-list.vue b/src/pages-system/social/components/client-list.vue index 8b23cfe..57acc84 100644 --- a/src/pages-system/social/components/client-list.vue +++ b/src/pages-system/social/components/client-list.vue @@ -3,7 +3,7 @@ - + - 社交平台: + 三方平台: @@ -27,7 +27,7 @@ - 客户端编号: + 应用编号: {{ item.clientId || '-' }} @@ -39,7 +39,7 @@ - + - 社交平台 + 三方平台 @@ -114,7 +114,7 @@ const placeholder = computed(() => { if (formData.status !== -1) { conditions.push(`状态:${getDictLabel(DICT_TYPE.COMMON_STATUS, formData.status)}`) } - return conditions.length > 0 ? conditions.join(' | ') : '搜索社交客户端' + return conditions.length > 0 ? conditions.join(' | ') : '搜索三方应用' }) /** 搜索 */ diff --git a/src/pages-system/social/components/user-list.vue b/src/pages-system/social/components/user-list.vue index 70b34c2..d7b0b77 100644 --- a/src/pages-system/social/components/user-list.vue +++ b/src/pages-system/social/components/user-list.vue @@ -3,7 +3,7 @@ - + 头像: - + 创建时间: @@ -35,7 +35,7 @@ - + - 社交平台 + 三方平台 @@ -86,7 +86,7 @@ const placeholder = computed(() => { if (formData.openid) { conditions.push(`openid:${formData.openid}`) } - return conditions.length > 0 ? conditions.join(' | ') : '搜索社交用户' + return conditions.length > 0 ? conditions.join(' | ') : '搜索三方用户' }) /** 搜索 */ diff --git a/src/pages-system/social/index.vue b/src/pages-system/social/index.vue index e2a5c5e..9c32f10 100644 --- a/src/pages-system/social/index.vue +++ b/src/pages-system/social/index.vue @@ -2,7 +2,7 @@ @@ -10,8 +10,8 @@ - - + + diff --git a/src/pages-system/social/user/detail/index.vue b/src/pages-system/social/user/detail/index.vue index 7f4a156..a942cae 100644 --- a/src/pages-system/social/user/detail/index.vue +++ b/src/pages-system/social/user/detail/index.vue @@ -2,7 +2,7 @@ @@ -10,17 +10,33 @@ - + - + + + + + {{ formData?.openid || '-' }} + + + + + {{ formData?.token || '-' }} + + + + + {{ formData?.rawTokenInfo || '-' }} + + + + + {{ formData?.rawUserInfo || '-' }} + - - - - @@ -58,7 +74,21 @@ function handleBack() { navigateBackPlus('/pages-system/social/index') } -/** 加载社交用户详情 */ +/** 复制文本并提示 */ +function handleCopyText(text?: string, title?: string) { + if (!text || text === '-') { + return + } + uni.setClipboardData({ + data: text, + success: () => { + uni.hideToast() + toast.success(`${title || '内容'}已复制`) + }, + }) +} + +/** 加载三方用户详情 */ async function getDetail() { if (!props.id) { return