diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js
index ae9e5f6..623c2ad 100644
--- a/build/webpack.base.conf.js
+++ b/build/webpack.base.conf.js
@@ -26,7 +26,8 @@ module.exports = {
'/page': resolve('src/page'),
'/common': resolve('src/common'),
'/assets': resolve('src/assets'),
- '/api': resolve('src/api')
+ '/api': resolve('src/api'),
+ '/utils': resolve('src/utils')
}
},
module: {
diff --git a/index.html b/index.html
index 82619cc..0ad8e1f 100644
--- a/index.html
+++ b/index.html
@@ -3,6 +3,9 @@
电子商城
+
+
+
diff --git a/src/api/goods.js b/src/api/goods.js
index d4847f1..77f94a8 100644
--- a/src/api/goods.js
+++ b/src/api/goods.js
@@ -3,3 +3,7 @@ import http from './public'
export const getComputer = (params) => {
return http.fetchGet('/goods/computer', params)
}
+// 未登录获取购物车
+export const getCartList = (params) => {
+ return http.fetchPost('/users/cartList', params)
+}
diff --git a/src/assets/style/common.scss b/src/assets/style/common.scss
index 0ac94e2..652773a 100644
--- a/src/assets/style/common.scss
+++ b/src/assets/style/common.scss
@@ -40,3 +40,17 @@
text-overflow: ellipsis;
white-space: nowrap;
}
+
+// 删除按钮
+.del-btn {
+ display: block;
+ cursor: pointer;
+ width: 20px;
+ height: 20px;
+ background: url(/static/images/account-icon@2x.32d87deb02b3d1c3cc5bcff0c26314ac.png) -50px -60px no-repeat;
+ background-size: 240px 107px;
+ text-indent: -9999em;
+ &:hover {
+ background-position: -75px -60px;
+ }
+}
diff --git a/src/assets/style/mixin.scss b/src/assets/style/mixin.scss
index 4bb3b6e..f58d19e 100644
--- a/src/assets/style/mixin.scss
+++ b/src/assets/style/mixin.scss
@@ -4,7 +4,7 @@
justify-content: center;
}
-@mixin wh($w,$h) {
+@mixin wh($w,$h:$w) {
width: $w;
height: $h;
}
diff --git a/src/common/header.vue b/src/common/header.vue
index 8348399..bcf22f9 100644
--- a/src/common/header.vue
+++ b/src/common/header.vue
@@ -1,131 +1,191 @@
-
-
-
-
-
- Smartisan
-
-
-
-
- 全部商品
- 坚果 Pro
- Smartisan M1 / M1L
- Smartisan OS
- 欢喜云
- 应用下载
- 官方论坛
+