소스 검색

!69 修复优惠券(类别型)功能
Merge pull request !69 from 卢越/master

芋道源码 8 달 전
부모
커밋
7a3f98e5fc
3개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 1
      pages/goods/index.vue
  2. 1 0
      pages/index/cart.vue
  3. 1 1
      sheep/hooks/useModal.js

+ 2 - 1
pages/goods/index.vue

@@ -156,7 +156,8 @@
       data: JSON.stringify({
         items: [{
           skuId: e.id,
-          count: e.goods_num
+          count: e.goods_num,
+		  categoryId: state.goodsInfo.categoryId
         }]
       }),
     });

+ 1 - 0
pages/index/cart.vue

@@ -107,6 +107,7 @@
 				skuId: item.sku.id,
 				count: item.count,
 				cartId: item.id,
+				categoryId: item.spu.categoryId
 			})
 			goods_list.push({
 				// goods_id: item.goods_id,

+ 1 - 1
sheep/hooks/useModal.js

@@ -14,7 +14,7 @@ export function showAuthModal(type = 'smsLogin') {
       modal.$patch((state) => {
         state.auth = type;
       });
-    }, 200);
+    }, 500);
     closeAuthModal();
   } else {
     modal.$patch((state) => {