diff --git a/assets/css/product.less b/assets/css/product.less
index 94111c4..6bc2c93 100644
--- a/assets/css/product.less
+++ b/assets/css/product.less
@@ -17,16 +17,15 @@
}
.search-box {
- width: 686rpx;
+ width: 90%;
height: 60rpx;
- margin: 0 auto;
padding: 0 24rpx 0 32rpx;
box-sizing: border-box;
background: #F7F7F7;
border-radius: 30rpx;
input {
- width: 560rpx;
+ width: 540rpx;
font-size: 24rpx;
}
diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue
index 8bd7a4f..138a669 100644
--- a/pages/shop/GoodSearch/index.vue
+++ b/pages/shop/GoodSearch/index.vue
@@ -20,7 +20,11 @@
-
+
+
+ {{ CartCount > 99 ? '99+' : CartCount }}
+
+
{
+ this.CartCount = res.data.count
+ })
+ }
+ },
+ goShoppingCart() {
+ this.$yrouter.switchTab('/pages/cart')
+ },
showHistory() {
if(this.search) {
this.showkey = false
@@ -225,6 +250,22 @@ export default {