瀏覽代碼

优化:购物车删除商品后切换编辑模式

萤火科技 4 年之前
父節點
當前提交
eaf00fd54b
共有 2 個文件被更改,包括 7 次插入 和 4 次删除
  1. 2 2
      components/empty/index.vue
  2. 5 2
      pages/cart/index.vue

+ 2 - 2
components/empty/index.vue

@@ -53,9 +53,9 @@
     text-align: center;
 
     .tips {
-      font-size: 26rpx;
+      font-size: 28rpx;
       color: gray;
-      margin: 40rpx 0;
+      margin: 50rpx 0;
     }
 
     .empty-icon .image {

+ 5 - 2
pages/cart/index.vue

@@ -268,7 +268,10 @@
       onClearCart() {
         const app = this
         CartApi.clear(app.checkedIds)
-          .then(result => app.getCartList())
+          .then(result => {
+            app.getCartList()
+            app.handleToggleMode()
+          })
       }
 
     }
@@ -406,7 +409,7 @@
   .empty-ipt {
     width: 220rpx;
     margin: 0 auto;
-    font-size: 28rpx;
+    font-size: 32rpx;
     height: 64rpx;
     line-height: 64rpx;
     text-align: center;