diff --git a/src/components/Awards.vue b/src/components/Awards.vue index cef80b8..7badc81 100644 --- a/src/components/Awards.vue +++ b/src/components/Awards.vue @@ -4,27 +4,27 @@
-

荣获奖项

+

红点奖

-

荣获奖项

+

IF奖

-

荣获奖项

+

G-Mark奖

-

荣获奖项

+

红星奖

-

荣获奖项

+

金点奖

-

荣获奖项

+

DIA奖

@@ -49,16 +49,17 @@ import A6 from '@/static/img/awards/Awards6.png' .card { flex: 1; background: #fff; - padding: 29px 40px 26px 40px; + padding: 29px 0 26px 0; + display: flex; + flex-direction: column; + align-items: center; .icon { width: 44px; height: 44px; margin-bottom: 19px; } .title { - font-size: 18px; - transform: scale(0.5) translateX(-10px); - max-width: 39px; + font-size: 8px; font-family: Alibaba PuHuiTi; font-weight: 500; color: #636363; diff --git a/src/components/Bottom.vue b/src/components/Bottom.vue index bbb506e..c6003d8 100644 --- a/src/components/Bottom.vue +++ b/src/components/Bottom.vue @@ -40,7 +40,11 @@ const props = defineProps({ }) const addWeChat = () => { - window.location.href = 'weixin://' + console.log(window.location) + const origin = window.location.origin + const pathname = window.location.pathname + const p = `${origin}${pathname}#/code` + window.open(p) } const toPhone = () => { diff --git a/src/components/Card.vue b/src/components/Card.vue index c4bcdd5..65be661 100644 --- a/src/components/Card.vue +++ b/src/components/Card.vue @@ -32,6 +32,7 @@ const props = defineProps({ }, }) const toDetail = (productId, classify) => { + // detail router.push({ path: `/detail`, query: { diff --git a/src/components/SubNavigation.vue b/src/components/SubNavigation.vue index 411c0bc..44af95a 100644 --- a/src/components/SubNavigation.vue +++ b/src/components/SubNavigation.vue @@ -36,7 +36,10 @@ const openDrawer = () => { drawer.value = true } const toPage = path => { - router.push(path) + const origin = window.location.origin + const pathname = window.location.pathname + const p = `${origin}${pathname}#${path}` + window.location.href = p } const hidePanel = event => { diff --git a/src/components/Top.vue b/src/components/Top.vue index bee148d..5b434f7 100644 --- a/src/components/Top.vue +++ b/src/components/Top.vue @@ -59,7 +59,10 @@ const openDrawer = () => { drawer.value = true } const toPage = path => { - router.push(path) + const origin = window.location.origin + const pathname = window.location.pathname + const p = `${origin}${pathname}#${path}` + window.location.href = p } const hidePanel = event => { diff --git a/src/pages/QRCode.vue b/src/pages/QRCode.vue new file mode 100644 index 0000000..edfcd81 --- /dev/null +++ b/src/pages/QRCode.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index e0ab083..6a438a4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,6 +8,7 @@ const Company = () => import('@/pages/Company') const CaseShow = () => import('@/pages/CaseShow') const Product = () => import('@/pages/Product') const Hardware = () => import('@/pages/Hardware') +const QRCode = () => import('@/pages/QRCode') // 配置路由信息 const routes = [ @@ -20,6 +21,7 @@ const routes = [ { path: '/case-show', component: CaseShow }, { path: '/product', component: Product }, { path: '/hardware', component: Hardware }, + { path: '/code', component: QRCode }, ] const router = createRouter({ diff --git a/src/static/img/code.jpg b/src/static/img/code.jpg new file mode 100644 index 0000000..9013413 Binary files /dev/null and b/src/static/img/code.jpg differ