From 9ec7266c022e4d8b0266cde9d9d3010a34e01f2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E8=89=BA?=
<9855095+pigpigee@user.noreply.gitee.com>
Date: Sat, 12 Feb 2022 08:25:22 +0800
Subject: [PATCH] day02
---
components/category/category.vue | 61 +++++++++++++
components/category/category1.vue | 61 +++++++++++++
components/category/category2.vue | 61 +++++++++++++
components/category/category3.vue | 61 +++++++++++++
components/category/category4.vue | 61 +++++++++++++
pages.json | 14 ++-
pages/index/index.vue | 147 ++++++++++++++++--------------
pages/search/search.vue | 62 +++++++++++++
utils/config.js | 3 +-
utils/request.js | 5 +-
10 files changed, 460 insertions(+), 76 deletions(-)
create mode 100644 components/category/category.vue
create mode 100644 components/category/category1.vue
create mode 100644 components/category/category2.vue
create mode 100644 components/category/category3.vue
create mode 100644 components/category/category4.vue
create mode 100644 pages/search/search.vue
diff --git a/components/category/category.vue b/components/category/category.vue
new file mode 100644
index 0000000..4735af2
--- /dev/null
+++ b/components/category/category.vue
@@ -0,0 +1,61 @@
+
+
+ 手机
+
+
+ Redmi Note8 Pro
+ 6400万全场景四摄
+ 9999元
+
+
+
+ Redmi K30
+ 120Hz流速屏,全速热爱
+ 1599元
+
+
+
+ Redmi-Note8.png
+ 千元4800万四摄
+ 999元
+
+
+
+ Redmi-8A
+ 5000mAh超长续航
+ 599元
+
+
+
+
+
+
+
diff --git a/components/category/category1.vue b/components/category/category1.vue
new file mode 100644
index 0000000..17481a1
--- /dev/null
+++ b/components/category/category1.vue
@@ -0,0 +1,61 @@
+
+
+ 智能
+
+
+ 米家互联网空调C1(一级能效)
+ 变频节能省电,自清洁
+ 2599元
+
+
+
+ 小米USB充电器30W快充版(1A1C)
+ 多一种接口,多一种选择
+ 59元
+
+
+
+ 小米USB充电器快充
+ 安卓\苹果设备均可使用
+ 29元
+
+
+
+ 小米无线充电宝青春版10000mAh
+ 能量满满,无线有线都能充
+ 129元
+
+
+
+
+
+
+
diff --git a/components/category/category2.vue b/components/category/category2.vue
new file mode 100644
index 0000000..920c115
--- /dev/null
+++ b/components/category/category2.vue
@@ -0,0 +1,61 @@
+
+
+ 家电
+
+
+ 米家空调
+ 出众静音,快速制冷热
+ 1699元
+
+
+
+ Redmi Note8 Pro
+ 6400万全场景四摄
+ 9999
+
+
+
+ 米家互联网洗烘一体机 Pro 10kg
+ 智能洗烘,省心省力
+ 2999元
+
+
+
+ Redmi K20/ K20 Pro 怪力魔王保护壳
+ 怪力魔王专属定制
+ 39元
+
+
+
+
+
+
+
diff --git a/components/category/category3.vue b/components/category/category3.vue
new file mode 100644
index 0000000..ba61b81
--- /dev/null
+++ b/components/category/category3.vue
@@ -0,0 +1,61 @@
+
+
+ 电视
+
+
+ 小米电视4A 32英寸
+ 人工智能系统,高清液晶屏
+ 799元
+
+
+
+ 小米全面屏电视E55A
+ 全面屏设计,人工智能语音
+ 1899元
+
+
+
+ 小米全面屏电视E65A
+ 全面屏设计,人工智能语音
+ 2799元
+
+
+
+ 小米电视4X 43英寸
+ FHD全高清屏,人工智能语音
+ 1299元
+
+
+
+
+
+
+
diff --git a/components/category/category4.vue b/components/category/category4.vue
new file mode 100644
index 0000000..f46bfb6
--- /dev/null
+++ b/components/category/category4.vue
@@ -0,0 +1,61 @@
+
+
+ 笔记本
+
+
+ 小米USB充电器60W快充版(6口)
+ 6口输出,USB-C输出接口
+ 129元
+
+
+
+ 小米车载充电器快充版(37W)
+ 双口快充,车载充电更安全
+ 49元
+
+
+
+ 小米车载充电器快充版
+ 让爱车成为移动充电站
+ 69元
+
+
+
+ 小米CC9&小米CC9美图定制版 标准高透贴膜
+ 高清透亮,耐磨性强
+ 19元
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index dbb18eb..2479850 100644
--- a/pages.json
+++ b/pages.json
@@ -10,18 +10,26 @@
"enablePullDownRefresh": false
}
- }, {
+ },
+ {
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app"
}
- }, {
+ },
+ {
"path": "pages/shopcar/shopcar",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
-
+ },
+ {
+ "path": "pages/search/search",
+ "style": {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
}
],
"globalStyle": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 528be63..17beec6 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -5,64 +5,54 @@
🔎
-
+
-
+
+
-
- 推荐
- 智能
- 电视
- 家电
- 笔记本
-
+
-
-
+ interval="5000">
+
+
-
-
-
-
-
-
@@ -70,50 +60,41 @@
-
-
- 手机
-
-
-
-
-
-
- 手机
-
-
-
-
-
+
+
+
+
+
+