diff --git a/pages.json b/pages.json index a27d8da..3691c23 100644 --- a/pages.json +++ b/pages.json @@ -205,13 +205,6 @@ { "navigationBarTitleText" : "" } - }, - { - "path" : "pages/syy", - "style" : - { - "navigationBarTitleText" : "" - } } ], "globalStyle": { diff --git a/pages/Shopping-cart/component/addProduct.vue b/pages/Shopping-cart/component/addProduct.vue index a648c86..2d46cdc 100644 --- a/pages/Shopping-cart/component/addProduct.vue +++ b/pages/Shopping-cart/component/addProduct.vue @@ -82,11 +82,8 @@ cookie: wx.getStorageSync('cookie') }, data: { - userId: userInfo.value.id, goodId: productBrief.value.id, - quantity: quantity.value, - subtotal: productBrief.value.price * quantity.value, - isGoodType: productBrief.value.isGoodType + quantity: quantity.value } }) if (res.data.code === 1) { @@ -107,7 +104,7 @@ //减少商品 const decrease = () => { // console.log('index-->',index); - if (quantity.value > 0) { + if (quantity.value != 1) { quantity.value -= 1 } } diff --git a/pages/Shopping-cart/productmain/productmain.vue b/pages/Shopping-cart/productmain/productmain.vue index 6ab8d21..9c1532d 100644 --- a/pages/Shopping-cart/productmain/productmain.vue +++ b/pages/Shopping-cart/productmain/productmain.vue @@ -2,7 +2,7 @@