-
+
{{ modules[0].form.title }}
-
+
+
+
+
+
{{ modules[1].form.title }}
+
+
{{ modules[1].form.des }}
+
+
+
+
+
+
+
-
-
-
{{ modules[2].form.title }}
-
-
{{ modules[3].form.title }}
-
+
+
+
+
{{ modules[2].form.title }}
+
+
+
+
+
+
+
+
{{ modules[3].form.title }}
+
+
+
-
-
+
+
-
{{ modules[4].form.title }}
-
{{ modules[4].form.des }}
-
- -
-
+
+
{{ modules[4].form.title }}
+
{{ modules[4].form.subTitle }}
+
+
+
+
+ -
+
{{ modules[5].form.title }}
-
-
+
- -
-
+
-
+
{{ modules[6].form.title }}
-
-
+
-
-
- -
-
+
-
+
{{ modules[7].form.title }}
-
-
-
- -
-
-
-
{{ modules[8].form.title }}
-
-
-
- -
-
-
-
{{ modules[9].form.title }}
-
+
@@ -68,29 +109,34 @@
-
{{ modules[10].form.title }}
-
{{ modules[10].form.des }}
+
{{ modules[8].form.title }}
+
{{ modules[8].form.des }}
-
+
-
-
{{ modules[12].form.title }}
- {{ modules[12].form.des }}
+ {{ modules[10].form.title }}
+ {{ modules[10].form.des }}
-
-
{{ modules[13].form.title }}
- {{ modules[13].form.des }}
+ {{ modules[11].form.title }}
+ {{ modules[11].form.des }}
-
-
{{ modules[14].form.title }}
- {{ modules[14].form.des }}
+ {{ modules[12].form.title }}
+ {{ modules[12].form.des }}
-
+
@@ -103,17 +149,17 @@ import Util from "@/libs/util";
import WOW from "wow.js";
export default {
mixins: [mixins],
- data() {
+ data () {
return {
-
+
};
},
- mounted() {
+ mounted () {
new WOW().init();
},
methods: {
// 获取文章详情
- getInfo() {
+ getInfo () {
// 预览/详情
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
@@ -125,14 +171,14 @@ export default {
this.preview
? data
: data[data.length - 1][
- data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
- ]
+ data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
+ ]
);
this.modules = json;
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
- .catch((err) => {});
+ .catch((err) => { });
},
},
};
@@ -140,208 +186,266 @@ export default {
diff --git a/src/pages/talentCentre/index.vue b/src/pages/talentCentre/index.vue
index a14249d..4a9ffbc 100644
--- a/src/pages/talentCentre/index.vue
+++ b/src/pages/talentCentre/index.vue
@@ -51,7 +51,27 @@
-
+
+
+
+
人才资讯
+
+ -
+
{{ item.title }}
+ {{ item.releaseTime }}
+
+
+
@@ -63,18 +83,19 @@ import articleMixins from '@/mixins/article';
import Setting from '@/setting'
import Util from '@/libs/util'
import WOW from 'wow.js'
-import RightColumns from '@/components/rightColumns'
export default {
mixins: [mixins, articleMixins],
data () {
return {
columnId: '',
form: {},
+ defaultProps: {
+ value: 'id',
+ label: 'title'
+ },
+ articles: []
}
},
- components: {
- RightColumns
- },
mounted () {
},
@@ -90,9 +111,22 @@ export default {
data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing'])
this.modules = json
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json)
+
+ // 获取文章列表
+ const { column } = json[5].form
+ if (column.length) {
+ this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
+ this.articles = Util.removeTag(data)
+ }).catch(err => { })
+ }
}
}).catch(err => { })
},
+ columnClick (row) {
+ this.openLink(row)
+ console.log("🚀 ~ file: index.vue:126 ~ columnClick ~ row:", row)
+
+ }
}
};
@@ -130,47 +164,46 @@ export default {
.people {
margin-top: 4rem;
li {
- display: flex;
- align-items: center;
+ position: relative;
+ height: 450px;
margin-bottom: 2rem;
&:nth-child(even) {
- flex-direction: row-reverse;
.texts {
- padding: 75px 83px 75px 40px;
- margin: 0 -50px 0 0;
+ left: 50px;
+ right: auto;
+ background: rgba(255, 255, 255, 0.43);
}
}
}
.pic {
- width: 430px;
- height: 430px;
+ width: 100%;
+ height: 100%;
}
.texts {
- position: relative;
- width: 530px;
- height: 330px;
- padding: 75px 41px 75px 83px;
- margin-left: -50px;
- background-color: rgba(247, 247, 247, 0.72);
+ position: absolute;
+ top: 60px;
+ right: 50px;
+ width: 380px;
+ padding: 50px 25px;
+ background: rgba(243, 251, 255, 0.82);
}
h6 {
font-size: 1.2rem;
-
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
- color: #333;
+ color: #2a4b65;
}
.line {
width: 93px;
height: 1px;
margin: 1rem 0;
- background: #d8d8d8;
+ background: #3e6473;
}
.text {
+ margin-bottom: 1rem;
font-size: 1rem;
-
font-family: PingFangSC-Regular, PingFang SC;
- color: #666;
+ color: #2a4b65;
line-height: 1.6;
}
}
@@ -210,34 +243,46 @@ export default {
}
}
}
-@media (max-width: 1200px) {
+@media (max-width: 1400px) {
.content {
- .article {
- flex-direction: column;
- .left {
- width: 100%;
- .recruit {
- li {
- flex-direction: column;
- .pic {
- width: 100%;
- }
- .texts {
- margin-top: 0.8rem;
- }
- }
- }
- .notice {
+ width: 90%;
+ }
+ .article {
+ flex-direction: column;
+ .left {
+ width: 100%;
+ .recruit {
+ li {
flex-direction: column;
- li {
+ .pic {
width: 100%;
}
+ .texts {
+ margin-top: 0.8rem;
+ }
+ }
+ }
+ .notice {
+ flex-direction: column;
+ li {
+ width: 100%;
}
}
- .right {
- width: 100%;
- .el-tree {
- display: none;
+ }
+ .right {
+ width: 100%;
+ }
+ }
+}
+@media (max-width: 480px) {
+ .article {
+ .left {
+ .people {
+ li {
+ .texts {
+ left: 10px;
+ right: auto;
+ }
}
}
}