diff --git a/src/pages/cart/cart.vue b/src/pages/cart/cart.vue index 4536364..b01c182 100644 --- a/src/pages/cart/cart.vue +++ b/src/pages/cart/cart.vue @@ -60,7 +60,7 @@ export default { itemChangeCount(index, num){ // 如果数量为1 , 并且还减少, 提示删除商品 if(this.cartList[index].goods_count === 1 && num === -1){ - wx.showModal({ + uni.showModal({ content: '是否删除该商品', success: (res) => { if (res.confirm) { @@ -85,7 +85,7 @@ export default { icon: "none" }) }else{ - wx.navigateTo({url:"/pages/pay/pay"}) + uni.navigateTo({url:"/pages/pay/pay"}) } } },