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; + } +}