diff --git a/layouts/default.vue b/layouts/default.vue
index 37701a0..c6d45ed 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -6,12 +6,218 @@
* @Description: file content
-->
-
+
+
+
diff --git a/layouts/module/DefaultHeader.vue b/layouts/module/DefaultHeader.vue
new file mode 100644
index 0000000..bb7d119
--- /dev/null
+++ b/layouts/module/DefaultHeader.vue
@@ -0,0 +1,297 @@
+
+
+
+
+
diff --git a/package.json b/package.json
index d8d79fe..e117e71 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"@nuxtjs/axios": "^5.13.6",
"cookie-universal-nuxt": "^2.1.5",
"core-js": "^3.19.3",
- "element-ui": "^2.15.6",
+ "element-ui": "^2.15.8",
"js-util-all": "^1.0.6",
"node-sass": "^4.14.1",
"nuxt": "^2.15.8",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index f3fd609..6a4e2d6 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -6,44 +6,16 @@
* @Description: file content
-->
-
-
我是首页
-
-
-
时间格式化方法测试:{{date}}
-
去订单
-
-
+
+
+
+
diff --git a/pages/index/module/Banner.vue b/pages/index/module/Banner.vue
index d88150c..fcb215b 100644
--- a/pages/index/module/Banner.vue
+++ b/pages/index/module/Banner.vue
@@ -7,18 +7,54 @@
-->
- 我是banner模块
+
+
+
+
+
+
+
\ No newline at end of file
+.home-banner {
+ /deep/.el-carousel {
+ .el-carousel__container {
+ i {
+ font-size: 18px;
+ }
+ }
+ .el-carousel__arrow {
+ width: 45px;
+ height: 45px;
+ }
+ .el-carousel__arrow--left {
+ left: calc(50% - 380px) !important;
+ }
+ .el-carousel__arrow--right {
+ right: calc(50% - 550px) !important;
+ }
+ .el-image {
+ width: 100%;
+ }
+ }
+}
+
diff --git a/plugins/axios.js b/plugins/axios.js
index 850d5e3..05272ee 100644
--- a/plugins/axios.js
+++ b/plugins/axios.js
@@ -20,8 +20,8 @@ export default function({app, $axios, req}) {
})
$axios.onResponse(res => {
- if (res.data.code === 200) {
- return res.data.result;
+ if (res.status === 200) {
+ return res.data;
} else {
return Promise.reject(res.data.error);
}
diff --git a/static/images/layout/icon-arrow.png b/static/images/layout/icon-arrow.png
new file mode 100644
index 0000000..d0a0fcd
Binary files /dev/null and b/static/images/layout/icon-arrow.png differ
diff --git a/static/images/layout/icon-category.png b/static/images/layout/icon-category.png
new file mode 100644
index 0000000..58afa55
Binary files /dev/null and b/static/images/layout/icon-category.png differ
diff --git a/static/images/layout/icon-message.png b/static/images/layout/icon-message.png
new file mode 100644
index 0000000..6ba1909
Binary files /dev/null and b/static/images/layout/icon-message.png differ
diff --git a/static/images/layout/icon-order.png b/static/images/layout/icon-order.png
new file mode 100644
index 0000000..1e829e0
Binary files /dev/null and b/static/images/layout/icon-order.png differ
diff --git a/static/images/layout/icon-phone.png b/static/images/layout/icon-phone.png
new file mode 100644
index 0000000..b5b39be
Binary files /dev/null and b/static/images/layout/icon-phone.png differ
diff --git a/static/images/layout/icon-search.png b/static/images/layout/icon-search.png
new file mode 100644
index 0000000..47ff00a
Binary files /dev/null and b/static/images/layout/icon-search.png differ
diff --git a/static/images/layout/icon-shop.png b/static/images/layout/icon-shop.png
new file mode 100644
index 0000000..b8e84e0
Binary files /dev/null and b/static/images/layout/icon-shop.png differ
diff --git a/static/images/layout/icon-up-light.png b/static/images/layout/icon-up-light.png
new file mode 100644
index 0000000..848fd80
Binary files /dev/null and b/static/images/layout/icon-up-light.png differ
diff --git a/static/images/layout/icon-up.png b/static/images/layout/icon-up.png
new file mode 100644
index 0000000..97aca20
Binary files /dev/null and b/static/images/layout/icon-up.png differ
diff --git a/static/images/layout/logo.png b/static/images/layout/logo.png
new file mode 100644
index 0000000..272ba37
Binary files /dev/null and b/static/images/layout/logo.png differ