|
@@ -41,37 +41,33 @@
|
|
|
//0.页面依赖 start ---------------------------------------->
|
|
|
import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus'
|
|
|
import { ArrowRight } from '@element-plus/icons-vue'
|
|
|
+import type { INewsDetail, IBottomMenu } from '@/utils/dataInterface'
|
|
|
//菜单
|
|
|
import menu1Style from '@/components/template/component/menu/144x365/1.vue'
|
|
|
import menu2Style from '@/components/template/component/menu/144x365/2.vue'
|
|
|
-//详情样式 详情只需要传入skinId
|
|
|
+//详情
|
|
|
import mainStyle from '@/components/template/component/main/1200x1120/1.vue'
|
|
|
-
|
|
|
interface Props {
|
|
|
- templateData:any,//模板数据
|
|
|
- skinId: number,//皮肤id
|
|
|
+ templateData:any,
|
|
|
+ skinId: number,
|
|
|
}
|
|
|
-
|
|
|
const props = defineProps<Props>();
|
|
|
//0.页面依赖 end ---------------------------------------->
|
|
|
|
|
|
//1.页面数据 start ---------------------------------------->
|
|
|
-//获得跳转过来的id
|
|
|
+//必备参数
|
|
|
const route = useRoute();
|
|
|
-//获得当前的完整路径
|
|
|
-const fullPath = route.path;
|
|
|
-//拆分,取出来中间这一段,然后提取数字部分
|
|
|
-const segments = fullPath.split('/');
|
|
|
-const targetSegment = segments[2];
|
|
|
-//判断处于什么位置
|
|
|
-const routeLevel = ref(0);
|
|
|
+const fullPath:string = route.path;
|
|
|
+const segments:string[] = fullPath.split('/');
|
|
|
+const targetSegment:string = segments[2];
|
|
|
+//判断路由深度
|
|
|
+const routeLevel = ref<number>(0);
|
|
|
if(route.name == 'about-dir-dir-id'){
|
|
|
routeLevel.value = 1;
|
|
|
}
|
|
|
-
|
|
|
let articleId:number;
|
|
|
let pageId:number;
|
|
|
-//通过导航路径反向查询导航id
|
|
|
+//反向查询导航id
|
|
|
const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
|
|
|
method: 'GET',
|
|
|
query: {
|
|
@@ -82,10 +78,14 @@ if(getRouteId.code == 200){
|
|
|
articleId = getRouteId.data.id;
|
|
|
pageId = getRouteId.data.id;
|
|
|
}
|
|
|
-const newsDetail = ref<any>({})
|
|
|
-const bottomMenu = ref([]);
|
|
|
+//中央招聘详情
|
|
|
+const newsDetail = ref<INewsDetail>({
|
|
|
+ con_title:"",
|
|
|
+ content:"",
|
|
|
+ type_id:0
|
|
|
+})
|
|
|
async function getPageData() {
|
|
|
- const mkdata = await requestDataPromise('/web/getWebsiteFooterCategoryInfo', {
|
|
|
+ const mkdata:any = await requestDataPromise('/web/getWebsiteFooterCategoryInfo', {
|
|
|
method: 'GET',
|
|
|
query: {
|
|
|
'fcat_id': articleId,
|
|
@@ -95,8 +95,10 @@ async function getPageData() {
|
|
|
newsDetail.value = mkdata.data;
|
|
|
}
|
|
|
getPageData();
|
|
|
+//左侧悬浮菜单
|
|
|
+const bottomMenu = ref<IBottomMenu[]>([]);
|
|
|
async function getPageMenu() {
|
|
|
- const mkdata = await requestDataPromise('/web/getWebsiteFooterCategory', {
|
|
|
+ const mkdata:any = await requestDataPromise('/web/getWebsiteFooterCategory', {
|
|
|
method: 'GET',
|
|
|
query: {},
|
|
|
});
|