diff --git a/web1/src/views/invoice-header/add.vue b/web1/src/views/invoice-header/add.vue index 055c4c9..06f2d60 100644 --- a/web1/src/views/invoice-header/add.vue +++ b/web1/src/views/invoice-header/add.vue @@ -35,6 +35,14 @@
+ +
+ + + + 返回 +
+ { - router.back() + router.push('/user-center') }, 500) } catch (error) { $message.error('保存失败,请重试') @@ -393,6 +406,35 @@ onMounted(() => { display: flex; align-items: center; justify-content: center; + position: relative; +} + +.back-button { + position: absolute; + top: 24px; + left: 24px; + display: flex; + align-items: center; + gap: 6px; + padding: 8px 16px; + color: #606266; + cursor: pointer; + border-radius: 4px; + transition: all 0.3s ease; + font-size: 14px; +} + +.back-button:hover { + background: #F5F7FA; + color: #A30113; +} + +.back-button svg { + transition: transform 0.3s ease; +} + +.back-button:hover svg { + transform: translateX(-2px); } .invoice-form { diff --git a/web1/src/views/user-center/index.vue b/web1/src/views/user-center/index.vue index 6875a4b..8605855 100644 --- a/web1/src/views/user-center/index.vue +++ b/web1/src/views/user-center/index.vue @@ -34,6 +34,14 @@
+ +
+ + + + 返回首页 +
+
@@ -306,6 +314,11 @@ function handleDownloadCertificate(item) { $message.info('下载证书功能开发中') } +// 返回首页 +function handleBackToHome() { + router.push('/home') +} + // 菜单点击 function handleMenuClick(menu) { currentMenu.value = menu.id @@ -437,6 +450,37 @@ onMounted(() => { flex: 1; padding: 20px; overflow-y: auto; + position: relative; +} + +.back-button { + position: absolute; + top: 20px; + left: 20px; + display: flex; + align-items: center; + gap: 6px; + padding: 8px 16px; + color: #606266; + cursor: pointer; + border-radius: 4px; + transition: all 0.3s ease; + font-size: 14px; + background: white; + z-index: 10; +} + +.back-button:hover { + background: #F5F7FA; + color: #A30113; +} + +.back-button svg { + transition: transform 0.3s ease; +} + +.back-button:hover svg { + transform: translateX(-2px); } .content-section { @@ -445,6 +489,7 @@ onMounted(() => { padding: 24px; min-height: calc(100vh - 40px); position: relative; + margin-top: 50px; } /* 估值记录 */