From c98f76127589ea44479fefd688509e7580ecb96b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Oct 2026 11:12:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=95=86=E5=9F=8E=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=B7=B3=E8=BD=AC=20https://auth.88531.cn/#/?= =?UTF-8?q?docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/public/Shop.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/public/Shop.vue b/frontend/src/views/public/Shop.vue index bcd6cab..386abc7 100644 --- a/frontend/src/views/public/Shop.vue +++ b/frontend/src/views/public/Shop.vue @@ -43,7 +43,7 @@ ref="navTabRefs" class="nav-tab" :class="{ active: activeTab === tab.key }" - @click="activeTab = tab.key" + @click="onNavTabClick(tab.key)" type="button" > @@ -270,7 +270,7 @@
-
开发者对接(API)— 详细文档详见 系统介绍页
+
开发者对接(API)— 详细文档见 系统介绍页

统一响应 {"code":200,"message":"…","data":{…}};公开接口无需认证,机器码验证需请求头 X-Api-Key: 项目APIKey(「项目管理」中获取)。

POST /api/public/verify 机器码授权验证
@@ -577,6 +577,7 @@ const CheckIcon = () => h('svg', { viewBox: '0 0 16 16', width: 14, height: 14, ]) /* ===== 导航 ===== */ +const DOCS_URL = 'https://auth.88531.cn/#/docs' const activeTab = ref('buy') const tabs = [ { key: 'buy', label: '购买授权', icon: IconBuy }, @@ -584,6 +585,14 @@ const tabs = [ { key: 'query', label: '授权查询', icon: IconQuery }, { key: 'docs', label: '使用文档', icon: IconDoc }, ] + +function onNavTabClick(key) { + if (key === 'docs') { + window.open(DOCS_URL, '_blank', 'noopener') + return + } + activeTab.value = key +} const navTabsRef = ref(null) const navTabRefs = ref([]) const navSliderStyle = ref({ width: '0px', transform: 'translateX(0px)', opacity: 0 })