|
@@ -24,7 +24,7 @@
|
|
<script>
|
|
<script>
|
|
import indexDetail from '@/components/index.vue';
|
|
import indexDetail from '@/components/index.vue';
|
|
import { urlList } from '@/config/url';
|
|
import { urlList } from '@/config/url';
|
|
-import { mapActions, mapState } from 'vuex';
|
|
|
|
|
|
+import { mapActions, mapState, createNamespacedHelpers } from 'vuex';
|
|
import _ from 'lodash';
|
|
import _ from 'lodash';
|
|
export default {
|
|
export default {
|
|
metaInfo() {
|
|
metaInfo() {
|
|
@@ -105,12 +105,13 @@ export default {
|
|
this.loadMenu(); //获取菜单信息
|
|
this.loadMenu(); //获取菜单信息
|
|
this.toGetModule(); //获取模块信息
|
|
this.toGetModule(); //获取模块信息
|
|
this.toGetJobInfo(); //获取招聘信息
|
|
this.toGetJobInfo(); //获取招聘信息
|
|
|
|
+ this.getAdv();
|
|
// this.toGetLinks(); //招聘信息+网站链接
|
|
// this.toGetLinks(); //招聘信息+网站链接
|
|
// this.self();
|
|
// this.self();
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['getSite', `getMenu`, 'getColumn', 'getAllNews', 'getAllColumn', 'getModule', 'getNews', 'getJobInfo', 'getPosts', 'getLink']),
|
|
|
|
|
|
+ ...mapActions(['getSite', `getMenu`, 'getColumn', 'getAllNews', 'getAllColumn', 'getModule', 'getNews', 'getJobInfo', 'getPosts', 'getLink', 'advQuery']),
|
|
//站点信息
|
|
//站点信息
|
|
async toGetSite() {
|
|
async toGetSite() {
|
|
let site = sessionStorage.getItem('site');
|
|
let site = sessionStorage.getItem('site');
|
|
@@ -283,6 +284,11 @@ export default {
|
|
this.$router.push({ path: '/quiet', query: { title: title } });
|
|
this.$router.push({ path: '/quiet', query: { title: title } });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ //请求广告列表
|
|
|
|
+ async getAdv() {
|
|
|
|
+ let res = await this.advQuery({ skip: 0, limit: 2 });
|
|
|
|
+ console.log(res);
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|