hookehuyr

✨ feat: 新增产品二级页面

...@@ -7,10 +7,15 @@ export {} ...@@ -7,10 +7,15 @@ export {}
7 /* prettier-ignore */ 7 /* prettier-ignore */
8 declare module 'vue' { 8 declare module 'vue' {
9 export interface GlobalComponents { 9 export interface GlobalComponents {
10 + ElBreadcrumb: typeof import('element-ui/lib/breadcrumb')['default']
11 + ElBreadcrumbItem: typeof import('element-ui/lib/breadcrumb-item')['default']
10 ElButton: typeof import('element-ui/lib/button')['default'] 12 ElButton: typeof import('element-ui/lib/button')['default']
11 ElCol: typeof import('element-ui/lib/col')['default'] 13 ElCol: typeof import('element-ui/lib/col')['default']
14 + ElCollapse: typeof import('element-ui/lib/collapse')['default']
15 + ElCollapseItem: typeof import('element-ui/lib/collapse-item')['default']
12 ElCollapseTransition: typeof import('element-ui/lib/transitions/collapse-transition')['default'] 16 ElCollapseTransition: typeof import('element-ui/lib/transitions/collapse-transition')['default']
13 ElImage: typeof import('element-ui/lib/image')['default'] 17 ElImage: typeof import('element-ui/lib/image')['default']
18 + ElInput: typeof import('element-ui/lib/input')['default']
14 ElRow: typeof import('element-ui/lib/row')['default'] 19 ElRow: typeof import('element-ui/lib/row')['default']
15 HagerBox: typeof import('./src/components/common/hagerBox.vue')['default'] 20 HagerBox: typeof import('./src/components/common/hagerBox.vue')['default']
16 HagerFooter: typeof import('./src/components/common/hagerFooter.vue')['default'] 21 HagerFooter: typeof import('./src/components/common/hagerFooter.vue')['default']
......
1 /* 1 /*
2 * @Date: 2024-08-26 10:42:15 2 * @Date: 2024-08-26 10:42:15
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-09-26 14:44:17 4 + * @LastEditTime: 2024-09-27 16:54:22
5 * @FilePath: /hager/src/route.js 5 * @FilePath: /hager/src/route.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -13,4 +13,12 @@ export default [{ ...@@ -13,4 +13,12 @@ export default [{
13 title: '海格电器' 13 title: '海格电器'
14 }, 14 },
15 children: [] 15 children: []
16 +}, {
17 + path: '/product/index',
18 + name: '二级目录',
19 + component: () => import('@/views/product/index'),
20 + meta: {
21 + title: '海格电器'
22 + },
23 + children: []
16 }] 24 }]
......
1 +<!--
2 + * @Date: 2024-09-27 16:53:09
3 + * @LastEditors: hookehuyr hookehuyr@gmail.com
4 + * @LastEditTime: 2024-09-27 18:07:10
5 + * @FilePath: /hager/src/views/product/index.vue
6 + * @Description: 文件描述
7 +-->
8 +<template>
9 + <div class="product-index">
10 + <hager-box>
11 + <div>
12 + <el-breadcrumb separator="/">
13 + <el-breadcrumb-item>所有产品</el-breadcrumb-item>
14 + <el-breadcrumb-item>配电产品</el-breadcrumb-item>
15 + <el-breadcrumb-item>低压主配电</el-breadcrumb-item>
16 + </el-breadcrumb>
17 + </div>
18 + <div>
19 + <p>低压主配电</p>
20 + <p>Automatic conversion switch</p>
21 + </div>
22 + <el-row :gutter="0" style="margin: 1rem 0;">
23 + <el-col :span="8">
24 + <div style="border: 1px solid #eee; border-radius: 5px; padding: 10px; margin-right: 1rem;">
25 + <div>按产品类别查找</div>
26 + <el-input placeholder="请输入产品" prefix-icon="el-icon-search" v-model="search_input"></el-input>
27 + <el-collapse v-model="activeNames" @change="handleChange">
28 + <el-collapse-item title="低压主配电" name="1">
29 + <div>acb hw01 空气断路器</div>
30 + <div>unimes(优跃)开关柜</div>
31 + <div>unimes(优跃)面板开关</div>
32 + <div>acb hw04 空气断路器</div>
33 + <div>acb hwo5 空气断路器</div>
34 + <div>acb hw06 空气断路器</div>
35 + <div>acb hwo7 空气断路器</div>
36 + </el-collapse-item>
37 + <el-collapse-item title="分配电" name="2">
38 + </el-collapse-item>
39 + <el-collapse-item title="终端配电" name="3">
40 + </el-collapse-item>
41 + <el-collapse-item title="开关面板" name="4">
42 + </el-collapse-item>
43 + <el-collapse-item title="酒店客控" name="5">
44 + </el-collapse-item>
45 + <el-collapse-item title="智能家居" name="6">
46 + </el-collapse-item>
47 + </el-collapse>
48 + </div>
49 + </el-col>
50 + <el-col :span="16">
51 + <el-row :gutter="10">
52 + <el-col :span="8">
53 + <div>
54 + <el-image src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image>
55 + <p>acb hw 空气断路器</p>
56 + </div>
57 + </el-col>
58 + <el-col :span="8">
59 + <div>
60 + <el-image src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image>
61 + <p>acb hw 空气断路器</p>
62 + </div>
63 + </el-col>
64 + <el-col :span="8">
65 + <div>
66 + <el-image src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image>
67 + <p>acb hw 空气断路器</p>
68 + </div>
69 + </el-col>
70 + </el-row>
71 + </el-col>
72 + </el-row>
73 + </hager-box>
74 + </div>
75 +</template>
76 +
77 +<script>
78 +import mixin from 'common/mixin';
79 +import hagerBox from '@/components/common/hagerBox';
80 +
81 +export default {
82 + components: { hagerBox },
83 + mixins: [mixin.init],
84 + data () {
85 + return {
86 + search_input: '',
87 + activeNames: ['1']
88 + }
89 + },
90 + mounted () {
91 +
92 + },
93 + methods: {
94 + handleChange(val) {
95 + console.log(val);
96 + }
97 + }
98 +}
99 +</script>
100 +
101 +<style lang="less" scoped>
102 + .product-index {
103 +
104 + }
105 +</style>