diff --git a/src/App.vue b/src/App.vue index 521028a..93d36a2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,6 +7,6 @@ import { defineComponent, getCurrentInstance, onMounted, reactive } from "vue"; import DevicePixelRatio from './utils/devicePixelRatio'; onMounted(() => { - new DevicePixelRatio().init(); + // new DevicePixelRatio().init(); }) diff --git a/src/api/website/home/index.js b/src/api/website/home/index.js index 1c1601f..f70191b 100644 --- a/src/api/website/home/index.js +++ b/src/api/website/home/index.js @@ -38,4 +38,21 @@ export function company() { url: '/v1/index/distribution/company', method: 'get' }) -} \ No newline at end of file +} + +// 获取banner +export function banner (key) { + return request({ + url: '/v1/sys/banner', + method: 'get', + params: { key } + }) +} + +// 行业领域信息 +export function industry () { + return request({ + url: '/v1/sys/industry', + method: 'get', + }) +} diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 150af0a..6f50f81 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -237,3 +237,8 @@ aside { .x_bg_blue{ background-color: #0054ff !important; } + +// 富文本图片 +.html img { + max-width: 100%; +} diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 25fbb13..86debd3 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -3,7 +3,7 @@ import ScrollPane from './ScrollPane' import { getNormalPath } from '@/utils/ruoyi' - const visible = ref(false); const top = ref(0); const left = ref(0); diff --git a/src/router/index.js b/src/router/index.js index dce99ca..96c2fb6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -40,38 +40,41 @@ export const constantRoutes = [ component: () => import('../views/website/index/index.vue'), }, { - path: 'solution', + path: 'solution/:name', name: 'solution', component: () => import('../views/website/solution/solution.vue'), - children:[ - { - path:'small', - name:'small', - component: () => import('../views/website/solution/small.vue'), - },{ - path:'large', - name:'large', - component: () => import('../views/website/solution/large.vue'), - },{ - path:'government', - name:'government', - component: () => import('../views/website/solution/government.vue'), - },{ - path:'scientific', - name:'scientific', - component: () => import('../views/website/solution/scientific.vue'), - }, - ] + }, + { + path: 'solution/detail/:id', + name: 'solutionDetail', + component: () => import('../views/website/solution/detail.vue'), }, { path: 'innovate', name: 'innovate', component: () => import('../views/website/innovate/innovate.vue'), }, + { + path: 'innovate/detail/:id', + name: 'innovateDetail', + component: () => import('../views/website/innovate/detail.vue'), + }, { path: 'activity', name: 'activity', component: () => import('../views/website/activity/activity.vue'), + children:[ + { + path: '', + name: 'activityList', + component: () => import('../views/website/activity/list.vue'), + }, + { + path: 'detail/:id', + name: 'activityDetail', + component: () => import('../views/website/activity/detail.vue'), + }, + ] }, { path: 'about', diff --git a/src/views/website/about/about.vue b/src/views/website/about/about.vue index d88d803..e2fac3e 100644 --- a/src/views/website/about/about.vue +++ b/src/views/website/about/about.vue @@ -1,21 +1,26 @@