尾部导航
This commit is contained in:
@ -99,6 +99,7 @@ import webFooter from "@/components/webFooter/index.vue";
|
||||
import { banner } from "@/api/website/home/index";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { getCase } from "@/api/website/solution";
|
||||
// import { getCategory } from "../../../api/website/solution";
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
@ -110,13 +111,13 @@ function handlePath(id) {
|
||||
let moreData = ref([]);
|
||||
const loading = ref(true);
|
||||
const oneLevelTitle = ref({});
|
||||
const modeDict = { small: 101, large: 102, government: 103, scientific: 104 };
|
||||
const keyDict = {
|
||||
small: "解决方案>中小型企业服务",
|
||||
large: "解决方案>大型企业服务",
|
||||
government: "解决方案>政府区域服务",
|
||||
scientific: "解决方案>政府区域服务",
|
||||
};
|
||||
// const modeDict = { small: 101, large: 102, government: 103, scientific: 104 };
|
||||
// const keyDict = {
|
||||
// small: "解决方案>中小型企业服务",
|
||||
// large: "解决方案>大型企业服务",
|
||||
// government: "解决方案>政府区域服务",
|
||||
// scientific: "解决方案>政府区域服务",
|
||||
// };
|
||||
const isShowMore = ref(false);
|
||||
const activeId = ref("");
|
||||
const itemRefs = [];
|
||||
@ -141,18 +142,19 @@ onMounted(() => {
|
||||
});
|
||||
|
||||
//
|
||||
function initData() {
|
||||
let name = route.params.name;
|
||||
if (!name) return;
|
||||
let mode = modeDict[name];
|
||||
let key = keyDict[name];
|
||||
async function initData() {
|
||||
let name = route.query.name;
|
||||
// if (!name) return;
|
||||
let mode = route.params.mode;
|
||||
// let key = keyDict[name];
|
||||
|
||||
getCase({ mode }).then((res) => {
|
||||
state.caseList = res.data;
|
||||
initScroll();
|
||||
// loading.value = false;
|
||||
});
|
||||
loading.value = true;
|
||||
banner({ locals: key })
|
||||
banner({ locals: `解决方案>${name}` })
|
||||
.then((resp) => {
|
||||
state.banner = resp.data[0].images;
|
||||
loading.value = false;
|
||||
|
Reference in New Issue
Block a user