From 348d7aa09e360d590146b4070b1ad88b0051be6b Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 22 Jan 2025 17:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FirstJob/detail.vue | 57 +++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/src/components/FirstJob/detail.vue b/src/components/FirstJob/detail.vue index cef0c56..05a09cb 100644 --- a/src/components/FirstJob/detail.vue +++ b/src/components/FirstJob/detail.vue @@ -161,13 +161,23 @@
-

+

基本信息 财务结算 职位描述

+
+
+ {{ item.title }} +
+
+
温馨提示
{{ jobDetail.notes || "-" }}
@@ -487,6 +497,22 @@ export default { // 组件状态值 data() { return { + tabActive:1, + tabList:[ + { + title: "基本信息", + key: 1, + }, + // { + // title: "财务结算", + // key: 0, + // }, + { + title: "职位描述", + key: 2, + }, + // } + ], isSee: true, agency: {}, onSiteUsersInfo: "", @@ -1083,6 +1109,10 @@ export default { onOk() {}, }); }, + + updateTab($item,$inedx){ + this.tabActive = $item.key; + } }, }; @@ -1202,6 +1232,7 @@ export default { margin-bottom: 20px; .subset { padding: 20px; + padding-bottom: 12px; // margin-bottom: 16px; // width: 914px; background-color: #fff; @@ -2041,4 +2072,28 @@ export default { font-size: 44px; line-height: 1.3; } +.tab-item{ + width: 50%; + text-align: center; + font-size: 16px; + padding-bottom: 12px; + cursor: pointer; + position: relative; + .bor{ + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 0; + width: 20px; + height: 2px; + background-color: transparent; + } +} +.tab-item-active{ + color: #1890ff; + font-weight: 600; + .bor{ + background-color: #1890ff; + } +}