From f46cd7b905fff78e78e8f54dea400ed92cabc2d4 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 22 Nov 2024 18:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=AD=89=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/assets/icon/cart.svg | 1 + src/components/equipCardNew/index.vue | 187 ++++++++++++++++++++++++++ src/http/api/equip.ts | 8 +- src/layout/header.vue | 42 +++--- src/views/home/index.vue | 113 +++++++++------- 6 files changed, 282 insertions(+), 70 deletions(-) create mode 100644 src/assets/icon/cart.svg create mode 100644 src/components/equipCardNew/index.vue diff --git a/components.d.ts b/components.d.ts index d030040..37c1ff3 100644 --- a/components.d.ts +++ b/components.d.ts @@ -39,6 +39,7 @@ declare module 'vue' { ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElUpload: typeof import('element-plus/es')['ElUpload'] EquipCard: typeof import('./src/components/equipCard.vue')['default'] + EquipCardNew: typeof import('./src/components/equipCardNew/index.vue')['default'] EquipDetailTable: typeof import('./src/components/equipDetailTable.vue')['default'] FooterInfo: typeof import('./src/components/FooterInfo/index.vue')['default'] FormComponent: typeof import('./src/components/FormComponent/index.vue')['default'] diff --git a/src/assets/icon/cart.svg b/src/assets/icon/cart.svg new file mode 100644 index 0000000..3e4508a --- /dev/null +++ b/src/assets/icon/cart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/equipCardNew/index.vue b/src/components/equipCardNew/index.vue new file mode 100644 index 0000000..90425be --- /dev/null +++ b/src/components/equipCardNew/index.vue @@ -0,0 +1,187 @@ + + + diff --git a/src/http/api/equip.ts b/src/http/api/equip.ts index dd5013e..dc75be4 100644 --- a/src/http/api/equip.ts +++ b/src/http/api/equip.ts @@ -4,7 +4,7 @@ import { post, get, put } from '../index' export const getList = (params = {}) => { return post('/zlpt-equip/dev/list', { ...params, - maStatus:16 + maStatus: 16 }) } @@ -14,10 +14,10 @@ export const getDetail = (id = '') => { } //获取 推荐装备列表 -export const getHotList = (params) => { - return get('/zlpt-equip/dev/hotList', { +export const getHotList = (params: any) => { + return get('/material-mall/dev/hotList', { ...params, - maStatus:16 + maStatus: 16 }) } diff --git a/src/layout/header.vue b/src/layout/header.vue index da3f132..993d2cb 100644 --- a/src/layout/header.vue +++ b/src/layout/header.vue @@ -51,6 +51,8 @@ const inputRef: any = ref(null) // return store.searchHistoryList.slice(0, 1) // }) +const searchHistoryList = ref(['挖掘机', '塔式起重机', '挖掘机', '吊机']) + // 搜索按钮 const searchKeywordBtn = () => { /* 去除空格 */ @@ -100,21 +102,24 @@ const onSelectRoles = (type: number) => {
-
+
- - 登录 - / - 注册 - - - 退出登录 - + 登录 + / + 注册 + 退出登录
- @@ -312,12 +321,13 @@ const onSelectRoles = (type: number) => { .logo-ipt-container { position: relative; display: flex; + align-items: center; background-color: #eeeff6; padding: 30px 0; img { - width: 240px; - height: 58px; + width: 210px; + height: 48px; cursor: pointer; } @@ -343,7 +353,7 @@ const onSelectRoles = (type: number) => { .search-btn { width: 100px; height: 39px; - transform: translate(-110px, 4px); + transform: translate(-110px, 0); border-radius: 39px; background: linear-gradient(132deg, #22ab9b 0%, #0d7462 100%); box-shadow: 0px 2px 4px 0px rgba(20, 175, 255, 0.5); @@ -355,7 +365,7 @@ const onSelectRoles = (type: number) => { .ipt-down { position: absolute; - bottom: 15px; + bottom: 5px; left: 22%; overflow: hidden; diff --git a/src/views/home/index.vue b/src/views/home/index.vue index eaa0a8c..e25f3f8 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -1,5 +1,6 @@