From 3c7c5ae69e6fd43043f345bfba37accb43499b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Fri, 26 Jun 2026 15:27:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B3=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/profile/business/index.vue | 15 +++++++++++++-- src/views/trade/exe/index.vue | 9 ++++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/views/profile/business/index.vue b/src/views/profile/business/index.vue index 4a12f76..4e5dcdb 100644 --- a/src/views/profile/business/index.vue +++ b/src/views/profile/business/index.vue @@ -71,7 +71,7 @@ label="设置做市状态" @click="handleAction('status')" /> - + /> --> @@ -531,6 +531,14 @@ const menuVisible = ref(false) const menuOptions = reactive({ x: 0, y: 0, zIndex: 3000 }) const currentRow = ref(null) const rightClickDialogVisible = ref(false) +// 判断右键菜单是否有可显示项 +const hasMenuItems = computed(() => { + if (!currentRow.value) return false + return ( + [3, 4].includes(currentRow.value.role_id) && + userStore?.userInfo?.role_id === 1 + ) +}) const rightClickDialogType = ref<'account' | 'acceptOrders' | 'transfer' | 'status' | 'deposit' | 'withdraw'>( 'account', ) @@ -573,6 +581,8 @@ const handleRowContextMenu = (row: any, column: any, event: any) => { return event?.preventDefault() currentRow.value = row + // 判断右键菜单是否有内容,没有内容则不弹出菜单 + if (!hasMenuItems.value) return menuOptions.x = event?.clientX menuOptions.y = event?.clientY menuOptions.zIndex = 3000 @@ -1419,3 +1429,4 @@ const handleCancel = async () => { } } + diff --git a/src/views/trade/exe/index.vue b/src/views/trade/exe/index.vue index b368842..af3717e 100644 --- a/src/views/trade/exe/index.vue +++ b/src/views/trade/exe/index.vue @@ -79,9 +79,13 @@ type DownloadType = 'pc' | 'android' | 'ios' // 生产:adminh5.apimcapital.top;测试:adminh5.duxiang.wiki const exeBaseUrl = import.meta.env.VITE_EXE_DOWNLOAD_BASE_URL || 'https://adminh5.apimcapital.top' +// 测试环境使用 debug 包,生产环境使用 release 包 +const isTestEnv = import.meta.env.MODE === 'test' || import.meta.env.NODE_ENV === 'test' +const androidApkName = isTestEnv ? 'app-production-debug.apk' : 'app-production-release.apk' + const downloadUrlMap: Record = { pc: `${exeBaseUrl}/pc/Apim Capital-1.0.27.exe`, - android: `${exeBaseUrl}/app/app-production-release.apk`, + android: `${exeBaseUrl}/app/${androidApkName}`, ios: `${exeBaseUrl}/app/xxxx.apk` } @@ -146,6 +150,9 @@ const handleDownload = (type: DownloadType) => { &.pc { background: linear-gradient(135deg, #409eff, #2b7cd3); + color: #fff; + font-size: 23px; + font-weight: 900; } &.android { background: linear-gradient(135deg, #36c66c, #26a357);