diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue index 78bedc2c..9772291f 100644 --- a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/APIKeyManagement.vue @@ -1,7 +1,7 @@ + + + +
+
+
+
+ + {{ token.name }} +
+ + {{ token.isDisabled ? '已禁用' : '启用中' }} + +
+ +
+ +
+
API密钥
+
+ + {{ token.showKey ? token.apiKey : '•••••••••••••••••••••' }} + +
+ + +
+
+
+ + +
+
配额使用
+
+ +
+ {{ formatQuota(token.premiumUsedQuota) }} / {{ formatQuota(token.premiumQuotaLimit) }} +
+
+
+ + +
+
过期时间
+
{{ formatDateTime(token.expireTime) }}
+
+ + +
+
创建时间
+
{{ formatDateTime(token.creationTime) }}
+
+
+ + +
+ + 编辑 + + + {{ token.isDisabled ? '启用' : '禁用' }} + + + 删除 + +
+
+
@@ -1170,5 +1280,114 @@ onMounted(async () => { font-size: 13px; } } + + /* 移动端卡片列表 */ + .mobile-token-list { + display: flex; + flex-direction: column; + gap: 12px; + } + + .mobile-token-card { + background: #fff; + border: 1px solid #e8e8e8; + border-radius: 8px; + padding: 12px; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); + } + + .mobile-card-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 12px; + padding-bottom: 12px; + border-bottom: 1px solid #f0f0f0; + } + + .mobile-card-title { + display: flex; + align-items: center; + gap: 6px; + font-size: 15px; + font-weight: 600; + color: #333; + + .title-icon { + color: #409eff; + } + } + + .mobile-card-body { + display: flex; + flex-direction: column; + gap: 10px; + } + + .mobile-info-item { + display: flex; + flex-direction: column; + gap: 6px; + } + + .mobile-info-label { + font-size: 12px; + color: #999; + font-weight: 500; + } + + .mobile-info-value { + font-size: 14px; + color: #333; + } + + .mobile-key-row { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + background: #f5f7fa; + padding: 8px; + border-radius: 4px; + } + + .mobile-key-text { + flex: 1; + font-size: 12px; + color: #333; + font-family: monospace; + word-break: break-all; + } + + .mobile-key-actions { + display: flex; + gap: 4px; + flex-shrink: 0; + } + + .mobile-quota-info { + display: flex; + flex-direction: column; + gap: 6px; + } + + .mobile-quota-text { + font-size: 13px; + color: #666; + text-align: center; + } + + .mobile-card-actions { + display: flex; + gap: 8px; + margin-top: 12px; + padding-top: 12px; + border-top: 1px solid #f0f0f0; + + .el-button { + flex: 1; + font-size: 13px; + } + } } diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/RechargeLog.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/RechargeLog.vue index 2632751e..470ca558 100644 --- a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/RechargeLog.vue +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/RechargeLog.vue @@ -1,7 +1,7 @@